Function at 0x14000ea20
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xb8
mov rax, qword [0x1401d3d40]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15, rdx
mov qword [rbp - 0x39], rdx
mov rdi, rcx
mov qword [rbp - 0x61], rcx
mov qword [rbp - 0x19], r8
mov qword [rbp - 0x11], r9
movzx r14d, byte [rbp + 0x77]
mov byte [rsp + 0x30], r14b
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x29], rax
mov rax, qword [rbp + 0x97]
mov qword [rbp - 0x21], rax
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000f0a9
movsxd rsi, dword [rdx + 0x3c]
add rsi, rdx
cmp dword [rsi], 0x4550
jne 0x14000f0a9
test rsi, rsi
je 0x14000f0a9
mov eax, 0x20b
cmp word [rsi + 0x18], ax
je 0x14000eabe
lea rdx, str.____Image_is_not_64_bit
jmp 0x14000f0b0
mov ebx, dword [rsi + 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 0x14000f0cc
movzx eax, word [rsi + 0x14]
mov ecx, dword [rax + rsi + 0x24]
mov dword [rbp - 0x71], ecx
xor r8d, r8d
mov eax, r8d
test r14b, r14b
cmovne eax, ecx
mov dword [rbp - 0x6d], eax
sub ebx, eax
mov dword [rbp - 0x7d], ebx
mov r13d, r8d
mov qword [rbp - 0x69], r8
mov eax, dword [rbp + 0x7f]
cmp eax, 1
jne 0x14000eb2b
mov edx, ebx
lea r8, [rbp - 0x69]
mov rcx, rdi
call fcn.14000e290
mov r14, rax
mov r13, qword [rbp - 0x69]
jmp 0x14000ec93
cmp eax, 2
jne 0x14000eb42
mov edx, ebx
mov rcx, rdi
call fcn.14000e7b0
mov r14, rax
jmp 0x14000ec93
test rbx, rbx
jne 0x14000eb4f
mov r14, r8
jmp 0x14000ec93
mov edx, 0x28
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401d66d8], eax
jle 0x14000ec3b
lea rcx, [0x1401d66d8]
call fcn.1400df220
cmp dword [0x1401d66d8], 0xffffffff
jne 0x14000ec38
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov ecx, 0x20
call fcn.1400deef4
mov qword [rbp - 0x59], rax
movdqa xmm0, xmmword [0x140105c80]
movdqu xmmword [rbp - 0x49], xmm0
movups xmm0, xmmword [0x1400fb4a0]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400fb4b0]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400fb4b4]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea r8, [rbp - 0x59]
mov rdx, qword [0x1401d6678]
mov rcx, rdi
call fcn.140009bf0
mov qword [0x1401d67c0], rax
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x14000ec2c
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ec26
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ec26
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400def30
nop
lea rcx, [0x1401d66d8]
call fcn.1400df1b4
xor r8d, r8d
cmp qword [0x1401d67c0], 0
jne 0x14000ec6f
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.140007240
lea rdx, [0x140007420]
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 r14d, eax
jmp 0x14000ec93
mov qword [rbp - 0x79], r8
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.14000d270
mov r14, qword [rbp - 0x79]
test al, al
mov eax, 0
cmove r14, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test r14, r14
jne 0x14000ecd1
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
call fcn.140007240
lea rdx, [0x140007420]
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]
jmp 0x14000f0cc
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.140007240
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, [0x140007420]
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 [rsi + 0x54]
mov rdx, r15
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rsi + 0x14]
add rbx, 0x28
xor ecx, ecx
mov r15d, ecx
cmp cx, word [rsi + 6]
jae 0x14000ed57
add rbx, rsi
mov rdi, qword [rbp - 0x39]
test dword [rbx + 0x14], 0x80
ja 0x14000ed3f
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, rdi
mov ecx, dword [rbx - 4]
add rcx, r12
call sub.VCRUNTIME140.dll_memcpy
inc r15d
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp r15d, eax
jl 0x14000ed22
mov rdi, qword [rbp - 0x61]
mov r13, qword [rbp - 0x69]
mov r15, r14
cmp byte [rsp + 0x30], 0
je 0x14000edb4
mov ebx, dword [rbp - 0x71]
sub r14, 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.140007240
lea rdx, [0x140007e50]
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.140007240
lea rdx, [0x140007420]
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 rbx, r14
sub rbx, qword [rsi + 0x30]
mov rdx, r12
lea rcx, [rbp - 0x59]
call fcn.140010830
mov rdx, rbx
mov rcx, rax
call fcn.14000f0f0
mov rdx, r14
mov rcx, r12
call fcn.14000f1f0
test al, al
jne 0x14000eded
lea rdx, str.____Failed_to_fix_cookie
jmp 0x14000f0b0
mov rdx, r12
lea rcx, [rbp - 0x59]
call fcn.140010990
mov rdx, rax
mov rcx, rdi
call fcn.14000f350
test al, al
jne 0x14000ee33
lea rdx, str.____Failed_to_resolve_imports
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140007240
lea rdx, [0x140007420]
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 ebx, dword [rbp - 0x7d]
jmp 0x14000ef11
mov ebx, dword [rbp - 0x7d]
mov r9d, ebx
mov r8d, dword [rbp - 0x6d]
add r8, r12
mov rdx, r15
mov rcx, rdi
call fcn.1400093f0
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 0x14000ee62
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x14000eefc
mov esi, dword [rsi + 0x28]
add rsi, r14
lea rdx, str.____Calling_DriverEntry_0x
call fcn.140007240
mov rdx, rsi
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, [0x140007420]
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 rax, qword [rbp - 0x29]
test rax, rax
je 0x14000eebb
mov qword [rsp + 0x20], r13
mov r9, rbx
mov r8, r15
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x19]
call rax
test al, al
jne 0x14000eebb
lea rdx, str.____Callback_returns_false__failed_
jmp 0x14000eef5
xor eax, eax
mov dword [rbp - 0x7d], eax
mov r9, qword [rbp - 0x19]
cmp byte [rbp + 0x87], al
cmovne r9, r15
mov rax, qword [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r8, rsi
lea rdx, [rbp - 0x7d]
mov rcx, rdi
call fcn.14000f720
test al, al
jne 0x14000efa6
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.140007240
lea rdx, [0x140007420]
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]
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.140007240
lea rdx, [0x140007420]
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 eax, dword [rbp + 0x7f]
mov rdx, r15
cmp eax, 1
jne 0x14000ef94
mov r8, r13
mov rcx, rdi
call fcn.140009810
test al, al
je 0x14000ef88
mov rdx, r13
mov rcx, rdi
call fcn.140009960
test al, al
je 0x14000ef88
mov rdx, r13
mov rcx, rdi
call fcn.140009ab0
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x14000f0b0
lea rdx, str.____WARNING:_Failed_to_free_memory_
jmp 0x14000f0b0
cmp eax, 2
jne 0x14000ef71
mov r8d, ebx
mov rcx, rdi
call fcn.1400096f0
jmp 0x14000ef79
mov esi, dword [rbp - 0x7d]
mov rax, qword [rbp - 0x21]
test rax, rax
je 0x14000efb4
mov dword [rax], esi
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.140007240
lea rdx, [0x140007e50]
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, esi
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, [0x140007420]
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]
cmp byte [rbp + 0x6f], 0
je 0x14000f081
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.140007240
lea rdx, [0x140007420]
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 eax, dword [rbp + 0x7f]
mov rdx, r15
cmp eax, 1
jne 0x14000f097
mov r8, r13
mov rcx, rdi
call fcn.140009810
test al, al
je 0x14000f05e
mov rdx, r13
mov rcx, rdi
call fcn.140009960
test al, al
je 0x14000f05e
mov rdx, r13
mov rcx, rdi
call fcn.140009ab0
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x14000f065
lea rdx, str.____WARNING:_Failed_to_free_memory_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140007240
lea rdx, [0x140007420]
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, r15
jmp 0x14000f0ce
cmp eax, 2
jne 0x14000f04b
mov r8d, ebx
mov rcx, rdi
call fcn.1400096f0
jmp 0x14000f053
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.140007240
lea rdx, [0x140007420]
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.1400df330
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret