[*] Binary protection state of ethtool

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


[*] Function fprintf tear down of ethtool

mov fp, r7
mov r5, r7
add r0, pc
bl 0x10f64
ldr r3, [0x000324bc]
add r2, sp, 0x4c
str r6, [sp, 0xc]
add sb, pc
mov r6, r2
add r3, pc
str r3, [sp, 8]
movs r3, 2
lsl.w r8, r3, 2
add.w r3, r8, 0x70
add.w r7, sp, r3
ldr r0, [r7, -0x4c]
cbz r0, 0x322f6
cmp r5, 0
beq.w 0x323f0
movs r1, 4
blx sym.imp.__fprintf_chk
cmp r0, 0
bne.w 0x32454
--
ldr r2, [0x000338ec]
ldr r3, [0x000338d4]
add r2, pc
ldr r3, [r2, r3]
ldr r2, [r3]
ldr r3, [sp, 0x5c]
eors r2, r3
mov.w r3, 0
bne 0x338ca
mov r0, r5
add sp, 0x64
pop.w {r4, r5, r6, r7, r8, sb, sl, fp, pc}
movs r5, 1
b 0x33682
mov fp, r7
b 0x3378a
mov r0, sl
blx sym.imp.free
mov r1, r5
mov r7, r0
blx sym.imp.__fprintf_chk
cmp r0, 0
bne 0x33890
--
mov r2, r8
ldr r1, [sp, 0xc]
mov.w r8, 0
str r3, [sp, 0x10]
mov.w sb, 3
blx 0x6908
ldr r1, [sp, 4]
add r2, sp, 0x34
mov r0, r4
str r5, [sp, 0x34]
strd r8, r8, [r5]
strd r8, r8, [r5, 8]
str.w sb, [sp, 0x38]
blx 0x68b0
cmp r0, r8
blt.w 0x34de0
ldr r7, [sp, 0x60]
cbz r7, 0x34c68
mov r1, sb
mov r0, r7
blx sym.imp.__fprintf_chk
cmp r0, 0
blt 0x34c68
--
cmp r0, 3
bne 0x34cfc
movs r3, 2
strd r5, r5, [r7]
str r5, [r7, 8]
str r7, [sp, 0x3c]
str r3, [sp, 0x40]
cmp.w sl, 0
beq 0x34dba
ldr r2, [sp, 0x14]
mov r0, sb
ldr r1, [sp, 4]
blx 0x68b0
cmp r0, 0
blt 0x34e0a
ldr.w r8, [sp, 0x54]
cmp.w r8, 0
beq 0x34dca
movs r1, 2
mov r0, r8
blx sym.imp.__fprintf_chk
cmp r0, 0
blt 0x34dca
mov r0, r8
blx 0x6880
ldr r3, [sp, 0x58]
mov r8, r0
cbz r3, 0x34da4
movs r1, 3
mov r0, r3
str r3, [sp, 0x20]
blx sym.imp.__fprintf_chk
cmp r0, 0
blt 0x34da4

[*] Function fprintf used 5 times ethtool