Function at 0x1400120b0
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, 0x60
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x50], rdx
mov rax, qword [rdx]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400123df
movsxd rbp, dword [rax + 0x3c]
add rbp, rax
cmp dword [rbp], 0x4550
jne 0x1400123df
mov eax, 0x20b
cmp word [rbp + 0x18], ax
je 0x14001211a
lea rdx, str.____Image_is_not_64_bit
jmp 0x1400123e6
mov ebx, dword [rbp + 0x50]
mov qword [rsp + 0x20], rbx
mov r9d, 4
mov r8d, 0x3000
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
mov r8d, ebx
mov rcx, r13
call fcn.14000fd10
mov r12, rax
xor esi, esi
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test rax, rax
jne 0x140012163
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x1400122ab
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.140010a70
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, [0x140010c40]
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, qword [rdi]
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rbp + 0x14]
add rbx, 0x28
mov r14d, esi
cmp si, word [rbp + 6]
jae 0x1400121d4
add rbx, rbp
nop
mov ecx, dword [rbx - 4]
add rcx, r15
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, qword [rdi]
call sub.VCRUNTIME140.dll_memcpy
inc r14d
lea rbx, [rbx + 0x28]
movzx eax, word [rbp + 6]
cmp r14d, eax
jl 0x1400121b0
mov rbx, r12
sub rbx, qword [rbp + 0x30]
mov rdx, r15
lea rcx, [rsp + 0x38]
call fcn.1400133b0
mov rdx, rbx
mov rcx, rax
call fcn.140012480
mov rdx, r15
lea rcx, [rsp + 0x38]
call fcn.140013500
mov rdx, rax
mov rcx, r13
call fcn.140012580
test al, al
jne 0x14001221b
lea rdx, str.____Failed_to_resolve_imports
jmp 0x1400122a4
mov r9, qword [rsp + 0x20]
mov r8, r15
mov rdx, r12
mov rcx, r13
call fcn.14000f980
test al, al
jne 0x14001223b
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x1400122a4
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
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.140010a70
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, [0x140010c40]
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 + 0x20], esi
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.140012920
test al, al
jne 0x14001231f
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.140010a70
lea rdx, [0x140010c40]
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, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r12
mov rcx, r13
call fcn.14000fe90
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140012445
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140012315
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001246c
mov rcx, r8
call fcn.1400176ac
jmp 0x14001243a
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.140010a70
lea rdx, [0x140012070]
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 + 0x28]
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, [0x1400120a0]
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 + 0x20]
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, [0x140012090]
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, [0x140012050]
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, [0x140010c40]
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.14000fa20
nop
mov rcx, rdi
call fcn.140011bd0
mov rax, r12
jmp 0x140012447
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.140010a70
lea rdx, [0x140010c40]
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]
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140012445
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140012433
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001246c
mov rcx, r8
call fcn.1400176ac
xor esi, esi
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140017400
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3