[*] Binary protection state of libsbc.so.1.2.1
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function sprintf tear down of libsbc.so.1.2.1
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/libsbc.so.1.2.1 @ 0x7f8 */
| #include <stdint.h>
|
; (fcn) fcn.000007f8 () | void fcn_000007f8 () {
0x000007f8 lui gp, 2 |
0x000007fc addiu gp, gp, -0x12f8 |
0x00000800 addu gp, gp, t9 | gp += t9;
0x00000804 addiu sp, sp, -0x30 |
0x00000808 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x0000080c sw s3, 0x28(sp) | *(var_28h) = s3;
0x00000810 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00000814 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00000818 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x0000081c lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x00000820 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00000824 lbu v0, 0x7590(t8) | v0 = *((t8 + 30096));
0x00000828 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x0000082c bnez v0, 0x8b4 | goto label_0;
| }
0x00000830 lw t8, -0x7f90(gp) | t8 = *((gp - 8164));
0x00000834 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x00000838 beqz t8, 0x84c |
0x0000083c lw t9, -0x7f90(gp) | t9 = *((gp - 8164));
0x00000840 lw a0, (t8) | a0 = *(t8);
0x00000844 jalr t9 | t9 ();
0x00000848 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x0000084c lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x00000850 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00000854 addiu v0, v0, 0x74f8 | v0 += 0x74f8;
0x00000858 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x0000085c move s3, v0 | s3 = v0;
0x00000860 sra s2, s2, 2 | s2 >>= 2;
0x00000864 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00000868 addiu s2, s2, -1 | s2 += -1;
| do {
0x0000086c lw v0, 0x7594(s0) | v0 = *((s0 + 7525));
| if (s2 != 0) {
0x00000870 movz a3, v0, s2 | a3 = v0;
| }
0x00000874 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x00000878 beqz t8, 0x89c | goto label_1;
| }
0x0000087c sw v0, 0x7594(s0) | *((s0 + 7525)) = v0;
0x00000880 sll v0, v0, 2 | v0 <<= 2;
0x00000884 addu v0, s3, v0 | v0 = s3 + v0;
0x00000888 lw t9, (v0) | t9 = *(v0);
0x0000088c jalr t9 | t9 ();
0x00000890 nop |
0x00000894 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000898 b 0x86c |
| } while (1);
| label_1:
0x0000089c lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x000008a0 addiu t9, t9, 0x760 | t9 += entry0;
0x000008a4 jalr t9 | t9 ();
0x000008a8 nop |
0x000008ac addiu t8, zero, 1 | t8 = 1;
0x000008b0 sb t8, 0x7590(s1) | *((s1 + 30096)) = t8;
| label_0:
0x000008b4 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x000008b8 lw s3, 0x28(sp) | s3 = *(var_28h);
0x000008bc lw s2, 0x24(sp) | s2 = *(var_24h);
0x000008c0 lw s1, 0x20(sp) | s1 = *(var_20h);
0x000008c4 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x000008c8 addiu sp, sp, 0x30 |
0x000008cc jr ra | return v0;
| }
[*] Function sprintf used 1 times libsbc.so.1.2.1