Function at 0x140008b40
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 [0x140159080]
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 0x1400091d5
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x1400091d5
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x140008bb3
lea rdx, str.____Image_is_not_64_bit
jmp 0x1400091dc
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 0x1400091f8
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 0x140008cfd
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x140175ce4], eax
jle 0x140008cd0
lea rcx, [0x140175ce4]
call fcn.1400f4a60
cmp dword [0x140175ce4], 0xffffffff
jne 0x140008ccb
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, [0x14010b038]
lea rcx, [rbp + 0xc8]
call fcn.1400081c0
nop
lea r8, [rbp + 0xc8]
mov rdx, qword [0x1401756f8]
mov rcx, r14
call fcn.1400037a0
mov qword [0x140175d48], rax
mov rdx, qword [rbp + 0xe0]
cmp rdx, 0x10
jb 0x140008cbf
inc rdx
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008cb9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008cb9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f48d0
nop
lea rcx, [0x140175ce4]
call fcn.1400f4a00
mov rdx, qword [rsp + 0x48]
cmp qword [0x140175d48], 0
jne 0x140008d0e
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.140006e40
lea rdx, [0x140007010]
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 0x14000919b
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140007050
test al, al
je 0x140008cff
mov r12, qword [rsp + 0x40]
test r12, r12
jne 0x140008d41
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x14000919b
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.140006e40
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, [0x140007010]
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 0x140008dc0
add rbx, rdi
test dword [rbx + 0x14], 0x80
ja 0x140008db0
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 0x140008d93
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.140006e40
lea rdx, [0x140002530]
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.140006e40
lea rdx, [0x140007010]
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.140009ef0
mov rdx, rbx
mov rcx, rax
call fcn.140009230
mov rdx, r15
lea rcx, [rbp + 0xc8]
call fcn.14000a040
mov rdx, rax
mov r14, qword [rsp + 0x50]
mov rcx, r14
call fcn.140009330
test al, al
jne 0x140008e6e
lea rdx, str.____Failed_to_resolve_imports
jmp 0x14000919b
mov rax, qword [rsp + 0x40]
add rax, r15
je 0x140009194
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 0x140009194
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.140006e40
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, [0x140007010]
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.1400089e0
mov qword [rsp + 0x60], rax
lea rdx, str.MmGetSystemRoutineAddress
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x68], rax
lea rdx, str.KeGetCurrentThread
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x80], rax
lea rdx, str.ZwQuerySystemInformation
mov rcx, r14
call fcn.1400089e0
mov qword [rsp + 0x68], rax
lea rdx, str.ExGetPreviousMode
mov rcx, r14
call fcn.1400089e0
mov qword [rsp + 0x78], rax
lea rdx, str.ExFreePoolWithTag
mov rcx, r14
call fcn.1400089e0
mov qword [rsp + 0x70], rax
lea rdx, str.RtlInitAnsiString
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x78], rax
lea rdx, str.RtlAnsiStringToUnicodeString
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x70], rax
lea rdx, str.MmCopyVirtualMemory
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x60], rax
lea rdx, str.IoGetCurrentProcess
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x58], rax
lea rdx, str.PsLookupProcessByProcessId
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x50], rax
lea rdx, str.PsGetProcessPeb
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x48], rax
lea rdx, str.RtlCompareUnicodeString
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x40], rax
lea rdx, str.RtlFreeUnicodeString
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x38], rax
lea rdx, str.ObfDereferenceObject
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x20], rax
lea rdx, str.MmCopyMemory
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x18], rax
lea rdx, str.PsGetProcessSectionBaseAddress
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x10], rax
lea rdx, str.MmIsAddressValid
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 8], rax
lea rdx, str.MmMapIoSpaceEx
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x30], rax
lea rdx, str.MmUnmapIoSpace
mov rcx, r14
call fcn.1400089e0
mov qword [rbp - 0x28], rax
lea rdx, str.MmGetPhysicalMemoryRanges
mov rcx, r14
call fcn.1400089e0
mov qword [rbp + 8], rax
lea rdx, str.MmGetVirtualForPhysical
mov rcx, r14
call fcn.1400089e0
mov qword [rbp], rax
mov edx, dword [0x14017580c]
lea rcx, str.____Loaded__i_imports_for_driver_entry_n
call fcn.140002250
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.140009630
test al, al
jne 0x140009172
lea rdx, str.____Failed_to_call_driver_entry
jmp 0x14000919b
lea rcx, str.____Operation_completed_successfully._n
call fcn.140002250
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r12
jmp 0x1400091fa
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.140006e40
lea rdx, [0x140007010]
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.140003660
jmp 0x1400091f8
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.140006e40
lea rdx, [0x140007010]
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.1400f48b0
mov rbx, qword [rsp + 0x250]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret