[*] Binary protection state of mod_rewrite.so
No RELRO No Canary found NX disabled DSO RPATH No RUNPATH No Symbols
[*] Function strcpy tear down of mod_rewrite.so
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/mod_rewrite.so @ 0xb48 */
| #include <stdint.h>
|
; (fcn) fcn.00000b48 () | void fcn_00000b48 () {
0x00000b48 lui gp, 2 |
0x00000b4c addiu gp, gp, -0x69e8 |
0x00000b50 addu gp, gp, t9 | gp += t9;
0x00000b54 addiu sp, sp, -0x30 |
0x00000b58 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x00000b5c sw s3, 0x28(sp) | *(var_28h) = s3;
0x00000b60 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00000b64 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00000b68 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x00000b6c lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x00000b70 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00000b74 lbu v0, 0x2210(t8) | v0 = *((t8 + 8720));
0x00000b78 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x00000b7c bnez v0, 0xc04 | goto label_0;
| }
0x00000b80 lw t8, -0x7f68(gp) | t8 = *((gp - 8154));
0x00000b84 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x00000b88 beqz t8, 0xb9c |
0x00000b8c lw t9, -0x7f68(gp) | t9 = *((gp - 8154));
0x00000b90 lw a0, (t8) | a0 = *(t8);
0x00000b94 jalr t9 | t9 ();
0x00000b98 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00000b9c lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x00000ba0 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00000ba4 addiu v0, v0, 0x20f0 | v0 += 0x20f0;
0x00000ba8 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x00000bac move s3, v0 | s3 = v0;
0x00000bb0 sra s2, s2, 2 | s2 >>= 2;
0x00000bb4 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00000bb8 addiu s2, s2, -1 | s2 += -1;
| do {
0x00000bbc lw v0, 0x2214(s0) | v0 = *((s0 + 2181));
0x00000bc0 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x00000bc4 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x00000bc8 beqz t8, 0xbec | goto label_1;
| }
0x00000bcc sw v0, 0x2214(s0) | *((s0 + 2181)) = v0;
0x00000bd0 sll v0, v0, 2 | v0 <<= 2;
0x00000bd4 addu v0, s3, v0 | v0 = s3 + v0;
0x00000bd8 lw t9, (v0) | t9 = *(v0);
0x00000bdc jalr t9 | t9 ();
0x00000be0 nop |
0x00000be4 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000be8 b 0xbbc |
| } while (1);
| label_1:
0x00000bec lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00000bf0 addiu t9, t9, 0xab0 | t9 += entry0;
0x00000bf4 jalr t9 | t9 ();
0x00000bf8 nop |
0x00000bfc addiu t8, zero, 1 | t8 = 1;
0x00000c00 sb t8, 0x2210(s1) | *((s1 + 8720)) = t8;
| label_0:
0x00000c04 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00000c08 lw s3, 0x28(sp) | s3 = *(var_28h);
0x00000c0c lw s2, 0x24(sp) | s2 = *(var_24h);
0x00000c10 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00000c14 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00000c18 addiu sp, sp, 0x30 |
0x00000c1c jr ra | return v0;
| }
[*] Function strcpy used 1 times mod_rewrite.so