[*] Binary protection state of mod_rewrite.so

  
  	Full RELRO     Canary found      NX disabled  DSO          No RPATH     No RUNPATH   No Symbols


[*] Function mmap tear down of mod_rewrite.so

    ; assembly                           | /* r2dec pseudo code output */
                                         | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/apache2/modules/mod_rewrite.so @ 0x21b4 */
                                         | #include <stdint.h>
                                         |  
    ; (fcn) entry.fini0 ()               | void entry_fini0 () {
    0x000021b4 lui gp, 2                 |     
    0x000021b8 addiu gp, gp, 0x6e7c      |     
    0x000021bc addu gp, gp, t9           |     gp += t9;
    0x000021c0 addiu sp, sp, -0x20       |     
    0x000021c4 sw s0, 0x18(sp)           |     *(var_18h) = s0;
    0x000021c8 lw s0, -0x7fe4(gp)        |     s0 = *((gp - 8185));
    0x000021cc sw gp, 0x10(sp)           |     *(var_10h) = gp;
    0x000021d0 sw ra, 0x1c(sp)           |     *(var_1ch) = ra;
    0x000021d4 lbu v0, 0x12d0(s0)        |     v0 = *((s0 + 4816));
    0x000021d8 lw v0, -0x7d8c(gp)        |     v0 = *((gp - 8035));
                                         |     if (v0 == 0) {
    0x000021dc bnez v0, 0x2210           |         
    0x000021e0 lw v0, -0x7fe0(gp)        |         v0 = *((gp - 8184));
                                         |         if (v0 != 0) {
    0x000021e4 beqz v0, 0x21f8           |             
    0x000021e8 lw t9, -0x7d8c(gp)        |             t9 = *((gp - 8035));
    0x000021ec lw a0, (v0)               |             a0 = *(v0);
    0x000021f0 jalr t9                   |             t9 ();
    0x000021f4 lw gp, 0x10(sp)           |             gp = *(var_10h);
                                         |         }
    0x000021f8 lw t9, -0x7fdc(gp)        |         t9 = *((gp - 8183));
    0x000021fc addiu t9, t9, 0x2130      |         t9 += entry0;
    0x00002200 bal 0x2130                |         entry0 ();
    0x00002204 nop                       |         
    0x00002208 addiu v0, zero, 1         |         v0 = 1;
    0x0000220c sb v0, 0x12d0(s0)         |         *((s0 + 4816)) = v0;
                                         |     }
    0x00002210 lw ra, 0x1c(sp)           |     ra = *(var_1ch);
    0x00002214 lw s0, 0x18(sp)           |     s0 = *(var_18h);
    0x00002218 addiu sp, sp, 0x20        |     
    0x0000221c jr ra                     |     return v0;
                                         | }

[*] Function mmap used 1 times mod_rewrite.so