[*] Binary protection state of librtsv4l2.so.1.203.1382cc

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


[*] Function popen tear down of librtsv4l2.so.1.203.1382cc

    ; assembly                               | /* r2dec pseudo code output */
                                             | /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/librtsv4l2.so.1.203.1382cc @ 0xc38 */
                                             | #include <stdint.h>
                                             |  
    ; (fcn) fcn.00000c38 ()                  | void fcn_00000c38 () {
    0x00000c38 lui gp, 2                     |     
    0x00000c3c addiu gp, gp, -0x60d8         |     
    0x00000c40 addu gp, gp, t9               |     gp += t9;
    0x00000c44 addiu sp, sp, -0x30           |     
    0x00000c48 sw ra, 0x2c(sp)               |     *(var_2ch) = ra;
    0x00000c4c sw s3, 0x28(sp)               |     *(var_28h) = s3;
    0x00000c50 sw s2, 0x24(sp)               |     *(var_24h) = s2;
    0x00000c54 sw s1, 0x20(sp)               |     *(var_20h) = s1;
    0x00000c58 sw s0, 0x1c(sp)               |     *(var_1ch) = s0;
    0x00000c5c lw t8, -0x7fe4(gp)            |     t8 = *((gp - 8185));
    0x00000c60 sw gp, 0x10(sp)               |     *(var_10h) = gp;
    0x00000c64 lbu v0, 0x2c10(t8)            |     v0 = *((t8 + 11280));
    0x00000c68 move s1, t8                   |     s1 = t8;
                                             |     if (v0 != 0) {
    0x00000c6c bnez v0, 0xcf4                |         goto label_0;
                                             |     }
    0x00000c70 lw t8, -0x7f74(gp)            |     t8 = *((gp - 8157));
    0x00000c74 lw t8, -0x7fe0(gp)            |     t8 = *((gp - 8184));
                                             |     if (t8 != 0) {
    0x00000c78 beqz t8, 0xc8c                |         
    0x00000c7c lw t9, -0x7f74(gp)            |         t9 = *((gp - 8157));
    0x00000c80 lw a0, (t8)                   |         a0 = *(t8);
    0x00000c84 jalr t9                       |         t9 ();
    0x00000c88 lw gp, 0x10(sp)               |         gp = *(var_10h);
                                             |     }
    0x00000c8c lw v0, -0x7fe4(gp)            |     v0 = *((gp - 8185));
    0x00000c90 lw s2, -0x7fdc(gp)            |     s2 = *((gp - 8183));
    0x00000c94 addiu v0, v0, 0x2b5c          |     v0 += 0x2b5c;
    0x00000c98 subu s2, s2, v0               |     __asm ("subu s2, s2, v0");
    0x00000c9c move s3, v0                   |     s3 = v0;
    0x00000ca0 sra s2, s2, 2                 |     s2 >>= 2;
    0x00000ca4 lw s0, -0x7fe4(gp)            |     s0 = *((gp - 8185));
    0x00000ca8 addiu s2, s2, -1              |     s2 += -1;
                                             |     do {
    0x00000cac lw v0, 0x2c14(s0)             |         v0 = *((s0 + 2821));
    0x00000cb0 sltu t8, v0, s2               |         t8 = (v0 < s2) ? 1 : 0;
    0x00000cb4 addiu v0, v0, 1               |         v0++;
                                             |         if (t8 == 0) {
    0x00000cb8 beqz t8, 0xcdc                |             goto label_1;
                                             |         }
    0x00000cbc sw v0, 0x2c14(s0)             |         *((s0 + 2821)) = v0;
    0x00000cc0 sll v0, v0, 2                 |         v0 <<= 2;
    0x00000cc4 addu v0, s3, v0               |         v0 = s3 + v0;
    0x00000cc8 lw t9, (v0)                   |         t9 = *(v0);
    0x00000ccc jalr t9                       |         t9 ();
    0x00000cd0 nop                           |         
    0x00000cd4 lw gp, 0x10(sp)               |         gp = *(var_10h);
    0x00000cd8 b 0xcac                       |         
                                             |     } while (1);
                                             | label_1:
    0x00000cdc lw t9, -0x7fd8(gp)            |     t9 = *((gp - 8182));
    0x00000ce0 addiu t9, t9, 0xba0           |     t9 += entry0;
    0x00000ce4 jalr t9                       |     t9 ();
    0x00000ce8 nop                           |     
    0x00000cec addiu t8, zero, 1             |     t8 = 1;
    0x00000cf0 sb t8, 0x2c10(s1)             |     *((s1 + 11280)) = t8;
                                             | label_0:
    0x00000cf4 lw ra, 0x2c(sp)               |     ra = *(var_2ch);
    0x00000cf8 lw s3, 0x28(sp)               |     s3 = *(var_28h);
    0x00000cfc lw s2, 0x24(sp)               |     s2 = *(var_24h);
    0x00000d00 lw s1, 0x20(sp)               |     s1 = *(var_20h);
    0x00000d04 lw s0, 0x1c(sp)               |     s0 = *(var_1ch);
    0x00000d08 addiu sp, sp, 0x30            |     
    0x00000d0c jr ra                         |     return v0;
                                             | }

[*] Function popen used 1 times librtsv4l2.so.1.203.1382cc