Function at 0x1401e97b0
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 [0x14039b2b0]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, rdx
mov r15, rcx
mov qword [rbp - 0x21], rdx
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 - 0x51], rax
mov rax, qword [rbp + 0x97]
mov qword [rbp - 0x49], rax
mov rax, qword [rdx]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401e9c5b
movsxd rdi, dword [rax + 0x3c]
add rdi, rax
cmp dword [rdi], 0x4550
jne 0x1401e9c5b
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x1401e9844
lea rdx, str.____Image_is_not_64_bit
jmp 0x1401e9c62
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x1401e9c7f
movzx eax, word [rdi + 0x14]
mov ecx, dword [rax + rdi + 0x24]
mov dword [rbp - 0x71], ecx
xor r13d, r13d
mov eax, r13d
test r14b, r14b
cmovne eax, ecx
mov dword [rbp - 0x61], eax
sub ebx, eax
mov qword [rbp - 0x59], r13
mov edx, ebx
mov qword [rbp - 0x69], rdx
cmp byte [rbp + 0x7f], r13b
je 0x1401e98a7
lea r8, [rbp - 0x59]
mov rcx, r15
call fcn.1401e93f0
mov r13, rax
jmp 0x1401e9981
test ebx, ebx
je 0x1401e9954
mov r8d, 8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x1403e4578], eax
jle 0x1401e9927
lea rcx, [0x1403e4578]
call fcn.1402788a8
cmp dword [0x1403e4578], 0xffffffff
jne 0x1401e9923
lea rdx, str.ExAllocatePoolWithTag
lea rcx, [rbp - 0x41]
call fcn.14000eaa0
nop
lea r8, [rbp - 0x41]
mov rdx, qword [0x1403aca28]
mov rcx, r15
call fcn.1401e74c0
mov qword [0x1403e45e8], rax
lea rcx, [rbp - 0x41]
call fcn.14000e990
nop
lea rcx, [0x1403e4578]
call fcn.140278848
mov rdx, qword [rbp - 0x69]
cmp qword [0x1403e45e8], 0
jne 0x1401e9964
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.1401e7940
mov rcx, rax
lea rdx, [0x1401e7b50]
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 qword [rbp - 0x79], r13
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x1401e9b82
mov qword [rbp - 0x79], r13
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x79]
mov rcx, r15
call fcn.1401e8540
test al, al
je 0x1401e9954
mov r13, qword [rbp - 0x79]
mov qword [rbp - 0x79], r13
test r13, r13
jne 0x1401e9996
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x1401e9b82
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.1401e7940
mov rcx, rax
mov rdx, r13
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, [0x1401e7b50]
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 [rdi + 0x54]
mov rdx, qword [rsi]
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x24
xor eax, eax
mov r14d, eax
cmp ax, word [rdi + 6]
jae 0x1401e9a1d
add rbx, rdi
nop word [rax + rax]
test dword [rbx + 0x18], 0x80
ja 0x1401e9a0d
mov ecx, dword [rbx]
add rcx, r12
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, qword [rsi]
call sub.VCRUNTIME140.dll_memcpy
inc r14d
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp r14d, eax
jl 0x1401e99f0
mov rbx, r13
cmp byte [rsp + 0x30], 0
je 0x1401e9a7c
mov r14d, dword [rbp - 0x71]
sub r13, r14
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.1401e7940
mov rcx, rax
lea rdx, [0x140122f60]
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, r14d
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.1401e7940
mov rcx, rax
lea rdx, [0x1401e7b50]
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
lea rcx, [rbp - 0x41]
call fcn.1401eaac0
mov rdx, r13
sub rdx, qword [rdi + 0x30]
mov rcx, rax
call fcn.1401e9cb0
mov rdx, r12
lea rcx, [rbp - 0x41]
call fcn.1401eacf0
mov rdx, rax
mov rcx, r15
call fcn.1401e9d90
test al, al
jne 0x1401e9abe
lea rdx, str.____Failed_to_resolve_imports
jmp 0x1401e9b82
mov r8d, dword [rbp - 0x61]
add r8, r12
mov r9, qword [rbp - 0x69]
mov rdx, rbx
mov rcx, r15
call fcn.1401e6f10
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 0x1401e9aeb
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x1401e9b89
mov edi, dword [rdi + 0x28]
add rdi, r13
lea rdx, str.____Calling_DriverEntry_0x
call fcn.1401e7940
mov rcx, rax
mov rdx, rdi
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, [0x1401e7b50]
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 - 0x51]
mov r14, qword [rbp - 0x59]
test rax, rax
je 0x1401e9b49
mov qword [rsp + 0x20], r14
mov r9, qword [rbp - 0x69]
mov r8, rbx
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x19]
call rax
test al, al
jne 0x1401e9b49
lea rdx, str.____Callback_returns_false__failed_
jmp 0x1401e9b82
mov dword [rbp - 0x71], 0
mov r9, qword [rbp - 0x19]
cmp byte [rbp + 0x87], 0
cmovne r9, rbx
mov rax, qword [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r8, rdi
lea rdx, [rbp - 0x71]
mov rcx, r15
call fcn.1401ea050
test al, al
jne 0x1401e9bc0
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.1401e7940
lea rdx, [0x1401e7b50]
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, qword [rbp - 0x79]
mov rcx, r15
call fcn.1401e73e0
jmp 0x1401e9c7f
mov edi, dword [rbp - 0x71]
mov rax, qword [rbp - 0x49]
test rax, rax
je 0x1401e9bce
mov dword [rax], edi
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.1401e7940
mov rcx, rax
lea rdx, [0x140122f60]
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, edi
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, [0x1401e7b50]
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 0x1401e9c3c
mov rdx, rbx
mov rcx, r15
cmp byte [rbp + 0x7f], 0
je 0x1401e9c37
mov r8, r14
call fcn.1401e7200
mov rdx, r14
mov rcx, r15
call fcn.1401e7300
mov rdx, r14
mov rcx, r15
call fcn.1401e73e0
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, rsi
call fcn.1401393d0
mov rax, rbx
jmp 0x1401e9c89
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.1401e7940
lea rdx, [0x1401e7b50]
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]
nop
mov rcx, rsi
call fcn.1401393d0
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140278700
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret