[*] Binary protection state of libtinydb.so
Full RELRO Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of libtinydb.so
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libtinydb.so @ 0x1c78 */
| #include <stdint.h>
|
; (fcn) fcn.00001c78 () | void fcn_00001c78 () {
0x00001c78 lui gp, 2 |
0x00001c7c addiu gp, gp, 0x2388 |
0x00001c80 addu gp, gp, t9 | gp += t9;
0x00001c84 addiu sp, sp, -0x30 |
0x00001c88 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x00001c8c sw s3, 0x28(sp) | *(var_28h) = s3;
0x00001c90 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00001c94 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00001c98 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x00001c9c lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x00001ca0 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00001ca4 lbu v0, -0x3e70(t8) | v0 = *((t8 - 15984));
0x00001ca8 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x00001cac bnez v0, 0x1d34 | goto label_0;
| }
0x00001cb0 lw t8, -0x7ef4(gp) | t8 = *((gp - 8125));
0x00001cb4 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x00001cb8 beqz t8, 0x1ccc |
0x00001cbc lw t9, -0x7ef4(gp) | t9 = *((gp - 8125));
0x00001cc0 lw a0, (t8) | a0 = *(t8);
0x00001cc4 jalr t9 | t9 ();
0x00001cc8 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00001ccc lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x00001cd0 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00001cd4 addiu v0, v0, -0x4054 | v0 += -0x4054;
0x00001cd8 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x00001cdc move s3, v0 | s3 = v0;
0x00001ce0 sra s2, s2, 2 | s2 >>= 2;
0x00001ce4 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00001ce8 addiu s2, s2, -1 | s2 += -1;
| do {
0x00001cec lw v0, -0x3e6c(s0) | v0 = *((s0 - 3995));
0x00001cf0 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x00001cf4 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x00001cf8 beqz t8, 0x1d1c | goto label_1;
| }
0x00001cfc sw v0, -0x3e6c(s0) | *((s0 - 3995)) = v0;
0x00001d00 sll v0, v0, 2 | v0 <<= 2;
0x00001d04 addu v0, s3, v0 | v0 = s3 + v0;
0x00001d08 lw t9, (v0) | t9 = *(v0);
0x00001d0c jalr t9 | t9 ();
0x00001d10 nop |
0x00001d14 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001d18 b 0x1cec |
| } while (1);
| label_1:
0x00001d1c lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00001d20 addiu t9, t9, 0x1be0 | t9 += entry0;
0x00001d24 jalr t9 | t9 ();
0x00001d28 nop |
0x00001d2c addiu t8, zero, 1 | t8 = 1;
0x00001d30 sb t8, -0x3e70(s1) | *((s1 - 15984)) = t8;
| label_0:
0x00001d34 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00001d38 lw s3, 0x28(sp) | s3 = *(var_28h);
0x00001d3c lw s2, 0x24(sp) | s2 = *(var_24h);
0x00001d40 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00001d44 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00001d48 addiu sp, sp, 0x30 |
0x00001d4c jr ra | return v0;
| }
[*] Function fprintf used 1 times libtinydb.so