Function at 0x1400c57b0
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 [0x14022b2b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x68], rdx
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x48], rax
mov rax, qword [rdx]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c5b18
movsxd rbp, dword [rax + 0x3c]
add rbp, rax
cmp dword [rbp], 0x4550
jne 0x1400c5b18
mov eax, 0x20b
cmp word [rbp + 0x18], ax
je 0x1400c582a
lea rdx, str.____Image_is_not_64_bit
jmp 0x1400c5b1f
mov ebx, dword [rbp + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
je 0x1400c5b3c
movzx eax, word [rbp + 0x14]
mov eax, dword [rax + rbp + 0x24]
mov dword [rsp + 0x30], eax
sub ebx, eax
xor esi, esi
mov qword [rsp + 0x38], rsi
mov eax, ebx
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x38]
mov edx, ebx
mov rcx, r13
call fcn.1400c53b0
mov r12, rax
mov qword [rsp + 0x38], 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 0x1400c5898
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x1400c5a35
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.14009eb50
mov rcx, rax
mov rdx, r12
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]
mov rcx, rax
lea rdx, [0x14009ed30]
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 [rbp + 0x54]
mov rdx, qword [rdi]
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rbp + 0x14]
add rbx, 0x24
mov r14d, esi
cmp si, word [rbp + 6]
jae 0x1400c5910
add rbx, rbp
test dword [rbx + 0x18], 0x80
ja 0x1400c5900
mov ecx, dword [rbx]
add rcx, r15
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, qword [rdi]
call sub.VCRUNTIME140.dll_memcpy
inc r14d
add rbx, 0x28
movzx eax, word [rbp + 6]
cmp r14d, eax
jl 0x1400c58e3
mov r14, r12
mov ebx, dword [rsp + 0x30]
sub r12, 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.14009eb50
mov rcx, rax
lea rdx, [0x14008f7f0]
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 rcx, rax
mov edx, dword [rsp + 0x30]
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.14009eb50
mov rcx, rax
lea rdx, [0x14009ed30]
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 rdx, r15
lea rcx, [rsp + 0x50]
call fcn.1400c6a40
mov rdx, r12
sub rdx, qword [rbp + 0x30]
mov rcx, rax
call fcn.1400c5bb0
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.1400c6b90
mov rdx, rax
mov rcx, r13
call fcn.1400c5cb0
test al, al
jne 0x1400c59ad
lea rdx, str.____Failed_to_resolve_imports
jmp 0x1400c5a2e
lea r8, [rbx + r15]
mov r9, qword [rsp + 0x40]
mov rdx, r14
mov rcx, r13
call fcn.1400c35e0
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 0x1400c59d5
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x1400c5a35
mov ebx, dword [rbp + 0x28]
add rbx, r12
lea rdx, str.____Calling_DriverEntry_0x
call fcn.14009eb50
mov rcx, rax
mov rdx, rbx
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]
mov rcx, rax
lea rdx, [0x14009ed30]
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 dword [rsp + 0x30], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.1400c5fc0
test al, al
jne 0x1400c5aab
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.14009eb50
lea rdx, [0x14009ed30]
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 edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x38]
mov rcx, r13
call fcn.1400c3af0
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400c5b7e
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400c5aa1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400c5ba8
mov rcx, r8
call fcn.140154554
jmp 0x1400c5b73
mov ebx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400c5abb
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.14009eb50
mov rcx, rax
lea rdx, [0x14008f7f0]
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 rcx, rax
mov edx, ebx
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]
mov rcx, rax
lea rdx, [0x14009ed30]
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 edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, rdi
call fcn.14009b5b0
mov rax, r14
jmp 0x1400c5b80
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.14009eb50
mov rcx, rax
lea rdx, [0x14009ed30]
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]
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400c5b7e
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400c5b6c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400c5ba8
mov rcx, r8
call fcn.140154554
xor esi, esi
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140154010
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
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