Skip to content

Instantly share code, notes, and snippets.

@kawaii-ghost
Last active July 6, 2023 00:39
Show Gist options
  • Save kawaii-ghost/3432deff142b61099255e11e71435701 to your computer and use it in GitHub Desktop.
Save kawaii-ghost/3432deff142b61099255e11e71435701 to your computer and use it in GitHub Desktop.
Hello world using Win32 on x64 Assembly unoptimized
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
@kawaii-ghost
Copy link
Author

FFFFFFFFFFFFFFFF, susah juga jelasin pake undocumented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment