Skip to content

Instantly share code, notes, and snippets.

@USA-RedDragon
Created October 26, 2022 20:55
Show Gist options
  • Save USA-RedDragon/09e9b2a6cd5ae06a0aee813ec85b136a to your computer and use it in GitHub Desktop.
Save USA-RedDragon/09e9b2a6cd5ae06a0aee813ec85b136a to your computer and use it in GitHub Desktop.
//DEFINE SET_X0_FROM_BP e00311aa
mov x0, x17
//DEFINE SUB_X0_16 004000d1
sub x0, x0, #0x10
//DEFINE DEREF_X0 000040f9
ldr x0, [x0]
//DEFINE SET_X2_FROM_X0 e20300aa
mov x2, x0
//DEFINE SET_X0_FROM_BP e00311aa
mov x0, x17
//DEFINE SUB_X0_8 002000d1
sub x0, x0, #8
//DEFINE DEREF_X0 000040f9
ldr x0, [x0]
//DEFINE SET_X1_FROM_X0 e10300aa
mov x1, x0
//DEFINE SET_X0_TO_0 000080d2
mov x0, #0
//DEFINE SET_X3_FROM_X0 e30300aa
mov x3, x0
//DEFINE SET_X0_TO_FCNTL_H_AT_FDCWD 600c8092
mov x0, #-0x64
//DEFINE SET_X8_TO_SYS_MKDIR c88080d2
mov x8, #0x406
//DEFINE SYSCALL 010000d4
svc #0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment