Function at 0x140086dd0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xd0
mov rax, qword [0x14009c040]
xor rax, rsp
mov qword [rbp - 9], rax
mov r13, rdx
mov r14, rcx
mov qword [rbp - 0x79], rcx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x69], rax
xor esi, esi
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x29], rsi
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140087310
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x140087310
test rdi, rdi
je 0x140087310
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x140086e5a
lea rdx, str.____Image_is_not_64_bit
jmp 0x140087317
mov ebx, dword [rdi + 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 0x140087333
movzx eax, word [rdi + 0x14]
mov eax, dword [rax + rdi + 0x24]
mov dword [rbp - 0x59], eax
sub ebx, eax
mov qword [rbp - 0x71], rsi
mov edx, ebx
mov qword [rsp + 0x48], rdx
cmp byte [rbp + 0x77], sil
je 0x140086eb1
lea r8, [rbp - 0x71]
mov rcx, r14
call fcn.1400868b0
mov r15, rax
jmp 0x140087001
test ebx, ebx
jne 0x140086ebd
mov r15, rsi
jmp 0x140087001
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x14009cb18], eax
jle 0x140086fad
lea rcx, [0x14009cb18]
call fcn.140089af0
cmp dword [0x14009cb18], 0xffffffff
jne 0x140086fa8
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
mov ecx, 0x20
call fcn.140089b68
mov qword [rbp - 0x51], rax
movdqa xmm0, xmmword [0x1400975c0]
movdqu xmmword [rbp - 0x41], xmm0
movups xmm0, xmmword [0x14008cf40]
movups xmmword [rax], xmm0
mov ecx, dword [0x14008cf50]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x14008cf54]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea r8, [rbp - 0x51]
mov rdx, qword [0x14009ca58]
mov rcx, r14
call fcn.1400807d0
mov qword [0x14009cbd0], rax
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x140086f9c
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140086f96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140086f96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140089a40
nop
lea rcx, [0x14009cb18]
call fcn.140089a84
mov rdx, qword [rsp + 0x48]
cmp qword [0x14009cbd0], 0
jne 0x140086fdf
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.140083ab0
lea rdx, [0x140083c90]
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 r15, rsi
jmp 0x140087001
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140084800
mov r15, qword [rsp + 0x40]
test al, al
cmove r15, rsi
mov qword [rbp - 0x61], r15
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test r15, r15
jne 0x14008701d
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x1400872dc
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.140083ab0
mov rdx, r15
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, [0x140083c90]
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 [rdi + 0x54]
mov rdx, r13
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor ecx, ecx
cmp cx, word [rdi + 6]
jae 0x140087096
add rbx, rdi
test dword [rbx + 0x14], 0x80
ja 0x140087084
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r13
mov ecx, dword [rbx - 4]
add rcx, r12
call sub.VCRUNTIME140.dll_memcpy
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x140087067
mov r14, qword [rbp - 0x79]
mov rsi, r15
mov ebx, dword [rbp - 0x59]
mov r13d, ebx
sub r15, 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.140083ab0
lea rdx, [0x14007f1f0]
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.140083ab0
lea rdx, [0x140083c90]
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, r15
sub rbx, qword [rdi + 0x30]
mov rdx, r12
lea rcx, [rbp - 0x51]
call fcn.140087d80
mov rdx, rbx
mov rcx, rax
call fcn.140087360
mov rdx, r12
lea rcx, [rbp - 0x51]
call fcn.140087ee0
mov rdx, rax
mov rcx, r14
call fcn.140087460
test al, al
jne 0x140087134
lea rdx, str.____Failed_to_resolve_imports
jmp 0x1400872d5
lea rax, [r12 + r13]
test rax, rax
je 0x1400872ce
mov r13, qword [rsp + 0x48]
test r13, r13
je 0x1400872ce
xor ecx, ecx
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x51], 0x33
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x31], r13
mov dword [rbp - 0x59], ecx
mov qword [rsp + 0x38], rcx
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov r9d, 0x28
lea r8, [rbp - 0x51]
mov edx, 0x80862007
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400872ce
mov edi, dword [rdi + 0x28]
add rdi, r15
lea rdx, str.____Calling_DriverEntry_0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140083ab0
mov rdx, rdi
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, [0x140083c90]
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, qword [rbp - 0x71]
mov qword [rsp + 0x20], rbx
mov r9, r13
mov r8, rsi
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x29]
call fcn.140086250
test al, al
jne 0x140087204
lea rdx, str.____Callback_returns_false__failed_
jmp 0x1400872d5
xor ecx, ecx
mov dword [rbp - 0x59], ecx
mov r9, qword [rbp - 0x29]
cmp byte [rbp + 0x7f], cl
cmovne r9, rsi
mov rax, qword [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r8, rdi
lea rdx, [rbp - 0x59]
mov rcx, r14
call fcn.140087770
test al, al
jne 0x14008723c
lea rdx, str.____Failed_to_call_driver_entry
jmp 0x1400872d5
mov edi, dword [rbp - 0x59]
mov rax, qword [rbp - 0x69]
test rax, rax
je 0x14008724a
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.140083ab0
lea rdx, [0x14007f1f0]
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, edi
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, [0x140083c90]
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 + 0x67], 0
je 0x1400872b8
mov rdx, rsi
mov rcx, r14
cmp byte [rbp + 0x77], 0
je 0x1400872b3
mov r8, rbx
call fcn.1400803f0
mov rdx, rbx
mov rcx, r14
call fcn.140080540
mov rdx, rbx
mov rcx, r14
call fcn.140080690
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rsi
jmp 0x140087335
lea rdx, str.____Failed_to_write_local_image_to_remote_image
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140083ab0
lea rdx, [0x140083c90]
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 - 0x61]
mov rcx, r14
call fcn.140080690
jmp 0x140087333
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.140083ab0
lea rdx, [0x140083c90]
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.140089a20
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret