[*] Binary protection state of stm32flash

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


[*] Function fprintf tear down of stm32flash

mov r0, r4
blx sym.imp.tcgetattr
mov r0, r4
add sp, 8
pop {r4, pc}
ldr r0, [0x0000207c]
add r0, pc
bx lr
nop
strb r4, [r2, 4]
movs r1, r0
subs r0, 0x24
movs r0, r0
subs r0, 6
movs r0, r0
ldr r3, [r0, 0x28]
cbz r3, 0x2098
push {r4, lr}
mov r4, r2
ldr r0, [r3]
blx sym.imp.__fprintf_chk
cmp r4, r0
ite ne
--
adds r7, 6
movs r0, r0
adds r7, 0x32
movs r0, r0
adds r6, 0xa8
movs r0, r0
push {r3, r4, r5, r6, r7, lr}
mov r4, r1
ldr r6, [0x000022ac]
movs r1, 1
mov r7, r0
blx sym.imp.__ctype_b_loc
subs r5, r0, 0
add r6, pc
blt 0x227a
mov r0, r4
blx sym.imp.strchr
mov r1, r4
mov r2, r0
mov r0, r5
blx sym.imp.__fprintf_chk
cmp r0, 0
blt 0x2290
--
b 0x365c
blx 0xff8
ldr r6, [r4, r3]
movs r1, r0
lsls r4, r3, 3
movs r0, r0
ldr r4, [r0, r3]
movs r1, r0
push {r4, r5, r6, lr}
ldr r6, [r0, 0x28]
cbz r6, 0x36be
mov r5, r1
mov r4, r2
cbnz r2, 0x36ae
b 0x36c2
subs r4, r4, r0
beq 0x36c2
mov r1, r5
ldr r0, [r6]
mov r2, r4
blx sym.imp.__fprintf_chk
cmp r0, 0
add r5, r0
--
pop {r3, r4, r5, r6, r7, pc}
movs r0, 3
pop {r3, r4, r5, r6, r7, pc}
nop
ldrb r3, [r0, 4]
cbz r3, 0x515a
push {r4, r5, r6, lr}
mov r5, r0
mov r6, r1
mov r4, r2
cbnz r2, 0x5142
b 0x5156
ldr r3, [r5, 0x34]
subs r4, r4, r0
add r3, r0
str r3, [r5, 0x34]
beq 0x5156
mov r1, r6
ldr r0, [r5]
mov r2, r4
blx sym.imp.__fprintf_chk
cmp r0, 0
add r6, r0

[*] Function fprintf used 4 times stm32flash