Function at 0x140009940
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14001e010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rdx
mov r13, qword [0x14001ec18]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x20], al
lea ecx, [rax + 1]
call fcn.14000d7c0
mov qword [rsp + 0x68], rax
lea r8, [rax + 1]
mov qword [rsp + 0x78], r8
movzx edx, byte [rsp + 0x20]
mov byte [rax], dl
mov qword [rsp + 0x70], r8
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.14000c1b0
mov rdi, qword [rsp + 0x68]
test al, al
jne 0x1400099cd
lea rdx, str.____Failed_to_read_image_to_memory
jmp 0x140009cfb
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140009cf4
movsxd rsi, dword [rdi + 0x3c]
add rsi, rdi
cmp dword [rsi], 0x4550
jne 0x140009cf4
mov eax, 0x20b
cmp word [rsi + 0x18], ax
je 0x140009a05
lea rdx, str.____Image_is_not_64_bit
jmp 0x140009cfb
mov ebx, dword [rsi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x140009d17
movzx ecx, word [rsi + 0x14]
mov eax, dword [rcx + rsi + 0x24]
mov dword [rsp + 0x28], eax
sub ebx, eax
mov eax, ebx
mov qword [rsp + 0x30], rax
mov r8d, ebx
mov rcx, r13
call fcn.140002110
mov r12, rax
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov rcx, qword [0x14000f270]
test rax, rax
jne 0x140009a6b
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x140009c03
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.140005cf0
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, [0x140005ec0]
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 [rsi + 0x54]
mov rdx, rdi
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rsi + 0x14]
add rbx, 0x28
mov ebp, r15d
cmp r15w, word [rsi + 6]
jae 0x140009ae2
add rbx, rsi
nop word [rax + rax]
mov ecx, dword [rbx - 4]
add rcx, r14
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
inc ebp
lea rbx, [rbx + 0x28]
movzx eax, word [rsi + 6]
cmp ebp, eax
jl 0x140009ac0
mov qword [rsp + 0x38], r12
mov ebx, dword [rsp + 0x28]
mov ebp, ebx
sub r12, rbx
lea rdx, str.___Skipped_0x
mov rcx, qword [0x14000f270]
call fcn.140005cf0
lea rdx, [0x140007cf0]
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 edx, ebx
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, str._bytes_of_PE_Header
call fcn.140005cf0
lea rdx, [0x140005ec0]
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 rbx, r12
sub rbx, qword [rsi + 0x30]
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.14000a7b0
mov rdx, rbx
mov rcx, rax
call fcn.140009d90
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.14000a900
mov rdx, rax
mov rcx, r13
call fcn.140009e90
test al, al
jne 0x140009b81
lea rdx, str.____Failed_to_resolve_imports
jmp 0x140009bfc
lea r8, [r14 + rbp]
mov r9, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rdx, rbp
mov rcx, r13
call fcn.140001e20
mov rcx, qword [0x14000f270]
test al, al
jne 0x140009bae
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x140009c03
mov ebx, dword [rsi + 0x28]
add rbx, r12
lea rdx, str.____Calling_DriverEntry_0x
call fcn.140005cf0
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, [0x140005ec0]
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 dword [rsp + 0x28], r15d
mov r8, rbx
lea rdx, [rsp + 0x28]
mov rcx, r13
call fcn.14000a2a0
test al, al
jne 0x140009c3b
lea rdx, str.____Failed_to_call_driver_entry
mov rcx, qword [0x14000f270]
call fcn.140005cf0
lea rdx, [0x140005ec0]
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, qword [rsp + 0x40]
mov rcx, r13
call fcn.1400022f0
jmp 0x140009d1a
lea rdx, str.___DriverEntry_returned_0x
mov rcx, qword [0x14000f270]
call fcn.140005cf0
lea rdx, [0x140007cf0]
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 + 0x40]
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, [0x140009930]
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, dword [rsp + 0x28]
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, [0x140009920]
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, [0x140009900]
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, [0x140005ec0]
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 r15, rbp
jmp 0x140009d1a
lea rdx, str.____Invalid_format_of_PE_image
mov rcx, qword [0x14000f270]
call fcn.140005cf0
lea rdx, [0x140005ec0]
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
test rdi, rdi
je 0x140009d57
mov rdx, qword [rsp + 0x78]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140009d4f
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009d4f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14000d284
mov rax, r15
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000d260
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret