[*] Binary protection state of flash_unlock
Partial RELRO No Canary found NX disabled No PIE No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of flash_unlock
1055c: e3a03001 mov r3, #1
10560: ea000000 b 10568 <__register_frame_info@plt+0x94>
10564: e3a03002 mov r3, #2
10568: e5863000 str r3, [r6]
1056c: ea000000 b 10574 <__register_frame_info@plt+0xa0>
10570: e5868000 str r8, [r6]
10574: e2844001 add r4, r4, #1
10578: eaffffe1 b 10504 <__register_frame_info@plt+0x30>
1057c: e59f2334 ldr r2, [pc, #820] ; 108b8 <__register_frame_info@plt+0x3e4>
10580: e59f1334 ldr r1, [pc, #820] ; 108bc <__register_frame_info@plt+0x3e8>
10584: e59f0334 ldr r0, [pc, #820] ; 108c0 <__register_frame_info@plt+0x3ec>
10588: ebffffb0 bl 10450 <printf@plt>
1058c: e3a00000 mov r0, #0
10590: ebffffcc bl 104c8 <exit@plt>
10594: e3540001 cmp r4, #1
10598: da000005 ble 105b4 <__register_frame_info@plt+0xe0>
1059c: e59f2318 ldr r2, [pc, #792] ; 108bc <__register_frame_info@plt+0x3e8>
105a0: e59f131c ldr r1, [pc, #796] ; 108c4 <__register_frame_info@plt+0x3f0>
105a4: e59f331c ldr r3, [pc, #796] ; 108c8 <__register_frame_info@plt+0x3f4>
105a8: e5930000 ldr r0, [r3]
105ac: ebffffb6 bl 1048c <fprintf@plt>
105b0: eaffffe3 b 10544 <__register_frame_info@plt+0x70>
105b4: e59f3310 ldr r3, [pc, #784] ; 108cc <__register_frame_info@plt+0x3f8>
--
105fc: e0855002 add r5, r5, r2
10600: e5952004 ldr r2, [r5, #4]
10604: e2833002 add r3, r3, #2
10608: e1570003 cmp r7, r3
1060c: e5842004 str r2, [r4, #4]
10610: c5953008 ldrgt r3, [r5, #8]
10614: ca000000 bgt 1061c <__register_frame_info@plt+0x148>
10618: e3a03000 mov r3, #0
1061c: e3a01002 mov r1, #2
10620: e5843008 str r3, [r4, #8]
10624: ebffffa1 bl 104b0 <open64@plt>
10628: e2507000 subs r7, r0, #0
1062c: aa000013 bge 10680 <__register_frame_info@plt+0x1ac>
10630: ebffffa1 bl 104bc <__errno_location@plt>
10634: e59f628c ldr r6, [pc, #652] ; 108c8 <__register_frame_info@plt+0x3f4>
10638: e5943000 ldr r3, [r4]
1063c: e59f2278 ldr r2, [pc, #632] ; 108bc <__register_frame_info@plt+0x3e8>
10640: e59f1294 ldr r1, [pc, #660] ; 108dc <__register_frame_info@plt+0x408>
10644: e5905000 ldr r5, [r0]
10648: e5960000 ldr r0, [r6]
1064c: ebffff8e bl 1048c <fprintf@plt>
10650: e1a00005 mov r0, r5
10654: e5964000 ldr r4, [r6]
--
10694: ebffff88 bl 104bc <__errno_location@plt>
10698: e59f6228 ldr r6, [pc, #552] ; 108c8 <__register_frame_info@plt+0x3f4>
1069c: e5943000 ldr r3, [r4]
106a0: e59f2214 ldr r2, [pc, #532] ; 108bc <__register_frame_info@plt+0x3e8>
106a4: e59f1240 ldr r1, [pc, #576] ; 108ec <__register_frame_info@plt+0x418>
106a8: e5905000 ldr r5, [r0]
106ac: eaffffe5 b 10648 <__register_frame_info@plt+0x174>
106b0: e5940004 ldr r0, [r4, #4]
106b4: e3500000 cmp r0, #0
106b8: 0a00000b beq 106ec <__register_frame_info@plt+0x218>
106bc: e28d100c add r1, sp, #12
106c0: eb0000f0 bl 10a88 <__register_frame_info@plt+0x5b4>
106c4: e59d300c ldr r3, [sp, #12]
106c8: e3530000 cmp r3, #0
106cc: e58d0010 str r0, [sp, #16]
106d0: 0a000006 beq 106f0 <__register_frame_info@plt+0x21c>
106d4: e59f21e0 ldr r2, [pc, #480] ; 108bc <__register_frame_info@plt+0x3e8>
106d8: e59f1210 ldr r1, [pc, #528] ; 108f0 <__register_frame_info@plt+0x41c>
106dc: e59f31e4 ldr r3, [pc, #484] ; 108c8 <__register_frame_info@plt+0x3f4>
106e0: e5930000 ldr r0, [r3]
106e4: ebffff68 bl 1048c <fprintf@plt>
106e8: ea00000a b 10718 <__register_frame_info@plt+0x244>
106ec: e58d0010 str r0, [sp, #16]
106f0: e59d3010 ldr r3, [sp, #16]
106f4: e59d2020 ldr r2, [sp, #32]
106f8: e1530002 cmp r3, r2
106fc: 3a000007 bcc 10720 <__register_frame_info@plt+0x24c>
10700: e59f01c0 ldr r0, [pc, #448] ; 108c8 <__register_frame_info@plt+0x3f4>
10704: e58d2000 str r2, [sp]
10708: e59f11e4 ldr r1, [pc, #484] ; 108f4 <__register_frame_info@plt+0x420>
1070c: e59f21a8 ldr r2, [pc, #424] ; 108bc <__register_frame_info@plt+0x3e8>
10710: e5900000 ldr r0, [r0]
10714: ebffff5c bl 1048c <fprintf@plt>
10718: e3e00000 mvn r0, #0
1071c: eaffff9b b 10590 <__register_frame_info@plt+0xbc>
--
10744: 159f11ac ldrne r1, [pc, #428] ; 108f8 <__register_frame_info@plt+0x424>
10748: 1affffe3 bne 106dc <__register_frame_info@plt+0x208>
1074c: e3700001 cmn r0, #1
10750: 159d3024 ldrne r3, [sp, #36] ; 0x24
10754: 059d3020 ldreq r3, [sp, #32]
10758: 10000293 mulne r0, r3, r2
1075c: 058d3014 streq r3, [sp, #20]
10760: 158d0014 strne r0, [sp, #20]
10764: e59d3010 ldr r3, [sp, #16]
10768: e59d2014 ldr r2, [sp, #20]
1076c: e59d1020 ldr r1, [sp, #32]
10770: e0830002 add r0, r3, r2
10774: e1500001 cmp r0, r1
10778: 9a000009 bls 107a4 <__register_frame_info@plt+0x2d0>
1077c: e59f0144 ldr r0, [pc, #324] ; 108c8 <__register_frame_info@plt+0x3f4>
10780: e58d1004 str r1, [sp, #4]
10784: e58d2000 str r2, [sp]
10788: e59f116c ldr r1, [pc, #364] ; 108fc <__register_frame_info@plt+0x428>
1078c: e59f2128 ldr r2, [pc, #296] ; 108bc <__register_frame_info@plt+0x3e8>
10790: e5900000 ldr r0, [r0]
10794: ebffff3c bl 1048c <fprintf@plt>
10798: eaffffde b 10718 <__register_frame_info@plt+0x244>
1079c: e58d2014 str r2, [sp, #20]
107a0: eaffffef b 10764 <__register_frame_info@plt+0x290>
107a4: e5965000 ldr r5, [r6]
107a8: e3550001 cmp r5, #1
107ac: 0a000023 beq 10840 <__register_frame_info@plt+0x36c>
107b0: 3a000009 bcc 107dc <__register_frame_info@plt+0x308>
107b4: e3550002 cmp r5, #2
107b8: 059f1140 ldreq r1, [pc, #320] ; 10900 <__register_frame_info@plt+0x42c>
107bc: 0a000007 beq 107e0 <__register_frame_info@plt+0x30c>
107c0: e59f0100 ldr r0, [pc, #256] ; 108c8 <__register_frame_info@plt+0x3f4>
107c4: e1a03005 mov r3, r5
107c8: e59f20ec ldr r2, [pc, #236] ; 108bc <__register_frame_info@plt+0x3e8>
107cc: e59f1130 ldr r1, [pc, #304] ; 10904 <__register_frame_info@plt+0x430>
107d0: e5900000 ldr r0, [r0]
107d4: ebffff2c bl 1048c <fprintf@plt>
107d8: eaffffce b 10718 <__register_frame_info@plt+0x244>
107dc: e59f1124 ldr r1, [pc, #292] ; 10908 <__register_frame_info@plt+0x434>
107e0: e28d2010 add r2, sp, #16
107e4: e1a00007 mov r0, r7
107e8: ebffff15 bl 10444 <ioctl@plt>
107ec: e3500000 cmp r0, #0
107f0: e58d000c str r0, [sp, #12]
107f4: aa000013 bge 10848 <__register_frame_info@plt+0x374>
107f8: ebffff2f bl 104bc <__errno_location@plt>
107fc: e59f30a8 ldr r3, [pc, #168] ; 108ac <__register_frame_info@plt+0x3d8>
10800: e59f70c0 ldr r7, [pc, #192] ; 108c8 <__register_frame_info@plt+0x3f4>
10804: e0835105 add r5, r3, r5, lsl #2
10808: e5943000 ldr r3, [r4]
1080c: e59f20a8 ldr r2, [pc, #168] ; 108bc <__register_frame_info@plt+0x3e8>
10810: e59f10f4 ldr r1, [pc, #244] ; 1090c <__register_frame_info@plt+0x438>
10814: e5906000 ldr r6, [r0]
10818: e58d3000 str r3, [sp]
1081c: e5953068 ldr r3, [r5, #104] ; 0x68
10820: e5970000 ldr r0, [r7]
10824: ebffff18 bl 1048c <fprintf@plt>
10828: e1a00006 mov r0, r6
1082c: e5974000 ldr r4, [r7]
--
10a18: e59f301c ldr r3, [pc, #28] ; 10a3c <__register_frame_info@plt+0x568>
10a1c: e3530000 cmp r3, #0
10a20: 0a000004 beq 10a38 <__register_frame_info@plt+0x564>
10a24: e92d4010 push {r4, lr}
10a28: e59f1010 ldr r1, [pc, #16] ; 10a40 <__register_frame_info@plt+0x56c>
10a2c: e59f0010 ldr r0, [pc, #16] ; 10a44 <__register_frame_info@plt+0x570>
10a30: ebfffea7 bl 104d4 <__register_frame_info@plt>
10a34: e8bd4010 pop {r4, lr}
10a38: eaffffd6 b 10998 <__register_frame_info@plt+0x4c4>
10a3c: 00000000 andeq r0, r0, r0
10a40: 0002205c andeq r2, r2, ip, asr r0
10a44: 0001107c andeq r1, r1, ip, ror r0
10a48: e92d4010 push {r4, lr}
10a4c: e59f2020 ldr r2, [pc, #32] ; 10a74 <__register_frame_info@plt+0x5a0>
10a50: e2504000 subs r4, r0, #0
10a54: 159f301c ldrne r3, [pc, #28] ; 10a78 <__register_frame_info@plt+0x5a4>
10a58: 059f301c ldreq r3, [pc, #28] ; 10a7c <__register_frame_info@plt+0x5a8>
10a5c: e59f101c ldr r1, [pc, #28] ; 10a80 <__register_frame_info@plt+0x5ac>
10a60: e5930000 ldr r0, [r3]
10a64: e59f3018 ldr r3, [pc, #24] ; 10a84 <__register_frame_info@plt+0x5b0>
10a68: ebfffe87 bl 1048c <fprintf@plt>
10a6c: e1a00004 mov r0, r4
10a70: ebfffe94 bl 104c8 <exit@plt>
--
10a88: e92d407f push {r0, r1, r2, r3, r4, r5, r6, lr}
10a8c: e1a06001 mov r6, r1
10a90: e3a02000 mov r2, #0
10a94: e28d100c add r1, sp, #12
10a98: e1a04000 mov r4, r0
10a9c: ebfffe77 bl 10480 <strtol@plt>
10aa0: e5d43000 ldrb r3, [r4]
10aa4: e3530000 cmp r3, #0
10aa8: e1a05000 mov r5, r0
10aac: 0a000003 beq 10ac0 <__register_frame_info@plt+0x5ec>
10ab0: e59d300c ldr r3, [sp, #12]
10ab4: e5d33000 ldrb r3, [r3]
10ab8: e3530000 cmp r3, #0
10abc: 0a000008 beq 10ae4 <__register_frame_info@plt+0x610>
10ac0: e59f0028 ldr r0, [pc, #40] ; 10af0 <__register_frame_info@plt+0x61c>
10ac4: e58d4000 str r4, [sp]
10ac8: e59f3024 ldr r3, [pc, #36] ; 10af4 <__register_frame_info@plt+0x620>
10acc: e59f2024 ldr r2, [pc, #36] ; 10af8 <__register_frame_info@plt+0x624>
10ad0: e59f1024 ldr r1, [pc, #36] ; 10afc <__register_frame_info@plt+0x628>
10ad4: e5900000 ldr r0, [r0]
10ad8: ebfffe6b bl 1048c <fprintf@plt>
10adc: e3a03001 mov r3, #1
10ae0: e5863000 str r3, [r6]
[*] Function fprintf used 9 times flash_unlock