[*] Binary protection state of libjson-c.so.2.0.1
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function system tear down of libjson-c.so.2.0.1
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/2097216-5451840.squashfs_v4_le_extract/thirdlib/libjson-c.so.2.0.1 @ 0x1bd0 */
| #include <stdint.h>
|
; (fcn) fcn.00001bd0 () | void fcn_00001bd0 () {
0x00001bd0 lui gp, 2 |
0x00001bd4 addiu gp, gp, -0xb40 |
0x00001bd8 addu gp, gp, t9 | gp += t9;
0x00001bdc addiu sp, sp, -0x30 |
0x00001be0 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00001be4 lw s1, -0x7fe4(gp) | s1 = *((gp - 8185));
0x00001be8 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00001bec lbu v0, -0x6d60(s1) | v0 = *((s1 - 28000));
0x00001bf0 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x00001bf4 sw s3, 0x28(sp) | *(var_28h) = s3;
0x00001bf8 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00001bfc sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x00001c00 lw v0, -0x7e1c(gp) | v0 = *((gp - 8071));
| if (v0 != 0) {
0x00001c04 bnez v0, 0x1ca4 | goto label_0;
| }
0x00001c08 lw v0, -0x7fe0(gp) | v0 = *((gp - 8184));
| if (v0 != 0) {
0x00001c0c beqz v0, 0x1c20 |
0x00001c10 lw t9, -0x7e1c(gp) | t9 = *((gp - 8071));
0x00001c14 lw a0, (v0) | a0 = *(v0);
0x00001c18 jalr t9 | t9 ();
0x00001c1c lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00001c20 lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x00001c24 lw s0, -0x7fdc(gp) | s0 = *((gp - 8183));
0x00001c28 addiu v0, v0, -0x6ff8 | v0 += -0x6ff8;
0x00001c2c subu s0, s0, v0 | __asm ("subu s0, s0, v0");
0x00001c30 sra s0, s0, 2 | s0 >>= 2;
0x00001c34 lw s3, -0x7fe4(gp) | s3 = *((gp - 8185));
0x00001c38 addiu s0, s0, -1 | s0 += -1;
0x00001c3c move s2, v0 | s2 = v0;
| do {
0x00001c40 lw v0, -0x6d5c(s3) | v0 = *((s3 - 6999));
0x00001c44 sltu v1, v0, s0 | v1 = (v0 < s0) ? 1 : 0;
0x00001c48 addiu v0, v0, 1 | v0++;
| if (v1 == 0) {
0x00001c4c beqz v1, 0x1c70 | goto label_1;
| }
0x00001c50 sw v0, -0x6d5c(s3) | *((s3 - 6999)) = v0;
0x00001c54 sll v0, v0, 2 | v0 <<= 2;
0x00001c58 addu v0, s2, v0 | v0 = s2 + v0;
0x00001c5c lw t9, (v0) | t9 = *(v0);
0x00001c60 jalr t9 | t9 ();
0x00001c64 nop |
0x00001c68 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001c6c b 0x1c40 |
| } while (1);
| label_1:
0x00001c70 lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00001c74 addiu t9, t9, 0x1b40 | t9 += entry0;
0x00001c78 jalr t9 | t9 ();
0x00001c7c nop |
0x00001c80 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001c84 lw v0, -0x7e44(gp) | v0 = *((gp - 8081));
0x00001c88 lw t9, -0x7e44(gp) | t9 = *((gp - 8081));
| if (v0 != 0) {
0x00001c8c beqz v0, 0x1c9c |
0x00001c90 lw a0, -0x7fd4(gp) | a0 = *((gp - 8181));
0x00001c94 addiu a0, a0, -0x72d0 | a0 += -0x72d0;
0x00001c98 jalr t9 | t9 ();
| }
0x00001c9c addiu v0, zero, 1 | v0 = 1;
0x00001ca0 sb v0, -0x6d60(s1) | *((s1 - 28000)) = v0;
| label_0:
0x00001ca4 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00001ca8 lw s3, 0x28(sp) | s3 = *(var_28h);
0x00001cac lw s2, 0x24(sp) | s2 = *(var_24h);
0x00001cb0 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00001cb4 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00001cb8 addiu sp, sp, 0x30 |
0x00001cbc jr ra | return v0;
| }
[*] Function system used 1 times libjson-c.so.2.0.1