[*] Binary protection state of mod_staticfile.so
No RELRO No Canary found NX disabled DSO RPATH No RUNPATH No Symbols
[*] Function mmap tear down of mod_staticfile.so
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/mod_staticfile.so @ 0xce8 */
| #include <stdint.h>
|
; (fcn) fcn.00000ce8 () | void fcn_00000ce8 () {
0x00000ce8 lui gp, 2 |
0x00000cec addiu gp, gp, -0x6988 |
0x00000cf0 addu gp, gp, t9 | gp += t9;
0x00000cf4 addiu sp, sp, -0x30 |
0x00000cf8 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x00000cfc sw s3, 0x28(sp) | *(var_28h) = s3;
0x00000d00 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00000d04 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00000d08 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x00000d0c lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x00000d10 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00000d14 lbu v0, 0x2440(t8) | v0 = *((t8 + 9280));
0x00000d18 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x00000d1c bnez v0, 0xda4 | goto label_0;
| }
0x00000d20 lw t8, -0x7f44(gp) | t8 = *((gp - 8145));
0x00000d24 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x00000d28 beqz t8, 0xd3c |
0x00000d2c lw t9, -0x7f44(gp) | t9 = *((gp - 8145));
0x00000d30 lw a0, (t8) | a0 = *(t8);
0x00000d34 jalr t9 | t9 ();
0x00000d38 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00000d3c lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x00000d40 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00000d44 addiu v0, v0, 0x2318 | v0 += 0x2318;
0x00000d48 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x00000d4c move s3, v0 | s3 = v0;
0x00000d50 sra s2, s2, 2 | s2 >>= 2;
0x00000d54 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00000d58 addiu s2, s2, -1 | s2 += -1;
| do {
0x00000d5c lw v0, 0x2444(s0) | v0 = *((s0 + 2321));
0x00000d60 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x00000d64 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x00000d68 beqz t8, 0xd8c | goto label_1;
| }
0x00000d6c sw v0, 0x2444(s0) | *((s0 + 2321)) = v0;
0x00000d70 sll v0, v0, 2 | v0 <<= 2;
0x00000d74 addu v0, s3, v0 | v0 = s3 + v0;
0x00000d78 lw t9, (v0) | t9 = *(v0);
0x00000d7c jalr t9 | t9 ();
0x00000d80 nop |
0x00000d84 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000d88 b 0xd5c |
| } while (1);
| label_1:
0x00000d8c lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00000d90 addiu t9, t9, 0xc50 | t9 += entry0;
0x00000d94 jalr t9 | t9 ();
0x00000d98 nop |
0x00000d9c addiu t8, zero, 1 | t8 = 1;
0x00000da0 sb t8, 0x2440(s1) | *((s1 + 9280)) = t8;
| label_0:
0x00000da4 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00000da8 lw s3, 0x28(sp) | s3 = *(var_28h);
0x00000dac lw s2, 0x24(sp) | s2 = *(var_24h);
0x00000db0 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00000db4 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00000db8 addiu sp, sp, 0x30 |
0x00000dbc jr ra | return v0;
| }
[*] Function mmap used 1 times mod_staticfile.so