Function at 0x1401eb7f0
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 [0x1405d52b0]
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 0x1401ebc9b
movsxd rdi, dword [rax + 0x3c]
add rdi, rax
cmp dword [rdi], 0x4550
jne 0x1401ebc9b
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x1401eb884
lea rdx, str.____Image_is_not_64_bit
jmp 0x1401ebca2
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 0x1401ebcbf
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 0x1401eb8e7
lea r8, [rbp - 0x59]
mov rcx, r15
call fcn.1401eb430
mov r13, rax
jmp 0x1401eb9c1
test ebx, ebx
je 0x1401eb994
mov r8d, 8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x14061e618], eax
jle 0x1401eb967
lea rcx, [0x14061e618]
call fcn.14027a8e8
cmp dword [0x14061e618], 0xffffffff
jne 0x1401eb963
lea rdx, str.ExAllocatePoolWithTag
lea rcx, [rbp - 0x41]
call fcn.14000eb90
nop
lea r8, [rbp - 0x41]
mov rdx, qword [0x1405e6a88]
mov rcx, r15
call fcn.1401e9500
mov qword [0x14061e688], rax
lea rcx, [rbp - 0x41]
call fcn.14000ea80
nop
lea rcx, [0x14061e618]
call fcn.14027a888
mov rdx, qword [rbp - 0x69]
cmp qword [0x14061e688], 0
jne 0x1401eb9a4
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.1401e9980
mov rcx, rax
lea rdx, [0x1401e9b90]
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 0x1401ebbc2
mov qword [rbp - 0x79], r13
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x79]
mov rcx, r15
call fcn.1401ea580
test al, al
je 0x1401eb994
mov r13, qword [rbp - 0x79]
mov qword [rbp - 0x79], r13
test r13, r13
jne 0x1401eb9d6
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x1401ebbc2
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.1401e9980
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, [0x1401e9b90]
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 0x1401eba5d
add rbx, rdi
nop word [rax + rax]
test dword [rbx + 0x18], 0x80
ja 0x1401eba4d
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 0x1401eba30
mov rbx, r13
cmp byte [rsp + 0x30], 0
je 0x1401ebabc
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.1401e9980
mov rcx, rax
lea rdx, [0x140124ab0]
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.1401e9980
mov rcx, rax
lea rdx, [0x1401e9b90]
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.1401ecb00
mov rdx, r13
sub rdx, qword [rdi + 0x30]
mov rcx, rax
call fcn.1401ebcf0
mov rdx, r12
lea rcx, [rbp - 0x41]
call fcn.1401ecd30
mov rdx, rax
mov rcx, r15
call fcn.1401ebdd0
test al, al
jne 0x1401ebafe
lea rdx, str.____Failed_to_resolve_imports
jmp 0x1401ebbc2
mov r8d, dword [rbp - 0x61]
add r8, r12
mov r9, qword [rbp - 0x69]
mov rdx, rbx
mov rcx, r15
call fcn.1401e8f50
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 0x1401ebb2b
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x1401ebbc9
mov edi, dword [rdi + 0x28]
add rdi, r13
lea rdx, str.____Calling_DriverEntry_0x
call fcn.1401e9980
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, [0x1401e9b90]
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 0x1401ebb89
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 0x1401ebb89
lea rdx, str.____Callback_returns_false__failed_
jmp 0x1401ebbc2
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.1401ec090
test al, al
jne 0x1401ebc00
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.1401e9980
lea rdx, [0x1401e9b90]
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.1401e9420
jmp 0x1401ebcbf
mov edi, dword [rbp - 0x71]
mov rax, qword [rbp - 0x49]
test rax, rax
je 0x1401ebc0e
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.1401e9980
mov rcx, rax
lea rdx, [0x140124ab0]
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, [0x1401e9b90]
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 0x1401ebc7c
mov rdx, rbx
mov rcx, r15
cmp byte [rbp + 0x7f], 0
je 0x1401ebc77
mov r8, r14
call fcn.1401e9240
mov rdx, r14
mov rcx, r15
call fcn.1401e9340
mov rdx, r14
mov rcx, r15
call fcn.1401e9420
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, rsi
call fcn.14013ac10
mov rax, rbx
jmp 0x1401ebcc9
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.1401e9980
lea rdx, [0x1401e9b90]
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.14013ac10
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14027a740
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret