[*] Binary protection state of nandtest
Partial RELRO No Canary found NX disabled No PIE No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of nandtest
00010788 <close@plt>:
10788: e28fc600 add ip, pc, #0, 12
1078c: e28cca11 add ip, ip, #69632 ; 0x11000
10790: e5bcf8d4 ldr pc, [ip, #2260]! ; 0x8d4
00010794 <raise@plt>:
10794: e28fc600 add ip, pc, #0, 12
10798: e28cca11 add ip, ip, #69632 ; 0x11000
1079c: e5bcf8cc ldr pc, [ip, #2252]! ; 0x8cc
Disassembly of section .text:
000107a0 <.text>:
107a0: e92d4010 push {r4, lr}
107a4: e59f201c ldr r2, [pc, #28] ; 107c8 <raise@plt+0x34>
107a8: e2504000 subs r4, r0, #0
107ac: 159f3018 ldrne r3, [pc, #24] ; 107cc <raise@plt+0x38>
107b0: 059f3018 ldreq r3, [pc, #24] ; 107d0 <raise@plt+0x3c>
107b4: e59f1018 ldr r1, [pc, #24] ; 107d4 <raise@plt+0x40>
107b8: e5930000 ldr r0, [r3]
107bc: ebffffd0 bl 10704 <fprintf@plt>
107c0: e1a00004 mov r0, r4
107c4: ebffffe9 bl 10770 <exit@plt>
--
10930: e58d0014 str r0, [sp, #20]
10934: eaffffbb b 10828 <raise@plt+0x94>
10938: e28d102c add r1, sp, #44 ; 0x2c
1093c: e5970000 ldr r0, [r7]
10940: eb00021a bl 111b0 <raise@plt+0xa1c>
10944: e1a05000 mov r5, r0
10948: eaffffb6 b 10828 <raise@plt+0x94>
1094c: e59f236c ldr r2, [pc, #876] ; 10cc0 <raise@plt+0x52c>
10950: e5922000 ldr r2, [r2]
10954: e0466002 sub r6, r6, r2
10958: e3560001 cmp r6, #1
1095c: 1affffc5 bne 10878 <raise@plt+0xe4>
10960: e59d102c ldr r1, [sp, #44] ; 0x2c
10964: e3510000 cmp r1, #0
10968: 0a000008 beq 10990 <raise@plt+0x1fc>
1096c: e58d0008 str r0, [sp, #8]
10970: e59f034c ldr r0, [pc, #844] ; 10cc4 <raise@plt+0x530>
10974: e59f233c ldr r2, [pc, #828] ; 10cb8 <raise@plt+0x524>
10978: e59f1348 ldr r1, [pc, #840] ; 10cc8 <raise@plt+0x534>
1097c: e5900000 ldr r0, [r0]
10980: ebffff5f bl 10704 <fprintf@plt>
10984: e59d3008 ldr r3, [sp, #8]
10988: e1a00003 mov r0, r3
--
109c0: e3500000 cmp r0, #0
109c4: 0a000004 beq 109dc <raise@plt+0x248>
109c8: e59f030c ldr r0, [pc, #780] ; 10cdc <raise@plt+0x548>
109cc: ebffff3d bl 106c8 <perror@plt>
109d0: e5990000 ldr r0, [r9]
109d4: ebffff6b bl 10788 <close@plt>
109d8: ea00000d b 10a14 <raise@plt+0x280>
109dc: e597a00c ldr sl, [r7, #12]
109e0: e3750001 cmn r5, #1
109e4: e1a0100a mov r1, sl
109e8: e1a00004 mov r0, r4
109ec: 05975008 ldreq r5, [r7, #8]
109f0: eb000236 bl 112d0 <raise@plt+0xb3c>
109f4: e3510000 cmp r1, #0
109f8: 0a000007 beq 10a1c <raise@plt+0x288>
109fc: e59f12dc ldr r1, [pc, #732] ; 10ce0 <raise@plt+0x54c>
10a00: e1a0300a mov r3, sl
10a04: e1a02004 mov r2, r4
10a08: e59f02b4 ldr r0, [pc, #692] ; 10cc4 <raise@plt+0x530>
10a0c: e5900000 ldr r0, [r0]
10a10: ebffff3b bl 10704 <fprintf@plt>
10a14: e3a00001 mov r0, #1
10a18: eaffffbd b 10914 <raise@plt+0x180>
10a1c: e1a0100a mov r1, sl
10a20: e1a00005 mov r0, r5
10a24: eb000229 bl 112d0 <raise@plt+0xb3c>
10a28: e3510000 cmp r1, #0
10a2c: 11a0300a movne r3, sl
10a30: 11a02005 movne r2, r5
10a34: 159f12a8 ldrne r1, [pc, #680] ; 10ce4 <raise@plt+0x550>
10a38: 1afffff2 bne 10a08 <raise@plt+0x274>
10a3c: e5973008 ldr r3, [r7, #8]
10a40: e084b005 add fp, r4, r5
10a44: e15b0003 cmp fp, r3
10a48: 9a000007 bls 10a6c <raise@plt+0x2d8>
10a4c: e59f0270 ldr r0, [pc, #624] ; 10cc4 <raise@plt+0x530>
10a50: e58d3000 str r3, [sp]
10a54: e1a02005 mov r2, r5
10a58: e1a03004 mov r3, r4
10a5c: e59f1284 ldr r1, [pc, #644] ; 10ce8 <raise@plt+0x554>
10a60: e5900000 ldr r0, [r0]
10a64: ebffff26 bl 10704 <fprintf@plt>
10a68: eaffffe9 b 10a14 <raise@plt+0x280>
10a6c: e1a0508a lsl r5, sl, #1
--
10bf0: ebfffebd bl 106ec <fflush@plt>
10bf4: e1cd23d0 ldrd r2, [sp, #48] ; 0x30
10bf8: e1a0100a mov r1, sl
10bfc: e1cd20f0 strd r2, [sp]
10c00: e59f30c4 ldr r3, [pc, #196] ; 10ccc <raise@plt+0x538>
10c04: e595200c ldr r2, [r5, #12]
10c08: e5930000 ldr r0, [r3]
10c0c: ebfffec5 bl 10728 <pread64@plt>
10c10: e595300c ldr r3, [r5, #12]
10c14: e1530000 cmp r3, r0
10c18: 9a00000d bls 10c54 <raise@plt+0x4c0>
10c1c: e58d0008 str r0, [sp, #8]
10c20: e3a0000a mov r0, #10
10c24: ebfffe95 bl 10680 <putchar@plt>
10c28: e59d2008 ldr r2, [sp, #8]
10c2c: e3520000 cmp r2, #0
10c30: 0a000004 beq 10c48 <raise@plt+0x4b4>
10c34: e59f10e4 ldr r1, [pc, #228] ; 10d20 <raise@plt+0x58c>
10c38: e59f3084 ldr r3, [pc, #132] ; 10cc4 <raise@plt+0x530>
10c3c: e5930000 ldr r0, [r3]
10c40: ebfffeaf bl 10704 <fprintf@plt>
10c44: eaffff72 b 10a14 <raise@plt+0x280>
10c48: e59f00d4 ldr r0, [pc, #212] ; 10d24 <raise@plt+0x590>
--
10ef8: e5341010 ldr r1, [r4, #-16]!
10efc: e59f0264 ldr r0, [pc, #612] ; 11168 <raise@plt+0x9d4>
10f00: ebfffde4 bl 10698 <printf@plt>
10f04: e1a02004 mov r2, r4
10f08: e59f125c ldr r1, [pc, #604] ; 1116c <raise@plt+0x9d8>
10f0c: e5950000 ldr r0, [r5]
10f10: ebfffddd bl 1068c <ioctl@plt>
10f14: e3a04001 mov r4, #1
10f18: e1a00004 mov r0, r4
10f1c: e28dd024 add sp, sp, #36 ; 0x24
10f20: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
10f24: e596300c ldr r3, [r6, #12]
10f28: e1530008 cmp r3, r8
10f2c: 9a000080 bls 11134 <raise@plt+0x9a0>
10f30: e3a0000a mov r0, #10
10f34: ebfffdd1 bl 10680 <putchar@plt>
10f38: e59f1230 ldr r1, [pc, #560] ; 11170 <raise@plt+0x9dc>
10f3c: e1a02008 mov r2, r8
10f40: e59f322c ldr r3, [pc, #556] ; 11174 <raise@plt+0x9e0>
10f44: e5930000 ldr r0, [r3]
10f48: ebfffded bl 10704 <fprintf@plt>
10f4c: e3a00001 mov r0, #1
10f50: ebfffe06 bl 10770 <exit@plt>
--
1106c: e1a01009 mov r1, r9
11070: e59f0124 ldr r0, [pc, #292] ; 1119c <raise@plt+0xa08>
11074: ebfffd87 bl 10698 <printf@plt>
11078: e59f30c4 ldr r3, [pc, #196] ; 11144 <raise@plt+0x9b0>
1107c: e5930000 ldr r0, [r3]
11080: ebfffd99 bl 106ec <fflush@plt>
11084: e597200c ldr r2, [r7, #12]
11088: e1a0100b mov r1, fp
1108c: e1a0000a mov r0, sl
11090: ebfffda7 bl 10734 <emcmp@plt>
11094: e3500000 cmp r0, #0
11098: 0a00000c beq 110d0 <raise@plt+0x93c>
1109c: e3a0000a mov r0, #10
110a0: ebfffd76 bl 10680 <putchar@plt>
110a4: e59f30f4 ldr r3, [pc, #244] ; 111a0 <raise@plt+0xa0c>
110a8: e59f10f4 ldr r1, [pc, #244] ; 111a4 <raise@plt+0xa10>
110ac: e5932000 ldr r2, [r3]
110b0: e59f30bc ldr r3, [pc, #188] ; 11174 <raise@plt+0x9e0>
110b4: e59f90ec ldr r9, [pc, #236] ; 111a8 <raise@plt+0xa14>
110b8: e5930000 ldr r0, [r3]
110bc: ebfffd90 bl 10704 <fprintf@plt>
110c0: e597300c ldr r3, [r7, #12]
110c4: e1550003 cmp r5, r3
110c8: 3a000010 bcc 11110 <raise@plt+0x97c>
110cc: e2844001 add r4, r4, #1
110d0: e2866001 add r6, r6, #1
110d4: e59d3048 ldr r3, [sp, #72] ; 0x48
110d8: e1560003 cmp r6, r3
110dc: daffff9c ble 10f54 <raise@plt+0x7c0>
110e0: e3540000 cmp r4, #0
110e4: 0affff8b beq 10f18 <raise@plt+0x784>
110e8: e59f30b0 ldr r3, [pc, #176] ; 111a0 <raise@plt+0xa0c>
110ec: e59f0080 ldr r0, [pc, #128] ; 11174 <raise@plt+0x9e0>
110f0: e5933000 ldr r3, [r3]
110f4: e1a02004 mov r2, r4
110f8: e58d3000 str r3, [sp]
110fc: e59f10a8 ldr r1, [pc, #168] ; 111ac <raise@plt+0xa18>
11100: e59d3048 ldr r3, [sp, #72] ; 0x48
11104: e5900000 ldr r0, [r0]
11108: ebfffd7d bl 10704 <fprintf@plt>
1110c: eaffff80 b 10f14 <raise@plt+0x780>
11110: e7da3005 ldrb r3, [sl, r5]
--
111b0: e92d407f push {r0, r1, r2, r3, r4, r5, r6, lr}
111b4: e1a06001 mov r6, r1
111b8: e3a02000 mov r2, #0
111bc: e28d100c add r1, sp, #12
111c0: e1a04000 mov r4, r0
111c4: ebfffd45 bl 106e0 <strtoul@plt>
111c8: e5d43000 ldrb r3, [r4]
111cc: e3530000 cmp r3, #0
111d0: e1a05000 mov r5, r0
111d4: 0a000003 beq 111e8 <raise@plt+0xa54>
111d8: e59d300c ldr r3, [sp, #12]
111dc: e5d33000 ldrb r3, [r3]
111e0: e3530000 cmp r3, #0
111e4: 0a000008 beq 1120c <raise@plt+0xa78>
111e8: e59f0028 ldr r0, [pc, #40] ; 11218 <raise@plt+0xa84>
111ec: e58d4000 str r4, [sp]
111f0: e59f3024 ldr r3, [pc, #36] ; 1121c <raise@plt+0xa88>
111f4: e59f2024 ldr r2, [pc, #36] ; 11220 <raise@plt+0xa8c>
111f8: e59f1024 ldr r1, [pc, #36] ; 11224 <raise@plt+0xa90>
111fc: e5900000 ldr r0, [r0]
11200: ebfffd3f bl 10704 <fprintf@plt>
11204: e3a03001 mov r3, #1
11208: e5863000 str r3, [r6]
[*] Function fprintf used 9 times nandtest