Advertisement
krot

LoadLibraryA

May 24th, 2018
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. EXTERN LoadLibraryA@4:NEAR
  2. EXTERN GetProcAddress@8:NEAR
  3.  
  4. dllName DB 'user32.dll',0
  5. FunctionName DB 'MessageBoxA',0
  6.  
  7. push offset dllName    
  8. call LoadLibraryA@4    ; load the dll
  9.  
  10. push offset FunctionName    
  11. push eax  
  12. call GetProcAddress@8
  13.  
  14.  
  15. PUSH 0
  16. PUSH OFFSET msg_title
  17. PUSH OFFSET msg_message
  18. PUSH HW
  19. CALL EAX;MessageBoxA@16
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement