SHOW:
|
|
- or go back to the newest paste.
1 | - | void __fastcall YourHookedFunction(wchar_t * GivenString) |
1 | + | void Print(wchar_t * String) |
2 | { | |
3 | - | __asm sub eps, 0x18 |
3 | + | std::wcout << String << std::endl; |
4 | - | std::wcout << GivenString << std::endl; |
4 | + | } |
5 | - | __asm jmp OrigFunc+6 |
5 | + | __declspec(naked) void YourHookedFunction() |
6 | { | |
7 | __asm | |
8 | { | |
9 | push ebp | |
10 | mov ebp, esp | |
11 | sub esp, 0x18 | |
12 | pushad | |
13 | pushfd | |
14 | push ecx | |
15 | call Print | |
16 | popfd | |
17 | popad | |
18 | jmp Back | |
19 | } | |
20 | } |