Function at 0x14000a6c0
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, 0xa0
mov rax, qword [0x140018040]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbp, rdx
mov r15, rcx
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x50], rax
xor r12d, r12d
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x80], r12
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000aa67
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x14000aa67
test rdi, rdi
je 0x14000aa67
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x14000a74d
lea rdx, str.____Image_is_not_64_bit
jmp 0x14000aa6e
mov esi, dword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, esi
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14000aa8a
movzx eax, word [rdi + 0x14]
mov eax, dword [rax + rdi + 0x24]
mov dword [rsp + 0x30], eax
sub esi, eax
mov qword [rsp + 0x38], r12
mov eax, esi
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x38]
mov edx, esi
mov rcx, r15
call fcn.14000a220
mov r13, rax
mov qword [rsp + 0x48], rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test rax, rax
jne 0x14000a7bc
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x14000a9a1
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.140005a30
mov rdx, r13
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
lea rdx, [0x140005c10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov r8d, dword [rdi + 0x54]
mov rdx, rbp
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
mov esi, r12d
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x14000a83b
add rbx, rdi
nop dword [rax]
test dword [rbx + 0x14], 0x80
ja 0x14000a82d
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, rbp
mov ecx, dword [rbx - 4]
add rcx, r14
call sub.VCRUNTIME140.dll_memcpy
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x14000a810
mov rsi, r13
mov ebx, dword [rsp + 0x30]
mov r12d, ebx
sub r13, rbx
lea rdx, str.___Skipped_0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140005a30
lea rdx, [0x140001420]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::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_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, str._bytes_of_PE_Header
call fcn.140005a30
lea rdx, [0x140005c10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rbx, r13
sub rbx, qword [rdi + 0x30]
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.14000b840
mov rdx, rbx
mov rcx, rax
call fcn.14000aac0
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.14000b9a0
mov rdx, rax
mov rcx, r15
call fcn.14000abc0
test al, al
jne 0x14000a8dc
lea rdx, str.____Failed_to_resolve_imports
jmp 0x14000a99a
lea r8, [r12 + r14]
mov rbp, qword [rsp + 0x40]
mov r9, rbp
mov rdx, rsi
mov rcx, r15
call fcn.140002280
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test al, al
jne 0x14000a90a
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x14000a9a1
mov ebx, dword [rdi + 0x28]
add rbx, r13
lea rdx, str.____Calling_DriverEntry_0x
call fcn.140005a30
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
lea rdx, [0x140005c10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0x20], rdi
mov r9, rbp
mov r8, rsi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x80]
call fcn.140009090
test al, al
jne 0x14000a967
lea rdx, str.____Callback_returns_false__failed_
jmp 0x14000a99a
xor eax, eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x80]
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14000af90
test al, al
jne 0x14000a9dc
lea rdx, str.____Failed_to_call_driver_entry
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140005a30
lea rdx, [0x140005c10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdx, qword [rsp + 0x48]
mov rcx, r15
call fcn.1400027e0
jmp 0x14000aa8a
mov ebx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14000a9ec
mov dword [rax], ebx
lea rdx, str.___DriverEntry_returned_0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140005a30
lea rdx, [0x140001420]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::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_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_int____ptr64]
lea rdx, [0x140005c10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov r8, rdi
mov rdx, rsi
mov rcx, r15
call fcn.140002580
mov rdx, rdi
mov rcx, r15
call fcn.1400026b0
mov rdx, rdi
mov rcx, r15
call fcn.1400027e0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rsi
jmp 0x14000aa8c
lea rdx, str.____Invalid_format_of_PE_image
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140005a30
lea rdx, [0x140005c10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14000d900
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret