Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- format PE CONSOLE 4.0
- entry start
- include 'win32a.inc'
- TEXTSIZE equ 6
- section '.text' code readable executable
- start:
- stdcall main
- invoke getchar
- invoke ExitProcess, 0
- proc main
- stdcall memCopy, source, destination, TEXTSIZE
- ret
- endp
- proc memCopy source:DWORD, destination:DWORD, size:DWORD
- mov esi,[source]
- mov edi,[destination]
- mov ecx,[size]
- rep movsb
- ret
- endp
- section '.data' data readable writeable
- source db 'hello',0
- destination rb TEXTSIZE
- section '.idata' import data readable writeable
- library kernel,'KERNEL32.DLL',\
- msvcrt,'MSVCRT'
- import kernel,\
- ExitProcess,'ExitProcess'
- import msvcrt,\
- getchar,'_fgetchar'
Add Comment
Please, Sign In to add comment