[*] 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, [0x00002120]
add r0, pc
bx lr
nop
strb r0, [r7, 1]
movs r0, r0
subs r1, 0x50
movs r0, r0
subs r1, 0x32
movs r0, r0
ldr r3, [r0, 0x28]
cbz r3, 0x213c
push {r4, lr}
mov r4, r2
ldr r0, [r3]
blx sym.imp.__fprintf_chk
cmp r4, r0
ite ne
--
subs r0, 0x3e
movs r0, r0
subs r0, 0x60
movs r0, r0
adds r7, 0xd2
movs r0, r0
push {r3, r4, r5, r6, r7, lr}
mov r4, r1
ldr r6, [0x00002358]
movs r1, 1
mov r7, r0
blx sym.imp.__ctype_b_loc
subs r5, r0, 0
add r6, pc
blt 0x2326
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 0x233c
--
b 0x3788
blx 0x1058
ldrsb r6, [r7, r6]
movs r0, r0
lsls r0, r3, 3
movs r0, r0
ldrsb r4, [r3, r6]
movs r0, r0
push {r4, r5, r6, lr}
ldr r6, [r0, 0x28]
cbz r6, 0x37ea
mov r5, r1
mov r4, r2
cbnz r2, 0x37da
b 0x37ee
subs r4, r4, r0
beq 0x37ee
mov r1, r5
ldr r0, [r6]
mov r2, r4
blx sym.imp.__fprintf_chk
cmp r0, 0
add r5, r0
--
movs r0, 0
pop {r3, r4, r5, r6, r7, pc}
movs r0, 3
pop {r3, r4, r5, r6, r7, pc}
ldrb r3, [r0, 4]
cbz r3, 0x533a
push {r4, r5, r6, lr}
mov r5, r0
mov r6, r1
mov r4, r2
cbnz r2, 0x5322
b 0x5336
ldr r3, [r5, 0x34]
subs r4, r4, r0
add r3, r0
str r3, [r5, 0x34]
beq 0x5336
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