Skip to content

Instantly share code, notes, and snippets.

@dweinstein
Created July 21, 2015 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dweinstein/ca41e2d6dedc142dcfee to your computer and use it in GitHub Desktop.
Save dweinstein/ca41e2d6dedc142dcfee to your computer and use it in GitHub Desktop.
function sym.subsystem_control_shutdown () {
loc_0x8d4:
push (r4, r5, r6, r7, r8, sb, lr)
r4 = r0
r7 = [pc + 0x240]
sp -= 0x44
r2 = [pc + 0x240]
r0 = 4
r7 += pc
r6 = [pc + 0x23c]
r2 += pc
r1 = r7
r6 += pc
sym.imp.__android_log_print()
if !r4 jmp 0x902 {
loc_0x902:
r3 = [pc + 0x228]
r0 = 1
dmb sy
r3 += pc do {
loc_0x90c:
ldrex r2,[r3]
if (r2 == 0)
bne 0x91c
} else {
goto loc_0x90c
}
loc_0x90c:
ldrex r2,[r3]
if (r2 == 0)
bne 0x91c
} else {
goto loc_0x8f2
loc_0x8f2:
r2 = [pc + 0x234]
r0 = 6
r1 = r7
r3 = r4
r2 += pc
sym.imp.__android_log_print()
jmp 0x92e
}
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment