[*] Binary protection state of libdumpSiteSurvey.so
Full RELRO Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function sprintf tear down of libdumpSiteSurvey.so
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libdumpSiteSurvey.so @ 0x1758 */
| #include <stdint.h>
|
; (fcn) fcn.00001758 () | void fcn_00001758 () {
0x00001758 lui gp, 2 |
0x0000175c addiu gp, gp, -0x748 |
0x00001760 addu gp, gp, t9 | gp += t9;
0x00001764 addiu sp, sp, -0x30 |
0x00001768 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x0000176c sw s3, 0x28(sp) | *(var_28h) = s3;
0x00001770 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00001774 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00001778 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x0000177c lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x00001780 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00001784 lbu v0, -0x6e50(t8) | v0 = *((t8 - 28240));
0x00001788 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x0000178c bnez v0, 0x1814 | goto label_0;
| }
0x00001790 lw t8, -0x7ebc(gp) | t8 = *((gp - 8111));
0x00001794 lw t8, -0x7fe0(gp) | t8 = *(gp);
| if (t8 != 0) {
0x00001798 beqz t8, 0x17ac |
0x0000179c lw t9, -0x7ebc(gp) | t9 = *((gp - 8111));
0x000017a0 lw a0, (t8) | a0 = *(t8);
0x000017a4 jalr t9 | t9 ();
0x000017a8 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x000017ac lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x000017b0 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x000017b4 addiu v0, v0, -0x7010 | v0 += -0x7010;
0x000017b8 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x000017bc move s3, v0 | s3 = v0;
0x000017c0 sra s2, s2, 2 | s2 >>= 2;
0x000017c4 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x000017c8 addiu s2, s2, -1 | s2 += -1;
| do {
0x000017cc lw v0, -0x6e4c(s0) | v0 = *((s0 - 7059));
0x000017d0 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x000017d4 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x000017d8 beqz t8, 0x17fc | goto label_1;
| }
0x000017dc sw v0, -0x6e4c(s0) | *((s0 - 7059)) = v0;
0x000017e0 sll v0, v0, 2 | v0 <<= 2;
0x000017e4 addu v0, s3, v0 | v0 = s3 + v0;
0x000017e8 lw t9, (v0) | t9 = *(v0);
0x000017ec jalr t9 | t9 ();
0x000017f0 nop |
0x000017f4 lw gp, 0x10(sp) | gp = *(var_10h);
0x000017f8 b 0x17cc |
| } while (1);
| label_1:
0x000017fc lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00001800 addiu t9, t9, 0x16c0 | t9 += entry0;
0x00001804 jalr t9 | t9 ();
0x00001808 nop |
0x0000180c addiu t8, zero, 1 | t8 = 1;
0x00001810 sb t8, -0x6e50(s1) | *((s1 - 28240)) = t8;
| label_0:
0x00001814 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00001818 lw s3, 0x28(sp) | s3 = *(var_28h);
0x0000181c lw s2, 0x24(sp) | s2 = *(var_24h);
0x00001820 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00001824 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00001828 addiu sp, sp, 0x30 |
0x0000182c jr ra | return v0;
| }
[*] Function sprintf used 1 times libdumpSiteSurvey.so