Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include 'win32a.inc'
- format PE GUI
- entry _start
- section '.text' code readable writeable
- _start:
- push 0
- push 0
- mov ecx, 1 ;1 or 0 pls
- jecxz msg_zero
- jmp msg_one
- msg_zero:
- push title_ecx_is
- push message_zero
- push 0
- call [MessageBox]
- jmp exit
- msg_one:
- push title_ecx_is
- push message_one
- push 0
- call [MessageBox]
- jmp exit
- exit:
- call [ExitProcess]
- section '.data' data readable writeable
- message_zero db 'ECX was 0!', 0x00
- message_one db 'EXC was 1!', 0x00
- title_ecx_is db 'ECX is?', 0x00
- section '.idata' import data readable writeable
- library kernel, 'kernel32.dll', user, 'user32.dll'
- import kernel,\
- ExitProcess, 'ExitProcess'
- import user,\
- MessageBox, 'MessageBoxA'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement