[*] Binary protection state of filefrag
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function strcat tear down of filefrag
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/filefrag @ 0x1dfc */
| #include <stdint.h>
|
; (fcn) fcn.00001dfc () | void fcn_00001dfc () {
0x00001dfc lui gp, 2 |
0x00001e00 addiu gp, gp, -0x5dcc |
0x00001e04 addu gp, gp, t9 | gp += t9;
0x00001e08 addiu sp, sp, -0x28 |
0x00001e0c lw t9, -0x7f30(gp) | t9 = sym.imp.strcat
0x00001e10 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00001e14 move s1, a0 | s1 = a0;
0x00001e18 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x00001e1c sw ra, 0x24(sp) | *(var_24h) = ra;
0x00001e20 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00001e24 move s0, a1 | s0 = a1;
0x00001e28 move a0, a2 | a0 = a2;
0x00001e2c move a1, a3 | a1 = a3;
0x00001e30 jalr t9 | t9 ();
0x00001e34 lw a1, (s1) | a1 = *(s1);
0x00001e38 lw ra, 0x24(sp) | ra = *(var_24h);
0x00001e3c nor s0, zero, s0 | __asm ("nor s0, zero, s0");
0x00001e40 and a1, a1, s0 | a1 &= s0;
0x00001e44 sw a1, (s1) | *(s1) = a1;
0x00001e48 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00001e4c lw s1, 0x20(sp) | s1 = *(var_20h);
0x00001e50 addiu sp, sp, 0x28 |
0x00001e54 jr ra | return;
| }
[*] Function strcat used 2 times filefrag