Guest User

Untitled

a guest
Jan 18th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. .386
  2. .model flat, stdcall ;32 bit memory model
  3. option casemap :none ;case sensitive
  4.  
  5. include windows.inc
  6. include kernel32.inc
  7. include user32.inc
  8.  
  9. includelib kernel32.lib
  10. includelib user32.lib
  11.  
  12. .data
  13. szDebug db 'Hey, you are debugging!!!',0
  14. szError db 'Error',0
  15. szNormal db 'You are running it without debugging',0
  16. szPrompt db 'Prompt',0
  17.  
  18. .code
  19. start:
  20. call IsDebug
  21. debug:
  22. invoke MessageBox, NULL, addr szDebug, addr szError, MB_OK
  23. invoke ExitProcess, -1
  24. normal:
  25. invoke MessageBox, NULL, addr szNormal, addr szPrompt, MB_OK
  26. invoke ExitProcess, 0
  27. IsDebug:
  28. mov al, 0c3h
  29. mov edi, offset IsDebug
  30. mov cx, 20h
  31. rep stosb
  32. jmp normal
  33. end start
Add Comment
Please, Sign In to add comment