[*] Binary protection state of getconf
Partial RELRO No Canary found NX disabled No PIE No RPATH No RUNPATH No Symbols
[*] Function printf tear down of getconf
Disassembly of section .text:
0001075c <.text>:
1075c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
10760: e3500001 cmp r0, #1
10764: e28db020 add fp, sp, #32
10768: e24dd01c sub sp, sp, #28
1076c: e1a04000 mov r4, r0
10770: e1a06001 mov r6, r1
10774: da00001e ble 107f4 <free@plt+0xa4>
10778: e5915004 ldr r5, [r1, #4]
1077c: e59f1394 ldr r1, [pc, #916] ; 10b18 <free@plt+0x3c8>
10780: e1a00005 mov r0, r5
10784: ebffffdf bl 10708 <strcmp@plt>
10788: e3500000 cmp r0, #0
1078c: 1a00000c bne 107c4 <free@plt+0x74>
10790: e59f2384 ldr r2, [pc, #900] ; 10b1c <free@plt+0x3cc>
10794: e59f1384 ldr r1, [pc, #900] ; 10b20 <free@plt+0x3d0>
10798: e59f0384 ldr r0, [pc, #900] ; 10b24 <free@plt+0x3d4>
1079c: ebffffaf bl 10660 <printf@plt>
107a0: e59f1380 ldr r1, [pc, #896] ; 10b28 <free@plt+0x3d8>
107a4: e59f0380 ldr r0, [pc, #896] ; 10b2c <free@plt+0x3dc>
107a8: ebffffac bl 10660 <printf@plt>
107ac: e59f137c ldr r1, [pc, #892] ; 10b30 <free@plt+0x3e0>
107b0: e59f037c ldr r0, [pc, #892] ; 10b34 <free@plt+0x3e4>
107b4: ebffffa9 bl 10660 <printf@plt>
107b8: e3a00000 mov r0, #0
107bc: e24bd020 sub sp, fp, #32
107c0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
107c4: e59f136c ldr r1, [pc, #876] ; 10b38 <free@plt+0x3e8>
107c8: e1a00005 mov r0, r5
107cc: ebffffcd bl 10708 <strcmp@plt>
107d0: e3500000 cmp r0, #0
107d4: 1a000006 bne 107f4 <free@plt+0xa4>
107d8: e59f035c ldr r0, [pc, #860] ; 10b3c <free@plt+0x3ec>
107dc: ebffff9f bl 10660 <printf@plt>
107e0: e59f3358 ldr r3, [pc, #856] ; 10b40 <free@plt+0x3f0>
107e4: e59f0358 ldr r0, [pc, #856] ; 10b44 <free@plt+0x3f4>
--
109d8: e0867008 add r7, r6, r8
109dc: e5803000 str r3, [r0]
109e0: e1a04000 mov r4, r0
109e4: e5951004 ldr r1, [r5, #4]
109e8: e7960008 ldr r0, [r6, r8]
109ec: ebffff1e bl 1066c <pathconf@plt>
109f0: e3700001 cmn r0, #1
109f4: e1a01000 mov r1, r0
109f8: 1a000009 bne 10a24 <free@plt+0x2d4>
109fc: e5943000 ldr r3, [r4]
10a00: e3530000 cmp r3, #0
10a04: 0a000015 beq 10a60 <free@plt+0x310>
10a08: e59f3160 ldr r3, [pc, #352] ; 10b70 <free@plt+0x420>
10a0c: e5972000 ldr r2, [r7]
10a10: e59f115c ldr r1, [pc, #348] ; 10b74 <free@plt+0x424>
10a14: e5930000 ldr r0, [r3]
10a18: ebffff2e bl 106d8 <fprintf@plt>
10a1c: e3a00003 mov r0, #3
10a20: ebffff3e bl 10720 <exit@plt>
10a24: e59f014c ldr r0, [pc, #332] ; 10b78 <free@plt+0x428>
10a28: ebffff0c bl 10660 <printf@plt>
10a2c: ea00000d b 10a68 <free@plt+0x318>
10a30: e3540002 cmp r4, #2
--
10a84: ebffff0a bl 106b4 <confstr@plt>
10a88: e59f60e0 ldr r6, [pc, #224] ; 10b70 <free@plt+0x420>
10a8c: e1a07000 mov r7, r0
10a90: ebffff04 bl 106a8 <alloc@plt>
10a94: e2504000 subs r4, r0, #0
10a98: 059f10e4 ldreq r1, [pc, #228] ; 10b84 <free@plt+0x434>
10a9c: 0a000007 beq 10ac0 <free@plt+0x370>
10aa0: e1a01004 mov r1, r4
10aa4: e1a02007 mov r2, r7
10aa8: e5950004 ldr r0, [r5, #4]
10aac: ebffff00 bl 106b4 <confstr@plt>
10ab0: e1500007 cmp r0, r7
10ab4: e1a01000 mov r1, r0
10ab8: 0a000003 beq 10acc <free@plt+0x37c>
10abc: e59f10c4 ldr r1, [pc, #196] ; 10b88 <free@plt+0x438>
10ac0: e5960000 ldr r0, [r6]
10ac4: ebffff03 bl 106d8 <fprintf@plt>
10ac8: eaffffd3 b 10a1c <free@plt+0x2cc>
10acc: e1a02004 mov r2, r4
10ad0: e59f00b4 ldr r0, [pc, #180] ; 10b8c <free@plt+0x43c>
10ad4: ebfffee1 bl 10660 <printf@plt>
10ad8: eaffffe2 b 10a68 <free@plt+0x318>
10adc: e285500c add r5, r5, #12
--
10cd0: e59f1018 ldr r1, [pc, #24] ; 10cf0 <free@plt+0x5a0>
10cd4: e5940000 ldr r0, [r4]
10cd8: ebfffe7e bl 106d8 <fprintf@plt>
10cdc: e3a00002 mov r0, #2
10ce0: ebfffe8e bl 10720 <exit@plt>
10ce4: 00024070 andeq r4, r2, r0, ror r0
10ce8: 00024074 andeq r4, r2, r4, ror r0
10cec: 00011d90 muleq r1, r0, sp
10cf0: 00011dc7 andeq r1, r1, r7, asr #27
10cf4: e59f410c ldr r4, [pc, #268] ; 10e08 <free@plt+0x6b8>
10cf8: e59f810c ldr r8, [pc, #268] ; 10e0c <free@plt+0x6bc>
10cfc: e59f910c ldr r9, [pc, #268] ; 10e10 <free@plt+0x6c0>
10d00: e59f610c ldr r6, [pc, #268] ; 10e14 <free@plt+0x6c4>
10d04: e92d4080 push {r7, lr}
10d08: e1a07000 mov r7, r0
10d0c: e514100c ldr r1, [r4, #-12]
10d10: e3510000 cmp r1, #0
10d14: 01a00001 moveq r0, r1
10d18: 0a00002b beq 10dcc <free@plt+0x67c>
10d1c: e1a00008 mov r0, r8
10d20: ebfffe4e bl 10660 <printf@plt>
10d24: e5143004 ldr r3, [r4, #-4]
10d28: e3530001 cmp r3, #1
10d2c: 0a000019 beq 10d98 <free@plt+0x648>
10d30: 3a00000d bcc 10d6c <free@plt+0x61c>
10d34: e3530002 cmp r3, #2
10d38: 1a000009 bne 10d64 <free@plt+0x614>
10d3c: e5141008 ldr r1, [r4, #-8]
10d40: e1a00007 mov r0, r7
10d44: ebfffe48 bl 1066c <pathconf@plt>
10d48: e3700001 cmn r0, #1
10d4c: e1a01000 mov r1, r0
10d50: 0a000001 beq 10d5c <free@plt+0x60c>
10d54: e1a00006 mov r0, r6
10d58: ebfffe40 bl 10660 <printf@plt>
10d5c: e59f00b4 ldr r0, [pc, #180] ; 10e18 <free@plt+0x6c8>
10d60: ebfffe3e bl 10660 <printf@plt>
10d64: e284400c add r4, r4, #12
10d68: eaffffe7 b 10d0c <free@plt+0x5bc>
--
10da8: e1a0a000 mov sl, r0
10dac: ebfffe3d bl 106a8 <alloc@plt>
10db0: e2505000 subs r5, r0, #0
10db4: 1a000005 bne 10dd0 <free@plt+0x680>
10db8: e59f1060 ldr r1, [pc, #96] ; 10e20 <free@plt+0x6d0>
10dbc: e59f3060 ldr r3, [pc, #96] ; 10e24 <free@plt+0x6d4>
10dc0: e5930000 ldr r0, [r3]
10dc4: ebfffe43 bl 106d8 <fprintf@plt>
10dc8: e3a00003 mov r0, #3
10dcc: ebfffe53 bl 10720 <exit@plt>
10dd0: e1a01005 mov r1, r5
10dd4: e1a0200a mov r2, sl
10dd8: e5140008 ldr r0, [r4, #-8]
10ddc: ebfffe34 bl 106b4 <confstr@plt>
10de0: e150000a cmp r0, sl
10de4: e1a01000 mov r1, r0
10de8: 159f1038 ldrne r1, [pc, #56] ; 10e28 <free@plt+0x6d8>
10dec: 1afffff2 bne 10dbc <free@plt+0x66c>
10df0: e1a02005 mov r2, r5
10df4: e1a00009 mov r0, r9
10df8: ebfffe18 bl 10660 <printf@plt>
10dfc: e1a00005 mov r0, r5
10e00: ebfffe52 bl 10750 <free@plt>
[*] Function printf used 10 times getconf