Guest User

Untitled

a guest
Dec 10th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. bool ErasePEHeader( HMODULE hModule ) // hModule = handle to DLL
  2. {
  3. if((DWORD)hModule == 0) return 0;
  4. DWORD IMAGE_NT_HEADER = *(int*)((DWORD)hModule + 60);
  5. for(int i=0; i<0x108; i++)
  6. *(BYTE*)(IMAGE_NT_HEADER+i) = 0;
  7. for(int i=0; i<120; i++)
  8. *(BYTE*)((DWORD)hModule+i) = 0;
  9. return 1;
  10. }
Add Comment
Please, Sign In to add comment