Last active
July 6, 2023 00:39
-
-
Save kawaii-ghost/3432deff142b61099255e11e71435701 to your computer and use it in GitHub Desktop.
Hello world using Win32 on x64 Assembly unoptimized
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern WriteFile | |
extern ExitProcess | |
section .rdata | |
szText db `Hello, world!\n\0` | |
cbLength equ $szText-1 | |
section .text | |
global start | |
start: | |
sub rsp, 40 ; | |
mov rcx, -11 ; STD_OUTPUT_HANDLE | |
mov rdx, szText | |
mov r8, cbLength | |
mov r9, 0 | |
mov qword 32[rsp], 0 | |
call WriteFile | |
xor rcx, rcx | |
call ExitProcess |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FFFFFFFFFFFFFFFF, susah juga jelasin pake undocumented