[*] Binary protection state of libz.so.1.2.5
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function system tear down of libz.so.1.2.5
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libz.so.1.2.5 @ 0x1498 */
| #include <stdint.h>
|
; (fcn) fcn.00001498 () | void fcn_00001498 () {
0x00001498 lui gp, 3 |
0x0000149c addiu gp, gp, -0x48c8 |
0x000014a0 addu gp, gp, t9 | gp += t9;
0x000014a4 addiu sp, sp, -0x30 |
0x000014a8 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x000014ac sw s3, 0x28(sp) | *(var_28h) = s3;
0x000014b0 sw s2, 0x24(sp) | *(var_24h) = s2;
0x000014b4 sw s1, 0x20(sp) | *(var_20h) = s1;
0x000014b8 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x000014bc lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x000014c0 sw gp, 0x10(sp) | *(var_10h) = gp;
0x000014c4 lbu v0, 0x4d00(t8) | v0 = *((t8 + 19712));
0x000014c8 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x000014cc bnez v0, 0x1554 | goto label_0;
| }
0x000014d0 lw t8, -0x7f04(gp) | t8 = *((gp - 8129));
0x000014d4 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x000014d8 beqz t8, 0x14ec |
0x000014dc lw t9, -0x7f04(gp) | t9 = *((gp - 8129));
0x000014e0 lw a0, (t8) | a0 = *(t8);
0x000014e4 jalr t9 | t9 ();
0x000014e8 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x000014ec lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x000014f0 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x000014f4 addiu v0, v0, 0x4ae8 | v0 += 0x4ae8;
0x000014f8 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x000014fc move s3, v0 | s3 = v0;
0x00001500 sra s2, s2, 2 | s2 >>= 2;
0x00001504 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00001508 addiu s2, s2, -1 | s2 += -1;
| do {
0x0000150c lw v0, 0x4d04(s0) | v0 = *((s0 + 4929));
0x00001510 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x00001514 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x00001518 beqz t8, 0x153c | goto label_1;
| }
0x0000151c sw v0, 0x4d04(s0) | *((s0 + 4929)) = v0;
0x00001520 sll v0, v0, 2 | v0 <<= 2;
0x00001524 addu v0, s3, v0 | v0 = s3 + v0;
0x00001528 lw t9, (v0) | t9 = *(v0);
0x0000152c jalr t9 | t9 ();
0x00001530 nop |
0x00001534 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001538 b 0x150c |
| } while (1);
| label_1:
0x0000153c lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00001540 addiu t9, t9, 0x1400 | t9 += entry0;
0x00001544 jalr t9 | t9 ();
0x00001548 nop |
0x0000154c addiu t8, zero, 1 | t8 = 1;
0x00001550 sb t8, 0x4d00(s1) | *((s1 + 19712)) = t8;
| label_0:
0x00001554 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00001558 lw s3, 0x28(sp) | s3 = *(var_28h);
0x0000155c lw s2, 0x24(sp) | s2 = *(var_24h);
0x00001560 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00001564 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00001568 addiu sp, sp, 0x30 |
0x0000156c jr ra | return v0;
| }
[*] Function system used 1 times libz.so.1.2.5