Function at 0x140008bc0
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 - 0x100]
sub rsp, 0x200
mov rax, qword [0x14014f080]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r13, rdx
mov r14, rcx
mov qword [rsp + 0x50], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140009255
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x140009255
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x140008c33
lea rdx, str.____Image_is_not_64_bit
jmp 0x14000925c
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 r15, rax
test rax, rax
je 0x140009278
movzx eax, word [rdi + 0x14]
mov eax, dword [rax + rdi + 0x24]
mov dword [rbp + 0xc0], eax
sub ebx, eax
mov edx, ebx
mov qword [rsp + 0x48], rdx
je 0x140008d7d
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x140153544], eax
jle 0x140008d50
lea rcx, [0x140153544]
call fcn.1400e8800
cmp dword [0x140153544], 0xffffffff
jne 0x140008d4b
xorps xmm0, xmm0
movups xmmword [rbp + 0xc8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xd8], xmm1
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, [0x1400feed8]
lea rcx, [rbp + 0xc8]
call fcn.140008240
nop
lea r8, [rbp + 0xc8]
mov rdx, qword [0x140152f28]
mov rcx, r14
call fcn.140003870
mov qword [0x1401535a8], rax
mov rdx, qword [rbp + 0xe0]
cmp rdx, 0x10
jb 0x140008d3f
inc rdx
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008d39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008d39
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e8670
nop
lea rcx, [0x140153544]
call fcn.1400e87a0
mov rdx, qword [rsp + 0x48]
cmp qword [0x1401535a8], 0
jne 0x140008d8e
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.140006ec0
lea rdx, [0x140007090]
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 esi, esi
mov r12, rsi
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x14000921b
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1400070d0
test al, al
je 0x140008d7f
mov r12, qword [rsp + 0x40]
test r12, r12
jne 0x140008dc1
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x14000921b
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.140006ec0
mov rdx, r12
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, [0x140007090]
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, r15
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
mov r14d, esi
cmp si, word [rdi + 6]
jae 0x140008e40
add rbx, rdi
test dword [rbx + 0x14], 0x80
ja 0x140008e30
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r13
mov ecx, dword [rbx - 4]
add rcx, r15
call sub.VCRUNTIME140.dll_memcpy
inc r14d
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp r14d, eax
jl 0x140008e13
mov ebx, dword [rbp + 0xc0]
mov qword [rsp + 0x40], rbx
mov r13, r12
sub r13, 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.140006ec0
lea rdx, [0x140002600]
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.140006ec0
lea rdx, [0x140007090]
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, r13
sub rbx, qword [rdi + 0x30]
mov rdx, r15
lea rcx, [rbp + 0xc8]
call fcn.140009f70
mov rdx, rbx
mov rcx, rax
call fcn.1400092b0
mov rdx, r15
lea rcx, [rbp + 0xc8]
call fcn.14000a0c0
mov rdx, rax
mov r14, qword [rsp + 0x50]
mov rcx, r14
call fcn.1400093b0
test al, al
jne 0x140008eee
lea rdx, str.____Failed_to_resolve_imports
jmp 0x14000921b
mov rax, qword [rsp + 0x40]
add rax, r15
je 0x140009214
mov qword [rbp + 0xd0], rsi
mov qword [rbp + 0xc8], Ordinal_60
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], r12
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0xe8], rax
mov dword [rbp + 0xc0], esi
mov qword [rsp + 0x38], rsi
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, Ordinal_45
lea r8, [rbp + 0xc8]
mov edx, 0x80862007
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140009214
mov ebx, dword [rdi + 0x28]
add rbx, r13
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.140006ec0
mov rdx, rbx
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, [0x140007090]
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]
lea rdx, str.ExAllocatePool
mov rcx, r14
call fcn.140008a60
mov qword [rsp + 0x60], rax
lea rdx, str.MmGetSystemRoutineAddress
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x68], rax
lea rdx, str.KeGetCurrentThread
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x80], rax
lea rdx, str.ZwQuerySystemInformation
mov rcx, r14
call fcn.140008a60
mov qword [rsp + 0x68], rax
lea rdx, str.ExGetPreviousMode
mov rcx, r14
call fcn.140008a60
mov qword [rsp + 0x78], rax
lea rdx, str.ExFreePoolWithTag
mov rcx, r14
call fcn.140008a60
mov qword [rsp + 0x70], rax
lea rdx, str.RtlInitAnsiString
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x78], rax
lea rdx, str.RtlAnsiStringToUnicodeString
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x70], rax
lea rdx, str.MmCopyVirtualMemory
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x60], rax
lea rdx, str.IoGetCurrentProcess
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x58], rax
lea rdx, str.PsLookupProcessByProcessId
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x50], rax
lea rdx, str.PsGetProcessPeb
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x48], rax
lea rdx, str.RtlCompareUnicodeString
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x40], rax
lea rdx, str.RtlFreeUnicodeString
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x38], rax
lea rdx, str.ObfDereferenceObject
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x20], rax
lea rdx, str.MmCopyMemory
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x18], rax
lea rdx, str.PsGetProcessSectionBaseAddress
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x10], rax
lea rdx, str.MmIsAddressValid
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 8], rax
lea rdx, str.MmMapIoSpaceEx
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x30], rax
lea rdx, str.MmUnmapIoSpace
mov rcx, r14
call fcn.140008a60
mov qword [rbp - 0x28], rax
lea rdx, str.MmGetPhysicalMemoryRanges
mov rcx, r14
call fcn.140008a60
mov qword [rbp + 8], rax
lea rdx, str.MmGetVirtualForPhysical
mov rcx, r14
call fcn.140008a60
mov qword [rbp], rax
mov edx, dword [0x140153440]
lea rcx, str.____Loaded__i_imports_for_driver_entry_n
call fcn.140002320
mov dword [rbp + 0xc0], esi
lea rcx, [rbp + 0x10]
lea rax, [rsp + 0x60]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx + 0x70], xmm1
movups xmm0, xmmword [rax + 0x80]
movups xmmword [rcx + 0x80], xmm0
movups xmm1, xmmword [rax + 0x90]
movups xmmword [rcx + 0x90], xmm1
movups xmm0, xmmword [rax + 0xa0]
movups xmmword [rcx + 0xa0], xmm0
lea r9, [rbp + 0x10]
mov r8, rbx
lea rdx, [rbp + 0xc0]
mov rcx, r14
call fcn.1400096b0
test al, al
jne 0x1400091f2
lea rdx, str.____Failed_to_call_driver_entry
jmp 0x14000921b
lea rcx, str.____Operation_completed_successfully._n
call fcn.140002320
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r12
jmp 0x14000927a
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.140006ec0
lea rdx, [0x140007090]
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, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r12
mov rcx, r14
call fcn.140003730
jmp 0x140009278
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.140006ec0
lea rdx, [0x140007090]
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 + 0xf0]
xor rcx, rsp
call fcn.1400e8650
mov rbx, qword [rsp + 0x250]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret