[*] Binary protection state of dbus-uuidgen
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function printf tear down of dbus-uuidgen
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/dbus-uuidgen @ 0xee0 */
| #include <stdint.h>
|
; (fcn) fcn.00000ee0 () | void fcn_00000ee0 () {
0x00000ee0 lui gp, 2 |
0x00000ee4 addiu gp, gp, -0x6ed0 |
0x00000ee8 addu gp, gp, t9 | gp += t9;
0x00000eec addiu sp, sp, -0x20 |
0x00000ef0 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00000ef4 sw s0, 0x18(sp) | *(var_18h) = s0;
0x00000ef8 sw ra, 0x1c(sp) | *(var_1ch) = ra;
0x00000efc move s0, a1 | s0 = a1;
| if (a0 == 0) {
0x00000f00 beqz a0, 0xf34 | goto label_0;
| }
0x00000f04 move a3, a0 | a3 = a0;
| do {
0x00000f08 lw v0, -0x7f70(gp) | v0 = *((gp - 8156));
0x00000f0c lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000f10 lw t9, -0x7fa8(gp) | t9 = sym.imp.__fprintf_chk
0x00000f14 lw a0, (v0) | a0 = *(v0);
0x00000f18 addiu a2, a2, 0x1238 | a2 += str.Usage:__s____ensure_FILENAME______get_FILENAME___n;
0x00000f1c addiu a1, zero, 1 | a1 = 1;
0x00000f20 jalr t9 | t9 ();
0x00000f24 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000f28 lw t9, -0x7f8c(gp) | t9 = sym.imp.exit;
0x00000f2c move a0, s0 | a0 = s0;
0x00000f30 jalr t9 | t9 ();
| label_0:
0x00000f34 lw a3, -0x7fdc(gp) | a3 = *((gp - 8183));
0x00000f38 addiu a3, a3, 0x1228 | a3 += str.dbus_uuidgen;
0x00000f3c b 0xf08 |
| } while (1);
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/dbus-uuidgen @ 0xa40 */
| #include <stdint.h>
|
; (fcn) main () | int32_t main () {
| /* [13] -r-x section size 1728 named .text */
0x00000a40 lui gp, 2 |
0x00000a44 addiu gp, gp, -0x6a30 |
0x00000a48 addu gp, gp, t9 | gp += t9;
0x00000a4c addiu sp, sp, -0x68 |
0x00000a50 lw v1, -0x7f74(gp) | v1 = *((gp - 8157));
0x00000a54 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00000a58 sw ra, 0x64(sp) | *(var_64h) = ra;
0x00000a5c sw fp, 0x60(sp) | *(var_60h) = fp;
0x00000a60 sw s7, 0x5c(sp) | *(var_5ch) = s7;
0x00000a64 sw s6, 0x58(sp) | *(var_58h) = s6;
0x00000a68 sw s5, 0x54(sp) | *(var_54h) = s5;
0x00000a6c sw s4, 0x50(sp) | *(var_50h) = s4;
0x00000a70 sw s3, 0x4c(sp) | *(var_4ch) = s3;
0x00000a74 sw s2, 0x48(sp) | *(var_48h) = s2;
0x00000a78 sw s1, 0x44(sp) | *(var_44h) = s1;
0x00000a7c sw s0, 0x40(sp) | *(var_40h) = s0;
0x00000a80 lw v1, (v1) | v1 = *(v1);
0x00000a84 slti v0, a0, 2 | v0 = (a0 < 2) ? 1 : 0;
0x00000a88 sw a1, 0x1c(sp) | *(var_1ch) = a1;
0x00000a8c sw v1, 0x3c(sp) | *(var_3ch) = v1;
0x00000a90 sw zero, 0x24(sp) | *(var_24h) = 0;
| if (v0 != 0) {
0x00000a94 bnez v0, 0xd20 | goto label_2;
| }
0x00000a98 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
0x00000a9c lw s4, -0x7fdc(gp) | s4 = *((gp - 8183));
0x00000aa0 move s5, a0 | s5 = a0;
0x00000aa4 lw s3, -0x7fdc(gp) | s3 = *((gp - 8183));
0x00000aa8 addiu s0, a1, 4 | s0 = a1 + 4;
0x00000aac move s6, zero | s6 = 0;
0x00000ab0 sw zero, 0x18(sp) | *(var_18h) = 0;
0x00000ab4 addiu s1, zero, 1 | s1 = 1;
0x00000ab8 addiu s2, s2, 0x1278 | s2 += str.__get;
0x00000abc addiu s7, sp, 0x24 | s7 = sp + 0x24;
0x00000ac0 addiu s4, s4, 0xf40 | s4 += fcn.00000f40;
0x00000ac4 b 0xb0c |
| while (v0 != 0) {
0x00000ac8 lw t9, -0x7fb4(gp) | t9 = sym.imp.strncmp;
0x00000acc addiu a2, zero, 5 | a2 = 5;
0x00000ad0 move a1, s2 | a1 = s2;
0x00000ad4 move a0, fp | a0 = fp;
0x00000ad8 jalr t9 | t9 ();
0x00000adc lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 != 0) {
0x00000ae0 bnez v0, 0xc3c | goto label_3;
| }
0x00000ae4 move a2, s7 | a2 = s7;
0x00000ae8 move a1, s2 | a1 = s2;
0x00000aec move a0, fp | a0 = fp;
0x00000af0 move t9, s4 | t9 = s4;
0x00000af4 addiu s1, s1, 1 | s1++;
0x00000af8 bal 0xf40 | fcn_00000f40 ();
0x00000afc addiu s6, zero, 1 | s6 = 1;
0x00000b00 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000b04 addiu s0, s0, 4 | s0 += 4;
| if (s5 == s1) {
0x00000b08 beq s5, s1, 0xb58 | goto label_4;
| }
| label_0:
0x00000b0c lw fp, (s0) | fp = *(s0);
0x00000b10 lw t9, -0x7fb4(gp) | t9 = sym.imp.strncmp;
0x00000b14 addiu a2, zero, 8 | a2 = 8;
0x00000b18 addiu a1, s3, 0x126c | a1 = s3 + str.__ensure;
0x00000b1c move a0, fp | a0 = fp;
0x00000b20 jalr t9 | t9 ();
0x00000b24 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000b28 bnez v0, 0xac8 |
| }
0x00000b2c move a2, s7 | a2 = s7;
0x00000b30 addiu a1, s3, 0x126c | a1 = s3 + str.__ensure;
0x00000b34 move t9, s4 | t9 = s4;
0x00000b38 move a0, fp | a0 = fp;
0x00000b3c bal 0xf40 | fcn_00000f40 ();
0x00000b40 addiu s1, s1, 1 | s1++;
0x00000b44 addiu v0, zero, 1 | v0 = 1;
0x00000b48 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000b4c sw v0, 0x18(sp) | *(var_18h) = v0;
0x00000b50 addiu s0, s0, 4 | s0 += 4;
| if (s5 != s1) {
0x00000b54 bne s5, s1, 0xb0c | goto label_0;
| }
| label_4:
0x00000b58 lw v0, 0x18(sp) | v0 = *(var_18h);
| if (s6 == 0) {
0x00000b5c beqz s6, 0xbec | goto label_5;
| }
0x00000b60 lw t9, -0x7f9c(gp) | t9 = sym.imp.dbus_error_init;
| if (v0 != 0) {
0x00000b64 bnez v0, 0xcd8 | goto label_6;
| }
0x00000b68 addiu s0, sp, 0x2c | s0 = sp + 0x2c;
0x00000b6c move a0, s0 | a0 = s0;
0x00000b70 jalr t9 | t9 ();
0x00000b74 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000b78 lw a0, 0x24(sp) | a0 = *(var_24h);
0x00000b7c move a3, s0 | a3 = s0;
0x00000b80 lw t9, -0x7fa0(gp) | t9 = sym.imp.dbus_internal_do_not_use_get_uuid;
0x00000b84 move a2, zero | a2 = 0;
0x00000b88 addiu a1, sp, 0x28 | a1 = sp + 0x28;
0x00000b8c jalr t9 | t9 ();
0x00000b90 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 != 0) {
0x00000b94 bnez v0, 0xcc4 | goto label_7;
| }
| do {
| label_1:
0x00000b98 lw t9, -0x7fa4(gp) | t9 = sym.imp.dbus_error_is_set;
0x00000b9c move a0, s0 | a0 = s0;
0x00000ba0 jalr t9 | t9 ();
0x00000ba4 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00000ba8 beqz v0, 0xca0 | goto label_8;
| }
0x00000bac lw v0, -0x7f70(gp) | v0 = *((gp - 8156));
0x00000bb0 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000bb4 lw t9, -0x7fa8(gp) | t9 = sym.imp.__fprintf_chk
0x00000bb8 lw a3, 0x30(sp) | a3 = *(var_30h);
0x00000bbc lw a0, (v0) | a0 = *(v0);
0x00000bc0 addiu a2, a2, 0x1394 | a2 += 0x1394;
0x00000bc4 addiu a1, zero, 1 | a1 = 1;
0x00000bc8 jalr t9 | t9 ();
0x00000bcc lw gp, 0x10(sp) | gp = *(var_10h);
0x00000bd0 lw t9, -0x7f78(gp) | t9 = sym.imp.dbus_error_free;
0x00000bd4 move a0, s0 | a0 = s0;
0x00000bd8 jalr t9 | t9 ();
0x00000bdc lw gp, 0x10(sp) | gp = *(var_10h);
0x00000be0 lw t9, -0x7f8c(gp) | t9 = sym.imp.exit;
0x00000be4 addiu a0, zero, 1 | a0 = 1;
0x00000be8 jalr t9 | t9 ();
| label_5:
0x00000bec lw t9, -0x7f9c(gp) | t9 = sym.imp.dbus_error_init;
0x00000bf0 addiu s0, sp, 0x2c | s0 = sp + 0x2c;
0x00000bf4 move a0, s0 | a0 = s0;
0x00000bf8 jalr t9 | t9 ();
0x00000bfc lw v0, 0x18(sp) | v0 = *(var_18h);
0x00000c00 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00000c04 beqz v0, 0xd34 | goto label_9;
| }
0x00000c08 lw t9, -0x7fa0(gp) | t9 = sym.imp.dbus_internal_do_not_use_get_uuid;
0x00000c0c lw a0, 0x24(sp) | a0 = *(var_24h);
0x00000c10 move a3, s0 | a3 = s0;
0x00000c14 addiu a2, zero, 1 | a2 = 1;
0x00000c18 addiu a1, sp, 0x28 | a1 = sp + 0x28;
0x00000c1c jalr t9 | t9 ();
0x00000c20 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000c24 beqz v0, 0xb98 |
| } while (v0 == 0);
| do {
0x00000c28 lw t9, -0x7fb0(gp) | t9 = sym.imp.dbus_free;
0x00000c2c lw a0, 0x28(sp) | a0 = *(var_28h);
0x00000c30 jalr t9 | t9 ();
0x00000c34 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000c38 b 0xb98 | goto label_1;
| label_3:
0x00000c3c lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00000c40 lw t9, -0x7f64(gp) | t9 = sym.imp.strcmp;
0x00000c44 addiu a1, a1, 0x1280 | a1 += str.__help;
0x00000c48 move a0, fp | a0 = fp;
0x00000c4c jalr t9 | t9 ();
0x00000c50 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00000c54 beqz v0, 0xd08 | goto label_10;
| }
0x00000c58 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00000c5c lw t9, -0x7f64(gp) | t9 = sym.imp.strcmp;
0x00000c60 addiu a1, a1, 0x1288 | a1 += str.__version;
0x00000c64 move a0, fp | a0 = fp;
0x00000c68 jalr t9 | t9 ();
0x00000c6c lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00000c70 bnez v0, 0xcac |
0x00000c74 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000c78 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00000c7c lw t9, -0x7f98(gp) | t9 = sym.imp.__printf_chk
0x00000c80 addiu a0, zero, 1 | a0 = 1;
0x00000c84 addiu a2, a2, 0x1294 | a2 += str.1.12.16;
0x00000c88 addiu a1, a1, 0x129c | a1 += str.D_Bus_UUID_Generator__s_nCopyright__C__2006_Red_Hat__Inc._nThis_is_free_software__see_the_source_for_copying_conditions._nThere_is_NO_warranty__not_even_for_MERCHANTABILITY_or_FITNESS_FOR_A_PARTICULAR_PURPOSE._n;
0x00000c8c jalr t9 | t9 ();
0x00000c90 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000c94 lw t9, -0x7f8c(gp) | t9 = sym.imp.exit;
0x00000c98 move a0, zero | a0 = 0;
0x00000c9c jalr t9 | t9 ();
| label_8:
0x00000ca0 lw t9, -0x7f8c(gp) | t9 = sym.imp.exit;
0x00000ca4 move a0, zero | a0 = 0;
0x00000ca8 jalr t9 | t9 ();
| }
0x00000cac lw v0, 0x1c(sp) | v0 = *(var_1ch);
0x00000cb0 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x00000cb4 addiu a1, zero, 1 | a1 = 1;
0x00000cb8 addiu t9, t9, 0xee0 | t9 += fcn.00000ee0;
0x00000cbc lw a0, (v0) | a0 = *(v0);
0x00000cc0 bal 0xee0 | fcn_00000ee0 ();
| label_7:
0x00000cc4 lw t9, -0x7f84(gp) | t9 = sym.imp.puts;
0x00000cc8 lw a0, 0x28(sp) | a0 = *(var_28h);
0x00000ccc jalr t9 | t9 ();
0x00000cd0 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000cd4 b 0xc28 |
| } while (1);
| label_6:
0x00000cd8 lw v0, -0x7f70(gp) | v0 = *((gp - 8156));
0x00000cdc lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x00000ce0 lw t9, -0x7f80(gp) | t9 = sym.imp.fwrite;
0x00000ce4 lw a3, (v0) | a3 = *(v0);
0x00000ce8 addiu a0, a0, 0x136c | a0 += str.Cant_specify_both___get_and___ensure_n;
0x00000cec addiu a2, zero, 0x26 | a2 = 0x26;
0x00000cf0 addiu a1, zero, 1 | a1 = 1;
0x00000cf4 jalr t9 | t9 ();
0x00000cf8 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000cfc lw t9, -0x7f8c(gp) | t9 = sym.imp.exit;
0x00000d00 addiu a0, zero, 1 | a0 = 1;
0x00000d04 jalr t9 | t9 ();
| label_10:
0x00000d08 lw v0, 0x1c(sp) | v0 = *(var_1ch);
0x00000d0c lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x00000d10 move a1, zero | a1 = 0;
0x00000d14 addiu t9, t9, 0xee0 | t9 += fcn.00000ee0;
0x00000d18 lw a0, (v0) | a0 = *(v0);
0x00000d1c bal 0xee0 | fcn_00000ee0 ();
| label_2:
0x00000d20 lw t9, -0x7f9c(gp) | t9 = sym.imp.dbus_error_init;
0x00000d24 addiu s0, sp, 0x2c | s0 = sp + 0x2c;
0x00000d28 move a0, s0 | a0 = s0;
0x00000d2c jalr t9 | t9 ();
0x00000d30 lw gp, 0x10(sp) | gp = *(var_10h);
| label_9:
0x00000d34 lw t9, -0x7f7c(gp) | t9 = sym.imp._dbus_create_uuid;
0x00000d38 move a1, s0 | a1 = s0;
0x00000d3c addiu a0, sp, 0x28 | a0 = sp + 0x28;
0x00000d40 jalr t9 | t9 ();
0x00000d44 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00000d48 beqz v0, 0xb98 | goto label_1;
| }
0x00000d4c lw t9, -0x7f84(gp) | t9 = sym.imp.puts;
0x00000d50 lw a0, 0x28(sp) | a0 = *(var_28h);
0x00000d54 jalr t9 | t9 ();
0x00000d58 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000d5c lw t9, -0x7fb0(gp) | t9 = sym.imp.dbus_free;
0x00000d60 lw a0, 0x28(sp) | a0 = *(var_28h);
0x00000d64 jalr t9 | t9 ();
0x00000d68 lw gp, 0x10(sp) | gp = *(var_10h);
0x00000d6c b 0xb98 | goto label_1;
| }
[*] Function printf used 4 times dbus-uuidgen