[*] Binary protection state of mod_evasive.so
No RELRO No Canary found NX disabled DSO RPATH No RUNPATH No Symbols
[*] Function mmap tear down of mod_evasive.so
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/mod_evasive.so @ 0x8e8 */
| #include <stdint.h>
|
; (fcn) fcn.000008e8 () | void fcn_000008e8 () {
0x000008e8 lui gp, 2 |
0x000008ec addiu gp, gp, -0x7788 |
0x000008f0 addu gp, gp, t9 | gp += t9;
0x000008f4 addiu sp, sp, -0x30 |
0x000008f8 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x000008fc sw s3, 0x28(sp) | *(var_28h) = s3;
0x00000900 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00000904 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00000908 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x0000090c lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x00000910 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00000914 lbu v0, 0x11e0(t8) | v0 = *((t8 + 4576));
0x00000918 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x0000091c bnez v0, 0x9a4 | goto label_0;
| }
0x00000920 lw t8, -0x7f98(gp) | t8 = *((gp - 8166));
0x00000924 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x00000928 beqz t8, 0x93c |
0x0000092c lw t9, -0x7f98(gp) | t9 = *((gp - 8166));
0x00000930 lw a0, (t8) | a0 = *(t8);
0x00000934 jalr t9 | t9 ();
0x00000938 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x0000093c lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x00000940 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00000944 addiu v0, v0, 0x1128 | v0 += 0x1128;
0x00000948 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x0000094c move s3, v0 | s3 = v0;
0x00000950 sra s2, s2, 2 | s2 >>= 2;
0x00000954 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00000958 addiu s2, s2, -1 | s2 += -1;
| do {
0x0000095c lw v0, 0x11e4(s0) | v0 = *((s0 + 1145));
0x00000960 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x00000964 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x00000968 beqz t8, 0x98c | goto label_1;
| }
0x0000096c sw v0, 0x11e4(s0) | *((s0 + 1145)) = v0;
0x00000970 sll v0, v0, 2 | v0 <<= 2;
0x00000974 addu v0, s3, v0 | v0 = s3 + v0;
0x00000978 lw t9, (v0) | t9 = *(v0);
0x0000097c jalr t9 | t9 ();
0x00000980 nop |
0x00000984 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000988 b 0x95c |
| } while (1);
| label_1:
0x0000098c lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00000990 addiu t9, t9, 0x850 | t9 += entry0;
0x00000994 jalr t9 | t9 ();
0x00000998 nop |
0x0000099c addiu t8, zero, 1 | t8 = 1;
0x000009a0 sb t8, 0x11e0(s1) | *((s1 + 4576)) = t8;
| label_0:
0x000009a4 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x000009a8 lw s3, 0x28(sp) | s3 = *(var_28h);
0x000009ac lw s2, 0x24(sp) | s2 = *(var_24h);
0x000009b0 lw s1, 0x20(sp) | s1 = *(var_20h);
0x000009b4 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x000009b8 addiu sp, sp, 0x30 |
0x000009bc jr ra | return v0;
| }
[*] Function mmap used 1 times mod_evasive.so