Function at 0x18005c800
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2080
call fcn.1801d7ad0
sub rsp, rax
mov rsi, qword [rsp + 0x20e8]
mov r13, r9
mov r14d, dword [rsp + 0x20e0]
mov r15d, r8d
mov rbx, rdx
mov r12, rcx
cmp rsi, 0x1000
jb 0x18005cb6b
movabs rax, 0xffff800000000000
test rax, rsi
jne 0x18005cb6b
xor edi, edi
mov qword [rsi], rdi
cmp rdx, 0x1000
jb 0x18005cb6b
test rax, rdx
jne 0x18005cb6b
lea eax, [r14 - 1]
cmp eax, 0x136
ja 0x18005c88a
lea eax, [rdi - 2]
jmp 0x18005c913
test r15d, 0xfffffff8
jne 0x18005cb61
mov qword [rsp + 0x20b0], rbp
mov ebp, dword [rsp + 0x20d8]
cmp ebp, 2
jne 0x18005c8b3
call qword [sym.imp.VBoxRT.dll_RTLdrGetHostArch]
mov ebp, eax
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x2000
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], 0x40
mov r8, rbx
xor edx, edx
mov rcx, r12
call sym.VBoxVMM.dll_DBGFR3MemRead
mov r10d, eax
test eax, eax
jns 0x18005c930
mov r9, qword [rbx]
lea r8, str.Failed_to_read_DOS_header_at__RGv:__Rrc
mov dword [rsp + 0x20], eax
mov edx, eax
mov rcx, qword [rsp + 0x20f0]
call qword [sym.imp.VBoxRT.dll_RTErrInfoSetF]
mov rbp, qword [rsp + 0x20b0]
lea r11, [rsp + 0x2080]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, dword [rsp + 0x80]
cmp cl, 0x7f
jne 0x18005c979
cmp byte [rsp + 0x81], 0x45
jne 0x18005c979
cmp byte [rsp + 0x82], 0x4c
jne 0x18005c979
cmp byte [rsp + 0x83], 0x46
jne 0x18005c979
mov r9, qword [rbx]
lea r8, str.Found_ELF_magic_at__RGv
mov rcx, qword [rsp + 0x20f0]
mov edx, 0xfffffda8
call qword [sym.imp.VBoxRT.dll_RTErrInfoSetF]
jmp 0x18005c90b
lea eax, [rcx + 0x1120532]
cmp eax, 1
jbe 0x18005cb16
mov eax, 0x5a4d
cmp cx, ax
jne 0x18005c9e4
mov edi, dword [rsp + 0xbc]
mov edx, 0x200000
mov r8, 0xffffffffffffff08
cmp edi, 0x10
jb 0x18005c9b8
test r14d, r14d
mov ecx, edx
cmove rcx, r8
cmp rdi, rcx
jbe 0x18005c9f0
mov rcx, qword [rsp + 0x20f0]
test r14d, r14d
mov r9d, edi
cmove rdx, r8
lea r8, str.e_lfanew_value_is_out_of_range:__RX32__16.._u_
mov qword [rsp + 0x20], rdx
mov edx, r10d
call qword [sym.imp.VBoxRT.dll_RTErrInfoSetF]
jmp 0x18005c90b
cmp ecx, 0x4550
jne 0x18005caf5
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x60]
mov edx, edi
movsd xmm1, qword [rbx + 0x10]
movups xmmword [rsp + 0x60], xmm0
movsd qword [rsp + 0x70], xmm1
call sym.VBoxVMM.dll_DBGFR3AddrAdd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], 0x18
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, r12
call sym.VBoxVMM.dll_DBGFR3MemRead
test eax, eax
jns 0x18005ca5c
mov r9, qword [rsp + 0x60]
lea r8, str.Failed_to_read_PE_LX_NE_headers_at__RGv__off_RX32_:__Rrc
mov rcx, qword [rsp + 0x20f0]
mov edx, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
call qword [sym.imp.VBoxRT.dll_RTErrInfoSetF]
jmp 0x18005c90b
cmp dword [rsp + 0x80], 0x4550
jne 0x18005cac0
mov rax, qword [rsp + 0x20f0]
mov r9, r13
mov qword [rsp + 0x58], rax
mov r8d, r15d
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rdx, rbx
mov rax, qword [rsp + 0x20d0]
mov rcx, r12
mov dword [rsp + 0x40], 0x18
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call fcn.18005bc30
jmp 0x18005c90b
mov r9, qword [rsp + 0x60]
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x20f0]
lea r8, str.No_PE_LX_NE_header_at__RGv__off_RX32_:__.8Rhxs
mov qword [rsp + 0x28], rax
mov edx, 0xfffffda8
mov dword [rsp + 0x20], edi
call qword [sym.imp.VBoxRT.dll_RTErrInfoSetF]
jmp 0x18005c90b
mov r9, qword [rbx]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r8, str.Unknown_image_magic_at__RGv:__.8Rhxs
mov edx, 0xfffffda8
jmp 0x18005c8fd
mov rax, qword [rsp + 0x20f0]
mov r9, r13
mov qword [rsp + 0x48], rax
mov r8d, r15d
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rdx, rbx
mov rax, qword [rsp + 0x20d0]
mov rcx, r12
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call fcn.18005b5d0
jmp 0x18005c90b
mov eax, 0xfffffff3
jmp 0x18005c913
mov eax, 0xfffffffa
jmp 0x18005c913