[*] Binary protection state of librtsutils.so.1.203.3ff897
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function system tear down of librtsutils.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/librtsutils.so.1.203.3ff897 @ 0xa88 */
| #include <stdint.h>
|
; (fcn) fcn.00000a88 () | void fcn_00000a88 () {
0x00000a88 lui gp, 2 |
0x00000a8c addiu gp, gp, -0x6f18 |
0x00000a90 addu gp, gp, t9 | gp += t9;
0x00000a94 addiu sp, sp, -0x30 |
0x00000a98 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x00000a9c sw s3, 0x28(sp) | *(var_28h) = s3;
0x00000aa0 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00000aa4 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00000aa8 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x00000aac lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x00000ab0 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00000ab4 lbu v0, 0x1c10(t8) | v0 = *((t8 + 7184));
0x00000ab8 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x00000abc bnez v0, 0xb44 | goto label_0;
| }
0x00000ac0 lw t8, -0x7f78(gp) | t8 = *((gp - 8158));
0x00000ac4 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x00000ac8 beqz t8, 0xadc |
0x00000acc lw t9, -0x7f78(gp) | t9 = *((gp - 8158));
0x00000ad0 lw a0, (t8) | a0 = *(t8);
0x00000ad4 jalr t9 | t9 ();
0x00000ad8 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00000adc lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x00000ae0 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00000ae4 addiu v0, v0, 0x1b6c | v0 += 0x1b6c;
0x00000ae8 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x00000aec move s3, v0 | s3 = v0;
0x00000af0 sra s2, s2, 2 | s2 >>= 2;
0x00000af4 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00000af8 addiu s2, s2, -1 | s2 += -1;
| do {
0x00000afc lw v0, 0x1c14(s0) | v0 = *((s0 + 1797));
0x00000b00 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x00000b04 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x00000b08 beqz t8, 0xb2c | goto label_1;
| }
0x00000b0c sw v0, 0x1c14(s0) | *((s0 + 1797)) = v0;
0x00000b10 sll v0, v0, 2 | v0 <<= 2;
0x00000b14 addu v0, s3, v0 | v0 = s3 + v0;
0x00000b18 lw t9, (v0) | t9 = *(v0);
0x00000b1c jalr t9 | t9 ();
0x00000b20 nop |
0x00000b24 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000b28 b 0xafc |
| } while (1);
| label_1:
0x00000b2c lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00000b30 addiu t9, t9, 0x9f0 | t9 += entry0;
0x00000b34 jalr t9 | t9 ();
0x00000b38 nop |
0x00000b3c addiu t8, zero, 1 | t8 = 1;
0x00000b40 sb t8, 0x1c10(s1) | *((s1 + 7184)) = t8;
| label_0:
0x00000b44 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00000b48 lw s3, 0x28(sp) | s3 = *(var_28h);
0x00000b4c lw s2, 0x24(sp) | s2 = *(var_24h);
0x00000b50 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00000b54 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00000b58 addiu sp, sp, 0x30 |
0x00000b5c jr ra | return v0;
| }
[*] Function system used 1 times librtsutils.so.1.203.3ff897