Advertisement
captmicro

Unknown

Oct 9th, 2010
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.93 KB | None | 0 0
  1. #undef _WIN64
  2. #undef _UNICODE
  3. #include "types.h"
  4. #include "structs.h"
  5.  
  6. DWORD PEB_kernel32base();
  7. BYTE PEB_beingdebugged();
  8.  
  9. USHORT xor_ror_hash(CHAR *str);
  10. DWORD getfuncaddress(DWORD mbase, CHAR *procname);
  11. void MUD_FunctionsInit(void);
  12.  
  13. #ifndef _FUNCTIONS_H_
  14. #define _FUNCTIONS_H_
  15.  
  16. //kernel32.dll
  17. typedef HANDLE  (WINAPI *_HeapCreate)(DWORD, SIZE_T, SIZE_T);
  18. typedef BOOL    (WINAPI *_HeapDestroy)(HANDLE);
  19. typedef void*   (WINAPI *_HeapAlloc)(HANDLE, DWORD, SIZE_T);
  20. typedef void*   (WINAPI *_HeapReAlloc)(HANDLE, DWORD, void *, SIZE_T);
  21. typedef BOOL    (WINAPI *_HeapFree)(HANDLE, DWORD, void *);
  22. typedef SIZE_T  (WINAPI *_HeapSize)(HANDLE, DWORD, const void *);
  23. typedef HANDLE  (WINAPI *_GetProcessHeap)(void);
  24. _HeapCreate MUD_HeapCreate;
  25. _HeapDestroy MUD_HeapDestroy;
  26. _HeapAlloc MUD_HeapAlloc;
  27. _HeapReAlloc MUD_HeapReAlloc;
  28. _HeapFree MUD_HeapFree;
  29. _HeapSize MUD_HeapSize;
  30. _GetProcessHeap MUD_GetProcessHeap;
  31.  
  32. #endif //_FUNCTIONS_H_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement