Function at 0x140005490
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov r13, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov ecx, 1
call fcn.140009ab0
mov qword [rsp + 0x48], rax
lea rcx, [rax + 1]
mov qword [rsp + 0x58], rcx
mov byte [rax], 0
mov qword [rsp + 0x50], rcx
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140007540
mov rsi, qword [rsp + 0x48]
test al, al
jne 0x140005506
lea rdx, str.____Failed_to_read_image_to_memory
jmp 0x14000584e
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x140005847
movsxd rbp, dword [rsi + 0x3c]
add rbp, rsi
cmp dword [rbp], 0x4550
jne 0x140005847
mov eax, 0x20b
cmp word [rbp + 0x18], ax
je 0x14000553f
lea rdx, str.____Image_is_not_64_bit
jmp 0x14000584e
mov ebx, dword [rbp + 0x50]
mov qword [rsp + 0x40], rbx
mov r9d, 4
mov r8d, 0x3000
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov r8d, ebx
mov rcx, r13
call fcn.140001c10
mov r12, rax
xor r15d, r15d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test rax, rax
jne 0x140005589
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x140005712
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.1400029d0
mov rdx, r12
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
lea rdx, [0x140002ba0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r8d, dword [rbp + 0x54]
mov rdx, rsi
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rbp + 0x14]
add rbx, 0x28
mov edi, r15d
cmp r15w, word [rbp + 6]
jae 0x140005602
add rbx, rbp
nop word [rax + rax]
mov ecx, dword [rbx - 4]
add rcx, r14
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
inc edi
lea rbx, [rbx + 0x28]
movzx eax, word [rbp + 6]
cmp edi, eax
jl 0x1400055e0
mov rbx, r12
sub rbx, qword [rbp + 0x30]
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.140006080
mov rdx, rbx
mov rcx, rax
call fcn.1400058e0
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.1400061c0
mov rdx, rax
mov rcx, r13
call fcn.1400059e0
test al, al
jne 0x140005649
lea rdx, str.____Failed_to_resolve_imports
jmp 0x14000570b
mov r9, qword [rsp + 0x40]
mov r8, r14
mov rdx, r12
mov rcx, r13
call fcn.140001880
test al, al
jne 0x14000566c
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x14000570b
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, dword [rbp + 0x28]
add rbx, r12
lea rdx, str.____Calling_DriverEntry_0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400029d0
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
lea rdx, [0x140002ba0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov qword [rsp + 0x60], rbx
test rbx, rbx
je 0x140005704
lea rcx, str.gdi32full.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtGdiDdDDIReclaimAllocations2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x140005748
lea rdx, str.____Failed_to_get_export_gdi32full.NtGdiDdDDIReclaimAllocations2
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400029d0
lea rdx, [0x140002ba0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str.____Failed_to_call_driver_entry
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400029d0
lea rdx, [0x140002ba0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r12
mov rcx, r13
call fcn.140001e40
jmp 0x140005873
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x40], r15
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.1400023a0
test al, al
je 0x140005704
lea r8, [rsp + 0x60]
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
mov rcx, r13
call fcn.1400019c0
test al, al
je 0x140005704
call rdi
mov edi, eax
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, r13
call fcn.1400019c0
lea rdx, str.___DriverEntry_returned_0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400029d0
lea rdx, [0x140005450]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rbx, rax
mov edx, 8
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8, qword [rax]
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call r8
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov byte [rdx + rbx + 0x58], 0x30
lea rdx, [0x140005480]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, edi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
lea rdx, [0x140005470]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
lea rdx, [0x140005430]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
lea rdx, [0x140002ba0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r9d, dword [rbp + 0x54]
mov rdx, r12
mov rcx, r13
call fcn.140001920
jmp 0x140005870
lea rdx, str.____Invalid_format_of_PE_image
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400029d0
lea rdx, [0x140002ba0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor r15d, r15d
mov r12d, r15d
mov r15, r12
test rsi, rsi
je 0x1400058b0
mov rdx, qword [rsp + 0x58]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400058a8
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400058a8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140009d2c
mov rax, r15
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140009a90
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret