Function at 0x14000dab0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x90
mov rax, qword [0x140105080]
xor rax, rsp
mov qword [rbp - 1], rax
xor r14d, r14d
mov eax, 0x5a4d
cmp word [0x140105110], ax
jne 0x14000e1fb
movsxd r13, dword [0x14010514c]
lea rdi, [0x140105110]
add r13, rdi
cmp dword [r13], 0x4550
jne 0x14000e1fb
test r13, r13
je 0x14000e1fb
mov eax, 0x20b
cmp word [r13 + 0x18], ax
je 0x14000db37
lea rdx, str.____Image_is_not_64_bit
jmp 0x14000e202
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 rsi, rax
test rax, rax
je 0x14000e21e
movzx eax, word [r13 + 0x14]
mov r15d, dword [rax + r13 + 0x24]
mov dword [rbp - 0x59], r15d
sub ebx, r15d
mov ecx, ebx
mov qword [rbp - 0x49], rcx
je 0x14000dc91
mov edx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rdx + rax]
cmp dword [0x14010e1bc], eax
jle 0x14000dc64
lea rcx, [0x14010e1bc]
call fcn.1400c9610
cmp dword [0x14010e1bc], 0xffffffff
jne 0x14000dc60
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x31], xmm1
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400c9688
mov qword [rbp - 0x41], rax
movdqa xmm0, xmmword [reloc.WS2_32.dll_setsockopt]
movdqu xmmword [rbp - 0x31], xmm0
movups xmm0, xmmword [str.ExAllocatePoolWithTag]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400ddfd8]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400ddfdc]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea r8, [rbp - 0x41]
mov rdx, qword [0x14010d9e8]
call fcn.140007310
mov qword [0x14010e1f0], rax
mov rdx, qword [rbp - 0x29]
cmp rdx, 0xf
jbe 0x14000dc54
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dc4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000dc4e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c9560
nop
lea rcx, [0x14010e1bc]
call fcn.1400c95a4
mov rcx, qword [rbp - 0x49]
cmp qword [0x14010e1f0], 0
jne 0x14000dcca
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.14000b640
lea rdx, [0x14000b820]
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
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000b640
lea rdx, [0x14000b820]
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, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000e21e
mov qword [rbp - 0x51], r14
mov qword [rsp + 0x20], rcx
lea rdx, [rbp - 0x51]
call fcn.14000bfb0
test al, al
je 0x14000dc91
mov r12, qword [rbp - 0x51]
test r12, r12
je 0x14000dc91
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.14000b640
mov rdx, r12
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, [0x14000b820]
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, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r13 + 0x14]
add rbx, 0x24
mov edi, r14d
xor eax, eax
cmp ax, word [r13 + 6]
jae 0x14000dd76
add rbx, r13
lea r15, [0x140105110]
test dword [rbx + 0x18], 0x80
ja 0x14000dd63
mov ecx, dword [rbx]
add rcx, rsi
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, r15
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r13 + 6]
cmp edi, eax
jl 0x14000dd46
mov r15d, dword [rbp - 0x59]
mov eax, r15d
mov rbx, r12
sub rbx, rax
mov qword [rbp - 0x51], 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.14000b640
lea rdx, [0x1400023a0]
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, r15d
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.14000b640
lea rdx, [0x14000b820]
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, rbx
sub r14, qword [r13 + 0x30]
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x14000deb3
movsxd rax, dword [rsi + 0x3c]
add rax, rsi
cmp dword [rax], 0x4550
jne 0x14000deb3
test rax, rax
je 0x14000deb3
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
xor edx, edx
mov r11d, edx
mov qword [rbp - 9], rdx
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x14000de25
jmp 0x14000debe
lea rbx, [rsi + rcx]
mov edi, dword [rax + 0xb4]
add rdi, rbx
mov r10, qword [rbp - 0x11]
cmp rbx, rdi
jae 0x14000dead
nop dword [rax + rax]
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x14000deab
mov eax, dword [rbx]
add rax, rsi
mov qword [rbp - 0x41], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x39], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x31], eax
cmp r10, r11
je 0x14000de88
movups xmm0, xmmword [rbp - 0x41]
movups xmmword [r10], xmm0
movsd xmm1, qword [rbp - 0x31]
movsd qword [r10 + 0x10], xmm1
mov r10, qword [rbp - 0x11]
add r10, 0x18
mov qword [rbp - 0x11], r10
jmp 0x14000de9c
lea r8, [rbp - 0x41]
mov rdx, r10
lea rcx, [rbp - 0x19]
call fcn.14000f370
mov r10, qword [rbp - 0x11]
mov eax, dword [rbx + 4]
add rbx, rax
mov r11, qword [rbp - 9]
cmp rbx, rdi
jb 0x14000de40
xor edx, edx
mov rbx, qword [rbp - 0x19]
jmp 0x14000decd
xorps xmm1, xmm1
xor edx, edx
mov r11d, edx
xorps xmm0, xmm0
psrldq xmm0, 8
movq rbx, xmm1
movq r10, xmm0
cmp rbx, r10
je 0x14000df30
lea r9, [rbx + 0x10]
mov edi, 0xf000
mov r15d, 0xa000
mov r8d, edx
cmp dword [r9], 0
jbe 0x14000df1f
nop word [rax + rax]
mov ecx, r8d
mov rax, qword [r9 - 8]
movzx edx, word [rax + rcx*2]
movzx eax, dx
and ax, di
cmp ax, r15w
jne 0x14000df15
and edx, 0xfff
mov rax, qword [r9 - 0x10]
add qword [rdx + rax], r14
inc r8d
cmp r8d, dword [r9]
jb 0x14000def0
xor edx, edx
add r9, 0x18
lea rax, [r9 - 0x10]
cmp rax, r10
jne 0x14000dee1
mov r15d, dword [rbp - 0x59]
test rbx, rbx
je 0x14000df8b
sub r11, rbx
movabs rax, 0x2aaaaaaaaaaaaaab
imul r11
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x14000df83
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000df83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400c9560
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x14000e03d
movsxd rax, dword [rsi + 0x3c]
add rax, rsi
cmp dword [rax], 0x4550
jne 0x14000e03d
test rax, rax
je 0x14000e03d
mov ecx, dword [rax + 0xd8]
test ecx, ecx
jne 0x14000dfeb
lea rdx, str.___Load_config_directory_wasnt_found__probably_StackCookie_not_defined__fix_cookie_skipped
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000b640
lea rdx, [0x14000b820]
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, qword [rbp - 0x51]
jmp 0x14000e099
mov rdi, qword [rcx + rsi + 0x58]
test rdi, rdi
jne 0x14000dffe
lea rdx, str.___StackCookie_not_defined__fix_cookie_skipped
jmp 0x14000dfc6
mov rax, rsi
mov r14, qword [rbp - 0x51]
sub rax, r14
add rdi, rax
movabs rax, 0x2b992ddfa232
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
cmp qword [rdi], rax
je 0x14000e049
lea rdx, str.____StackCookie_already_fixed___this_probably_wrong
call fcn.14000b640
lea rdx, [0x14000b820]
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_fix_cookie
jmp 0x14000e202
lea rdx, str.___Fixing_stack_cookie
call fcn.14000b640
lea rdx, [0x14000b820]
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]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor rcx, rbx
movabs rdx, 0x2b992ddfa232
xor rcx, rdx
movabs rax, 0x2b992ddfa233
cmp rcx, rdx
cmove rcx, rax
mov qword [rdi], rcx
mov rdx, rsi
lea rcx, [rbp - 0x41]
call fcn.14000ebb0
mov rdx, rax
call fcn.14000e250
test al, al
jne 0x14000e0ba
lea rdx, str.____Failed_to_resolve_imports
jmp 0x14000e133
mov r8d, r15d
add r8, rsi
mov r9, qword [rbp - 0x49]
mov rdx, r12
call fcn.1400070f0
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 0x14000e0e0
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x14000e13a
mov ebx, dword [r13 + 0x28]
add rbx, r14
lea rdx, str.____Calling_DriverEntry_0x
call fcn.14000b640
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, [0x14000b820]
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 - 0x59], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rbx
lea rdx, [rbp - 0x59]
call fcn.14000e560
test al, al
jne 0x14000e1a6
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.14000b640
lea rdx, [0x14000b820]
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, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rdx, str.___Freeing_memory
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000b640
lea rdx, [0x14000b820]
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 rdx, r12
call fcn.1400071e0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x14000e209
lea rdx, str.____WARNING:_Failed_to_free_memory_
jmp 0x14000e209
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.14000b640
lea rdx, [0x1400023a0]
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 - 0x59]
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, [0x14000b820]
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, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r12
jmp 0x14000e220
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.14000b640
lea rdx, [0x14000b820]
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 - 1]
xor rcx, rsp
call fcn.1400c9540
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret