[*] Binary protection state of libiptc.so.0.0.0
No RELRO No Canary found NX disabled DSO RPATH No RUNPATH No Symbols
[*] Function popen tear down of libiptc.so.0.0.0
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libiptc.so.0.0.0 @ 0x5d8 */
| #include <stdint.h>
|
; (fcn) fcn.000005d8 () | void fcn_000005d8 () {
0x000005d8 lui gp, 2 |
0x000005dc addiu gp, gp, -0x7e18 |
0x000005e0 addu gp, gp, t9 | gp += t9;
0x000005e4 addiu sp, sp, -0x30 |
0x000005e8 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x000005ec sw s3, 0x28(sp) | *(var_28h) = s3;
0x000005f0 sw s2, 0x24(sp) | *(var_24h) = s2;
0x000005f4 sw s1, 0x20(sp) | *(var_20h) = s1;
0x000005f8 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x000005fc lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x00000600 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00000604 lbu v0, 0x810(t8) | v0 = *((t8 + 2064));
0x00000608 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x0000060c bnez v0, 0x694 | goto label_0;
| }
0x00000610 lw t8, -0x7fbc(gp) | t8 = *((gp - 8175));
0x00000614 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x00000618 beqz t8, 0x62c |
0x0000061c lw t9, -0x7fbc(gp) | t9 = *((gp - 8175));
0x00000620 lw a0, (t8) | a0 = *(t8);
0x00000624 jalr t9 | t9 ();
0x00000628 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x0000062c lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x00000630 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00000634 addiu v0, v0, 0x7bc | v0 += 0x7bc;
0x00000638 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x0000063c move s3, v0 | s3 = v0;
0x00000640 sra s2, s2, 2 | s2 >>= 2;
0x00000644 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00000648 addiu s2, s2, -1 | s2 += -1;
| do {
0x0000064c lw v0, 0x814(s0) | v0 = *((s0 + 517));
0x00000650 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x00000654 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x00000658 beqz t8, 0x67c | goto label_1;
| }
0x0000065c sw v0, 0x814(s0) | *((s0 + 517)) = v0;
0x00000660 sll v0, v0, 2 | v0 <<= 2;
0x00000664 addu v0, s3, v0 | v0 = s3 + v0;
0x00000668 lw t9, (v0) | t9 = *(v0);
0x0000066c jalr t9 | t9 ();
0x00000670 nop |
0x00000674 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000678 b 0x64c |
| } while (1);
| label_1:
0x0000067c lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00000680 addiu t9, t9, 0x540 | t9 += entry0;
0x00000684 jalr t9 | t9 ();
0x00000688 nop |
0x0000068c addiu t8, zero, 1 | t8 = 1;
0x00000690 sb t8, 0x810(s1) | *((s1 + 2064)) = t8;
| label_0:
0x00000694 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00000698 lw s3, 0x28(sp) | s3 = *(var_28h);
0x0000069c lw s2, 0x24(sp) | s2 = *(var_24h);
0x000006a0 lw s1, 0x20(sp) | s1 = *(var_20h);
0x000006a4 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x000006a8 addiu sp, sp, 0x30 |
0x000006ac jr ra | return v0;
| }
[*] Function popen used 1 times libiptc.so.0.0.0