mirror of
https://github.com/Cxbx-Reloaded/subhook.git
synced 2024-12-11 21:03:37 +00:00
23 lines
214 B
NASM
23 lines
214 B
NASM
bits 64
|
|
|
|
extern puts
|
|
global foo
|
|
|
|
section .data
|
|
|
|
message:
|
|
db 'foo() called', 0
|
|
|
|
section .text
|
|
|
|
foo:
|
|
nop
|
|
push rbp
|
|
mov rbp, rsp
|
|
sub rsp, 32
|
|
mov rcx, qword message
|
|
call puts
|
|
add rsp, 32
|
|
pop rbp
|
|
ret
|