Function at 0x14000c880
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa0
mov rax, qword [0x14009b080]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rbp - 0x31], rcx
xor r15d, r15d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000ce70
movsxd r13, dword [rdx + 0x3c]
add r13, rdx
cmp dword [r13], 0x4550
jne 0x14000ce70
test r13, r13
je 0x14000ce70
mov eax, 0x20b
cmp word [r13 + 0x18], ax
je 0x14000c8fb
lea rdx, str.____Image_is_not_64_bit
jmp 0x14000ce77
mov ebx, dword [r13 + 0x50]
mov edx, ebx
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x14000ce93
movzx eax, word [r13 + 0x14]
mov eax, dword [rax + r13 + 0x24]
mov dword [rbp - 0x61], eax
sub ebx, eax
mov ecx, ebx
mov qword [rbp - 0x39], rcx
je 0x14000ca56
mov edx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rdx + rax]
cmp dword [0x14009c364], eax
jle 0x14000ca29
lea rcx, [0x14009c364]
call fcn.140071538
cmp dword [0x14009c364], 0xffffffff
jne 0x14000ca25
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400715b0
mov qword [rbp - 0x59], rax
movdqa xmm0, xmmword [reloc.WS2_32.dll_setsockopt]
movdqu xmmword [rbp - 0x49], xmm0
movups xmm0, xmmword [0x140084b48]
movups xmmword [rax], xmm0
mov ecx, dword [0x140084b58]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x140084b5c]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea r8, [rbp - 0x59]
mov rdx, qword [0x14009c018]
mov rcx, rdi
call fcn.140008ef0
mov qword [0x14009c3c8], rax
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x14000ca19
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ca13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ca13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007182c
nop
lea rcx, [0x14009c364]
call fcn.1400714cc
mov rcx, qword [rbp - 0x39]
cmp qword [0x14009c3c8], 0
jne 0x14000ca65
lea rdx, str.____Failed_to_find_ExAllocatePool
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000b080
lea rdx, [0x14000b260]
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 r14, r15
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x14000cde1
mov qword [rbp - 0x69], r15
mov qword [rsp + 0x20], rcx
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.14000b2a0
test al, al
je 0x14000ca56
mov r14, qword [rbp - 0x69]
test r14, r14
jne 0x14000ca93
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x14000cde1
lea rdx, str.___Image_base_has_been_allocated_at_0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000b080
mov rdx, r14
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, [0x14000b260]
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 [r13 + 0x54]
mov rdx, rsi
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r13 + 0x14]
add rbx, 0x24
mov edi, r15d
mov qword [rbp - 0x69], r14
xor eax, eax
cmp ax, word [r13 + 6]
jae 0x14000cb1d
add rbx, r13
mov qword [rbp - 0x69], r14
test dword [rbx + 0x18], 0x80
ja 0x14000cb0e
mov ecx, dword [rbx]
add rcx, r12
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r13 + 6]
cmp edi, eax
jl 0x14000caf1
mov ebx, dword [rbp - 0x61]
mov r15d, ebx
mov rdi, r14
sub rdi, rbx
mov qword [rbp - 0x61], rdi
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.14000b080
lea rdx, [0x140007c90]
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.14000b080
lea rdx, [0x14000b260]
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 rsi, rdi
sub rsi, qword [r13 + 0x30]
mov eax, 0x5a4d
cmp word [r12], ax
jne 0x14000cc5f
movsxd rax, dword [r12 + 0x3c]
add rax, r12
cmp dword [rax], 0x4550
jne 0x14000cc5f
test rax, rax
je 0x14000cc5f
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
xor edx, edx
mov r8d, edx
mov qword [rbp - 0x11], rdx
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x14000cbd0
mov ebx, edx
jmp 0x14000cc66
lea rbx, [r12 + rcx]
mov edi, dword [rax + 0xb4]
add rdi, rbx
cmp rbx, rdi
jae 0x14000cc4f
mov rdx, qword [rbp - 0x19]
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x14000cc48
mov eax, dword [rbx]
add rax, r12
mov qword [rbp - 0x59], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x51], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x49], eax
cmp rdx, r8
je 0x14000cc28
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rbp - 0x49]
movsd qword [rdx + 0x10], xmm1
add rdx, 0x18
mov qword [rbp - 0x19], rdx
jmp 0x14000cc3d
lea r8, [rbp - 0x59]
lea rcx, [rbp - 0x21]
call fcn.14000dd50
mov r8, qword [rbp - 0x11]
mov rdx, qword [rbp - 0x19]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rdi
jb 0x14000cbe6
movdqu xmm1, xmmword [rbp - 0x21]
xor edx, edx
movsd xmm0, qword [rbp - 0x11]
movsd qword [rbp - 0x49], xmm0
mov rbx, qword [rbp - 0x49]
jmp 0x14000cc66
xorps xmm1, xmm1
xor edx, edx
mov ebx, edx
movq r10, xmm1
psrldq xmm1, 8
movq r11, xmm1
cmp r10, r11
je 0x14000cce0
lea r9, [r10 + 0x10]
mov edi, 0xf000
mov r14d, 0xa000
nop dword [rax]
mov r8d, edx
cmp dword [r9], 0
jbe 0x14000cccf
nop dword [rax]
mov ecx, r8d
mov rax, qword [r9 - 8]
movzx edx, word [rax + rcx*2]
movzx eax, dx
and ax, di
cmp ax, r14w
jne 0x14000ccc5
and edx, 0xfff
mov rax, qword [r9 - 0x10]
add qword [rdx + rax], rsi
inc r8d
cmp r8d, dword [r9]
jb 0x14000cca0
xor edx, edx
add r9, 0x18
lea rax, [r9 - 0x10]
cmp rax, r11
jne 0x14000cc90
mov r14, qword [rbp - 0x69]
test r10, r10
je 0x14000cd3b
sub rbx, r10
movabs rax, 0x2aaaaaaaaaaaaaab
imul rbx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r10
cmp rdx, 0x1000
jb 0x14000cd33
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000cd33
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.14007182c
mov rdx, r12
lea rcx, [rbp - 0x59]
call fcn.14000d740
mov rdx, rax
mov rdi, qword [rbp - 0x31]
mov rcx, rdi
call fcn.14000cec0
test al, al
jne 0x14000cd63
lea rdx, str.____Failed_to_resolve_imports
jmp 0x14000cde1
lea r8, [r15 + r12]
mov r9, qword [rbp - 0x39]
mov rdx, r14
mov rcx, rdi
call fcn.140008ab0
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 0x14000cd8a
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x14000cde8
mov ebx, dword [r13 + 0x28]
add rbx, qword [rbp - 0x61]
lea rdx, str.____Calling_DriverEntry_0x
call fcn.14000b080
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, [0x14000b260]
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 dword [rbp - 0x61], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rbx
lea rdx, [rbp - 0x61]
mov rcx, rdi
call fcn.14000d290
test al, al
jne 0x14000ce1b
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.14000b080
lea rdx, [0x14000b260]
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, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r14
mov rcx, rdi
call fcn.140008db0
jmp 0x14000ce93
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.14000b080
lea rdx, [0x140007c90]
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, dword [rbp - 0x61]
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, [0x14000b260]
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, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r14
jmp 0x14000ce95
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.14000b080
lea rdx, [0x14000b260]
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 [rbp - 9]
xor rcx, rsp
call fcn.140071470
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret