[*] Binary protection state of amixer
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of amixer
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/amixer @ 0x4bf8 */
| #include <stdint.h>
|
; (fcn) fcn.00004bf8 () | void fcn_00004bf8 () {
0x00004bf8 lui gp, 2 |
0x00004bfc addiu gp, gp, 0x1458 |
0x00004c00 addu gp, gp, t9 | gp += t9;
0x00004c04 addiu sp, sp, -0x30 |
0x00004c08 addiu v1, sp, 0x34 | v1 = sp + 0x34;
0x00004c0c sw s1, 0x24(sp) | *(var_24h) = s1;
0x00004c10 lw s1, -0x7e80(gp) | s1 = *((gp - 8096));
0x00004c14 sw s0, 0x20(sp) | *(var_20h) = s0;
0x00004c18 lw s0, -0x7e4c(gp) | s0 = *((gp - 8083));
0x00004c1c sw a3, 0x3c(sp) | *(arg_3ch) = a3;
0x00004c20 lw v0, (s1) | v0 = *(s1);
0x00004c24 sw s2, 0x28(sp) | *(var_28h) = s2;
0x00004c28 move s2, a0 | s2 = a0;
0x00004c2c lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x00004c30 lw a3, (s0) | a3 = *(s0);
0x00004c34 lw t9, -0x7e98(gp) | t9 = sym.imp.fwrite;
0x00004c38 sw v1, 0x18(sp) | *(var_18h) = v1;
0x00004c3c sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x00004c40 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00004c44 sw a1, 0x34(sp) | *(arg_34h) = a1;
0x00004c48 sw a2, 0x38(sp) | *(arg_38h) = a2;
0x00004c4c addiu a1, zero, 1 | a1 = 1;
0x00004c50 addiu a2, zero, 8 | a2 = 8;
0x00004c54 addiu a0, a0, -0x322c | a0 += -0x322c;
0x00004c58 sw v0, 0x1c(sp) | *(var_1ch) = v0;
0x00004c5c jalr t9 | t9 ();
0x00004c60 nop |
0x00004c64 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004c68 lw a3, 0x18(sp) | a3 = *(var_18h);
0x00004c6c lw a0, (s0) | a0 = *(s0);
0x00004c70 lw t9, -0x7e18(gp) | t9 = sym.imp.__vfprintf_chk
0x00004c74 move a2, s2 | a2 = s2;
0x00004c78 addiu a1, zero, 1 | a1 = 1;
0x00004c7c jalr t9 | t9 ();
0x00004c80 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004c84 lw a1, (s0) | a1 = *(s0);
0x00004c88 lw t9, -0x7ed4(gp) | t9 = sym.imp.fputc;
0x00004c8c addiu a0, zero, 0xa | a0 = 0xa;
0x00004c90 jalr t9 | t9 ();
0x00004c94 lw v1, 0x1c(sp) | v1 = *(var_1ch);
0x00004c98 lw v0, (s1) | v0 = *(s1);
0x00004c9c lw gp, 0x10(sp) | gp = *(var_10h);
| if (v1 == v0) {
0x00004ca0 bne v1, v0, 0x4cbc |
0x00004ca4 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00004ca8 lw s2, 0x28(sp) | s2 = *(var_28h);
0x00004cac lw s1, 0x24(sp) | s1 = *(var_24h);
0x00004cb0 lw s0, 0x20(sp) | s0 = *(var_20h);
0x00004cb4 addiu sp, sp, 0x30 |
0x00004cb8 jr ra | return v1;
| }
0x00004cbc lw t9, -0x7ebc(gp) | t9 = sym.imp.__stack_chk_fail;
0x00004cc0 jalr t9 | t9 ();
0x00004cc4 nop |
| }
[*] Function fprintf used 2 times amixer