[*] Binary protection state of tdb
Full RELRO Canary found NX disabled No PIE No RPATH No RUNPATH No Symbols
[*] Function system tear down of tdb
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/bin/tdb @ 0x404afc */
| #include <stdint.h>
|
; (fcn) sym.handleInit__ () | void handleInit_ () {
| /* handleInit() */
0x00404afc lui gp, 2 |
0x00404b00 addiu gp, gp, -0x3adc |
0x00404b04 addu gp, gp, t9 | gp += t9;
0x00404b08 addiu sp, sp, -0x28 |
0x00404b0c sw ra, 0x24(sp) | *(var_24h) = ra;
0x00404b10 sw fp, 0x20(sp) | *(var_20h) = fp;
0x00404b14 move fp, sp | fp = sp;
0x00404b18 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00404b1c lw t8, -0x7e04(gp) | t8 = *((gp - 8065));
0x00404b20 lw t8, (t8) | t8 = *(t8);
0x00404b24 sw t8, 0x1c(fp) | *(arg_1ch) = t8;
0x00404b28 lw t8, -0x7ed4(gp) | t8 = *(gp);
0x00404b2c move t9, t8 | t9 = t8;
0x00404b30 jalr t9 | t9 ();
0x00404b34 nop |
0x00404b38 lw gp, 0x10(fp) | gp = *(arg_10h);
0x00404b3c lw t8, -0x7e04(gp) | t8 = *((gp - 8065));
0x00404b40 lw v0, 0x1c(fp) | v0 = *(arg_1ch);
0x00404b44 lw t8, (t8) | t8 = *(t8);
| if (v0 != t8) {
0x00404b48 beq v0, t8, 0x404b60 |
0x00404b4c nop |
0x00404b50 lw t8, -0x7e94(gp) | t8 = sym.imp.__stack_chk_fail;
0x00404b54 move t9, t8 | t9 = t8;
0x00404b58 jalr t9 | t9 ();
0x00404b5c nop |
| }
0x00404b60 move sp, fp |
0x00404b64 lw ra, 0x24(sp) | ra = *(var_24h);
0x00404b68 lw fp, 0x20(sp) | fp = *(var_20h);
0x00404b6c addiu sp, sp, 0x28 |
0x00404b70 jr ra | return v0;
0x00404b74 nop |
| }
[*] Function system used 1 times tdb