[*] Binary protection state of vdo-virtual-input-server
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function system tear down of vdo-virtual-input-server
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vdo-virtual-input-server @ 0x1570 */
| #include <stdint.h>
|
; (fcn) main () | int32_t main () {
0x00001570 lui gp, 2 |
0x00001574 addiu gp, gp, -0x5520 |
0x00001578 addu gp, gp, t9 | gp += t9;
0x0000157c addiu sp, sp, -0x50 |
0x00001580 lw t9, -0x7f78(gp) | t9 = sym.imp.g_option_context_new;
0x00001584 sw s1, 0x40(sp) | *(var_40h) = s1;
0x00001588 lw s1, -0x7f38(gp) | s1 = *((gp - 8142));
0x0000158c sw a0, 0x50(sp) | *(arg_50h) = a0;
0x00001590 lw a0, -0x7fd4(gp) | a0 = *((gp - 8181));
0x00001594 lw v0, (s1) | v0 = *(s1);
0x00001598 sw ra, 0x4c(sp) | *(var_4ch) = ra;
0x0000159c sw gp, 0x18(sp) | *(var_18h) = gp;
0x000015a0 sw s0, 0x3c(sp) | *(var_3ch) = s0;
0x000015a4 addiu a0, a0, 0x35b0 | a0 += 0x35b0;
0x000015a8 sw a1, 0x24(sp) | *(var_24h) = a1;
0x000015ac sw s3, 0x48(sp) | *(var_48h) = s3;
0x000015b0 sw s2, 0x44(sp) | *(var_44h) = s2;
0x000015b4 sw v0, 0x34(sp) | *(var_34h) = v0;
0x000015b8 lw s0, -0x7fdc(gp) | s0 = *((gp - 8183));
0x000015bc jalr t9 | t9 ();
0x000015c0 nop |
0x000015c4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000015c8 move a0, v0 | a0 = v0;
0x000015cc move a2, zero | a2 = 0;
0x000015d0 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x000015d4 lw t9, -0x7ecc(gp) | t9 = sym.imp.g_option_context_add_main_entries;
| /* esilref: 'quiet' */
0x000015d8 addiu a1, a1, 0x4010 | a1 += 0x4010;
0x000015dc sw v0, 0x4200(s0) | *((s0 + 4224)) = v0;
0x000015e0 jalr t9 | t9 ();
0x000015e4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000015e8 lw a0, 0x4200(s0) | a0 = *((s0 + 4224));
0x000015ec addiu a3, sp, 0x2c | a3 = sp + 0x2c;
0x000015f0 lw t9, -0x7f18(gp) | t9 = sym.imp.g_option_context_parse;
0x000015f4 addiu a2, sp, 0x24 | a2 = sp + 0x24;
0x000015f8 addiu a1, sp, 0x50 | a1 = sp + 0x50;
0x000015fc sw zero, 0x2c(sp) | *(var_2ch) = 0;
0x00001600 jalr t9 | t9 ();
0x00001604 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00001608 beqz v0, 0x17f8 | goto label_0;
| }
0x0000160c lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00001610 lw v0, 0x41f4(v0) | v0 = *((v0 + 4221));
0x00001614 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
| if (v0 != 0) {
0x00001618 bnez v0, 0x1780 | goto label_1;
| }
0x0000161c lw v0, -0x7f74(gp) | v0 = *((gp - 8157));
0x00001620 lw v0, (v0) | v0 = *(v0);
| do {
0x00001624 lw v1, -0x7fdc(gp) | v1 = *((gp - 8183));
0x00001628 lw t9, -0x7ed0(gp) | t9 = sym.imp.g_main_loop_new;
0x0000162c lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00001630 move a1, zero | a1 = 0;
0x00001634 move a0, zero | a0 = 0;
0x00001638 sw v0, 0x4208(v1) | *((v1 + 4226)) = v0;
0x0000163c jalr t9 | t9 ();
0x00001640 sw v0, 0x41f8(s2) | *((s2 + 4222)) = v0;
0x00001644 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00001648 beqz v0, 0x1788 | goto label_2;
| }
0x0000164c lw a1, -0x7fd4(gp) | a1 = *((gp - 8181));
0x00001650 lw t9, -0x7e98(gp) | t9 = sym.imp.signal;
0x00001654 addiu a1, a1, 0x1ab8 | a1 += 0x1ab8;
0x00001658 addiu a0, zero, 2 | a0 = 2;
0x0000165c jalr t9 | t9 ();
0x00001660 addiu v1, zero, -1 | v1 = -1;
0x00001664 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == v1) {
0x00001668 beq v0, v1, 0x1814 | goto label_3;
| }
0x0000166c lw t9, -0x7ee0(gp) | t9 = sym.imp.vdo_system_new
0x00001670 lw s3, -0x7fdc(gp) | s3 = *((gp - 8183));
0x00001674 addiu a0, sp, 0x30 | a0 = sp + 0x30;
0x00001678 sw zero, 0x30(sp) | *(var_30h) = 0;
0x0000167c jalr t9 | t9 ();
0x00001680 lw s0, 0x30(sp) | s0 = *(var_30h);
0x00001684 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001688 sw v0, 0x41fc(s3) | *((s3 + 4223)) = v0;
| if (s0 != 0) {
0x0000168c bnez s0, 0x17a8 | goto label_4;
| }
0x00001690 lw a3, -0x7fd4(gp) | a3 = *((gp - 8181));
0x00001694 lw a2, -0x7fd4(gp) | a2 = *((gp - 8181));
0x00001698 lw t9, -0x7f50(gp) | t9 = sym.imp.g_signal_connect_data;
0x0000169c addiu a3, a3, 0x3630 | a3 += str.StreamCreated;
0x000016a0 move a1, a3 | a1 = a3;
0x000016a4 addiu a2, a2, 0x1e08 | a2 += 0x1e08;
0x000016a8 move a0, v0 | a0 = v0;
0x000016ac sw zero, 0x14(sp) | *(var_14h) = 0;
0x000016b0 sw zero, 0x10(sp) | *(var_10h) = 0;
0x000016b4 jalr t9 | t9 ();
0x000016b8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000016bc lw a0, 0x41fc(s3) | a0 = *((s3 + 4223));
0x000016c0 sw zero, 0x14(sp) | *(var_14h) = 0;
0x000016c4 lw a3, -0x7fd4(gp) | a3 = *((gp - 8181));
0x000016c8 lw a2, -0x7fd4(gp) | a2 = *((gp - 8181));
0x000016cc addiu a3, a3, 0x3640 | a3 += str.StreamClosed;
0x000016d0 lw t9, -0x7f50(gp) | t9 = sym.imp.g_signal_connect_data;
0x000016d4 addiu a2, a2, 0x1ad4 | a2 += 0x1ad4;
0x000016d8 move a1, a3 | a1 = a3;
0x000016dc sw zero, 0x10(sp) | *(var_10h) = 0;
0x000016e0 jalr t9 | t9 ();
0x000016e4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000016e8 lw a0, -0x7fd4(gp) | a0 = *((gp - 8181));
0x000016ec lw t9, -0x7fcc(gp) | t9 = *(gp);
0x000016f0 addiu a0, a0, 0x1a9c | a0 += 0x1a9c;
0x000016f4 bal 0x2f70 | fcn_00002f70 ();
0x000016f8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000016fc lw s0, -0x7fd4(gp) | s0 = *((gp - 8181));
0x00001700 lw a0, -0x7fd4(gp) | a0 = *((gp - 8181));
0x00001704 addiu s0, s0, 0x2660 | s0 += fcn.00002660;
0x00001708 move t9, s0 | t9 = s0;
0x0000170c addiu a0, a0, 0x3650 | a0 += str.vdo_virtul_input_server_started_n;
0x00001710 bal 0x2660 | fcn_00002660 ();
0x00001714 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001718 lw t9, -0x7f98(gp) | t9 = sym.imp.g_main_loop_run;
0x0000171c lw a0, 0x41f8(s2) | a0 = *((s2 + 4222));
0x00001720 jalr t9 | t9 ();
0x00001724 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001728 move t9, s0 | t9 = s0;
0x0000172c lw a0, -0x7fd4(gp) | a0 = *((gp - 8181));
0x00001730 addiu a0, a0, 0x3674 | a0 += str.vdo_virtul_input_server_stopped_n;
0x00001734 bal 0x2660 | fcn_00002660 ();
0x00001738 lw a0, 0x2c(sp) | a0 = *(var_2ch);
0x0000173c lw gp, 0x18(sp) | gp = *(var_18h);
| if (a0 != 0) {
0x00001740 beqz a0, 0x1754 |
0x00001744 lw t9, -0x7f84(gp) | t9 = sym.imp.g_error_free;
0x00001748 jalr t9 | t9 ();
0x0000174c nop |
0x00001750 lw gp, 0x18(sp) | gp = *(var_18h);
| }
0x00001754 lw a0, 0x34(sp) | a0 = *(var_34h);
0x00001758 lw v1, (s1) | v1 = *(s1);
0x0000175c move v0, zero | v0 = 0;
| if (a0 != v1) {
0x00001760 bne a0, v1, 0x17ec | goto label_5;
| }
0x00001764 lw ra, 0x4c(sp) | ra = *(var_4ch);
0x00001768 lw s3, 0x48(sp) | s3 = *(var_48h);
0x0000176c lw s2, 0x44(sp) | s2 = *(var_44h);
0x00001770 lw s1, 0x40(sp) | s1 = *(var_40h);
0x00001774 lw s0, 0x3c(sp) | s0 = *(var_3ch);
0x00001778 addiu sp, sp, 0x50 |
0x0000177c jr ra | return v0;
| label_1:
0x00001780 lw v0, 0x420c(v0) | v0 = *((v0 + 4227));
0x00001784 b 0x1624 |
| } while (1);
| label_2:
0x00001788 lw a2, -0x7fd4(gp) | a2 = *((gp - 8181));
0x0000178c lw t9, -0x7fa8(gp) | t9 = sym.imp.g_log;
0x00001790 addiu a2, a2, 0x35e4 | a2 += str.Failed_to_create_new_mainloop:__m;
0x00001794 addiu a1, zero, 4 | a1 = 4;
0x00001798 move a0, zero | a0 = 0;
0x0000179c jalr t9 | t9 ();
0x000017a0 b 0x17a0 |
0x000017a4 nop |
| label_4:
0x000017a8 lw v0, -0x7f0c(gp) | v0 = *((gp - 8131));
0x000017ac lw a2, -0x7fd4(gp) | a2 = *((gp - 8181));
0x000017b0 lw a1, -0x7fd4(gp) | a1 = *((gp - 8181));
0x000017b4 lw t9, -0x7ef8(gp) | t9 = sym.imp.g_fprintf;
0x000017b8 lw a3, 8(s0) | a3 = *((s0 + 2));
0x000017bc lw a0, (v0) | a0 = *(v0);
0x000017c0 addiu a2, a2, 0x3454 | a2 += str.vdo_virtual_input_server;
0x000017c4 addiu a1, a1, 0x3470 | a1 += str._s:__s_n;
0x000017c8 jalr t9 | t9 ();
0x000017cc lw gp, 0x18(sp) | gp = *(var_18h);
0x000017d0 lw t9, -0x7f84(gp) | t9 = sym.imp.g_error_free;
0x000017d4 move a0, s0 | a0 = s0;
0x000017d8 jalr t9 | t9 ();
0x000017dc lw gp, 0x18(sp) | gp = *(var_18h);
0x000017e0 lw t9, -0x7fa4(gp) | t9 = sym.imp.exit;
0x000017e4 addiu a0, zero, 1 | a0 = 1;
0x000017e8 jalr t9 | t9 ();
| label_5:
0x000017ec lw t9, -0x7f58(gp) | t9 = sym.imp.__stack_chk_fail;
0x000017f0 jalr t9 | t9 ();
0x000017f4 nop |
| label_0:
0x000017f8 lw v0, 0x2c(sp) | v0 = *(var_2ch);
0x000017fc lw a1, 8(v0) | a1 = *((v0 + 2));
| do {
0x00001800 lw a0, -0x7fd4(gp) | a0 = *((gp - 8181));
0x00001804 lw t9, -0x7fd4(gp) | t9 = *((gp - 8181));
0x00001808 addiu t9, t9, 0x1430 | t9 += loc._ftext;
0x0000180c addiu a0, a0, 0x3474 | a0 += 0x3474;
0x00001810 bal 0x1430 | loc_ftext ();
| label_3:
0x00001814 lw a1, -0x7fd4(gp) | a1 = *((gp - 8181));
0x00001818 addiu a1, a1, 0x3608 | a1 += str.Failed_to_install_signal_handler:__m;
0x0000181c b 0x1800 |
| } while (1);
| }
[*] Function system used 2 times vdo-virtual-input-server