[*] Binary protection state of libfaac.so.0.0.0
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function system tear down of libfaac.so.0.0.0
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/2097216-5451840.squashfs_v4_le_extract/thirdlib/libfaac.so.0.0.0 @ 0x11b0 */
| #include <stdint.h>
|
; (fcn) fcn.000011b0 () | void fcn_000011b0 () {
0x000011b0 lui gp, 2 |
0x000011b4 addiu gp, gp, 0x7af0 |
0x000011b8 addu gp, gp, t9 | gp += t9;
0x000011bc addiu sp, sp, -0x30 |
0x000011c0 sw s3, 0x28(sp) | *(var_28h) = s3;
0x000011c4 lw s3, -0x7fe4(gp) | s3 = *((gp - 8185));
0x000011c8 sw gp, 0x10(sp) | *(var_10h) = gp;
0x000011cc sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x000011d0 lbu v0, 0xe30(s3) | v0 = *((s3 + 3632));
0x000011d4 sw s2, 0x24(sp) | *(var_24h) = s2;
0x000011d8 sw s1, 0x20(sp) | *(var_20h) = s1;
0x000011dc sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x000011e0 lw v0, -0x7ebc(gp) | v0 = *((gp - 8111));
| if (v0 != 0) {
0x000011e4 bnez v0, 0x129c | goto label_1;
| }
0x000011e8 lw v0, -0x7fe0(gp) | v0 = *((gp - 8184));
| if (v0 != 0) {
0x000011ec beqz v0, 0x1200 |
0x000011f0 lw t9, -0x7ebc(gp) | t9 = *((gp - 8111));
0x000011f4 lw a0, (v0) | a0 = *(v0);
0x000011f8 jalr t9 | t9 ();
0x000011fc lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00001200 lw s2, -0x7fe4(gp) | s2 = *((gp - 8185));
0x00001204 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00001208 lw s1, -0x7fdc(gp) | s1 = *((gp - 8183));
0x0000120c addiu s2, s2, -0x18d4 | s2 += -0x18d4;
0x00001210 lw a2, 0x52e7(s1) | a2 = *((s1 + 5305.75));
0x00001214 subu s1, s1, s2 | __asm ("subu s1, s1, s2");
0x00001218 sra s1, s1, 2 | s1 >>= 2;
0x0000121c addiu s1, s1, -1 | s1 += -1;
0x00001220 sltu v1, v0, s1 | v1 = (v0 < s1) ? 1 : 0;
0x00001224 lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
| if (v1 == 0) {
0x00001228 beqz v1, 0x1258 | goto label_2;
| }
| do {
0x0000122c addiu v0, v0, 1 | v0++;
0x00001230 sll v1, v0, 2 | v1 = v0 << 2;
0x00001234 addu v1, s2, v1 | v1 = s2 + v1;
0x00001238 lw t9, (v1) | t9 = *(v1);
0x0000123c sw v0, 0xe34(s0) | *((s0 + 909)) = v0;
0x00001240 jalr t9 | t9 ();
0x00001244 lw v0, 0xe34(s0) | v0 = *((s0 + 909));
0x00001248 sltu v1, v0, s1 | v1 = (v0 < s1) ? 1 : 0;
0x0000124c lw gp, 0x10(sp) | gp = *(var_10h);
0x00001250 bnez v1, 0x122c |
| } while (v1 != 0);
0x00001254 lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
| label_2:
0x00001258 addiu t9, t9, 0x1120 | t9 += entry0;
0x0000125c bal 0x1120 | entry0 ();
0x00001260 nop |
0x00001264 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001268 lw v0, -0x7f2c(gp) | v0 = *((gp - 8139));
0x0000126c lw a0, -0x7f3c(gp) | a0 = *((gp - 8143));
| if (v0 == 0) {
0x00001270 beqz v0, 0x12b8 | goto label_3;
| }
0x00001274 lw v0, -0x7f08(gp) | v0 = *((gp - 8130));
| if (a0 == 0) {
0x00001278 beqz a0, 0x12bc | goto label_4;
| }
0x0000127c lb v0, (a0) | v0 = *(a0);
0x00001280 slti v0, v0, 2 | v0 = (v0 < 2) ? 1 : 0;
0x00001284 lw t9, -0x7f08(gp) | t9 = *((gp - 8130));
| if (v0 != 0) {
0x00001288 bnez v0, 0x12b8 | goto label_3;
| }
0x0000128c jalr t9 | t9 ();
0x00001290 nop |
| do {
0x00001294 addiu v0, zero, 1 | v0 = 1;
| label_0:
0x00001298 sb v0, 0xe30(s3) | *((s3 + 3632)) = v0;
| label_1:
0x0000129c lw ra, 0x2c(sp) | ra = *(var_2ch);
0x000012a0 lw s3, 0x28(sp) | s3 = *(var_28h);
0x000012a4 lw s2, 0x24(sp) | s2 = *(var_24h);
0x000012a8 lw s1, 0x20(sp) | s1 = *(var_20h);
0x000012ac lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x000012b0 addiu sp, sp, 0x30 |
0x000012b4 jr ra | return v0;
| label_3:
0x000012b8 lw v0, -0x7f08(gp) | v0 = *((gp - 8130));
| label_4:
0x000012bc lw a0, -0x7fd4(gp) | a0 = *((gp - 8181));
0x000012c0 beqz v0, 0x1294 |
| } while (v0 == 0);
0x000012c4 lw t9, -0x7f08(gp) | t9 = *((gp - 8130));
0x000012c8 addiu a0, a0, -0x18e0 | a0 += -0x18e0;
0x000012cc jalr t9 | t9 ();
0x000012d0 addiu v0, zero, 1 | v0 = 1;
0x000012d4 b 0x1298 | goto label_0;
| }
[*] Function system used 1 times libfaac.so.0.0.0