[*] Binary protection state of rp-pppoe.so
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of rp-pppoe.so
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/lib/rp-pppoe.so @ 0xfe8 */
| #include <stdint.h>
|
; (fcn) fcn.00000fe8 () | void fcn_00000fe8 () {
0x00000fe8 lui gp, 2 |
0x00000fec addiu gp, gp, -0x4408 |
0x00000ff0 addu gp, gp, t9 | gp += t9;
0x00000ff4 addiu sp, sp, -0x30 |
0x00000ff8 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x00000ffc sw s3, 0x28(sp) | *(var_28h) = s3;
0x00001000 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00001004 sw s1, 0x20(sp) | *(var_20h) = s1;
0x00001008 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x0000100c lw t8, -0x7fe4(gp) | t8 = *((gp - 8185));
0x00001010 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00001014 lbu v0, 0x4d50(t8) | v0 = *((t8 + 19792));
0x00001018 move s1, t8 | s1 = t8;
| if (v0 != 0) {
0x0000101c bnez v0, 0x10a4 | goto label_0;
| }
0x00001020 lw t8, -0x7ef4(gp) | t8 = *((gp - 8125));
0x00001024 lw t8, -0x7fe0(gp) | t8 = *((gp - 8184));
| if (t8 != 0) {
0x00001028 beqz t8, 0x103c |
0x0000102c lw t9, -0x7ef4(gp) | t9 = *((gp - 8125));
0x00001030 lw a0, (t8) | a0 = *(t8);
0x00001034 jalr t9 | t9 ();
0x00001038 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x0000103c lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x00001040 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00001044 addiu v0, v0, 0x4a70 | v0 += 0x4a70;
0x00001048 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x0000104c move s3, v0 | s3 = v0;
0x00001050 sra s2, s2, 2 | s2 >>= 2;
0x00001054 lw s0, -0x7fe4(gp) | s0 = *((gp - 8185));
0x00001058 addiu s2, s2, -1 | s2 += -1;
| do {
0x0000105c lw v0, 0x4d54(s0) | v0 = *((s0 + 4949));
0x00001060 sltu t8, v0, s2 | t8 = (v0 < s2) ? 1 : 0;
0x00001064 addiu v0, v0, 1 | v0++;
| if (t8 == 0) {
0x00001068 beqz t8, 0x108c | goto label_1;
| }
0x0000106c sw v0, 0x4d54(s0) | *((s0 + 4949)) = v0;
0x00001070 sll v0, v0, 2 | v0 <<= 2;
0x00001074 addu v0, s3, v0 | v0 = s3 + v0;
0x00001078 lw t9, (v0) | t9 = *(v0);
0x0000107c jalr t9 | t9 ();
0x00001080 nop |
0x00001084 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001088 b 0x105c |
| } while (1);
| label_1:
0x0000108c lw t9, -0x7fd8(gp) | t9 = *((gp - 8182));
0x00001090 addiu t9, t9, 0xf50 | t9 += entry0;
0x00001094 jalr t9 | t9 ();
0x00001098 nop |
0x0000109c addiu t8, zero, 1 | t8 = 1;
0x000010a0 sb t8, 0x4d50(s1) | *((s1 + 19792)) = t8;
| label_0:
0x000010a4 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x000010a8 lw s3, 0x28(sp) | s3 = *(var_28h);
0x000010ac lw s2, 0x24(sp) | s2 = *(var_24h);
0x000010b0 lw s1, 0x20(sp) | s1 = *(var_20h);
0x000010b4 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x000010b8 addiu sp, sp, 0x30 |
0x000010bc jr ra | return v0;
| }
[*] Function fprintf used 1 times rp-pppoe.so