[*] Binary protection state of librtsjpeg.so.1.203.3ff897
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function strcpy tear down of librtsjpeg.so.1.203.3ff897
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/librtsjpeg.so.1.203.3ff897 @ 0x1448 */
| #include <stdint.h>
|
; (fcn) fcn.00001448 () | void fcn_00001448 () {
0x00001448 lui gp, 2 |
0x0000144c addiu gp, gp, -0x3cd8 |
0x00001450 addu gp, gp, t9 | gp += t9;
0x00001454 addiu sp, sp, -0x30 |
0x00001458 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x0000145c sw s3, 0x28(sp) | *(var_28h) = s3;
0x00001460 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00001464 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00001468 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x0000146c lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x00001470 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00001474 lbu v0, 0x58c0(t8) | v0 = *((t8 + 22720));
0x00001478 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x0000147c bnez v0, 0x1504 | goto label_0;
| }
0x00001480 lw t8, -0x7ef4(gp) | t8 = *((gp - 8125));
0x00001484 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x00001488 beqz t8, 0x149c |
0x0000148c lw t9, -0x7ef4(gp) | t9 = *((gp - 8125));
0x00001490 lw a0, (t8) | a0 = *(t8);
0x00001494 jalr t9 | t9 ();
0x00001498 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x0000149c lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x000014a0 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x000014a4 addiu v0, v0, 0x525c | v0 += 0x525c;
0x000014a8 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x000014ac move s3, v0 | s3 = v0;
0x000014b0 sra s2, s2, 2 | s2 >>= 2;
0x000014b4 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x000014b8 addiu s2, s2, -1 | s2 += -1;
| do {
0x000014bc lw v0, 0x58c4(s0) | v0 = *((s0 + 5681));
0x000014c0 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x000014c4 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x000014c8 beqz t8, 0x14ec | goto label_1;
| }
0x000014cc sw v0, 0x58c4(s0) | *((s0 + 5681)) = v0;
0x000014d0 sll v0, v0, 2 | v0 <<= 2;
0x000014d4 addu v0, s3, v0 | v0 = s3 + v0;
0x000014d8 lw t9, (v0) | t9 = *(v0);
0x000014dc jalr t9 | t9 ();
0x000014e0 nop |
0x000014e4 lw gp, 0x10(sp) | gp = *(var_10h);
0x000014e8 b 0x14bc |
| } while (1);
| label_1:
0x000014ec lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x000014f0 addiu t9, t9, 0x13b0 | t9 += entry0;
0x000014f4 jalr t9 | t9 ();
0x000014f8 nop |
0x000014fc addiu t8, zero, 1 | t8 = 1;
0x00001500 sb t8, 0x58c0(s1) | *((s1 + 22720)) = t8;
| label_0:
0x00001504 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00001508 lw s3, 0x28(sp) | s3 = *(var_28h);
0x0000150c lw s2, 0x24(sp) | s2 = *(var_24h);
0x00001510 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00001514 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00001518 addiu sp, sp, 0x30 |
0x0000151c jr ra | return v0;
| }
[*] Function strcpy used 1 times librtsjpeg.so.1.203.3ff897