[*] Binary protection state of vdo
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function system tear down of vdo
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vdo @ 0x38568 */
| #include <stdint.h>
|
; (fcn) sym.hal_system_get_instance () | void hal_system_get_instance () {
0x00038568 lui gp, 4 |
0x0003856c addiu gp, gp, 0x3b88 |
0x00038570 addu gp, gp, t9 | gp += t9;
0x00038574 addiu sp, sp, -0x28 |
0x00038578 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x0003857c lw s0, -0x7fd4(gp) | s0 = *((gp - 8181));
0x00038580 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00038584 sw ra, 0x24(sp) | *(var_24h) = ra;
0x00038588 lw v0, 0x4df4(s0) | v0 = *((s0 + 4989));
0x0003858c sw s1, 0x20(sp) | *(var_20h) = s1;
0x00038590 lw ra, 0x24(sp) | ra = *(var_24h);
| if (v0 != 0) {
0x00038594 beqz v0, 0x385a8 |
0x00038598 lw s1, 0x20(sp) | s1 = *(var_20h);
0x0003859c lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x000385a0 addiu sp, sp, 0x28 |
0x000385a4 jr ra | return v0;
| }
0x000385a8 lw t9, -0x7b0c(gp) | t9 = sym.artpec_system_new
0x000385ac bal 0x4cae8 | sym_artpec_system_new ()
0x000385b0 nop |
0x000385b4 lw gp, 0x10(sp) | gp = *(var_10h);
0x000385b8 lw t9, -0x7c9c(gp) | t9 = sym.hal_system_get_type
0x000385bc move s1, v0 | s1 = v0;
0x000385c0 bal 0x38024 | sym_hal_system_get_type ()
0x000385c4 lw gp, 0x10(sp) | gp = *(var_10h);
0x000385c8 move a0, s1 | a0 = s1;
0x000385cc lw t9, -0x74d0(gp) | t9 = sym.imp.g_type_check_instance_cast;
0x000385d0 move a1, v0 | a1 = v0;
0x000385d4 jalr t9 | t9 ();
0x000385d8 lw ra, 0x24(sp) | ra = *(var_24h);
0x000385dc lw s1, 0x20(sp) | s1 = *(var_20h);
0x000385e0 sw v0, 0x4df4(s0) | *((s0 + 4989)) = v0;
0x000385e4 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x000385e8 addiu sp, sp, 0x28 |
0x000385ec jr ra | return v0;
| }
[*] Function system used 6 times vdo