[*] Binary protection state of libUsageEnvironment.so.3.1.0
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function strcpy tear down of libUsageEnvironment.so.3.1.0
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libUsageEnvironment.so.3.1.0 @ 0x1078 */
| #include <stdint.h>
|
; (fcn) fcn.00001078 () | void fcn_00001078 () {
0x00001078 lui gp, 2 |
0x0000107c addiu gp, gp, -0x7458 |
0x00001080 addu gp, gp, t9 | gp += t9;
0x00001084 addiu sp, sp, -0x30 |
0x00001088 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x0000108c sw s3, 0x28(sp) | *(var_28h) = s3;
0x00001090 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00001094 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00001098 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x0000109c lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x000010a0 sw gp, 0x10(sp) | *(var_10h) = gp;
0x000010a4 lbu v0, 0x1cf0(t8) | v0 = *((t8 + 7408));
0x000010a8 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x000010ac bnez v0, 0x1134 | goto label_0;
| }
0x000010b0 lw t8, -0x7f90(gp) | t8 = *((gp - 8164));
0x000010b4 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x000010b8 beqz t8, 0x10cc |
0x000010bc lw t9, -0x7f90(gp) | t9 = *((gp - 8164));
0x000010c0 lw a0, (t8) | a0 = *(t8);
0x000010c4 jalr t9 | t9 ();
0x000010c8 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x000010cc lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x000010d0 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x000010d4 addiu v0, v0, 0x1b44 | v0 += 0x1b44;
0x000010d8 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x000010dc move s3, v0 | s3 = v0;
0x000010e0 sra s2, s2, 2 | s2 >>= 2;
0x000010e4 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x000010e8 addiu s2, s2, -1 | s2 += -1;
| do {
0x000010ec lw v0, 0x1cf4(s0) | v0 = *((s0 + 1853));
0x000010f0 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x000010f4 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x000010f8 beqz t8, 0x111c | goto label_1;
| }
0x000010fc sw v0, 0x1cf4(s0) | *((s0 + 1853)) = v0;
0x00001100 sll v0, v0, 2 | v0 <<= 2;
0x00001104 addu v0, s3, v0 | v0 = s3 + v0;
0x00001108 lw t9, (v0) | t9 = *(v0);
0x0000110c jalr t9 | t9 ();
0x00001110 nop |
0x00001114 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001118 b 0x10ec |
| } while (1);
| label_1:
0x0000111c lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00001120 addiu t9, t9, 0xfe0 | t9 += entry0;
0x00001124 jalr t9 | t9 ();
0x00001128 nop |
0x0000112c addiu t8, zero, 1 | t8 = 1;
0x00001130 sb t8, 0x1cf0(s1) | *((s1 + 7408)) = t8;
| label_0:
0x00001134 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00001138 lw s3, 0x28(sp) | s3 = *(var_28h);
0x0000113c lw s2, 0x24(sp) | s2 = *(var_24h);
0x00001140 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00001144 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00001148 addiu sp, sp, 0x30 |
0x0000114c jr ra | return v0;
| }
[*] Function strcpy used 1 times libUsageEnvironment.so.3.1.0