Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void Print(wchar_t * String)
  2. {
  3.     std::wcout << String << std::endl;
  4. }
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement