[*] Binary protection state of libjson-c.so.2.0.2
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function strcat tear down of libjson-c.so.2.0.2
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libjson-c.so.2.0.2 @ 0x1b58 */
| #include <stdint.h>
|
; (fcn) fcn.00001b58 () | void fcn_00001b58 () {
0x00001b58 lui gp, 2 |
0x00001b5c addiu gp, gp, 0x78 |
0x00001b60 addu gp, gp, t9 | gp += t9;
0x00001b64 addiu sp, sp, -0x30 |
0x00001b68 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x00001b6c sw s3, 0x28(sp) | *(var_28h) = s3;
0x00001b70 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00001b74 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00001b78 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x00001b7c lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x00001b80 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00001b84 lbu v0, -0x6250(t8) | v0 = *((t8 - 25168));
0x00001b88 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x00001b8c bnez v0, 0x1c14 | goto label_0;
| }
0x00001b90 lw t8, -0x7e50(gp) | t8 = *((gp - 8084));
0x00001b94 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x00001b98 beqz t8, 0x1bac |
0x00001b9c lw t9, -0x7e50(gp) | t9 = *((gp - 8084));
0x00001ba0 lw a0, (t8) | a0 = *(t8);
0x00001ba4 jalr t9 | t9 ();
0x00001ba8 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00001bac lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x00001bb0 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00001bb4 addiu v0, v0, -0x64c0 | v0 += -0x64c0;
0x00001bb8 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x00001bbc move s3, v0 | s3 = v0;
0x00001bc0 sra s2, s2, 2 | s2 >>= 2;
0x00001bc4 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00001bc8 addiu s2, s2, -1 | s2 += -1;
| do {
0x00001bcc lw v0, -0x624c(s0) | v0 = *((s0 - 6291));
0x00001bd0 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x00001bd4 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x00001bd8 beqz t8, 0x1bfc | goto label_1;
| }
0x00001bdc sw v0, -0x624c(s0) | *((s0 - 6291)) = v0;
0x00001be0 sll v0, v0, 2 | v0 <<= 2;
0x00001be4 addu v0, s3, v0 | v0 = s3 + v0;
0x00001be8 lw t9, (v0) | t9 = *(v0);
0x00001bec jalr t9 | t9 ();
0x00001bf0 nop |
0x00001bf4 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001bf8 b 0x1bcc |
| } while (1);
| label_1:
0x00001bfc lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00001c00 addiu t9, t9, 0x1ac0 | t9 += entry0;
0x00001c04 jalr t9 | t9 ();
0x00001c08 nop |
0x00001c0c addiu t8, zero, 1 | t8 = 1;
0x00001c10 sb t8, -0x6250(s1) | *((s1 - 25168)) = t8;
| label_0:
0x00001c14 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00001c18 lw s3, 0x28(sp) | s3 = *(var_28h);
0x00001c1c lw s2, 0x24(sp) | s2 = *(var_24h);
0x00001c20 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00001c24 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00001c28 addiu sp, sp, 0x30 |
0x00001c2c jr ra | return v0;
| }
[*] Function strcat used 1 times libjson-c.so.2.0.2