[*] Binary protection state of systemd-fsck
Full RELRO Canary found NX disabled PIE enabled RPATH No RUNPATH No Symbols
[*] Function system tear down of systemd-fsck
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/systemd/systemd-fsck @ 0x14a0 */
| #include <stdint.h>
|
; (fcn) fcn.000014a0 () | void fcn_000014a0 () {
0x000014a0 lui gp, 2 |
0x000014a4 addiu gp, gp, -0x34a0 |
0x000014a8 addu gp, gp, t9 | gp += t9;
0x000014ac addiu sp, sp, -0x68 |
0x000014b0 lw t9, -0x7ec8(gp) | t9 = sym.imp.bus_connect_system_systemd
0x000014b4 sw s0, 0x54(sp) | *(var_54h) = s0;
0x000014b8 lw s0, -0x7f1c(gp) | s0 = *((gp - 8135));
0x000014bc sw gp, 0x30(sp) | *(var_30h) = gp;
0x000014c0 sw s3, 0x60(sp) | *(var_60h) = s3;
0x000014c4 sw s2, 0x5c(sp) | *(var_5ch) = s2;
0x000014c8 sw ra, 0x64(sp) | *(var_64h) = ra;
0x000014cc sw s1, 0x58(sp) | *(var_58h) = s1;
0x000014d0 lw v0, (s0) | v0 = *(s0);
0x000014d4 move s2, a0 | s2 = a0;
0x000014d8 sw v0, 0x4c(sp) | *(var_4ch) = v0;
0x000014dc addiu a0, sp, 0x3c | a0 = sp + 0x3c;
0x000014e0 sw zero, 0x40(sp) | *(var_40h) = 0;
0x000014e4 sw zero, 0x44(sp) | *(var_44h) = 0;
0x000014e8 sw zero, 0x48(sp) | *(var_48h) = 0;
0x000014ec sw zero, 0x3c(sp) | *(var_3ch) = 0;
0x000014f0 move s3, a1 | s3 = a1;
0x000014f4 jalr t9 | t9 ();
0x000014f8 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 < 0) {
0x000014fc bltz v0, 0x1610 | goto label_3;
| }
0x00001500 lw t9, -0x7f9c(gp) | t9 = sym.imp.log_get_max_level_realm;
0x00001504 move a0, zero | a0 = 0;
0x00001508 jalr t9 | t9 ();
0x0000150c slti v0, v0, 6 | v0 = (v0 < 6) ? 1 : 0;
0x00001510 lw gp, 0x30(sp) | gp = *(var_30h);
0x00001514 beqz v0, 0x15d0 |
| while (1) {
0x00001518 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x0000151c lw a3, -0x7fdc(gp) | a3 = *((gp - 8183));
0x00001520 addiu v0, v0, 0x54d0 | v0 += str.basic.target;
0x00001524 sw v0, 0x20(sp) | *(var_20h) = v0;
0x00001528 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x0000152c lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00001530 addiu v0, v0, 0x54e0 | v0 += 0x54e0;
0x00001534 sw v0, 0x1c(sp) | *(var_1ch) = v0;
0x00001538 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x0000153c lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00001540 lw t9, -0x7f88(gp) | t9 = sym.imp.sd_bus_call_method;
0x00001544 addiu v0, v0, 0x54e4 | v0 += str.StartUnitReplace;
0x00001548 addiu s1, sp, 0x40 | s1 = sp + 0x40;
0x0000154c lw a0, 0x3c(sp) | a0 = *(var_3ch);
0x00001550 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00001554 sw s3, 0x28(sp) | *(var_28h) = s3;
0x00001558 sw zero, 0x18(sp) | *(var_18h) = 0;
0x0000155c sw s1, 0x14(sp) | *(var_14h) = s1;
0x00001560 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00001564 addiu a3, a3, 0x5474 | a3 += str.org.freedesktop.systemd1.Manager
0x00001568 addiu a2, a2, 0x5498 | a2 += str._org_freedesktop_systemd1
0x0000156c addiu a1, a1, 0x54b4 | a1 += str.org.freedesktop.systemd1
0x00001570 jalr t9 | t9 ();
0x00001574 move s2, v0 | s2 = v0;
0x00001578 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 < 0) {
0x0000157c bltz v0, 0x1648 | goto label_4;
| }
| label_1:
0x00001580 lw a0, 0x3c(sp) | a0 = *(var_3ch);
0x00001584 lw t9, -0x7f3c(gp) | t9 = sym.imp.sd_bus_flush_close_unref;
| if (a0 != 0) {
0x00001588 beqz a0, 0x1598 |
0x0000158c jalr t9 | t9 ();
0x00001590 nop |
0x00001594 lw gp, 0x30(sp) | gp = *(var_30h);
| }
| label_0:
0x00001598 lw t9, -0x7f30(gp) | t9 = sym.imp.sd_bus_error_free;
0x0000159c move a0, s1 | a0 = s1;
0x000015a0 jalr t9 | t9 ();
0x000015a4 lw v1, 0x4c(sp) | v1 = *(var_4ch);
0x000015a8 lw v0, (s0) | v0 = *(s0);
0x000015ac lw gp, 0x30(sp) | gp = *(var_30h);
| if (v1 != v0) {
0x000015b0 bne v1, v0, 0x1714 | goto label_5;
| }
0x000015b4 lw ra, 0x64(sp) | ra = *(var_64h);
0x000015b8 lw s3, 0x60(sp) | s3 = *(var_60h);
0x000015bc lw s2, 0x5c(sp) | s2 = *(var_5ch);
0x000015c0 lw s1, 0x58(sp) | s1 = *(var_58h);
0x000015c4 lw s0, 0x54(sp) | s0 = *(var_54h);
0x000015c8 addiu sp, sp, 0x68 |
0x000015cc jr ra | return v0;
0x000015d0 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x000015d4 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x000015d8 addiu v0, v0, 0x5450 | v0 += str.Running_request__s_start_replace;
0x000015dc sw v0, 0x14(sp) | *(var_14h) = v0;
0x000015e0 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x000015e4 lw t9, -0x7f38(gp) | t9 = sym.imp.log_internal_realm;
0x000015e8 addiu v0, v0, 0x5a7c | v0 += str.start_target;
0x000015ec sw s2, 0x18(sp) | *(var_18h) = s2;
0x000015f0 sw v0, 0x10(sp) | *(var_10h) = v0;
0x000015f4 addiu a3, zero, 0x38 | a3 = 0x38;
0x000015f8 addiu a2, a2, 0x541b | a2 += 0x541b;
0x000015fc move a1, zero | a1 = 0;
0x00001600 addiu a0, zero, 6 | a0 = 6;
0x00001604 jalr t9 | t9 ();
0x00001608 lw gp, 0x30(sp) | gp = *(var_30h);
0x0000160c b 0x1518 |
| }
| label_3:
0x00001610 lw t9, -0x7f9c(gp) | t9 = sym.imp.log_get_max_level_realm;
0x00001614 move a0, zero | a0 = 0;
0x00001618 move s1, v0 | s1 = v0;
0x0000161c jalr t9 | t9 ();
0x00001620 slti v0, v0, 3 | v0 = (v0 < 3) ? 1 : 0;
0x00001624 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 == 0) {
0x00001628 beqz v0, 0x16d8 | goto label_6;
| }
| label_2:
0x0000162c lw a0, 0x3c(sp) | a0 = *(var_3ch);
0x00001630 lw t9, -0x7f3c(gp) | t9 = sym.imp.sd_bus_flush_close_unref;
| if (a0 == 0) {
0x00001634 beqz a0, 0x16d0 | goto label_7;
| }
0x00001638 addiu s1, sp, 0x40 | s1 = sp + 0x40;
0x0000163c jalr t9 | t9 ();
0x00001640 lw gp, 0x30(sp) | gp = *(var_30h);
0x00001644 b 0x1598 | goto label_0;
| label_4:
0x00001648 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x0000164c lw t9, -0x7f58(gp) | t9 = sym.imp.sd_bus_error_has_name;
0x00001650 addiu a1, a1, 0x54f8 | a1 += str.org.freedesktop.systemd1.NoSuchJob
0x00001654 move a0, s1 | a0 = s1;
0x00001658 jalr t9 | t9 ();
0x0000165c lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 != 0) {
0x00001660 bnez v0, 0x1580 | goto label_1;
| }
0x00001664 lw t9, -0x7f9c(gp) | t9 = sym.imp.log_get_max_level_realm;
0x00001668 move a0, zero | a0 = 0;
0x0000166c jalr t9 | t9 ();
0x00001670 slti v0, v0, 3 | v0 = (v0 < 3) ? 1 : 0;
0x00001674 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 != 0) {
0x00001678 bnez v0, 0x1580 | goto label_1;
| }
0x0000167c lw t9, -0x7ea0(gp) | t9 = sym.imp.bus_error_message;
0x00001680 move a1, s2 | a1 = s2;
0x00001684 move a0, s1 | a0 = s1;
0x00001688 jalr t9 | t9 ();
0x0000168c lw gp, 0x30(sp) | gp = *(var_30h);
0x00001690 sw v0, 0x18(sp) | *(var_18h) = v0;
0x00001694 addiu a3, zero, 0x46 | a3 = 0x46;
0x00001698 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x0000169c lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x000016a0 addiu v0, v0, 0x551c | v0 += str.Failed_to_start_unit:__s;
0x000016a4 sw v0, 0x14(sp) | *(var_14h) = v0;
0x000016a8 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x000016ac lw t9, -0x7f38(gp) | t9 = sym.imp.log_internal_realm;
0x000016b0 addiu v0, v0, 0x5a7c | v0 += str.start_target;
0x000016b4 sw v0, 0x10(sp) | *(var_10h) = v0;
0x000016b8 addiu a2, a2, 0x541b | a2 += 0x541b;
0x000016bc move a1, zero | a1 = 0;
0x000016c0 addiu a0, zero, 3 | a0 = 3;
0x000016c4 jalr t9 | t9 ();
0x000016c8 lw gp, 0x30(sp) | gp = *(var_30h);
0x000016cc b 0x1580 | goto label_1;
| label_7:
0x000016d0 addiu s1, sp, 0x40 | s1 = sp + 0x40;
0x000016d4 b 0x1598 | goto label_0;
| label_6:
0x000016d8 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x000016dc lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x000016e0 addiu v0, v0, 0x542c | v0 += str.Failed_to_get_D_Bus_connection:__m;
0x000016e4 sw v0, 0x14(sp) | *(var_14h) = v0;
0x000016e8 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x000016ec lw t9, -0x7f38(gp) | t9 = sym.imp.log_internal_realm;
0x000016f0 addiu v0, v0, 0x5a7c | v0 += str.start_target;
0x000016f4 sw v0, 0x10(sp) | *(var_10h) = v0;
0x000016f8 addiu a3, zero, 0x34 | a3 = 0x34;
0x000016fc addiu a2, a2, 0x541b | a2 += 0x541b;
0x00001700 move a1, s1 | a1 = s1;
0x00001704 addiu a0, zero, 3 | a0 = 3;
0x00001708 jalr t9 | t9 ();
0x0000170c lw gp, 0x30(sp) | gp = *(var_30h);
0x00001710 b 0x162c | goto label_2;
| label_5:
0x00001714 lw t9, -0x7f40(gp) | t9 = sym.imp.__stack_chk_fail;
0x00001718 jalr t9 | t9 ();
0x0000171c nop |
| }
[*] Function system used 8 times systemd-fsck