[*] Binary protection state of eventbridged
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function printf tear down of eventbridged
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/eventbridged @ 0x1440 */
| #include <stdint.h>
|
; (fcn) sym.eventbridge_load_plugins () | void eventbridge_load_plugins () {
0x00001440 lui gp, 2 |
0x00001444 addiu gp, gp, -0x6430 |
0x00001448 addu gp, gp, t9 | gp += t9;
0x0000144c lw v0, -0x7f20(gp) | v0 = *((gp - 8136));
0x00001450 addiu sp, sp, -0x68 |
0x00001454 sw v0, 0x34(sp) | *(var_34h) = v0;
0x00001458 lw v0, (v0) | v0 = *(v0);
0x0000145c sw gp, 0x18(sp) | *(var_18h) = gp;
0x00001460 sw ra, 0x64(sp) | *(var_64h) = ra;
0x00001464 sw fp, 0x60(sp) | *(var_60h) = fp;
0x00001468 sw s7, 0x5c(sp) | *(var_5ch) = s7;
0x0000146c sw s6, 0x58(sp) | *(var_58h) = s6;
0x00001470 sw s5, 0x54(sp) | *(var_54h) = s5;
0x00001474 sw s4, 0x50(sp) | *(var_50h) = s4;
0x00001478 sw s3, 0x4c(sp) | *(var_4ch) = s3;
0x0000147c sw s2, 0x48(sp) | *(var_48h) = s2;
0x00001480 sw s1, 0x44(sp) | *(var_44h) = s1;
0x00001484 sw s0, 0x40(sp) | *(var_40h) = s0;
0x00001488 sw a0, 0x28(sp) | *(var_28h) = a0;
0x0000148c sw zero, 0x38(sp) | *(var_38h) = 0;
0x00001490 sw v0, 0x3c(sp) | *(var_3ch) = v0;
0x00001494 lw a2, -0x7fd8(gp) | a2 = *((gp - 8182));
| if (a0 == 0) {
0x00001498 beqz a0, 0x17f0 | goto label_3;
| }
0x0000149c move s5, a1 | s5 = a1;
| if (a1 == 0) {
0x000014a0 beqz a1, 0x1810 | goto label_4;
| }
0x000014a4 lw t9, -0x7f0c(gp) | t9 = sym.imp.g_dir_open;
0x000014a8 addiu v0, sp, 0x38 | v0 = sp + 0x38;
0x000014ac sw v0, 0x30(sp) | *(var_30h_2) = v0;
0x000014b0 move a2, v0 | a2 = v0;
0x000014b4 move a1, zero | a1 = 0;
0x000014b8 move a0, s5 | a0 = s5;
0x000014bc jalr t9 | t9 ();
0x000014c0 move s4, v0 | s4 = v0;
0x000014c4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000014c8 move s3, zero | s3 = 0;
| if (v0 == 0) {
0x000014cc beqz v0, 0x1860 | goto label_5;
| }
0x000014d0 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x000014d4 lw s6, -0x7fd8(gp) | s6 = *((gp - 8182));
0x000014d8 sw v0, 0x24(sp) | *(var_24h_2) = v0;
0x000014dc lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x000014e0 lw s7, -0x7fd8(gp) | s7 = *((gp - 8182));
0x000014e4 addiu v0, v0, 0x2038 | v0 += str.plugin_destroy;
0x000014e8 lw fp, -0x7fd8(gp) | fp = *((gp - 8182));
0x000014ec addiu s6, s6, 0x1fa8 | s6 += str._s__s;
0x000014f0 addiu s7, s7, 0x1fd8 | s7 += str.plugin_create;
0x000014f4 sw v0, 0x2c(sp) | *(var_2ch_2) = v0;
| label_1:
0x000014f8 lw t9, -0x7f88(gp) | t9 = sym.imp.g_dir_read_name;
0x000014fc move a0, s4 | a0 = s4;
0x00001500 jalr t9 | t9 ();
0x00001504 move s0, v0 | s0 = v0;
0x00001508 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x0000150c beqz v0, 0x167c | goto label_6;
| }
| do {
0x00001510 lw t9, -0x7f84(gp) | t9 = sym.imp.g_malloc0;
0x00001514 addiu a0, zero, 0x14 | a0 = 0x14;
0x00001518 jalr t9 | t9 ();
0x0000151c lw gp, 0x18(sp) | gp = *(var_18h);
0x00001520 move a2, s0 | a2 = s0;
0x00001524 move a1, s5 | a1 = s5;
0x00001528 lw t9, -0x7f40(gp) | t9 = sym.imp.g_strdup_printf
0x0000152c move a0, s6 | a0 = s6;
0x00001530 move s1, v0 | s1 = v0;
0x00001534 jalr t9 | t9 ();
0x00001538 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000153c addiu a1, zero, 2 | a1 = 2;
0x00001540 move a0, v0 | a0 = v0;
0x00001544 lw t9, -0x7f54(gp) | t9 = sym.imp.g_module_open;
0x00001548 move s2, v0 | s2 = v0;
0x0000154c jalr t9 | t9 ();
0x00001550 move s0, v0 | s0 = v0;
0x00001554 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00001558 beqz v0, 0x170c | goto label_7;
| }
0x0000155c lw t9, -0x7f98(gp) | t9 = sym.imp.g_module_symbol;
0x00001560 addiu a2, s1, 8 | a2 = s1 + 8;
0x00001564 move a1, s7 | a1 = s7;
0x00001568 move a0, v0 | a0 = v0;
0x0000156c jalr t9 | t9 ();
0x00001570 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00001574 beqz v0, 0x16d0 | goto label_8;
| }
0x00001578 lw v0, 0x24(sp) | v0 = *(var_24h_2);
0x0000157c lw t9, -0x7f98(gp) | t9 = sym.imp.g_module_symbol;
0x00001580 addiu a2, s1, 0xc | a2 = s1 + 0xc;
0x00001584 addiu a1, v0, 0x2024 | a1 = v0 + str.plugin_initialize;
0x00001588 move a0, s0 | a0 = s0;
0x0000158c jalr t9 | t9 ();
0x00001590 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00001594 beqz v0, 0x16d0 | goto label_8;
| }
0x00001598 lw t9, -0x7f98(gp) | t9 = sym.imp.g_module_symbol;
0x0000159c lw a1, 0x2c(sp) | a1 = *(var_2ch_2);
0x000015a0 addiu a2, s1, 0x10 | a2 = s1 + 0x10;
0x000015a4 move a0, s0 | a0 = s0;
0x000015a8 jalr t9 | t9 ();
0x000015ac lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x000015b0 beqz v0, 0x16d0 | goto label_8;
| }
0x000015b4 lw v0, 0x28(sp) | v0 = *(var_28h);
0x000015b8 lw t9, 8(s1) | t9 = *((s1 + 2));
0x000015bc lw a1, 0x30(sp) | a1 = *(var_30h_2);
0x000015c0 lw a0, 4(v0) | a0 = *((v0 + 1));
0x000015c4 jalr t9 | t9 ();
0x000015c8 move s3, v0 | s3 = v0;
0x000015cc lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x000015d0 bnez v0, 0x1794 | goto label_9;
| }
0x000015d4 lw v0, 0x38(sp) | v0 = *(var_38h);
0x000015d8 lw a2, -0x7fd8(gp) | a2 = *((gp - 8182));
| if (v0 == 0) {
0x000015dc beqz v0, 0x1838 | goto label_10;
| }
0x000015e0 lw v0, 8(v0) | v0 = *((v0 + 2));
0x000015e4 lw t9, -0x7f68(gp) | t9 = sym.imp.g_log;
0x000015e8 sw v0, 0x14(sp) | *(var_14h) = v0;
0x000015ec sw s2, 0x10(sp) | *(var_10h) = s2;
0x000015f0 addiu a3, fp, 0x1f88 | a3 = fp + 0x1f88;
0x000015f4 addiu a2, a2, 0x206c | a2 += str._scould_not_create_instance__s__error:__s;
0x000015f8 addiu a1, zero, 0x10 | a1 = 0x10;
0x000015fc move a0, zero | a0 = 0;
0x00001600 jalr t9 | t9 ();
0x00001604 lw gp, 0x18(sp) | gp = *(var_18h);
| label_0:
0x00001608 lw t9, -0x7f14(gp) | t9 = sym.imp.g_free;
0x0000160c move a0, s2 | a0 = s2;
0x00001610 jalr t9 | t9 ();
0x00001614 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001618 lw t9, -0x7f14(gp) | t9 = sym.imp.g_free;
0x0000161c move a0, s3 | a0 = s3;
0x00001620 jalr t9 | t9 ();
0x00001624 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001628 lw t9, -0x7f14(gp) | t9 = sym.imp.g_free;
0x0000162c move a0, s1 | a0 = s1;
0x00001630 jalr t9 | t9 ();
0x00001634 lw a0, 0x38(sp) | a0 = *(var_38h);
0x00001638 lw gp, 0x18(sp) | gp = *(var_18h);
| if (a0 != 0) {
0x0000163c beqz a0, 0x1654 |
0x00001640 lw t9, -0x7fa0(gp) | t9 = sym.imp.g_error_free;
0x00001644 jalr t9 | t9 ();
0x00001648 nop |
0x0000164c lw gp, 0x18(sp) | gp = *(var_18h);
0x00001650 sw zero, 0x38(sp) | *(var_38h) = 0;
| }
0x00001654 lw t9, -0x7f38(gp) | t9 = sym.imp.g_module_close;
0x00001658 move a0, s0 | a0 = s0;
0x0000165c jalr t9 | t9 ();
0x00001660 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001664 lw t9, -0x7f88(gp) | t9 = sym.imp.g_dir_read_name;
0x00001668 move a0, s4 | a0 = s4;
0x0000166c jalr t9 | t9 ();
0x00001670 move s0, v0 | s0 = v0;
0x00001674 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001678 bnez v0, 0x1510 |
| } while (v0 != 0);
| label_6:
0x0000167c lw t9, -0x7efc(gp) | t9 = sym.imp.g_dir_close;
0x00001680 move a0, s4 | a0 = s4;
0x00001684 jalr t9 | t9 ();
0x00001688 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000168c addiu v0, zero, 1 | v0 = 1;
| label_2:
0x00001690 lw v1, 0x34(sp) | v1 = *(var_34h);
0x00001694 lw a0, 0x3c(sp) | a0 = *(var_3ch);
0x00001698 lw v1, (v1) | v1 = *(v1);
0x0000169c lw ra, 0x64(sp) | ra = *(var_64h);
| if (a0 != v1) {
0x000016a0 bne a0, v1, 0x18b4 | goto label_11;
| }
0x000016a4 lw fp, 0x60(sp) | fp = *(var_60h);
0x000016a8 lw s7, 0x5c(sp) | s7 = *(var_5ch);
0x000016ac lw s6, 0x58(sp) | s6 = *(var_58h);
0x000016b0 lw s5, 0x54(sp) | s5 = *(var_54h);
0x000016b4 lw s4, 0x50(sp) | s4 = *(var_50h);
0x000016b8 lw s3, 0x4c(sp) | s3 = *(var_4ch);
0x000016bc lw s2, 0x48(sp) | s2 = *(var_48h);
0x000016c0 lw s1, 0x44(sp) | s1 = *(var_44h);
0x000016c4 lw s0, 0x40(sp) | s0 = *(var_40h);
0x000016c8 addiu sp, sp, 0x68 |
0x000016cc jr ra | return v0;
| label_8:
0x000016d0 lw t9, -0x7f1c(gp) | t9 = sym.imp.g_module_error;
0x000016d4 jalr t9 | t9 ();
0x000016d8 nop |
0x000016dc lw gp, 0x18(sp) | gp = *(var_18h);
0x000016e0 sw v0, 0x14(sp) | *(var_14h) = v0;
0x000016e4 sw s2, 0x10(sp) | *(var_10h) = s2;
0x000016e8 lw a2, -0x7fd8(gp) | a2 = *((gp - 8182));
0x000016ec lw t9, -0x7f68(gp) | t9 = sym.imp.g_log;
0x000016f0 addiu a3, fp, 0x1f88 | a3 = fp + 0x1f88;
0x000016f4 addiu a2, a2, 0x1fe8 | a2 += str._scould_not_find_symbol_when_loading_plugin__s__error:__s;
0x000016f8 addiu a1, zero, 0x10 | a1 = 0x10;
0x000016fc move a0, zero | a0 = 0;
0x00001700 jalr t9 | t9 ();
0x00001704 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001708 b 0x1608 | goto label_0;
| label_7:
0x0000170c lw t9, -0x7f1c(gp) | t9 = sym.imp.g_module_error;
0x00001710 jalr t9 | t9 ();
0x00001714 nop |
0x00001718 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000171c sw v0, 0x14(sp) | *(var_14h) = v0;
0x00001720 addiu a3, fp, 0x1f88 | a3 = fp + 0x1f88;
0x00001724 lw a2, -0x7fd8(gp) | a2 = *((gp - 8182));
0x00001728 lw t9, -0x7f68(gp) | t9 = sym.imp.g_log;
0x0000172c addiu a2, a2, 0x1fb0 | a2 += str._scould_not_load_plugin__s__error:__s;
0x00001730 addiu a1, zero, 0x10 | a1 = 0x10;
0x00001734 move a0, zero | a0 = 0;
0x00001738 sw s2, 0x10(sp) | *(var_10h) = s2;
0x0000173c jalr t9 | t9 ();
0x00001740 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001744 lw t9, -0x7f14(gp) | t9 = sym.imp.g_free;
0x00001748 move a0, s2 | a0 = s2;
0x0000174c jalr t9 | t9 ();
0x00001750 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001754 lw t9, -0x7f14(gp) | t9 = sym.imp.g_free;
0x00001758 move a0, s3 | a0 = s3;
0x0000175c jalr t9 | t9 ();
0x00001760 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001764 lw t9, -0x7f14(gp) | t9 = sym.imp.g_free;
0x00001768 move a0, s1 | a0 = s1;
0x0000176c jalr t9 | t9 ();
0x00001770 lw a0, 0x38(sp) | a0 = *(var_38h);
0x00001774 lw gp, 0x18(sp) | gp = *(var_18h);
| if (a0 == 0) {
0x00001778 beqz a0, 0x14f8 | goto label_1;
| }
0x0000177c lw t9, -0x7fa0(gp) | t9 = sym.imp.g_error_free;
0x00001780 jalr t9 | t9 ();
0x00001784 nop |
0x00001788 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000178c sw zero, 0x38(sp) | *(var_38h) = 0;
0x00001790 b 0x14f8 | goto label_1;
| label_9:
0x00001794 lw a2, -0x7fd8(gp) | a2 = *((gp - 8182));
0x00001798 lw t9, -0x7f68(gp) | t9 = sym.imp.g_log;
0x0000179c addiu a3, fp, 0x1f88 | a3 = fp + 0x1f88;
0x000017a0 addiu a2, a2, 0x2098 | a2 += str._sloaded_plugin_module:__s;
0x000017a4 addiu a1, zero, 0x20 | a1 = 0x20;
0x000017a8 move a0, zero | a0 = 0;
0x000017ac sw v0, (s1) | *(s1) = v0;
0x000017b0 sw s0, 4(s1) | *((s1 + 1)) = s0;
0x000017b4 sw s2, 0x10(sp) | *(var_10h) = s2;
0x000017b8 jalr t9 | t9 ();
0x000017bc lw gp, 0x18(sp) | gp = *(var_18h);
0x000017c0 lw s0, 0x28(sp) | s0 = *(var_28h);
0x000017c4 move a1, s1 | a1 = s1;
0x000017c8 lw t9, -0x7f2c(gp) | t9 = sym.imp.g_list_prepend;
0x000017cc lw a0, (s0) | a0 = *(s0);
0x000017d0 jalr t9 | t9 ();
0x000017d4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000017d8 sw v0, (s0) | *(s0) = v0;
0x000017dc lw t9, -0x7f14(gp) | t9 = sym.imp.g_free;
0x000017e0 move a0, s2 | a0 = s2;
0x000017e4 jalr t9 | t9 ();
0x000017e8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000017ec b 0x14f8 | goto label_1;
| label_3:
0x000017f0 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x000017f4 lw t9, -0x7f30(gp) | t9 = sym.imp.g_return_if_fail_warning;
0x000017f8 addiu a2, a2, 0x1f7c | a2 += str.self___NULL;
0x000017fc addiu a1, a1, 0x2138 | a1 += str.eventbridge_load_plugins;
0x00001800 jalr t9 | t9 ();
0x00001804 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001808 move v0, zero | v0 = 0;
0x0000180c b 0x1690 | goto label_2;
| label_4:
0x00001810 lw a2, -0x7fd8(gp) | a2 = *((gp - 8182));
0x00001814 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00001818 lw t9, -0x7f30(gp) | t9 = sym.imp.g_return_if_fail_warning;
0x0000181c addiu a2, a2, 0x1f8c | a2 += str.dir_path___NULL;
0x00001820 addiu a1, a1, 0x2138 | a1 += str.eventbridge_load_plugins;
0x00001824 move a0, zero | a0 = 0;
0x00001828 jalr t9 | t9 ();
0x0000182c lw gp, 0x18(sp) | gp = *(var_18h);
0x00001830 move v0, zero | v0 = 0;
0x00001834 b 0x1690 | goto label_2;
| label_10:
0x00001838 lw a2, -0x7fd8(gp) | a2 = *((gp - 8182));
0x0000183c lw t9, -0x7f68(gp) | t9 = sym.imp.g_log;
0x00001840 sw s2, 0x10(sp) | *(var_10h) = s2;
0x00001844 addiu a3, fp, 0x1f88 | a3 = fp + 0x1f88;
0x00001848 addiu a2, a2, 0x2048 | a2 += str._sclosed__s_before_it_was_created;
0x0000184c addiu a1, zero, 0x20 | a1 = 0x20;
0x00001850 move a0, zero | a0 = 0;
0x00001854 jalr t9 | t9 ();
0x00001858 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000185c b 0x1608 | goto label_0;
| label_5:
0x00001860 lw v0, 0x38(sp) | v0 = *(var_38h);
0x00001864 lw a3, -0x7fd8(gp) | a3 = *((gp - 8182));
0x00001868 lw a2, -0x7fd8(gp) | a2 = *((gp - 8182));
0x0000186c lw v0, 8(v0) | v0 = *((v0 + 2));
0x00001870 lw t9, -0x7f68(gp) | t9 = sym.imp.g_log;
0x00001874 sw v0, 0x14(sp) | *(var_14h) = v0;
0x00001878 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x0000187c addiu a3, a3, 0x1f88 | a3 += 0x1f88;
0x00001880 addiu v0, v0, 0x211c | v0 += 0x211c;
0x00001884 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00001888 addiu a2, a2, 0x1fa0 | a2 += str._s_s:_s;
0x0000188c addiu a1, zero, 0x10 | a1 = 0x10;
0x00001890 move a0, zero | a0 = 0;
0x00001894 jalr t9 | t9 ();
0x00001898 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000189c lw t9, -0x7fa0(gp) | t9 = sym.imp.g_error_free;
0x000018a0 lw a0, 0x38(sp) | a0 = *(var_38h);
0x000018a4 jalr t9 | t9 ();
0x000018a8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000018ac move v0, zero | v0 = 0;
0x000018b0 b 0x1690 | goto label_2;
| label_11:
0x000018b4 lw t9, -0x7f28(gp) | t9 = sym.imp.__stack_chk_fail;
0x000018b8 jalr t9 | t9 ();
0x000018bc nop |
| }
[*] Function printf used 2 times eventbridged