Advertisement
Riremito

Untitled

Nov 9th, 2014
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. DWORD dwSendHookAddr = 0x0219D74B;
  2. DWORD dwSendHookRet = 0x01D469B9;
  3. DWORD dwCommonReturn = 0x0048F190;
  4.  
  5. void _declspec(naked) SendHook(){
  6. _asm{
  7. pushad
  8. mov ebx,[ebp+0x04]
  9. cmp ebx,[dwCommonReturn]
  10. jne Label1
  11. mov ebx,[ebp+0x0C]
  12. Label1:
  13. mov eax,[ebp+0x08]//Packet Struct
  14. push [eax+0x04]//Packet
  15. push [eax+0x08]//Size
  16. push ebx//Return
  17. push 0x00
  18. call PacketHook
  19. popad
  20. jmp dword ptr [dwSendHookRet]
  21. }
  22. }
  23.  
  24.  
  25. 0048F180 - 8B 44 24 04 - mov eax,[esp+04]
  26. 0048F184 - 8B 0D D0D7B901 - mov ecx,[01B9D7D0] : [00000000]
  27. 0048F18A - 50 - push eax
  28. 0048F18B - E8 70DB1500 - call 005ECD00
  29. 0048F190 - C3 - ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement