[*] Binary protection state of libip6tc.so.0.1.0
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function system tear down of libip6tc.so.0.1.0
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libip6tc.so.0.1.0 @ 0xf18 */
| #include <stdint.h>
|
; (fcn) fcn.00000f18 () | void fcn_00000f18 () {
0x00000f18 lui gp, 2 |
0x00000f1c addiu gp, gp, -0x2dc8 |
0x00000f20 addu gp, gp, t9 | gp += t9;
0x00000f24 addiu sp, sp, -0x30 |
0x00000f28 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x00000f2c sw s3, 0x28(sp) | *(var_28h) = s3;
0x00000f30 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00000f34 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00000f38 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x00000f3c lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x00000f40 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00000f44 lbu v0, 0x6280(t8) | v0 = *((t8 + 25216));
0x00000f48 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x00000f4c bnez v0, 0xfd4 | goto label_0;
| }
0x00000f50 lw t8, -0x7f08(gp) | t8 = *((gp - 8130));
0x00000f54 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x00000f58 beqz t8, 0xf6c |
0x00000f5c lw t9, -0x7f08(gp) | t9 = *((gp - 8130));
0x00000f60 lw a0, (t8) | a0 = *(t8);
0x00000f64 jalr t9 | t9 ();
0x00000f68 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00000f6c lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x00000f70 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00000f74 addiu v0, v0, 0x6008 | v0 += 0x6008;
0x00000f78 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x00000f7c move s3, v0 | s3 = v0;
0x00000f80 sra s2, s2, 2 | s2 >>= 2;
0x00000f84 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00000f88 addiu s2, s2, -1 | s2 += -1;
| do {
0x00000f8c lw v0, 0x6284(s0) | v0 = *((s0 + 6305));
0x00000f90 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x00000f94 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x00000f98 beqz t8, 0xfbc | goto label_1;
| }
0x00000f9c sw v0, 0x6284(s0) | *((s0 + 6305)) = v0;
0x00000fa0 sll v0, v0, 2 | v0 <<= 2;
0x00000fa4 addu v0, s3, v0 | v0 = s3 + v0;
0x00000fa8 lw t9, (v0) | t9 = *(v0);
0x00000fac jalr t9 | t9 ();
0x00000fb0 nop |
0x00000fb4 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000fb8 b 0xf8c |
| } while (1);
| label_1:
0x00000fbc lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00000fc0 addiu t9, t9, 0xe80 | t9 += entry0;
0x00000fc4 jalr t9 | t9 ();
0x00000fc8 nop |
0x00000fcc addiu t8, zero, 1 | t8 = 1;
0x00000fd0 sb t8, 0x6280(s1) | *((s1 + 25216)) = t8;
| label_0:
0x00000fd4 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00000fd8 lw s3, 0x28(sp) | s3 = *(var_28h);
0x00000fdc lw s2, 0x24(sp) | s2 = *(var_24h);
0x00000fe0 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00000fe4 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00000fe8 addiu sp, sp, 0x30 |
0x00000fec jr ra | return v0;
| }
[*] Function system used 1 times libip6tc.so.0.1.0