Function at 0x14006db60
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x88
mov rsi, rdx
mov rdi, rcx
xor r13d, r13d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14006e11f
movsxd r14, dword [rdx + 0x3c]
add r14, rdx
cmp dword [r14], 0x4550
jne 0x14006e11f
mov eax, 0x20b
cmp word [r14 + 0x18], ax
je 0x14006dbca
lea rdx, str.____Image_is_not_64_bit
jmp 0x14006e126
mov ebx, dword [r14 + 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 0x14006e142
movzx eax, word [r14 + 0x14]
mov r12d, dword [rax + r14 + 0x24]
sub ebx, r12d
mov ecx, ebx
mov qword [rbp + 0x67], rcx
je 0x14006dd56
mov edx, reloc.WS2_32.dll_recv
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rdx + rax]
cmp dword [0x1401bed1c], eax
jle 0x14006dcfb
lea rcx, [0x1401bed1c]
call fcn.1400cfdf4
cmp dword [0x1401bed1c], 0xffffffff
jne 0x14006dcf7
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r13
mov qword [rbp - 9], reloc.WS2_32.dll_ntohs
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400d01fc
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x11], reloc.WS2_32.dll_setsockopt
mov qword [rbp - 9], Ordinal_33
movups xmm0, xmmword [str.ExAllocatePoolWithTag]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400fb1d8]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400fb1dc]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea r8, [rbp - 0x21]
mov rdx, qword [0x1401be758]
mov rcx, rdi
call fcn.1400697c0
mov qword [0x1401bed80], rax
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x14006dceb
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006dce5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006dce5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d017c
nop
lea rcx, [0x1401bed1c]
call fcn.1400cfd88
mov rcx, qword [rbp + 0x67]
cmp qword [0x1401bed80], 0
jne 0x14006dd34
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.14006c1f0
lea rdx, [0x14006c3d0]
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]
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x14006e090
mov qword [rbp + 0x5f], r13
mov qword [rsp + 0x20], rcx
lea rdx, [rbp + 0x5f]
mov rcx, rdi
call fcn.14006c410
test al, al
je 0x14006dd56
mov r13, qword [rbp + 0x5f]
test r13, r13
jne 0x14006dd62
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x14006e090
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.14006c1f0
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, [0x14006c3d0]
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 [r14 + 0x54]
mov rdx, rsi
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r14 + 0x14]
add rbx, 0x24
xor eax, eax
mov edi, eax
cmp ax, word [r14 + 6]
jae 0x14006dde3
add rbx, r14
test dword [rbx + 0x18], 0x80
ja 0x14006ddd4
mov ecx, dword [rbx]
add rcx, r15
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 [r14 + 6]
cmp edi, eax
jl 0x14006ddb7
mov rbx, r13
sub rbx, r12
mov qword [rbp + 0x5f], 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.14006c1f0
lea rdx, [0x1400685e0]
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, r12d
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.14006c1f0
lea rdx, [0x14006c3d0]
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, rbx
sub rsi, qword [r14 + 0x30]
mov eax, 0x5a4d
cmp word [r15], ax
jne 0x14006df19
movsxd rax, dword [r15 + 0x3c]
cmp dword [rax + r15], 0x4550
jne 0x14006df19
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x51], xmm1
xor edx, edx
mov r8d, edx
mov qword [rbp - 0x41], rdx
mov ecx, dword [rax + r15 + 0xb0]
test ecx, ecx
jne 0x14006de87
mov ebx, edx
jmp 0x14006df20
lea rbx, [r15 + rcx]
mov edi, dword [rax + r15 + 0xb4]
add rdi, rbx
cmp rbx, rdi
jae 0x14006df09
mov rdx, qword [rbp - 0x49]
nop
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x14006df02
mov eax, dword [rbx]
add rax, r15
mov qword [rbp - 0x39], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x31], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x29], eax
cmp rdx, r8
je 0x14006dee2
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rbp - 0x29]
movsd qword [rdx + 0x10], xmm1
add rdx, 0x18
mov qword [rbp - 0x49], rdx
jmp 0x14006def7
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x51]
call fcn.14006f200
mov r8, qword [rbp - 0x41]
mov rdx, qword [rbp - 0x49]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rdi
jb 0x14006dea0
movdqu xmm1, xmmword [rbp - 0x51]
xor edx, edx
movsd xmm0, qword [rbp - 0x41]
movsd qword [rbp - 0x11], xmm0
mov rbx, qword [rbp - 0x11]
jmp 0x14006df20
xorps xmm1, xmm1
xor edx, edx
mov ebx, edx
movq r10, xmm1
psrldq xmm1, 8
movq r11, xmm1
cmp r10, r11
je 0x14006df8f
lea r8, [r10 + 0x10]
mov edi, 0xfff
nop dword [rax]
mov eax, edx
cmp dword [r8], 0
jbe 0x14006df82
nop dword [rax + rax]
mov edx, eax
mov rcx, qword [r8 - 8]
movzx r9d, word [rcx + rdx*2]
movzx ecx, r9w
shr cx, 0xc
and r9w, di
cmp cx, 0xa
jne 0x14006df79
movzx edx, r9w
mov rcx, qword [r8 - 0x10]
add qword [rcx + rdx], rsi
inc eax
cmp eax, dword [r8]
jb 0x14006df50
xor edx, edx
add r8, 0x18
lea rax, [r8 - 0x10]
cmp rax, r11
jne 0x14006df40
test r10, r10
je 0x14006dfea
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 0x14006dfe2
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006dfe2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1400d017c
mov rdx, r15
lea rcx, [rbp - 0x21]
call fcn.14006e8e0
mov rdx, rax
mov rdi, qword [rbp + 0x4f]
mov rcx, rdi
call fcn.14006e160
test al, al
jne 0x14006e012
lea rdx, str.____Failed_to_resolve_imports
jmp 0x14006e090
lea r8, [r15 + r12]
mov r9, qword [rbp + 0x67]
mov rdx, r13
mov rcx, rdi
call fcn.140069380
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 0x14006e039
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x14006e097
mov ebx, dword [r14 + 0x28]
add rbx, qword [rbp + 0x5f]
lea rdx, str.____Calling_DriverEntry_0x
call fcn.14006c1f0
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, [0x14006c3d0]
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 + 0x6f], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rbx
lea rdx, [rbp + 0x6f]
mov rcx, rdi
call fcn.14006e450
test al, al
jne 0x14006e0ca
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.14006c1f0
lea rdx, [0x14006c3d0]
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, r13
mov rcx, rdi
call fcn.140069670
jmp 0x14006e142
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.14006c1f0
lea rdx, [0x1400685e0]
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 + 0x6f]
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, [0x14006c3d0]
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 rax, r13
jmp 0x14006e144
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.14006c1f0
lea rdx, [0x14006c3d0]
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
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret