[*] Binary protection state of jq

  
  	Full RELRO     Canary found      NX enabled   PIE enabled  No RPATH     No RUNPATH   No Symbols


[*] Function printf tear down of jq

lsls r0, r2, 5
movs r0, r0
movs r5, 0xc2
movs r0, r0
movs r5, 0xb6
movs r0, r0
b 0x29f4
nop
push {r3, lr}
movs r1, 1
ldr r3, [0x00002aa0]
ldr.w ip, [0x00002aa4]
add r3, pc
ldr r0, [0x00002aa8]
ldr r2, [0x00002aac]
ldr.w r4, [r3, ip]
add r0, pc
ldr r3, [r0]
add r2, pc
ldr r0, [r4]
blx sym.imp.__fprintf_chk
ldr r0, [0x00002ab0]
movs r2, 0x48
--
add r2, pc
sub sp, 0x10
mov r4, r0
ldr r3, [r2, r3]
ldr r7, [r3]
cbnz r0, 0x2ad0
ldr r3, [0x00002b38]
ldr r3, [r2, r3]
ldr r7, [r3]
ldr.w r8, [0x00002b3c]
movs r1, 1
ldr r2, [0x00002b40]
mov r0, r7
add r8, pc
ldr.w r3, [r8]
add r2, pc
strd r3, r3, [sp, 4]
str r3, [sp]
ldr r3, [0x00002b44]
add r3, pc
blx sym.imp.__fprintf_chk
mov r5, r0
cbz r6, 0x2b1e
ldr r2, [0x00002b48]
mov r0, r7
ldr.w r3, [r8]
movs r1, 1
add r2, pc
blx sym.imp.__fprintf_chk
subs r3, r4, 0
it ne
--
ldr r7, [0x00003034]
stm.w sp, {r0, r1}
mov r0, r5
ldm.w sl, {r2, r3}
blx sym.imp.jv_dump_string
ldm.w r5, {r0, r1, r2, r3}
stm.w sl, {r0, r1, r2, r3}
ldr.w r3, [sb, r7]
ldr r7, [r3]
ldm.w r6, {r0, r1, r2, r3}
blx sym.imp.jv_string_value
mov r5, r0
ldm.w sl, {r0, r1, r2, r3}
blx sym.imp.jv_string_value
ldr r2, [0x0000303c]
mov r3, r5
str r0, [sp]
movs r1, 1
mov r0, r7
add r2, pc
blx sym.imp.__fprintf_chk
ldm.w r6, {r0, r1, r2, r3}
movs r6, 5
blx 0x1240
ldm.w sl, {r0, r1, r2, r3}
blx 0x1240
b 0x2e00
ldr r3, [0x00003034]
ldr.w r5, [sb, r3]
ldm.w r7, {r0, r1, r2, r3}
ldr.w r8, [r5]
blx sym.imp.jv_string_value
ldr r2, [0x00003040]
mov r3, r0
movs r1, 1
mov r0, r8
add r2, pc
blx sym.imp.__fprintf_chk
b 0x2df2
ldm.w sl, {r0, r1, r2, r3}
--
ldm.w r7, {r2, r3}
blx sym.imp.jv_copy
add r3, sp, 0x70
ldm.w r3, {r0, r1}
movs r3, 0
str r3, [sp, 8]
stm.w sp, {r0, r1}
mov r0, r7
ldm.w r5, {r2, r3}
blx sym.imp.jv_dump_string
ldr r3, [0x00003034]
ldr.w r5, [sb, r3]
ldm.w r7, {r0, r1, r2, r3}
ldr.w r8, [r5]
blx sym.imp.jv_string_value
ldr r2, [0x00003044]
mov r3, r0
movs r1, 1
mov r0, r8
add r2, pc
blx sym.imp.__fprintf_chk
b 0x2df2
ldr r3, [0x00003034]
ldr.w r3, [sb, r3]
ldr r7, [r3]
ldm.w r6, {r0, r1, r2, r3}
blx sym.imp.jv_string_value
mov r5, r0
ldm.w sl, {r0, r1, r2, r3}
blx sym.imp.jv_string_value
ldr r2, [0x00003048]
mov r3, r5
str r0, [sp]
movs r1, 1
mov r0, r7
add r2, pc
blx sym.imp.__fprintf_chk
b 0x2f18
blx sym.imp.__stack_chk_fail

[*] Function printf used 7 times jq