Function at 0x1401ad3b0
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 [0x1403372b0]
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 0x1401ad85b
movsxd rdi, dword [rax + 0x3c]
add rdi, rax
cmp dword [rdi], 0x4550
jne 0x1401ad85b
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x1401ad444
lea rdx, str.____Image_is_not_64_bit
jmp 0x1401ad862
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 0x1401ad87f
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 0x1401ad4a7
lea r8, [rbp - 0x59]
mov rcx, r15
call fcn.1401acff0
mov r13, rax
jmp 0x1401ad581
test ebx, ebx
je 0x1401ad554
mov r8d, 8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x14037fb28], eax
jle 0x1401ad527
lea rcx, [0x14037fb28]
call fcn.14023b758
cmp dword [0x14037fb28], 0xffffffff
jne 0x1401ad523
lea rdx, str.ExAllocatePoolWithTag
lea rcx, [rbp - 0x41]
call fcn.14000d6f0
nop
lea r8, [rbp - 0x41]
mov rdx, qword [0x140348360]
mov rcx, r15
call fcn.1401ab0c0
mov qword [0x14037fb98], rax
lea rcx, [rbp - 0x41]
call fcn.14000d5e0
nop
lea rcx, [0x14037fb28]
call fcn.14023b6f8
mov rdx, qword [rbp - 0x69]
cmp qword [0x14037fb98], 0
jne 0x1401ad564
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.1401ab540
mov rcx, rax
lea rdx, [0x1401ab750]
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 0x1401ad782
mov qword [rbp - 0x79], r13
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x79]
mov rcx, r15
call fcn.1401ac140
test al, al
je 0x1401ad554
mov r13, qword [rbp - 0x79]
mov qword [rbp - 0x79], r13
test r13, r13
jne 0x1401ad596
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x1401ad782
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.1401ab540
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, [0x1401ab750]
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 0x1401ad61d
add rbx, rdi
nop word [rax + rax]
test dword [rbx + 0x18], 0x80
ja 0x1401ad60d
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 0x1401ad5f0
mov rbx, r13
cmp byte [rsp + 0x30], 0
je 0x1401ad67c
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.1401ab540
mov rcx, rax
lea rdx, [0x14011c730]
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.1401ab540
mov rcx, rax
lea rdx, [0x1401ab750]
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.1401ae6c0
mov rdx, r13
sub rdx, qword [rdi + 0x30]
mov rcx, rax
call fcn.1401ad8b0
mov rdx, r12
lea rcx, [rbp - 0x41]
call fcn.1401ae8f0
mov rdx, rax
mov rcx, r15
call fcn.1401ad990
test al, al
jne 0x1401ad6be
lea rdx, str.____Failed_to_resolve_imports
jmp 0x1401ad782
mov r8d, dword [rbp - 0x61]
add r8, r12
mov r9, qword [rbp - 0x69]
mov rdx, rbx
mov rcx, r15
call fcn.1401aab10
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 0x1401ad6eb
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x1401ad789
mov edi, dword [rdi + 0x28]
add rdi, r13
lea rdx, str.____Calling_DriverEntry_0x
call fcn.1401ab540
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, [0x1401ab750]
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 0x1401ad749
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 0x1401ad749
lea rdx, str.____Callback_returns_false__failed_
jmp 0x1401ad782
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.1401adc50
test al, al
jne 0x1401ad7c0
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.1401ab540
lea rdx, [0x1401ab750]
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.1401aafe0
jmp 0x1401ad87f
mov edi, dword [rbp - 0x71]
mov rax, qword [rbp - 0x49]
test rax, rax
je 0x1401ad7ce
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.1401ab540
mov rcx, rax
lea rdx, [0x14011c730]
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, [0x1401ab750]
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 0x1401ad83c
mov rdx, rbx
mov rcx, r15
cmp byte [rbp + 0x7f], 0
je 0x1401ad837
mov r8, r14
call fcn.1401aae00
mov rdx, r14
mov rcx, r15
call fcn.1401aaf00
mov rdx, r14
mov rcx, r15
call fcn.1401aafe0
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rcx, rsi
call fcn.14012a170
mov rax, rbx
jmp 0x1401ad889
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.1401ab540
lea rdx, [0x1401ab750]
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.14012a170
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14023b5b0
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret