Skip to content

Instantly share code, notes, and snippets.

@d4em0n
Created October 3, 2020 04:54
Show Gist options
  • Save d4em0n/a7e34486f38cce8070751c1b43c97839 to your computer and use it in GitHub Desktop.
Save d4em0n/a7e34486f38cce8070751c1b43c97839 to your computer and use it in GitHub Desktop.
psesudo opcode 0xa, 0xb, 0xc, 0xd, 0x10
opcode: 0xa
if al >= 0x20
int3()
rdi = eax
rsi = (rdi*8 + rdi)*8
rdx = *(0x10400+rsi)
*(rdx+0x40) = 1
opcode: 0xb
if al >= 0x20
int3()
rdi = eax
rsi = (rdi*8 + rdi)*8
rdx = *(0x10400+rsi)
*(rdx+0x40) = 0
opcode: 0xc
save_reg()
if al >= 0x20
int3()
rdi = eax
rsi = (rdi*8 + rdi)*8
rdx = *(0x10400+rsi)
if *(rdx+0x40) != 0 {
call *(rdx+0x40)
}
restore_reg()
opcode: 0xd
if al >= 0x20
int3()
rdi = eax
rsi = (rdi*8 + rdi)*8
rdx = *(0x10400+rsi)
*(rdx+0x40) += 0x1000
opcode: 0x10
al = arg1 // arg1 is controlled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment