Function at 0x140006cd0
Capabilities:
Parse pe header

Disassembly:
push rdi
push r13
push r15
sub rsp, 0x50
mov eax, 0x5a4d
mov r15, rcx
cmp word [0x14001d950], ax
jne 0x140007009
movsxd rdi, dword [0x14001d98c]
lea r13, [0x14001d950]
add rdi, r13
cmp dword [rdi], 0x4550
jne 0x140007009
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x140006d46
lea rdx, str.____Image_is_not_64_bit
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003c80
lea rdx, [0x140004020]
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 eax, eax
add rsp, 0x50
pop r15
pop r13
pop rdi
ret
mov qword [rsp + 0x70], rbx
mov r9d, 4
mov qword [rsp + 0x80], rbp
mov r8d, 0x3000
mov qword [rsp + 0x48], r12
xor ecx, ecx
mov r12d, dword [rdi + 0x50]
mov edx, r12d
mov qword [rsp + 0x40], r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, r12d
mov rcx, r15
mov rbp, rax
call fcn.140005170
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov r14, rax
test rax, rax
jne 0x140006da1
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x140006eff
lea rdx, str.___Image_base_has_been_allocated_at_0x
mov qword [rsp + 0x88], rsi
call fcn.140003c80
mov rdx, r14
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]
mov rcx, rax
lea rdx, [0x140004020]
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 [rdi + 0x54]
mov rdx, r13
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
xor eax, eax
add rbx, 0x2c
mov esi, eax
cmp ax, word [rdi + 6]
jae 0x140006e22
add rbx, rdi
nop word [rax + rax]
mov edx, dword [rbx]
mov ecx, dword [rbx - 8]
add rdx, r13
mov r8d, dword [rbx - 4]
add rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [rdi + 6]
lea rbx, [rbx + 0x28]
inc esi
cmp esi, eax
jl 0x140006e00
mov rbx, r14
lea rcx, [rsp + 0x20]
sub rbx, qword [rdi + 0x30]
mov rdx, rbp
call fcn.140007f30
mov rdx, rbx
mov rcx, rax
call fcn.140007020
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140008080
mov rdx, rax
mov rcx, r15
call fcn.140007120
mov rsi, qword [rsp + 0x88]
test al, al
jne 0x140006e71
lea rdx, str.____Failed_to_resolve_imports
jmp 0x140006ef8
mov r9, r12
mov r8, rbp
mov rdx, r14
mov rcx, r15
call fcn.140004de0
test al, al
jne 0x140006e8f
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x140006ef8
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, dword [rdi + 0x28]
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]
add rbx, r14
call fcn.140003c80
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]
mov rcx, rax
lea rdx, [0x140004020]
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 r8, rbx
mov dword [rsp + 0x78], 0
lea rdx, [rsp + 0x78]
mov rcx, r15
call fcn.1400074c0
test al, al
jne 0x140006f53
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.140003c80
lea rdx, [0x140004020]
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, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r14
mov rcx, r15
call fcn.1400052f0
xor eax, eax
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r13
pop rdi
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___DriverEntry_returned_0x
call fcn.140003c80
lea rdx, [0x140006c90]
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, 8
lea rcx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov rcx, qword [rbx]
mov rdx, qword [rax + 8]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
call qword [rax]
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov rcx, rbx
mov byte [rdx + rbx + 0x58], 0x30
lea rdx, [0x140006cc0]
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 + 0x78]
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]
mov rcx, rax
lea rdx, [0x140006cb0]
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 rcx, rax
lea rdx, [0x140006c70]
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 rcx, rax
lea rdx, [0x140004020]
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 [rdi + 0x54]
mov rdx, r14
mov rcx, r15
call fcn.140004e80
mov rax, r14
jmp 0x140006f32
lea rdx, str.____Invalid_format_of_PE_image
jmp 0x140006d1e