Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DWORD dwSendHookAddr = 0x0219D74B;
- DWORD dwSendHookRet = 0x01D469B9;
- DWORD dwCommonReturn = 0x0048F190;
- void _declspec(naked) SendHook(){
- _asm{
- pushad
- mov ebx,[ebp+0x04]
- cmp ebx,[dwCommonReturn]
- jne Label1
- mov ebx,[ebp+0x0C]
- Label1:
- mov eax,[ebp+0x08]//Packet Struct
- push [eax+0x04]//Packet
- push [eax+0x08]//Size
- push ebx//Return
- push 0x00
- call PacketHook
- popad
- jmp dword ptr [dwSendHookRet]
- }
- }
- 0048F180 - 8B 44 24 04 - mov eax,[esp+04]
- 0048F184 - 8B 0D D0D7B901 - mov ecx,[01B9D7D0] : [00000000]
- 0048F18A - 50 - push eax
- 0048F18B - E8 70DB1500 - call 005ECD00
- 0048F190 - C3 - ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement