[*] Binary protection state of libthreadutil.so.6.0.3
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function popen tear down of libthreadutil.so.6.0.3
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libthreadutil.so.6.0.3 @ 0x10c8 */
| #include <stdint.h>
|
; (fcn) fcn.000010c8 () | void fcn_000010c8 () {
0x000010c8 lui gp, 2 |
0x000010cc addiu gp, gp, -0x4f38 |
0x000010d0 addu gp, gp, t9 | gp += t9;
0x000010d4 addiu sp, sp, -0x30 |
0x000010d8 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x000010dc sw s3, 0x28(sp) | *(var_28h) = s3;
0x000010e0 sw s2, 0x24(sp) | *(var_24h) = s2;
0x000010e4 sw s1, 0x20(sp) | *(var_20h) = s1;
0x000010e8 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x000010ec lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x000010f0 sw gp, 0x10(sp) | *(var_10h) = gp;
0x000010f4 lbu v0, 0x42b0(t8) | v0 = *((t8 + 17072));
0x000010f8 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x000010fc bnez v0, 0x1184 | goto label_0;
| }
0x00001100 lw t8, -0x7f18(gp) | t8 = *((gp - 8134));
0x00001104 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x00001108 beqz t8, 0x111c |
0x0000110c lw t9, -0x7f18(gp) | t9 = *((gp - 8134));
0x00001110 lw a0, (t8) | a0 = *(t8);
0x00001114 jalr t9 | t9 ();
0x00001118 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x0000111c lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x00001120 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00001124 addiu v0, v0, 0x4194 | v0 += 0x4194;
0x00001128 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x0000112c move s3, v0 | s3 = v0;
0x00001130 sra s2, s2, 2 | s2 >>= 2;
0x00001134 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00001138 addiu s2, s2, -1 | s2 += -1;
| do {
0x0000113c lw v0, 0x42b4(s0) | v0 = *((s0 + 4269));
0x00001140 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x00001144 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x00001148 beqz t8, 0x116c | goto label_1;
| }
0x0000114c sw v0, 0x42b4(s0) | *((s0 + 4269)) = v0;
0x00001150 sll v0, v0, 2 | v0 <<= 2;
0x00001154 addu v0, s3, v0 | v0 = s3 + v0;
0x00001158 lw t9, (v0) | t9 = *(v0);
0x0000115c jalr t9 | t9 ();
0x00001160 nop |
0x00001164 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001168 b 0x113c |
| } while (1);
| label_1:
0x0000116c lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00001170 addiu t9, t9, 0x1030 | t9 += entry0;
0x00001174 jalr t9 | t9 ();
0x00001178 nop |
0x0000117c addiu t8, zero, 1 | t8 = 1;
0x00001180 sb t8, 0x42b0(s1) | *((s1 + 17072)) = t8;
| label_0:
0x00001184 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00001188 lw s3, 0x28(sp) | s3 = *(var_28h);
0x0000118c lw s2, 0x24(sp) | s2 = *(var_24h);
0x00001190 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00001194 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00001198 addiu sp, sp, 0x30 |
0x0000119c jr ra | return v0;
| }
[*] Function popen used 1 times libthreadutil.so.6.0.3