[*] Binary protection state of udevadm
Full RELRO Canary found NX disabled PIE enabled RPATH No RUNPATH No Symbols
[*] Function strcat tear down of udevadm
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/udevadm @ 0xacc74 */
| #include <stdint.h>
|
; (fcn) sym.get_user_creds () | void get_user_creds () {
0x000acc74 lui gp, 5 |
0x000acc78 addiu gp, gp, 0x260c |
0x000acc7c addu gp, gp, t9 | gp += t9;
0x000acc80 addiu sp, sp, -0x78 |
0x000acc84 sw s3, 0x5c(sp) | *(var_5ch) = s3;
0x000acc88 lw s3, -0x6de8(gp) | s3 = *((gp - 7034));
0x000acc8c sw s5, 0x64(sp) | *(var_64h) = s5;
0x000acc90 sw gp, 0x18(sp) | *(var_18h) = gp;
0x000acc94 sw ra, 0x74(sp) | *(var_74h) = ra;
0x000acc98 sw fp, 0x70(sp) | *(var_70h) = fp;
0x000acc9c sw s7, 0x6c(sp) | *(var_6ch) = s7;
0x000acca0 sw s6, 0x68(sp) | *(var_68h) = s6;
0x000acca4 sw s4, 0x60(sp) | *(var_60h) = s4;
0x000acca8 sw s2, 0x58(sp) | *(var_58h) = s2;
0x000accac sw s1, 0x54(sp) | *(var_54h) = s1;
0x000accb0 sw s0, 0x50(sp) | *(var_50h) = s0;
0x000accb4 lw v0, (s3) | v0 = *(s3);
0x000accb8 lw s5, 0x88(sp) | s5 = *(arg_88h);
0x000accbc sw v0, 0x4c(sp) | *(var_4ch) = v0;
0x000accc0 addiu v0, zero, -1 | v0 = -1;
0x000accc4 sw v0, 0x24(sp) | *(var_24h) = v0;
| if (a0 == 0) {
0x000accc8 beqz a0, 0xacfd4 | goto label_11;
| }
0x000acccc move s0, a0 | s0 = a0;
0x000accd0 lw a0, (a0) | a0 = *(a0);
0x000accd4 lw v0, 0x8c(sp) | v0 = *(arg_8ch);
| if (a0 == 0) {
0x000accd8 beqz a0, 0xacffc | goto label_12;
| }
0x000accdc move s7, a1 | s7 = a1;
0x000acce0 andi fp, v0, 1 | fp = v0 & 1;
0x000acce4 move s6, a2 | s6 = a2;
0x000acce8 move s4, a3 | s4 = a3;
| if (fp == 0) {
0x000accec beqz fp, 0xace6c | goto label_13;
| }
| if (a3 == 0) {
0x000accf0 beqz a3, 0xace64 | goto label_14;
| }
0x000accf4 nop |
| label_3:
0x000accf8 lw t9, -0x7bd4(gp) | t9 = sym.parse_uid;
| label_0:
0x000accfc addiu a1, sp, 0x24 | a1 = sp + 0x24;
0x000acd00 bal 0xac58c | sym_parse_uid ();
0x000acd04 lw gp, 0x18(sp) | gp = *(var_18h);
0x000acd08 lw t9, -0x6fc8(gp) | t9 = sym.imp.__errno_location;
0x000acd0c move s2, v0 | s2 = v0;
0x000acd10 jalr t9 | t9 ();
0x000acd14 move s1, v0 | s1 = v0;
0x000acd18 lw gp, 0x18(sp) | gp = *(var_18h);
| if (s2 < 0) {
0x000acd1c bltz s2, 0xacdc0 | goto label_15;
| }
0x000acd20 lw t9, -0x6d80(gp) | t9 = sym.imp.getpwuid;
0x000acd24 lw a0, 0x24(sp) | a0 = *(var_24h);
0x000acd28 sw zero, (v0) | *(v0) = 0;
0x000acd2c jalr t9 | t9 ();
0x000acd30 move s2, v0 | s2 = v0;
0x000acd34 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x000acd38 beqz v0, 0xacf98 | goto label_16;
| }
0x000acd3c lw v0, (v0) | v0 = *(v0);
0x000acd40 sw v0, (s0) | *(s0) = v0;
| do {
0x000acd44 lw t9, -0x7ce8(gp) | t9 = sym.uid_is_valid;
| if (s7 != 0) {
0x000acd48 beqz s7, 0xacd64 |
0x000acd4c lw a0, 8(s2) | a0 = *((s2 + 2));
0x000acd50 bal 0xac570 | sym_uid_is_valid ();
0x000acd54 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x000acd58 beqz v0, 0xad058 | goto label_17;
| }
0x000acd5c lw v0, 8(s2) | v0 = *((s2 + 2));
0x000acd60 sw v0, (s7) | *(s7) = v0;
| }
0x000acd64 lw t9, -0x7ce8(gp) | t9 = sym.uid_is_valid;
| if (s6 != 0) {
0x000acd68 beqz s6, 0xacd84 |
0x000acd6c lw a0, 0xc(s2) | a0 = *((s2 + 3));
0x000acd70 bal 0xac570 | sym_uid_is_valid ();
0x000acd74 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x000acd78 beqz v0, 0xad058 | goto label_17;
| }
0x000acd7c lw v0, 0xc(s2) | v0 = *((s2 + 3));
0x000acd80 sw v0, (s6) | *(s6) = v0;
| }
0x000acd84 lw v0, 0x8c(sp) | v0 = *(arg_8ch);
| if (s4 != 0) {
0x000acd88 beqz s4, 0xacd9c |
0x000acd8c andi v0, v0, 4 | v0 &= 4;
0x000acd90 lw s0, 0x14(s2) | s0 = *((s2 + 5));
| if (v0 != 0) {
0x000acd94 bnez v0, 0xaceb4 | goto label_18;
| }
| label_10:
0x000acd98 sw s0, (s4) | *(s4) = s0;
| }
| if (s5 == 0) {
0x000acd9c beql s5, zero, 0xace24 | goto label_2;
| }
0x000acda0 move s2, zero | s2 = 0;
0x000acda4 lw v0, 0x8c(sp) | v0 = *(arg_8ch);
0x000acda8 andi s1, v0, 4 | s1 = v0 & 4;
0x000acdac lw s0, 0x18(s2) | s0 = *((s2 + 6));
| if (s1 != 0) {
0x000acdb0 bnez s1, 0xaced4 | goto label_19;
| }
| label_6:
0x000acdb4 sw s0, (s5) | *(s5) = s0;
| label_5:
0x000acdb8 move s2, zero | s2 = 0;
0x000acdbc b 0xace24 | goto label_2;
| label_15:
0x000acdc0 sw zero, (v0) | *(v0) = 0;
0x000acdc4 lw t9, -0x6d40(gp) | t9 = sym.imp.getpwnam;
0x000acdc8 lw a0, (s0) | a0 = *(s0);
0x000acdcc jalr t9 | t9 ();
0x000acdd0 move s2, v0 | s2 = v0;
0x000acdd4 lw gp, 0x18(sp) | gp = *(var_18h);
0x000acdd8 bnez v0, 0xacd44 |
| } while (v0 != 0);
0x000acddc lw s2, (s1) | s2 = *(s1);
| label_8:
0x000acde0 negu s2, s2 | __asm ("negu s2, s2");
| if (s2 <= 0) {
0x000acde4 bgtz s2, 0xacdec |
0x000acde8 addiu s2, zero, -3 | s2 = -3;
| }
0x000acdec lw t9, -0x7fd4(gp) | t9 = *(gp);
| if (fp != 0) {
0x000acdf0 beqz fp, 0xace24 |
0x000acdf4 lw v0, 0x8c(sp) | v0 = *(arg_8ch);
0x000acdf8 sw s5, 0x10(sp) | *(var_10h) = s5;
0x000acdfc sw v0, 0x14(sp) | *(var_14h) = v0;
0x000ace00 move a3, s4 | a3 = s4;
0x000ace04 move a2, s6 | a2 = s6;
0x000ace08 move a1, s7 | a1 = s7;
| /* fcn.000acaac */
0x000ace0c addiu t9, t9, -0x3554 | t9 += -0x3554;
0x000ace10 move a0, s0 | a0 = s0;
0x000ace14 bal 0xacaac | fcn_000acaac ();
0x000ace18 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x000ace1c bltz v0, 0xace24 | goto label_2;
| }
| label_1:
0x000ace20 move s2, zero | s2 = 0;
| }
| label_2:
0x000ace24 lw a0, 0x4c(sp) | a0 = *(var_4ch);
0x000ace28 lw v1, (s3) | v1 = *(s3);
0x000ace2c move v0, s2 | v0 = s2;
| if (a0 != v1) {
0x000ace30 bne a0, v1, 0xad060 | goto label_20;
| }
0x000ace34 lw ra, 0x74(sp) | ra = *(var_74h);
0x000ace38 lw fp, 0x70(sp) | fp = *(var_70h);
0x000ace3c lw s7, 0x6c(sp) | s7 = *(var_6ch);
0x000ace40 lw s6, 0x68(sp) | s6 = *(var_68h);
0x000ace44 lw s5, 0x64(sp) | s5 = *(var_64h);
0x000ace48 lw s4, 0x60(sp) | s4 = *(var_60h);
0x000ace4c lw s3, 0x5c(sp) | s3 = *(var_5ch);
0x000ace50 lw s2, 0x58(sp) | s2 = *(var_58h);
0x000ace54 lw s1, 0x54(sp) | s1 = *(var_54h);
0x000ace58 lw s0, 0x50(sp) | s0 = *(var_50h);
0x000ace5c addiu sp, sp, 0x78 |
0x000ace60 jr ra | return v0;
| label_14:
0x000ace64 lw t9, -0x7bd4(gp) | t9 = sym.parse_uid;
| if (s5 != 0) {
0x000ace68 bnez s5, 0xaccfc | goto label_0;
| }
| label_13:
0x000ace6c lw t9, -0x7fd4(gp) | t9 = *(gp);
0x000ace70 lw v0, 0x8c(sp) | v0 = *(arg_8ch);
0x000ace74 sw s5, 0x10(sp) | *(var_10h) = s5;
0x000ace78 sw v0, 0x14(sp) | *(var_14h) = v0;
0x000ace7c move a3, s4 | a3 = s4;
0x000ace80 move a2, s6 | a2 = s6;
0x000ace84 move a1, s7 | a1 = s7;
| /* fcn.000acaac */
0x000ace88 addiu t9, t9, -0x3554 | t9 += -0x3554;
0x000ace8c move a0, s0 | a0 = s0;
0x000ace90 bal 0xacaac | fcn_000acaac ();
0x000ace94 move s2, v0 | s2 = v0;
0x000ace98 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 >= 0) {
0x000ace9c bgez v0, 0xace20 | goto label_1;
| }
0x000acea0 addiu v0, zero, -0x9f | v0 = -0x9f;
| if (s2 != v0) {
0x000acea4 bne s2, v0, 0xace24 | goto label_2;
| }
0x000acea8 nop |
0x000aceac lw a0, (s0) | a0 = *(s0);
0x000aceb0 b 0xaccf8 | goto label_3;
| label_18:
0x000aceb4 lw t9, -0x73a4(gp) | t9 = sym.empty_or_root;
0x000aceb8 move a0, s0 | a0 = s0;
0x000acebc bal 0xa05cc | sym_empty_or_root ();
0x000acec0 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x000acec4 beqz v0, 0xad024 | goto label_21;
| }
| label_9:
0x000acec8 sw zero, (s4) | *(s4) = 0;
| if (s5 == 0) {
0x000acecc beqz s5, 0xace20 | goto label_1;
| }
0x000aced0 lw s0, 0x18(s2) | s0 = *((s2 + 6));
| if (s0 == 0) {
| label_19:
0x000aced4 beql s0, zero, 0xace20 | goto label_1;
| }
0x000aced8 sw zero, (s5) | *(s5) = 0;
0x000acedc lb v0, (s0) | v0 = *(s0);
0x000acee0 lw t9, -0x72b4(gp) | t9 = sym.path_is_valid;
0x000acee4 bnez v0, 0xacef0 |
| while (v0 == 0) {
| label_4:
0x000acee8 sw zero, (s5) | *(s5) = 0;
0x000aceec b 0xace20 | goto label_1;
0x000acef0 lw a0, 0x14(s2) | a0 = *((s2 + 5));
0x000acef4 bal 0xa0060 | sym_path_is_valid ();
0x000acef8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000acefc beqz v0, 0xacee8 |
| }
0x000acf00 lw t9, -0x7d20(gp) | t9 = sym.path_is_absolute;
0x000acf04 move a0, s0 | a0 = s0;
0x000acf08 bal 0x9eaf8 | sym_path_is_absolute ();
0x000acf0c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x000acf10 beqz v0, 0xacee8 | goto label_4;
| }
0x000acf14 lw v0, -0x7f8c(gp) | v0 = *((gp - 8163));
0x000acf18 addiu s1, sp, 0x28 | s1 = sp + 0x28;
| /* esilref: '/bin/nologin' */
0x000acf1c addiu v0, v0, 0x7130 | v0 += 0x7130;
0x000acf20 move v1, s1 | v1 = s1;
0x000acf24 addiu t0, v0, 0x20 | t0 = v0 + 0x20;
| do {
0x000acf28 lw a3, (v0) | a3 = *(v0);
0x000acf2c lw a2, 4(v0) | a2 = *((v0 + 1));
0x000acf30 lw a1, 8(v0) | a1 = *((v0 + 2));
0x000acf34 lw a0, 0xc(v0) | a0 = *((v0 + 3));
0x000acf38 addiu v0, v0, 0x10 | v0 += 0x10;
0x000acf3c sw a3, (v1) | *(v1) = a3;
0x000acf40 sw a2, 4(v1) | *((v1 + 1)) = a2;
0x000acf44 sw a1, 8(v1) | *((v1 + 2)) = a1;
0x000acf48 sw a0, 0xc(v1) | *((v1 + 3)) = a0;
0x000acf4c addiu v1, v1, 0x10 | v1 += 0x10;
0x000acf50 bne v0, t0, 0xacf28 |
| } while (v0 != t0);
0x000acf54 lw v0, (v0) | v0 = *(v0);
0x000acf58 sw v0, (v1) | *(v1) = v0;
0x000acf5c lw a1, 0x28(sp) | a1 = *(var_28h);
0x000acf60 lw t9, -0x76c8(gp) | t9 = sym.path_equal;
| if (a1 != 0) {
0x000acf64 bnez a1, 0xacf80 | goto label_22;
| }
0x000acf68 sw s0, (s5) | *(s5) = s0;
0x000acf6c b 0xacdb8 | goto label_5;
| label_7:
0x000acf70 addiu s1, s1, 4 | s1 += 4;
0x000acf74 lw a1, (s1) | a1 = *(s1);
0x000acf78 lw t9, -0x76c8(gp) | t9 = sym.path_equal;
| if (a1 == 0) {
0x000acf7c beqz a1, 0xacdb4 | goto label_6;
| }
| label_22:
0x000acf80 move a0, s0 | a0 = s0;
0x000acf84 bal 0x9f5d4 | sym_path_equal ();
0x000acf88 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x000acf8c beqz v0, 0xacf70 | goto label_7;
| }
0x000acf90 sw zero, (s5) | *(s5) = 0;
0x000acf94 b 0xace20 | goto label_1;
| label_16:
0x000acf98 lw v0, 0x8c(sp) | v0 = *(arg_8ch);
0x000acf9c andi v0, v0, 2 | v0 &= 2;
| if (v0 == 0) {
0x000acfa0 beql v0, zero, 0xacde0 | goto label_8;
| }
0x000acfa4 lw s2, (s1) | s2 = *(s1);
0x000acfa8 lw s2, (s1) | s2 = *(s1);
| if (s6 == 0) {
0x000acfac bnel s6, zero, 0xacde0 | goto label_8;
| }
0x000acfb0 lw s2, (s1) | s2 = *(s1);
| if (s4 == 0) {
0x000acfb4 bnel s4, zero, 0xacde0 | goto label_8;
| }
0x000acfb8 lw s2, (s1) | s2 = *(s1);
| if (s5 == 0) {
0x000acfbc bnel s5, zero, 0xacde0 | goto label_8;
| }
0x000acfc0 move s2, zero | s2 = 0;
| if (s7 == 0) {
0x000acfc4 beqz s7, 0xace20 | goto label_1;
| }
0x000acfc8 lw v0, 0x24(sp) | v0 = *(var_24h);
0x000acfcc sw v0, (s7) | *(s7) = v0;
0x000acfd0 b 0xace24 | goto label_2;
| label_11:
0x000acfd4 lw v0, -0x7fd8(gp) | v0 = *(gp);
0x000acfd8 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x000acfdc lw a1, -0x7fd8(gp) | a1 = *(gp);
| /* str.get_user_creds */
0x000acfe0 addiu v0, v0, 0x3fec | v0 += 0x3fec;
0x000acfe4 lw t9, -0x7f88(gp) | t9 = sym.log_assert_failed_realm;
0x000acfe8 sw v0, 0x10(sp) | *(var_10h) = v0;
0x000acfec addiu a3, zero, 0xaa | a3 = 0xaa;
| /* esilref: 'src/basic/user-util.c' */
0x000acff0 addiu a2, a2, 0x3e53 | a2 += 0x3e53;
| /* esilref: 'username' */
0x000acff4 addiu a1, a1, 0x3f64 | a1 += 0x3f64;
0x000acff8 bal 0x991c4 | sym_log_assert_failed_realm ();
| label_12:
0x000acffc lw v0, -0x7fd8(gp) | v0 = *(gp);
0x000ad000 lw a2, -0x7fd8(gp) | a2 = *(gp);
0x000ad004 lw a1, -0x7fd8(gp) | a1 = *(gp);
| /* str.get_user_creds */
0x000ad008 addiu v0, v0, 0x3fec | v0 += 0x3fec;
0x000ad00c lw t9, -0x7f88(gp) | t9 = sym.log_assert_failed_realm;
0x000ad010 sw v0, 0x10(sp) | *(var_10h) = v0;
0x000ad014 addiu a3, zero, 0xab | a3 = 0xab;
| /* esilref: 'src/basic/user-util.c' */
0x000ad018 addiu a2, a2, 0x3e53 | a2 += 0x3e53;
| /* str.username */
0x000ad01c addiu a1, a1, 0x3f70 | a1 += 0x3f70;
0x000ad020 bal 0x991c4 | sym_log_assert_failed_realm ();
| label_21:
0x000ad024 lw s0, 0x14(s2) | s0 = *((s2 + 5));
0x000ad028 lw t9, -0x72b4(gp) | t9 = sym.path_is_valid;
0x000ad02c move a0, s0 | a0 = s0;
0x000ad030 bal 0xa0060 | sym_path_is_valid ();
0x000ad034 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x000ad038 beqz v0, 0xacec8 | goto label_9;
| }
0x000ad03c lw t9, -0x7d20(gp) | t9 = sym.path_is_absolute;
0x000ad040 move a0, s0 | a0 = s0;
0x000ad044 bal 0x9eaf8 | sym_path_is_absolute ();
0x000ad048 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x000ad04c bnez v0, 0xacd98 | goto label_10;
| }
0x000ad050 b 0xacec8 | goto label_9;
0x000ad054 nop |
| label_17:
0x000ad058 addiu s2, zero, -0x4d | s2 = -0x4d;
0x000ad05c b 0xace24 | goto label_2;
| label_20:
0x000ad060 lw t9, -0x6e2c(gp) | t9 = sym.imp.__stack_chk_fail;
0x000ad064 jalr t9 | t9 ();
0x000ad068 nop |
| }
[*] Function strcat used 1 times udevadm