[*] Binary protection state of libopencore-amrnb.so.0.0.3
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function printf tear down of libopencore-amrnb.so.0.0.3
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libopencore-amrnb.so.0.0.3 @ 0x698 */
| #include <stdint.h>
|
; (fcn) fcn.00000698 () | void fcn_00000698 () {
0x00000698 lui gp, 4 |
0x0000069c addiu gp, gp, -0x3e78 |
0x000006a0 addu gp, gp, t9 | gp += t9;
0x000006a4 addiu sp, sp, -0x30 |
0x000006a8 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x000006ac sw s3, 0x28(sp) | *(var_28h) = s3;
0x000006b0 sw s2, 0x24(sp) | *(var_24h) = s2;
0x000006b4 sw s1, 0x20(sp) | *(var_20h) = s1;
0x000006b8 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x000006bc lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x000006c0 sw gp, 0x10(sp) | *(var_10h) = gp;
0x000006c4 lbu v0, 0x4cd0(t8) | v0 = *((t8 + 19664));
0x000006c8 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x000006cc bnez v0, 0x754 | goto label_0;
| }
0x000006d0 lw t8, -0x7b60(gp) | t8 = *((gp - 7896));
0x000006d4 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x000006d8 beqz t8, 0x6ec |
0x000006dc lw t9, -0x7b60(gp) | t9 = *((gp - 7896));
0x000006e0 lw a0, (t8) | a0 = *(t8);
0x000006e4 jalr t9 | t9 ();
0x000006e8 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x000006ec lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x000006f0 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x000006f4 addiu v0, v0, 0x47bc | v0 += 0x47bc;
0x000006f8 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x000006fc move s3, v0 | s3 = v0;
0x00000700 sra s2, s2, 2 | s2 >>= 2;
0x00000704 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00000708 addiu s2, s2, -1 | s2 += -1;
| do {
0x0000070c lw v0, 0x4cd4(s0) | v0 = *((s0 + 4917));
0x00000710 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x00000714 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x00000718 beqz t8, 0x73c | goto label_1;
| }
0x0000071c sw v0, 0x4cd4(s0) | *((s0 + 4917)) = v0;
0x00000720 sll v0, v0, 2 | v0 <<= 2;
0x00000724 addu v0, s3, v0 | v0 = s3 + v0;
0x00000728 lw t9, (v0) | t9 = *(v0);
0x0000072c jalr t9 | t9 ();
0x00000730 nop |
0x00000734 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000738 b 0x70c |
| } while (1);
| label_1:
0x0000073c lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00000740 addiu t9, t9, 0x600 | t9 += entry0;
0x00000744 jalr t9 | t9 ();
0x00000748 nop |
0x0000074c addiu t8, zero, 1 | t8 = 1;
0x00000750 sb t8, 0x4cd0(s1) | *((s1 + 19664)) = t8;
| label_0:
0x00000754 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00000758 lw s3, 0x28(sp) | s3 = *(var_28h);
0x0000075c lw s2, 0x24(sp) | s2 = *(var_24h);
0x00000760 lw s1, 0x20(sp) | s1 = *(var_20h);
0x00000764 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00000768 addiu sp, sp, 0x30 |
0x0000076c jr ra | return v0;
| }
[*] Function printf used 1 times libopencore-amrnb.so.0.0.3