[*] Binary protection state of libstr.so
Full RELRO Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of libstr.so
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libstr.so @ 0x1ec8 */
| #include <stdint.h>
|
; (fcn) fcn.00001ec8 () | void fcn_00001ec8 () {
0x00001ec8 lui gp, 2 |
0x00001ecc addiu gp, gp, -0x2ec8 |
0x00001ed0 addu gp, gp, t9 | gp += t9;
0x00001ed4 addiu sp, sp, -0x30 |
0x00001ed8 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x00001edc sw s3, 0x28(sp) | *(var_28h) = s3;
0x00001ee0 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00001ee4 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00001ee8 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x00001eec lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x00001ef0 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00001ef4 lbu v0, 0x71b0(t8) | v0 = *((t8 + 29104));
0x00001ef8 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x00001efc bnez v0, 0x1f84 | goto label_0;
| }
0x00001f00 lw t8, -0x7ecc(gp) | t8 = *((gp - 8115));
0x00001f04 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x00001f08 beqz t8, 0x1f1c |
0x00001f0c lw t9, -0x7ecc(gp) | t9 = *((gp - 8115));
0x00001f10 lw a0, (t8) | a0 = *(t8);
0x00001f14 jalr t9 | t9 ();
0x00001f18 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00001f1c lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x00001f20 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00001f24 addiu v0, v0, 0x6ff0 | v0 += 0x6ff0;
0x00001f28 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x00001f2c move s3, v0 | s3 = v0;
0x00001f30 sra s2, s2, 2 | s2 >>= 2;
0x00001f34 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00001f38 addiu s2, s2, -1 | s2 += -1;
| do {
0x00001f3c lw v0, 0x71b4(s0) | v0 = *((s0 + 7277));
0x00001f40 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x00001f44 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x00001f48 beqz t8, 0x1f6c | goto label_1;
| }
0x00001f4c sw v0, 0x71b4(s0) | *((s0 + 7277)) = v0;
0x00001f50 sll v0, v0, 2 | v0 <<= 2;
0x00001f54 addu v0, s3, v0 | v0 = s3 + v0;
0x00001f58 lw t9, (v0) | t9 = *(v0);
0x00001f5c jalr t9 | t9 ();
0x00001f60 nop |
0x00001f64 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001f68 b 0x1f3c |
| } while (1);
| label_1:
0x00001f6c lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00001f70 addiu t9, t9, 0x1e30 | t9 += entry0;
0x00001f74 jalr t9 | t9 ();
0x00001f78 nop |
0x00001f7c addiu t8, zero, 1 | t8 = 1;
0x00001f80 sb t8, 0x71b0(s1) | *((s1 + 29104)) = t8;
| label_0:
0x00001f84 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00001f88 lw s3, 0x28(sp) | s3 = *(var_28h);
0x00001f8c lw s2, 0x24(sp) | s2 = *(var_24h);
0x00001f90 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00001f94 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00001f98 addiu sp, sp, 0x30 |
0x00001f9c jr ra | return v0;
| }
[*] Function fprintf used 1 times libstr.so