Advertisement
pushrbx

Untitled

Sep 2nd, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. tGFXAccess *pGFXAccess = 0x0f0422d; // sample address
  2. LPVOID ptr1 = pGFXAccess;
  3.  
  4. __asm
  5. {
  6.     // Save registers
  7.     pushad
  8.  
  9.     // Restore these from after the dllobj was created
  10.     mov eax, dwEax_setup
  11.     mov ebx, dwEbx_setup
  12.     mov ecx, dwEcx_setup
  13.     mov edx, dwEdx_setup
  14.  
  15.     // Params to open the archive file for access
  16.     push lpVar1
  17.     push paccess
  18.     push pfilename
  19.  
  20.     // Code to open the archive file for access
  21.     mov ecx, ptr1
  22.     mov edx, [ecx]
  23.     mov eax, [edx + 0x10] // how do we calculate the place of function? LOL
  24.     call eax
  25.  
  26.     // Store the result
  27.     mov dwResult, eax
  28.  
  29.     // Restore registers
  30.     popad
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement