[*] Binary protection state of cifsiostat
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of cifsiostat
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/cifsiostat @ 0x45d0 */
| #include <stdint.h>
|
; (fcn) sym.get_proc_cpu_nr () | void get_proc_cpu_nr () {
0x000045d0 lui gp, 2 |
0x000045d4 addiu gp, gp, -0x2520 |
0x000045d8 addu gp, gp, t9 | gp += t9;
0x000045dc addiu sp, sp, -0x58 |
0x000045e0 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x000045e4 sw s5, 0x4c(sp) | *(var_4ch) = s5;
0x000045e8 lw s5, -0x7ddc(gp) | s5 = *((gp - 8055));
0x000045ec sw s0, 0x38(sp) | *(var_38h) = s0;
0x000045f0 lw s0, -0x7fd8(gp) | s0 = *((gp - 8182));
0x000045f4 lw v0, (s5) | v0 = *(s5);
0x000045f8 lw t9, -0x7dd0(gp) | t9 = sym.imp.fopen;
0x000045fc sw gp, 0x18(sp) | *(var_18h) = gp;
0x00004600 sw ra, 0x54(sp) | *(var_54h) = ra;
0x00004604 sw s6, 0x50(sp) | *(var_50h) = s6;
0x00004608 sw s4, 0x48(sp) | *(var_48h) = s4;
0x0000460c sw s3, 0x44(sp) | *(var_44h) = s3;
0x00004610 sw s2, 0x40(sp) | *(var_40h) = s2;
0x00004614 sw s1, 0x3c(sp) | *(var_3ch) = s1;
0x00004618 addiu a1, a1, -0x6d98 | a1 += -0x6d98;
0x0000461c addiu a0, s0, -0x7098 | a0 = s0 + -0x7098;
0x00004620 sw v0, 0x34(sp) | *(var_34h) = v0;
0x00004624 jalr t9 | t9 ();
0x00004628 nop |
0x0000462c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00004630 beqz v0, 0x4730 | goto label_2;
| }
0x00004634 lw s2, -0x7fd8(gp) | s2 = *((gp - 8182));
0x00004638 lw s3, -0x7fd8(gp) | s3 = *((gp - 8182));
0x0000463c lw s6, -0x7fd8(gp) | s6 = *((gp - 8182));
0x00004640 move s1, v0 | s1 = v0;
0x00004644 addiu s4, zero, -1 | s4 = -1;
0x00004648 addiu s0, sp, 0x24 | s0 = sp + 0x24;
0x0000464c addiu s2, s2, -0x7078 | s2 += -0x7078;
0x00004650 addiu s3, s3, -0x6eec | s3 += -0x6eec;
| do {
| label_0:
0x00004654 lw t9, -0x7de0(gp) | t9 = sym.imp.fgets;
0x00004658 move a2, s1 | a2 = s1;
0x0000465c addiu a1, zero, 0x10 | a1 = 0x10;
0x00004660 move a0, s0 | a0 = s0;
0x00004664 jalr t9 | t9 ();
0x00004668 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x0000466c beqz v0, 0x46e8 | goto label_3;
| }
| label_1:
0x00004670 lw t9, -0x7e94(gp) | t9 = sym.imp.strncmp;
0x00004674 addiu a2, zero, 4 | a2 = 4;
0x00004678 move a1, s2 | a1 = s2;
0x0000467c move a0, s0 | a0 = s0;
0x00004680 jalr t9 | t9 ();
0x00004684 lw gp, 0x18(sp) | gp = *(var_18h);
0x00004688 beqz v0, 0x4654 |
| } while (v0 == 0);
0x0000468c lw t9, -0x7e94(gp) | t9 = sym.imp.strncmp;
0x00004690 addiu a2, zero, 3 | a2 = 3;
0x00004694 move a1, s3 | a1 = s3;
0x00004698 move a0, s0 | a0 = s0;
0x0000469c jalr t9 | t9 ();
0x000046a0 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x000046a4 bnez v0, 0x4654 | goto label_0;
| }
0x000046a8 lw t9, -0x7e48(gp) | t9 = sym.imp.__isoc99_sscanf;
0x000046ac addiu a2, sp, 0x20 | a2 = sp + 0x20;
0x000046b0 addiu a1, s6, -0x72c0 | a1 = s6 + -0x72c0;
0x000046b4 addiu a0, sp, 0x27 | a0 = sp + 0x27;
0x000046b8 jalr t9 | t9 ();
0x000046bc lw gp, 0x18(sp) | gp = *(var_18h);
0x000046c0 lw v0, 0x20(sp) | v0 = *(var_20h_2);
0x000046c4 move a2, s1 | a2 = s1;
0x000046c8 lw t9, -0x7de0(gp) | t9 = sym.imp.fgets;
0x000046cc slt v1, s4, v0 | v1 = (s4 < v0) ? 1 : 0;
0x000046d0 addiu a1, zero, 0x10 | a1 = 0x10;
0x000046d4 move a0, s0 | a0 = s0;
| if (v1 == 0) {
0x000046d8 movn s4, v0, v1 | s4 = v0;
| }
0x000046dc jalr t9 | t9 ();
0x000046e0 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x000046e4 bnez v0, 0x4670 | goto label_1;
| }
| label_3:
0x000046e8 lw t9, -0x7e80(gp) | t9 = sym.imp.fclose;
0x000046ec move a0, s1 | a0 = s1;
0x000046f0 jalr t9 | t9 ();
0x000046f4 lw a0, 0x34(sp) | a0 = *(var_34h);
0x000046f8 lw v1, (s5) | v1 = *(s5);
0x000046fc lw gp, 0x18(sp) | gp = *(var_18h);
0x00004700 addiu v0, s4, 1 | v0 = s4 + 1;
| if (a0 == v1) {
0x00004704 bne a0, v1, 0x4784 |
0x00004708 lw ra, 0x54(sp) | ra = *(var_54h);
0x0000470c lw s6, 0x50(sp) | s6 = *(var_50h);
0x00004710 lw s5, 0x4c(sp) | s5 = *(var_4ch);
0x00004714 lw s4, 0x48(sp) | s4 = *(var_48h);
0x00004718 lw s3, 0x44(sp) | s3 = *(var_44h);
0x0000471c lw s2, 0x40(sp) | s2 = *(var_40h);
0x00004720 lw s1, 0x3c(sp) | s1 = *(var_3ch);
0x00004724 lw s0, 0x38(sp) | s0 = *(var_38h);
0x00004728 addiu sp, sp, 0x58 |
0x0000472c jr ra | return v0;
| label_2:
0x00004730 lw v0, -0x7dd4(gp) | v0 = *((gp - 8053));
0x00004734 lw t9, -0x7e54(gp) | t9 = sym.imp.__errno_location;
0x00004738 lw s1, (v0) | s1 = *(v0);
0x0000473c jalr t9 | t9 ();
0x00004740 lw gp, 0x18(sp) | gp = *(var_18h);
0x00004744 lw t9, -0x7e24(gp) | t9 = sym.imp.strerror;
0x00004748 lw a0, (v0) | a0 = *(v0);
0x0000474c jalr t9 | t9 ();
0x00004750 lw gp, 0x18(sp) | gp = *(var_18h);
0x00004754 move a0, s1 | a0 = s1;
0x00004758 sw v0, 0x10(sp) | *(var_10h) = v0;
0x0000475c lw a2, -0x7fd8(gp) | a2 = *((gp - 8182));
0x00004760 lw t9, -0x7e88(gp) | t9 = sym.imp.__fprintf_chk
0x00004764 addiu a3, s0, -0x7098 | a3 = s0 + -0x7098;
0x00004768 addiu a2, a2, -0x708c | a2 += -0x708c;
0x0000476c addiu a1, zero, 1 | a1 = 1;
0x00004770 jalr t9 | t9 ();
0x00004774 lw gp, 0x18(sp) | gp = *(var_18h);
0x00004778 lw t9, -0x7e2c(gp) | t9 = sym.imp.exit;
0x0000477c addiu a0, zero, 1 | a0 = 1;
0x00004780 jalr t9 | t9 ();
| }
0x00004784 lw t9, -0x7df0(gp) | t9 = sym.imp.__stack_chk_fail;
0x00004788 jalr t9 | t9 ();
0x0000478c nop |
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/cifsiostat @ 0x3d08 */
| #include <stdint.h>
|
; (fcn) sym.read_uptime () | void read_uptime () {
0x00003d08 lui gp, 2 |
0x00003d0c addiu gp, gp, -0x1c58 |
0x00003d10 addu gp, gp, t9 | gp += t9;
0x00003d14 addiu sp, sp, -0xc0 |
0x00003d18 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00003d1c sw s1, 0xac(sp) | *(var_ach) = s1;
0x00003d20 lw s1, -0x7ddc(gp) | s1 = *((gp - 8055));
0x00003d24 sw s2, 0xb0(sp) | *(var_b0h) = s2;
0x00003d28 lw s2, -0x7fd8(gp) | s2 = *((gp - 8182));
0x00003d2c lw v0, (s1) | v0 = *(s1);
0x00003d30 lw t9, -0x7dd0(gp) | t9 = sym.imp.fopen;
0x00003d34 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00003d38 sw s3, 0xb4(sp) | *(var_b4h) = s3;
0x00003d3c sw ra, 0xbc(sp) | *(var_bch) = ra;
0x00003d40 sw s4, 0xb8(sp) | *(var_b8h) = s4;
0x00003d44 sw s0, 0xa8(sp) | *(var_a8h) = s0;
0x00003d48 move s3, a0 | s3 = a0;
0x00003d4c addiu a1, a1, -0x6d98 | a1 += -0x6d98;
0x00003d50 addiu a0, s2, -0x6f28 | a0 = s2 + -0x6f28;
0x00003d54 sw v0, 0xa4(sp) | *(var_a4h) = v0;
0x00003d58 jalr t9 | t9 ();
0x00003d5c nop |
0x00003d60 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 != 0) {
0x00003d64 beqz v0, 0x3dc4 |
0x00003d68 lw t9, -0x7de0(gp) | t9 = sym.imp.fgets;
0x00003d6c addiu s4, sp, 0x24 | s4 = sp + 0x24;
0x00003d70 move a2, v0 | a2 = v0;
0x00003d74 addiu a1, zero, 0x80 | a1 = 0x80;
0x00003d78 move a0, s4 | a0 = s4;
0x00003d7c move s0, v0 | s0 = v0;
0x00003d80 jalr t9 | t9 ();
0x00003d84 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 != 0) {
0x00003d88 beqz v0, 0x3db4 |
0x00003d8c lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00003d90 lw t9, -0x7e48(gp) | t9 = sym.imp.__isoc99_sscanf;
0x00003d94 addiu a3, sp, 0x20 | a3 = sp + 0x20;
0x00003d98 addiu a2, sp, 0x1c | a2 = sp + 0x1c;
0x00003d9c addiu a1, a1, -0x6f18 | a1 += -0x6f18;
0x00003da0 move a0, s4 | a0 = s4;
0x00003da4 jalr t9 | t9 ();
0x00003da8 addiu v1, zero, 2 | v1 = 2;
0x00003dac lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == v1) {
0x00003db0 beq v0, v1, 0x3df4 | goto label_0;
| }
| }
0x00003db4 lw t9, -0x7e80(gp) | t9 = sym.imp.fclose;
0x00003db8 move a0, s0 | a0 = s0;
0x00003dbc jalr t9 | t9 ();
0x00003dc0 lw gp, 0x10(sp) | gp = *(var_10h);
| }
0x00003dc4 lw v0, -0x7dd4(gp) | v0 = *((gp - 8053));
0x00003dc8 lw a2, -0x7fd8(gp) | a2 = *((gp - 8182));
0x00003dcc lw t9, -0x7e88(gp) | t9 = sym.imp.__fprintf_chk
0x00003dd0 lw a0, (v0) | a0 = *(v0);
0x00003dd4 addiu a3, s2, -0x6f28 | a3 = s2 + -0x6f28;
0x00003dd8 addiu a2, a2, -0x6f10 | a2 += -0x6f10;
0x00003ddc addiu a1, zero, 1 | a1 = 1;
0x00003de0 jalr t9 | t9 ();
0x00003de4 lw gp, 0x10(sp) | gp = *(var_10h);
0x00003de8 lw t9, -0x7e2c(gp) | t9 = sym.imp.exit;
0x00003dec addiu a0, zero, 2 | a0 = 2;
0x00003df0 jalr t9 | t9 ();
| label_0:
0x00003df4 lw v0, 0x20(sp) | v0 = *(var_20h);
0x00003df8 move v1, zero | v1 = 0;
0x00003dfc mtlo v0 | __asm ("mtlo v0");
0x00003e00 lw a1, 0x1c(sp) | a1 = *(var_1ch);
0x00003e04 mthi v1 | __asm ("mthi v1");
0x00003e08 addiu a0, zero, 0x64 | a0 = 0x64;
0x00003e0c maddu a1, a0 | __asm ("maddu a1, a0");
0x00003e10 mfhi v1 | __asm ("mfhi v1");
0x00003e14 mflo v0 | __asm ("mflo v0");
0x00003e18 lw t9, -0x7e80(gp) | t9 = sym.imp.fclose;
0x00003e1c move a0, s0 | a0 = s0;
0x00003e20 sw v1, 4(s3) | *((s3 + 1)) = v1;
0x00003e24 sw v0, (s3) | *(s3) = v0;
0x00003e28 jalr t9 | t9 ();
0x00003e2c lw v1, 0xa4(sp) | v1 = *(var_a4h);
0x00003e30 lw v0, (s1) | v0 = *(s1);
0x00003e34 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v1 == v0) {
0x00003e38 bne v1, v0, 0x3e5c |
0x00003e3c lw ra, 0xbc(sp) | ra = *(var_bch);
0x00003e40 lw s4, 0xb8(sp) | s4 = *(var_b8h);
0x00003e44 lw s3, 0xb4(sp) | s3 = *(var_b4h);
0x00003e48 lw s2, 0xb0(sp) | s2 = *(var_b0h);
0x00003e4c lw s1, 0xac(sp) | s1 = *(var_ach);
0x00003e50 lw s0, 0xa8(sp) | s0 = *(var_a8h);
0x00003e54 addiu sp, sp, 0xc0 |
0x00003e58 jr ra | return v1;
| }
0x00003e5c lw t9, -0x7df0(gp) | t9 = sym.imp.__stack_chk_fail;
0x00003e60 jalr t9 | t9 ();
0x00003e64 nop |
0x00003e68 lui gp, 2 |
0x00003e6c addiu gp, gp, -0x1db8 |
0x00003e70 addu gp, gp, t9 | gp += t9;
0x00003e74 addiu sp, sp, -0x30 |
0x00003e78 lw v0, 0x28(a1) | v0 = *((a1 + 10));
0x00003e7c sw s1, 0x1c(sp) | *(var_1ch_2) = s1;
0x00003e80 move s1, a0 | s1 = a0;
0x00003e84 lw a0, 0x28(a0) | a0 = *((a0 + 10));
0x00003e88 lw t9, -0x7f40(gp) | t9 = *(gp);
0x00003e8c sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x00003e90 sw gp, 0x10(sp) | *(var_10h_2) = gp;
0x00003e94 sw s4, 0x28(sp) | *(var_28h) = s4;
0x00003e98 sw s3, 0x24(sp) | *(var_24h) = s3;
0x00003e9c sw s2, 0x20(sp) | *(var_20h_2) = s2;
0x00003ea0 sw s0, 0x18(sp) | *(var_18h) = s0;
0x00003ea4 subu a0, a0, v0 | __asm ("subu a0, a0, v0");
0x00003ea8 move s2, a2 | s2 = a2;
0x00003eac move s3, a3 | s3 = a3;
0x00003eb0 move s0, a1 | s0 = a1;
0x00003eb4 bal 0x8570 | fcn_00008570 ();
0x00003eb8 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00003ebc move a0, s2 | a0 = s2;
0x00003ec0 move a1, s3 | a1 = s3;
0x00003ec4 lw t9, -0x7fb4(gp) | t9 = *(gp);
0x00003ec8 move s2, v0 | s2 = v0;
0x00003ecc move s3, v1 | s3 = v1;
0x00003ed0 bal 0x8610 | fcn_00008610 ();
0x00003ed4 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00003ed8 move a2, v0 | a2 = v0;
0x00003edc move a3, v1 | a3 = v1;
0x00003ee0 lw t9, -0x7fb0(gp) | t9 = *(gp);
0x00003ee4 move a0, s2 | a0 = s2;
0x00003ee8 move a1, s3 | a1 = s3;
0x00003eec bal 0x7490 | fcn_00007490 ();
0x00003ef0 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00003ef4 lw s4, 0x40(sp) | s4 = *(var_10h);
0x00003ef8 move a1, v1 | a1 = v1;
0x00003efc lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00003f00 lw t9, -0x7fac(gp) | t9 = *(gp);
0x00003f04 lw a2, -0x70a0(a0) | a2 = *((a0 - 7208));
0x00003f08 lw a3, -0x709c(a0) | a3 = *((a0 - 7207));
0x00003f0c move a0, v0 | a0 = v0;
0x00003f10 bal 0x7ef0 | fcn_00007ef0 ();
0x00003f14 lw a1, (s1) | a1 = *(s1);
0x00003f18 lw a0, (s0) | a0 = *(s0);
0x00003f1c lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00003f20 sw v0, (s4) | *(s4) = v0;
0x00003f24 sw v1, 4(s4) | *((s4 + 1)) = v1;
0x00003f28 lw v0, 4(s1) | v0 = *((s1 + 1));
0x00003f2c lw v1, 4(s0) | v1 = *((s0 + 1));
| if (a1 == a0) {
0x00003f30 beq a1, a0, 0x402c | goto label_1;
| }
0x00003f34 subu a0, a1, a0 | __asm ("subu a0, a1, a0");
| do {
0x00003f38 lw t9, -0x7fb4(gp) | t9 = *(gp);
0x00003f3c sltu a1, a1, a0 | a1 = (a1 < a0) ? 1 : 0;
0x00003f40 subu v0, v0, v1 | __asm ("subu v0, v0, v1");
0x00003f44 subu a1, v0, a1 | __asm ("subu a1, v0, a1");
0x00003f48 bal 0x8610 | fcn_00008610 ();
0x00003f4c lw a1, 0x20(s0) | a1 = *((s0 + 8));
0x00003f50 lw a0, 0x20(s1) | a0 = *((s1 + 8));
0x00003f54 lw a2, 0x24(s1) | a2 = *((s1 + 9));
0x00003f58 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00003f5c subu a0, a0, a1 | __asm ("subu a0, a0, a1");
0x00003f60 lw a1, 0x24(s0) | a1 = *((s0 + 9));
0x00003f64 lw a3, 0x38(s1) | a3 = *((s1 + 14));
0x00003f68 addu a0, a0, a2 | a0 += a2;
0x00003f6c subu a1, a0, a1 | __asm ("subu a1, a0, a1");
0x00003f70 lw a2, 0x38(s0) | a2 = *((s0 + 14));
0x00003f74 addu a0, a1, a3 | a0 = a1 + a3;
0x00003f78 lw t9, -0x7f40(gp) | t9 = *(gp);
0x00003f7c subu a0, a0, a2 | __asm ("subu a0, a0, a2");
0x00003f80 move s2, v0 | s2 = v0;
0x00003f84 move s3, v1 | s3 = v1;
0x00003f88 bal 0x8570 | fcn_00008570 ();
0x00003f8c lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00003f90 move a2, s2 | a2 = s2;
0x00003f94 move a3, s3 | a3 = s3;
0x00003f98 lw t9, -0x7fb0(gp) | t9 = *(gp);
0x00003f9c move a0, v0 | a0 = v0;
0x00003fa0 move a1, v1 | a1 = v1;
0x00003fa4 bal 0x7490 | fcn_00007490 ();
0x00003fa8 lw a1, 8(s0) | a1 = *((s0 + 2));
0x00003fac lw a0, 8(s1) | a0 = *((s1 + 2));
0x00003fb0 lw a2, 0x10(s1) | a2 = *((s1 + 4));
0x00003fb4 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00003fb8 subu a0, a0, a1 | __asm ("subu a0, a0, a1");
0x00003fbc lw a1, 0x10(s0) | a1 = *((s0 + 4));
0x00003fc0 lw a3, 0x18(s1) | a3 = *((s1 + 6));
0x00003fc4 addu a0, a0, a2 | a0 += a2;
0x00003fc8 subu a1, a0, a1 | __asm ("subu a1, a0, a1");
0x00003fcc lw a2, 0x18(s0) | a2 = *((s0 + 6));
0x00003fd0 addu a0, a1, a3 | a0 = a1 + a3;
0x00003fd4 lw t9, -0x7f40(gp) | t9 = *(gp);
0x00003fd8 subu a0, a0, a2 | __asm ("subu a0, a0, a2");
0x00003fdc sw v0, 8(s4) | *((s4 + 2)) = v0;
0x00003fe0 sw v1, 0xc(s4) | *((s4 + 3)) = v1;
0x00003fe4 bal 0x8570 | fcn_00008570 ();
0x00003fe8 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00003fec move a2, s2 | a2 = s2;
0x00003ff0 move a3, s3 | a3 = s3;
0x00003ff4 lw t9, -0x7fb0(gp) | t9 = *(gp);
0x00003ff8 move a0, v0 | a0 = v0;
0x00003ffc move a1, v1 | a1 = v1;
0x00004000 bal 0x7490 | fcn_00007490 ();
0x00004004 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00004008 sw v0, 0x10(s4) | *((s4 + 4)) = v0;
0x0000400c sw v1, 0x14(s4) | *((s4 + 5)) = v1;
0x00004010 lw s3, 0x24(sp) | s3 = *(var_24h);
0x00004014 lw s4, 0x28(sp) | s4 = *(var_28h);
0x00004018 lw s2, 0x20(sp) | s2 = *(var_20h_2);
0x0000401c lw s1, 0x1c(sp) | s1 = *(var_1ch_2);
0x00004020 lw s0, 0x18(sp) | s0 = *(var_18h);
0x00004024 addiu sp, sp, 0x30 |
0x00004028 jr ra | return v1;
| label_1:
0x0000402c subu a0, a1, a0 | __asm ("subu a0, a1, a0");
0x00004030 bnel v0, v1, 0x3f38 |
| } while (v0 == v1);
0x00004034 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00004038 move v0, zero | v0 = 0;
0x0000403c move v1, zero | v1 = 0;
0x00004040 sw zero, 8(s4) | *((s4 + 2)) = 0;
0x00004044 sw zero, 0xc(s4) | *((s4 + 3)) = 0;
0x00004048 sw v0, 0x10(s4) | *((s4 + 4)) = v0;
0x0000404c sw v1, 0x14(s4) | *((s4 + 5)) = v1;
0x00004050 lw s3, 0x24(sp) | s3 = *(var_24h);
0x00004054 lw s4, 0x28(sp) | s4 = *(var_28h);
0x00004058 lw s2, 0x20(sp) | s2 = *(var_20h_2);
0x0000405c lw s1, 0x1c(sp) | s1 = *(var_1ch_2);
0x00004060 lw s0, 0x18(sp) | s0 = *(var_18h);
0x00004064 addiu sp, sp, 0x30 |
0x00004068 jr ra | return v1;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/cifsiostat @ 0x1e0c */
| #include <stdint.h>
|
; (fcn) sym.usage () | void usage () {
0x00001e0c lui gp, 2 |
0x00001e10 addiu gp, gp, 0x2a4 |
0x00001e14 addu gp, gp, t9 | gp += t9;
0x00001e18 addiu sp, sp, -0x20 |
0x00001e1c lw a2, -0x7fd8(gp) | a2 = *((gp - 8182));
0x00001e20 sw s0, 0x18(sp) | *(var_18h) = s0;
0x00001e24 lw s0, -0x7dd4(gp) | s0 = *((gp - 8053));
0x00001e28 lw t9, -0x7e88(gp) | t9 = sym.imp.__fprintf_chk
0x00001e2c move a3, a0 | a3 = a0;
0x00001e30 lw a0, (s0) | a0 = *(s0);
0x00001e34 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00001e38 sw ra, 0x1c(sp) | *(var_1ch) = ra;
0x00001e3c addiu a2, a2, -0x737c | a2 += -0x737c;
0x00001e40 addiu a1, zero, 1 | a1 = 1;
0x00001e44 jalr t9 | t9 ();
0x00001e48 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001e4c lw a3, (s0) | a3 = *(s0);
0x00001e50 addiu a2, zero, 0x52 | a2 = 0x52;
0x00001e54 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00001e58 lw t9, -0x7e10(gp) | t9 = sym.imp.fwrite;
0x00001e5c addiu a0, a0, -0x7348 | a0 += -0x7348;
0x00001e60 addiu a1, zero, 1 | a1 = 1;
0x00001e64 jalr t9 | t9 ();
0x00001e68 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001e6c lw t9, -0x7e2c(gp) | t9 = sym.imp.exit;
0x00001e70 addiu a0, zero, 1 | a0 = 1;
0x00001e74 jalr t9 | return t9 ();
| }
[*] Function fprintf used 4 times cifsiostat