[*] Binary protection state of debug-shell-wrapper
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function printf tear down of debug-shell-wrapper
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/debug-shell-wrapper @ 0xf00 */
| #include <stdint.h>
|
; (fcn) fcn.00000f00 () | void fcn_00000f00 () {
0x00000f00 lui gp, 2 |
0x00000f04 addiu gp, gp, -0x6ef0 |
0x00000f08 addu gp, gp, t9 | gp += t9;
0x00000f0c lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00000f10 addiu sp, sp, -0x20 |
0x00000f14 lw t9, -0x7fa4(gp) | t9 = sym.imp.execl;
0x00000f18 addiu a1, a1, 0x13f8 | a1 += str._bin_login;
0x00000f1c move a0, a1 | a0 = a1;
0x00000f20 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00000f24 sw ra, 0x1c(sp) | *(var_1ch) = ra;
0x00000f28 move a2, zero | a2 = 0;
0x00000f2c jalr t9 | t9 ();
0x00000f30 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000f34 addiu a0, zero, 2 | a0 = 2;
0x00000f38 addiu a1, zero, 1 | a1 = 1;
0x00000f3c lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000f40 lw t9, -0x7fac(gp) | t9 = sym.imp.__dprintf_chk
0x00000f44 addiu a2, a2, 0x1404 | a2 += str.Failed_to_spawn_login:__m_n;
0x00000f48 jalr t9 | t9 ();
0x00000f4c lw gp, 0x10(sp) | gp = *(var_10h);
0x00000f50 lw t9, -0x7f8c(gp) | t9 = sym.imp.exit;
0x00000f54 addiu a0, zero, 1 | a0 = 1;
0x00000f58 jalr t9 | return t9 ();
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/debug-shell-wrapper @ 0xf5c */
| #include <stdint.h>
|
; (fcn) fcn.00000f5c () | void fcn_00000f5c () {
0x00000f5c lui gp, 2 |
0x00000f60 addiu gp, gp, -0x6f4c |
0x00000f64 addu gp, gp, t9 | gp += t9;
0x00000f68 addiu sp, sp, -0x88 |
0x00000f6c lw t9, -0x7f9c(gp) | t9 = sym.imp.memset;
0x00000f70 sw s6, 0x7c(sp) | *(var_7ch) = s6;
0x00000f74 lw s6, -0x7f6c(gp) | s6 = *((gp - 8155));
0x00000f78 sw gp, 0x10(sp) | *(var_10h_2) = gp;
0x00000f7c sw ra, 0x84(sp) | *(var_84h) = ra;
0x00000f80 lw v0, (s6) | v0 = *(s6);
0x00000f84 sw s5, 0x78(sp) | *(var_78h) = s5;
0x00000f88 sw s4, 0x74(sp) | *(var_74h) = s4;
0x00000f8c addiu a2, zero, 0x41 | a2 = 0x41;
0x00000f90 move a1, zero | a1 = 0;
0x00000f94 sw s7, 0x80(sp) | *(var_80h) = s7;
0x00000f98 sw s3, 0x70(sp) | *(var_70h) = s3;
0x00000f9c sw s2, 0x6c(sp) | *(var_6ch) = s2;
0x00000fa0 sw s1, 0x68(sp) | *(var_68h) = s1;
0x00000fa4 sw s0, 0x64(sp) | *(var_64h) = s0;
0x00000fa8 sw v0, 0x5c(sp) | *(var_5ch) = v0;
0x00000fac move s5, a0 | s5 = a0;
0x00000fb0 jalr t9 | t9 ();
0x00000fb4 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00000fb8 addiu s4, sp, 0x28 | s4 = sp + 0x28;
0x00000fbc move a1, s4 | a1 = s4;
0x00000fc0 lw t9, -0x7fb4(gp) | t9 = sym.imp.tcgetattr;
0x00000fc4 move a0, zero | a0 = 0;
0x00000fc8 jalr t9 | t9 ();
0x00000fcc lw gp, 0x10(sp) | gp = *(var_10h_2);
| if (v0 == 0) {
0x00000fd0 beqz v0, 0x10c0 | goto label_5;
| }
| label_2:
0x00000fd4 lw s3, -0x7fdc(gp) | s3 = *((gp - 8183));
0x00000fd8 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00000fdc move s1, zero | s1 = 0;
0x00000fe0 addiu s7, sp, 0x20 | s7 = sp + 0x20;
0x00000fe4 addiu s0, zero, 1 | s0 = 1;
0x00000fe8 addiu s3, s3, 0x1488 | s3 += 0x1488;
0x00000fec addiu s2, s2, 0x148c | s2 += 0x148c;
| do {
| label_1:
0x00000ff0 lw t9, -0x7f78(gp) | t9 = sym.imp.poll;
| label_0:
0x00000ff4 sw s0, 0x24(sp) | *(var_24h) = s0;
0x00000ff8 ori a2, zero, 0xea60 | a2 = 0xea60;
0x00000ffc addiu a1, zero, 1 | a1 = 1;
0x00001000 move a0, s7 | a0 = s7;
0x00001004 sw zero, 0x20(sp) | *(var_20h) = 0;
0x00001008 jalr t9 | t9 ();
0x0000100c lw gp, 0x10(sp) | gp = *(var_10h_2);
| if (v0 < 0) {
0x00001010 bltz v0, 0x10ec | goto label_6;
| }
0x00001014 addiu a1, sp, 0x1f | a1 = sp + 0x1f;
| if (v0 == 0) {
0x00001018 beqz v0, 0x1188 | goto label_7;
| }
0x0000101c lw t9, -0x7f60(gp) | t9 = sym.imp.read;
0x00001020 addiu a2, zero, 1 | a2 = 1;
0x00001024 move a0, zero | a0 = 0;
0x00001028 jalr t9 | t9 ();
0x0000102c lw gp, 0x10(sp) | gp = *(var_10h_2);
| if (v0 != s0) {
0x00001030 bne v0, s0, 0x1198 | goto label_8;
| }
0x00001034 lb v0, 0x1f(sp) | v0 = *(var_1fh);
0x00001038 addiu v1, zero, 0xa | v1 = 0xa;
0x0000103c addiu v1, zero, 8 | v1 = 8;
| if (v0 == v1) {
0x00001040 beq v0, v1, 0x11a8 | goto label_9;
| }
0x00001044 addiu v1, zero, 0x7f | v1 = 0x7f;
| if (v0 == v1) {
0x00001048 beq v0, v1, 0x1090 | goto label_10;
| }
0x0000104c andi v1, v0, 0xff | v1 = v0 & 0xff;
| if (v0 == v1) {
0x00001050 beq v0, v1, 0x1090 | goto label_10;
| }
0x00001054 sltiu v1, v1, 0x20 | v1 = (v1 < 0x20) ? 1 : 0;
0x00001058 sltiu v1, s1, 0x40 | v1 = (s1 < 0x40) ? 1 : 0;
0x0000105c bnez v1, 0xff0 |
| } while (v1 != 0);
0x00001060 lw t9, -0x7f78(gp) | t9 = sym.imp.poll;
| if (v1 == 0) {
0x00001064 beqz v1, 0xff4 | goto label_0;
| }
0x00001068 addu v1, s5, s1 | v1 = s5 + s1;
0x0000106c lw t9, -0x7f98(gp) | t9 = sym.imp.write;
0x00001070 sb v0, (v1) | *(v1) = v0;
0x00001074 addiu a2, zero, 1 | a2 = 1;
0x00001078 move a1, s2 | a1 = s2;
0x0000107c addiu a0, zero, 2 | a0 = 2;
0x00001080 jalr t9 | t9 ();
0x00001084 addiu s1, s1, 1 | s1++;
0x00001088 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x0000108c b 0xff0 | goto label_1;
| label_10:
0x00001090 lw t9, -0x7f78(gp) | t9 = sym.imp.poll;
| if (s1 == 0) {
0x00001094 beqz s1, 0xff4 | goto label_0;
| }
0x00001098 addiu s1, s1, -1 | s1 += -1;
0x0000109c addu v0, s5, s1 | v0 = s5 + s1;
0x000010a0 lw t9, -0x7f98(gp) | t9 = sym.imp.write;
0x000010a4 sb zero, (v0) | *(v0) = 0;
0x000010a8 addiu a2, zero, 3 | a2 = 3;
0x000010ac move a1, s3 | a1 = s3;
0x000010b0 addiu a0, zero, 2 | a0 = 2;
0x000010b4 jalr t9 | t9 ();
0x000010b8 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000010bc b 0xff0 | goto label_1;
| label_5:
0x000010c0 lw v0, 0x34(sp) | v0 = *(var_34h);
0x000010c4 addiu v1, zero, -0xb | v1 = -0xb;
0x000010c8 lw t9, -0x7f7c(gp) | t9 = sym.imp.tcsetattr;
0x000010cc and v0, v0, v1 | v0 &= v1;
0x000010d0 move a2, s4 | a2 = s4;
0x000010d4 addiu a1, zero, 0x5410 | a1 = 0x5410;
0x000010d8 move a0, zero | a0 = 0;
0x000010dc sw v0, 0x34(sp) | *(var_34h) = v0;
0x000010e0 jalr t9 | t9 ();
0x000010e4 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000010e8 b 0xfd4 | goto label_2;
| label_6:
0x000010ec lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x000010f0 lw t9, -0x7fac(gp) | t9 = sym.imp.__dprintf_chk
0x000010f4 addiu a2, a2, 0x1420 | a2 += str._nFailed_to_poll_for_input:__m_n;
| label_3:
0x000010f8 addiu a1, zero, 1 | a1 = 1;
0x000010fc addiu a0, zero, 2 | a0 = 2;
0x00001100 jalr t9 | t9 ();
0x00001104 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00001108 move s0, zero | s0 = 0;
| label_4:
0x0000110c lw t9, -0x7fb4(gp) | t9 = sym.imp.tcgetattr;
0x00001110 move a1, s4 | a1 = s4;
0x00001114 move a0, zero | a0 = 0;
0x00001118 jalr t9 | t9 ();
0x0000111c lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00001120 beqz v0, 0x1160 |
| while (1) {
0x00001124 lw a0, 0x5c(sp) | a0 = *(var_5ch);
0x00001128 lw v1, (s6) | v1 = *(s6);
0x0000112c move v0, s0 | v0 = s0;
| if (a0 != v1) {
0x00001130 bne a0, v1, 0x11cc | goto label_11;
| }
0x00001134 lw ra, 0x84(sp) | ra = *(var_84h);
0x00001138 lw s7, 0x80(sp) | s7 = *(var_80h);
0x0000113c lw s6, 0x7c(sp) | s6 = *(var_7ch);
0x00001140 lw s5, 0x78(sp) | s5 = *(var_78h);
0x00001144 lw s4, 0x74(sp) | s4 = *(var_74h);
0x00001148 lw s3, 0x70(sp) | s3 = *(var_70h);
0x0000114c lw s2, 0x6c(sp) | s2 = *(var_6ch);
0x00001150 lw s1, 0x68(sp) | s1 = *(var_68h);
0x00001154 lw s0, 0x64(sp) | s0 = *(var_64h);
0x00001158 addiu sp, sp, 0x88 |
0x0000115c jr ra | return v0;
0x00001160 lw v0, 0x34(sp) | v0 = *(var_34h);
0x00001164 lw t9, -0x7f7c(gp) | t9 = sym.imp.tcsetattr;
0x00001168 ori v0, v0, 0xa | v0 |= 0xa;
0x0000116c move a2, s4 | a2 = s4;
0x00001170 addiu a1, zero, 0x5410 | a1 = 0x5410;
0x00001174 move a0, zero | a0 = 0;
0x00001178 sw v0, 0x34(sp) | *(var_34h) = v0;
0x0000117c jalr t9 | t9 ();
0x00001180 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00001184 b 0x1124 |
| }
| label_7:
0x00001188 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x0000118c lw t9, -0x7fac(gp) | t9 = sym.imp.__dprintf_chk
0x00001190 addiu a2, a2, 0x1440 | a2 += str._nTimeout_waiting_for_input._Aborting._n;
0x00001194 b 0x10f8 | goto label_3;
| label_8:
0x00001198 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x0000119c lw t9, -0x7fac(gp) | t9 = sym.imp.__dprintf_chk
0x000011a0 addiu a2, a2, 0x1468 | a2 += str._nFailed_to_read_from_input:__m_n;
0x000011a4 b 0x10f8 | goto label_3;
| label_9:
0x000011a8 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x000011ac lw t9, -0x7f98(gp) | t9 = sym.imp.write;
0x000011b0 addiu a2, zero, 1 | a2 = 1;
0x000011b4 addiu a1, a1, 0x15d4 | a1 += 0x15d4;
0x000011b8 addiu a0, zero, 2 | a0 = 2;
0x000011bc jalr t9 | t9 ();
0x000011c0 addiu s0, zero, 1 | s0 = 1;
0x000011c4 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000011c8 b 0x110c | goto label_4;
| label_11:
0x000011cc lw t9, -0x7f70(gp) | t9 = sym.imp.__stack_chk_fail;
0x000011d0 jalr t9 | t9 ();
0x000011d4 nop |
0x000011d8 nop |
0x000011dc nop |
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/debug-shell-wrapper @ 0xaa0 */
| #include <stdint.h>
|
; (fcn) main () | int32_t main () {
| /* [13] -r-x section size 2032 named .text */
0x00000aa0 lui gp, 2 |
0x00000aa4 addiu gp, gp, -0x6a90 |
0x00000aa8 addu gp, gp, t9 | gp += t9;
0x00000aac lw v0, -0x7f6c(gp) | v0 = *((gp - 8155));
0x00000ab0 addiu sp, sp, -0xf8 |
0x00000ab4 lw v0, (v0) | v0 = *(v0);
0x00000ab8 sw s5, 0xe4(sp) | *(var_e4h) = s5;
0x00000abc sw s4, 0xe0(sp) | *(var_e0h) = s4;
0x00000ac0 sw s1, 0xd4(sp) | *(var_d4h) = s1;
0x00000ac4 lw s5, -0x7fdc(gp) | s5 = *((gp - 8183));
0x00000ac8 lw s1, -0x7fdc(gp) | s1 = *((gp - 8183));
0x00000acc lw s4, -0x7fdc(gp) | s4 = *((gp - 8183));
0x00000ad0 sw s6, 0xe8(sp) | *(var_e8h) = s6;
0x00000ad4 sw s3, 0xdc(sp) | *(var_dch) = s3;
0x00000ad8 sw s2, 0xd8(sp) | *(var_d8h) = s2;
0x00000adc lw s3, -0x7fdc(gp) | s3 = *((gp - 8183));
0x00000ae0 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00000ae4 lw s6, -0x7fdc(gp) | s6 = *((gp - 8183));
0x00000ae8 sw s7, 0xec(sp) | *(var_ech) = s7;
0x00000aec sw gp, 0x28(sp) | *(var_28h) = gp;
0x00000af0 sw ra, 0xf4(sp) | *(var_f4h) = ra;
0x00000af4 sw fp, 0xf0(sp) | *(var_f0h) = fp;
0x00000af8 sw s0, 0xd0(sp) | *(var_d0h) = s0;
0x00000afc sw v0, 0xcc(sp) | *(var_cch) = v0;
0x00000b00 addiu s7, sp, 0x38 | s7 = sp + 0x38;
0x00000b04 addiu s1, s1, 0xf5c | s1 += fcn.00000f5c;
0x00000b08 addiu s5, s5, 0x1580 | s5 += 0x1580;
0x00000b0c addiu s4, s4, 0x1584 | s4 += str.AddRootUser;
| label_1:
0x00000b10 addiu s0, zero, 0xa | s0 = 0xa;
| do {
0x00000b14 lw t9, -0x7f60(gp) | t9 = sym.imp.read;
| label_0:
0x00000b18 addiu a2, zero, 1 | a2 = 1;
0x00000b1c move a1, s7 | a1 = s7;
0x00000b20 move a0, zero | a0 = 0;
0x00000b24 jalr t9 | t9 ();
0x00000b28 addiu v1, zero, 1 | v1 = 1;
0x00000b2c lw gp, 0x28(sp) | gp = *(var_28h);
0x00000b30 bne v0, v1, 0xb14 |
| } while (v0 != v1);
0x00000b34 lb v0, 0x38(sp) | v0 = *(var_38h);
0x00000b38 lw t9, -0x7f60(gp) | t9 = sym.imp.read;
| if (v0 != s0) {
0x00000b3c bne v0, s0, 0xb18 | goto label_0;
| }
0x00000b40 lw t9, -0x7f68(gp) | t9 = sym.imp.getspnam;
0x00000b44 addiu a0, s2, 0x1490 | a0 = s2 + str.root;
0x00000b48 jalr t9 | t9 ();
0x00000b4c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00000b50 beqz v0, 0xcc0 | goto label_3;
| }
0x00000b54 lw v1, 4(v0) | v1 = *((v0 + 1));
0x00000b58 addiu a0, zero, 0x2a | a0 = 0x2a;
0x00000b5c lb v0, (v1) | v0 = *(v1);
0x00000b60 addiu a0, zero, 0x21 | a0 = 0x21;
| if (v0 == a0) {
0x00000b64 beq v0, a0, 0xb80 | goto label_4;
| }
| if (v0 == a0) {
0x00000b68 beql v0, a0, 0xb84 | goto label_5;
| }
0x00000b6c lb v0, 1(v1) | v0 = *((v1 + 1));
| label_2:
0x00000b70 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
| do {
0x00000b74 addiu t9, t9, 0xf00 | t9 += fcn.00000f00;
0x00000b78 bal 0xf00 | fcn_00000f00 ();
0x00000b7c nop |
| label_4:
0x00000b80 lb v0, 1(v1) | v0 = *((v1 + 1));
| label_5:
0x00000b84 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x00000b88 bnez v0, 0xb74 |
| } while (v0 != 0);
0x00000b8c lw t9, -0x7fac(gp) | t9 = sym.imp.__dprintf_chk
0x00000b90 addiu a2, s3, 0x14b8 | a2 = s3 + str.Set_password_for_root_account:_;
0x00000b94 addiu a1, zero, 1 | a1 = 1;
0x00000b98 addiu a0, zero, 2 | a0 = 2;
0x00000b9c addiu s0, sp, 0x44 | s0 = sp + 0x44;
0x00000ba0 jalr t9 | t9 ();
0x00000ba4 move t9, s1 | t9 = s1;
0x00000ba8 move a0, s0 | a0 = s0;
0x00000bac bal 0xf5c | fcn_00000f5c ();
0x00000bb0 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00000bb4 beqz v0, 0xb10 | goto label_1;
| }
0x00000bb8 lb v0, 0x44(sp) | v0 = *(var_44h);
0x00000bbc lw t9, -0x7fac(gp) | t9 = sym.imp.__dprintf_chk
| if (v0 == 0) {
0x00000bc0 beqz v0, 0xca4 | goto label_6;
| }
0x00000bc4 addiu a2, s6, 0x14f4 | a2 = s6 + str.Repeat_password:_;
0x00000bc8 addiu a1, zero, 1 | a1 = 1;
0x00000bcc addiu a0, zero, 2 | a0 = 2;
0x00000bd0 addiu fp, sp, 0x88 | fp = sp + 0x88;
0x00000bd4 jalr t9 | t9 ();
0x00000bd8 move t9, s1 | t9 = s1;
0x00000bdc move a0, fp | a0 = fp;
0x00000be0 bal 0xf5c | fcn_00000f5c ();
0x00000be4 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00000be8 beqz v0, 0xb10 | goto label_1;
| }
0x00000bec lw t9, -0x7f58(gp) | t9 = sym.imp.strcmp;
0x00000bf0 move a1, fp | a1 = fp;
0x00000bf4 move a0, s0 | a0 = s0;
0x00000bf8 jalr t9 | t9 ();
0x00000bfc lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00000c00 bnez v0, 0xce0 |
0x00000c04 lw t9, -0x7f84(gp) | t9 = sym.imp.sd_bus_open_system;
0x00000c08 addiu a0, sp, 0x30 | a0 = sp + 0x30;
0x00000c0c sw zero, 0x38(sp) | *(var_38h) = 0;
0x00000c10 sw zero, 0x3c(sp) | *(var_3ch) = 0;
0x00000c14 sw zero, 0x40(sp) | *(var_40h) = 0;
0x00000c18 jalr t9 | t9 ();
0x00000c1c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x00000c20 bltz v0, 0xd00 | goto label_7;
| }
0x00000c24 lw a3, -0x7fdc(gp) | a3 = *((gp - 8183));
0x00000c28 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000c2c lw t9, -0x7f74(gp) | t9 = sym.imp.sd_bus_call_method;
0x00000c30 addiu a3, a3, 0x1548 | a3 += str.com.axis.PolicyKitSystem;
0x00000c34 addiu v0, sp, 0x34 | v0 = sp + 0x34;
0x00000c38 lw a0, 0x30(sp) | a0 = *(var_30h);
0x00000c3c sw s0, 0x20(sp) | *(var_20h) = s0;
0x00000c40 sw s5, 0x1c(sp) | *(var_1ch) = s5;
0x00000c44 sw v0, 0x18(sp) | *(var_18h) = v0;
0x00000c48 sw s7, 0x14(sp) | *(var_14h) = s7;
0x00000c4c sw s4, 0x10(sp) | *(var_10h) = s4;
0x00000c50 addiu a2, a2, 0x1564 | a2 += str._com_axis_PolicyKitSystem;
0x00000c54 move a1, a3 | a1 = a3;
0x00000c58 jalr t9 | t9 ();
0x00000c5c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x00000c60 bltz v0, 0xd34 | goto label_8;
| }
0x00000c64 lw t9, -0x7fa0(gp) | t9 = sym.imp.sd_bus_message_unref;
0x00000c68 lw a0, 0x34(sp) | a0 = *(var_34h);
0x00000c6c jalr t9 | t9 ();
0x00000c70 lw gp, 0x28(sp) | gp = *(var_28h);
0x00000c74 lw t9, -0x7fa8(gp) | t9 = sym.imp.sd_bus_unref;
0x00000c78 lw a0, 0x30(sp) | a0 = *(var_30h);
0x00000c7c jalr t9 | t9 ();
0x00000c80 lw gp, 0x28(sp) | gp = *(var_28h);
0x00000c84 addiu a1, zero, 1 | a1 = 1;
0x00000c88 addiu a0, zero, 2 | a0 = 2;
0x00000c8c lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000c90 lw t9, -0x7fac(gp) | t9 = sym.imp.__dprintf_chk
0x00000c94 addiu a2, a2, 0x1590 | a2 += str.Password_for_root_has_been_set._n;
0x00000c98 jalr t9 | t9 ();
0x00000c9c lw gp, 0x28(sp) | gp = *(var_28h);
0x00000ca0 b 0xb70 | goto label_2;
| label_6:
0x00000ca4 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000ca8 addiu a1, zero, 1 | a1 = 1;
0x00000cac addiu a2, a2, 0x14d8 | a2 += str.Password_cant_be_empty._n;
0x00000cb0 addiu a0, zero, 2 | a0 = 2;
0x00000cb4 jalr t9 | t9 ();
0x00000cb8 lw gp, 0x28(sp) | gp = *(var_28h);
0x00000cbc b 0xb10 | goto label_1;
| label_3:
0x00000cc0 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000cc4 lw t9, -0x7fac(gp) | t9 = sym.imp.__dprintf_chk
0x00000cc8 addiu a2, a2, 0x1498 | a2 += str.Could_not_read__etc_shadow:__m_n;
0x00000ccc addiu a1, zero, 1 | a1 = 1;
0x00000cd0 addiu a0, zero, 2 | a0 = 2;
0x00000cd4 jalr t9 | t9 ();
0x00000cd8 lw gp, 0x28(sp) | gp = *(var_28h);
0x00000cdc b 0xb70 | goto label_2;
| }
0x00000ce0 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000ce4 lw t9, -0x7fac(gp) | t9 = sym.imp.__dprintf_chk
0x00000ce8 addiu a2, a2, 0x1508 | a2 += str.Passwords_dont_match._n;
0x00000cec addiu a1, zero, 1 | a1 = 1;
0x00000cf0 addiu a0, zero, 2 | a0 = 2;
0x00000cf4 jalr t9 | t9 ();
0x00000cf8 lw gp, 0x28(sp) | gp = *(var_28h);
0x00000cfc b 0xb10 | goto label_1;
| label_7:
0x00000d00 lw t9, -0x7f80(gp) | t9 = sym.imp.strerror;
0x00000d04 negu a0, v0 | __asm ("negu a0, v0");
0x00000d08 jalr t9 | t9 ();
0x00000d0c lw gp, 0x28(sp) | gp = *(var_28h);
0x00000d10 move a3, v0 | a3 = v0;
0x00000d14 addiu a1, zero, 1 | a1 = 1;
0x00000d18 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000d1c lw t9, -0x7fac(gp) | t9 = sym.imp.__dprintf_chk
0x00000d20 addiu a2, a2, 0x1520 | a2 += str.Failed_to_connect_to_system_bus:__s_n;
0x00000d24 addiu a0, zero, 2 | a0 = 2;
0x00000d28 jalr t9 | t9 ();
0x00000d2c lw gp, 0x28(sp) | gp = *(var_28h);
0x00000d30 b 0xb10 | goto label_1;
| label_8:
0x00000d34 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000d38 lw v0, 0x38(sp) | v0 = *(var_38h);
0x00000d3c lw a3, 0x3c(sp) | a3 = *(var_3ch);
0x00000d40 lw t9, -0x7fac(gp) | t9 = sym.imp.__dprintf_chk
0x00000d44 addiu a2, a2, 0x15b4 | a2 += str.Failed_to_add_root_user:__s___s__n;
0x00000d48 addiu a1, zero, 1 | a1 = 1;
0x00000d4c addiu a0, zero, 2 | a0 = 2;
0x00000d50 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00000d54 jalr t9 | t9 ();
0x00000d58 lw gp, 0x28(sp) | gp = *(var_28h);
0x00000d5c lw t9, -0x7f90(gp) | t9 = sym.imp.sd_bus_error_free;
0x00000d60 move a0, s7 | a0 = s7;
0x00000d64 jalr t9 | t9 ();
0x00000d68 lw gp, 0x28(sp) | gp = *(var_28h);
0x00000d6c lw t9, -0x7fa0(gp) | t9 = sym.imp.sd_bus_message_unref;
0x00000d70 lw a0, 0x34(sp) | a0 = *(var_34h);
0x00000d74 jalr t9 | t9 ();
0x00000d78 lw gp, 0x28(sp) | gp = *(var_28h);
0x00000d7c lw t9, -0x7fa8(gp) | t9 = sym.imp.sd_bus_unref;
0x00000d80 lw a0, 0x30(sp) | a0 = *(var_30h);
0x00000d84 jalr t9 | t9 ();
0x00000d88 lw gp, 0x28(sp) | gp = *(var_28h);
0x00000d8c b 0xb10 | goto label_1;
| }
[*] Function printf used 12 times debug-shell-wrapper