Echo89

64 Bit Message Box Assembly

Apr 12th, 2013
71
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .586
  2. .model flat, stdcall
  3. option casemap :none
  4.  
  5. include \masm32\include\windows.inc
  6. include \masm32\include\kernel32.inc
  7. include \masm32\include\masm32.inc
  8. include \masm32\include\user32.inc
  9.  
  10. includelib \masm32\lib\kernel32.lib
  11. includelib \masm32\lib\masm32.lib
  12. includelib \masm32\lib\user32.lib
  13.  
  14. .data
  15.     MessageBoxTitle     db "Hello!", 0
  16.     MessageBoxContent   db "Hello, World!", 0
  17.  
  18. .code
  19. start:
  20.     invoke MessageBox, NULL, addr MessageBoxContent, addr MessageBoxTitle, MB_OK
  21.     invoke ExitProcess, 0
  22. end start
RAW Paste Data