mirror of
https://github.com/thomasxm/BOAZ_beta
synced 2026-06-06 16:54:29 +00:00
25 lines
311 B
ArmAsm
25 lines
311 B
ArmAsm
extern Entry
|
|
|
|
global Start
|
|
global GetRIP
|
|
|
|
section .text
|
|
Start:
|
|
push rbp
|
|
mov rbp, rsp
|
|
|
|
call Entry
|
|
|
|
mov rsp, rbp
|
|
pop rbp
|
|
ret
|
|
|
|
section .text
|
|
GetRIP:
|
|
call retptr
|
|
|
|
retptr:
|
|
pop rax
|
|
sub rax, 5
|
|
ret
|