[*] Binary protection state of libiw.so.30

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


[*] Function strcat tear down of libiw.so.30

    ; assembly                           | /* r2dec pseudo code output */
                                         | /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libiw.so.30 @ 0x1298 */
                                         | #include <stdint.h>
                                         |  
    ; (fcn) fcn.00001298 ()              | void fcn_00001298 () {
    0x00001298 lui gp, 2                 |     
    0x0000129c addiu gp, gp, -0x2858     |     
    0x000012a0 addu gp, gp, t9           |     gp += t9;
    0x000012a4 addiu sp, sp, -0x30       |     
    0x000012a8 sw ra, 0x2c(sp)           |     *(var_2ch) = ra;
    0x000012ac sw s3, 0x28(sp)           |     *(var_28h) = s3;
    0x000012b0 sw s2, 0x24(sp)           |     *(var_24h) = s2;
    0x000012b4 sw s1, 0x20(sp)           |     *(var_20h) = s1;
    0x000012b8 sw s0, 0x1c(sp)           |     *(var_1ch) = s0;
    0x000012bc lw t8, -0x7fe4(gp)        |     t8 = *((gp - 8185));
    0x000012c0 sw gp, 0x10(sp)           |     *(var_10h) = gp;
    0x000012c4 lbu v0, 0x6b80(t8)        |     v0 = *((t8 + 27520));
    0x000012c8 move s1, t8               |     s1 = t8;
                                         |     if (v0 != 0) {
    0x000012cc bnez v0, 0x1354           |         goto label_0;
                                         |     }
    0x000012d0 lw t8, -0x7f04(gp)        |     t8 = *((gp - 8129));
    0x000012d4 lw t8, -0x7fe0(gp)        |     t8 = *((gp - 8184));
                                         |     if (t8 != 0) {
    0x000012d8 beqz t8, 0x12ec           |         
    0x000012dc lw t9, -0x7f04(gp)        |         t9 = *((gp - 8129));
    0x000012e0 lw a0, (t8)               |         a0 = *(t8);
    0x000012e4 jalr t9                   |         t9 ();
    0x000012e8 lw gp, 0x10(sp)           |         gp = *(var_10h);
                                         |     }
    0x000012ec lw v0, -0x7fe4(gp)        |     v0 = *((gp - 8185));
    0x000012f0 lw s2, -0x7fdc(gp)        |     s2 = *((gp - 8183));
    0x000012f4 addiu v0, v0, 0x691c      |     v0 += 0x691c;
    0x000012f8 subu s2, s2, v0           |     __asm ("subu s2, s2, v0");
    0x000012fc move s3, v0               |     s3 = v0;
    0x00001300 sra s2, s2, 2             |     s2 >>= 2;
    0x00001304 lw s0, -0x7fe4(gp)        |     s0 = *((gp - 8185));
    0x00001308 addiu s2, s2, -1          |     s2 += -1;
                                         |     do {
    0x0000130c lw v0, 0x6b84(s0)         |         v0 = *((s0 + 6881));
    0x00001310 sltu t8, v0, s2           |         t8 = (v0 < s2) ? 1 : 0;
    0x00001314 addiu v0, v0, 1           |         v0++;
                                         |         if (t8 == 0) {
    0x00001318 beqz t8, 0x133c           |             goto label_1;
                                         |         }
    0x0000131c sw v0, 0x6b84(s0)         |         *((s0 + 6881)) = v0;
    0x00001320 sll v0, v0, 2             |         v0 <<= 2;
    0x00001324 addu v0, s3, v0           |         v0 = s3 + v0;
    0x00001328 lw t9, (v0)               |         t9 = *(v0);
    0x0000132c jalr t9                   |         t9 ();
    0x00001330 nop                       |         
    0x00001334 lw gp, 0x10(sp)           |         gp = *(var_10h);
    0x00001338 b 0x130c                  |         
                                         |     } while (1);
                                         | label_1:
    0x0000133c lw t9, -0x7fd8(gp)        |     t9 = *((gp - 8182));
    0x00001340 addiu t9, t9, 0x1200      |     t9 += entry0;
    0x00001344 jalr t9                   |     t9 ();
    0x00001348 nop                       |     
    0x0000134c addiu t8, zero, 1         |     t8 = 1;
    0x00001350 sb t8, 0x6b80(s1)         |     *((s1 + 27520)) = t8;
                                         | label_0:
    0x00001354 lw ra, 0x2c(sp)           |     ra = *(var_2ch);
    0x00001358 lw s3, 0x28(sp)           |     s3 = *(var_28h);
    0x0000135c lw s2, 0x24(sp)           |     s2 = *(var_24h);
    0x00001360 lw s1, 0x20(sp)           |     s1 = *(var_20h);
    0x00001364 lw s0, 0x1c(sp)           |     s0 = *(var_1ch);
    0x00001368 addiu sp, sp, 0x30        |     
    0x0000136c jr ra                     |     return v0;
                                         | }

[*] Function strcat used 1 times libiw.so.30