Function at 0x140009960
Capabilities:
Parse pe header

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x90
mov rax, qword [0x1400a1080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov eax, 0x5a4d
mov qword [rsp + 0x48], rcx
cmp word [0x1400a4a10], ax
mov r15, rcx
jne 0x140009d3f
movsxd rdi, dword [0x1400a4a4c]
lea rbx, [0x1400a4a10]
add rdi, rbx
cmp dword [rdi], 0x4550
jne 0x140009d3f
test rdi, rdi
je 0x140009d3f
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x1400099f0
lea rdx, str.____Image_is_not_64_bit
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006290
lea rdx, [0x140006640]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
jmp 0x140009ce3
mov qword [rsp + 0xb8], rbp
mov r9d, 4
mov qword [rsp + 0xc0], rsi
mov r8d, 0x3000
mov qword [rsp + 0xc8], r12
xor ecx, ecx
mov r12d, dword [rdi + 0x50]
mov edx, r12d
mov qword [rsp + 0x80], r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, r12d
mov rcx, r15
mov rbp, rax
call fcn.140007c80
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov r14, rax
test rax, rax
jne 0x140009a54
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x140009d0a
lea rdx, str.___Image_base_has_been_allocated_at_0x
mov qword [rsp + 0x88], r13
call fcn.140006290
mov rdx, r14
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x140006640]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r8d, dword [rdi + 0x54]
lea rax, [rdi + 0x54]
mov rdx, rbx
mov qword [rsp + 0x40], rax
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
xor eax, eax
add rbx, 0x2c
mov esi, eax
cmp ax, word [rdi + 6]
jae 0x140009ae7
add rbx, rdi
lea r15, [0x1400a4a10]
nop dword [rax + rax]
mov edx, dword [rbx]
mov ecx, dword [rbx - 8]
add rdx, r15
mov r8d, dword [rbx - 4]
add rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [rdi + 6]
lea rbx, [rbx + 0x28]
inc esi
cmp esi, eax
jl 0x140009ac0
mov r15, qword [rsp + 0x48]
mov rbx, r14
lea rcx, [rsp + 0x50]
sub rbx, qword [rdi + 0x30]
mov rdx, rbp
call fcn.14000aaa0
mov rdx, rbx
mov rcx, rax
call fcn.140009d50
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.14000ac00
mov rdx, rax
mov rcx, r15
call fcn.140009e50
mov r13, qword [rsp + 0x88]
test al, al
jne 0x140009b36
lea rdx, str.____Failed_to_resolve_imports
jmp 0x140009d03
test rbp, rbp
je 0x140009cfc
test r12, r12
je 0x140009cfc
xor esi, esi
mov qword [rsp + 0x50], gethostname
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], esi
mov r9d, Ordinal_41
mov edx, 0x80862007
mov qword [rsp + 0x20], rsi
mov rcx, r15
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x48], esi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140009cfc
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, dword [rdi + 0x28]
lea rdx, str.____Calling_DriverEntry_0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add rbx, r14
call fcn.140006290
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x140006640]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r8, rbx
mov dword [rsp + 0x48], esi
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.14000a1f0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test al, al
jne 0x140009c15
lea rdx, str.____Failed_to_call_driver_entry
jmp 0x140009d0a
lea rdx, str.___DriverEntry_returned_0x
call fcn.140006290
lea rdx, [0x140009920]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, 8
lea rcx, [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov rcx, qword [rbx]
mov rdx, qword [rax + 8]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
call qword [rax]
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov rcx, rbx
mov byte [rdx + rbx + 0x58], Ordinal_50
lea rdx, [0x140009950]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, dword [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140009940]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
lea rdx, [0x140009900]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
lea rdx, [0x140006640]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword [rsp + 0x40]
mov rdx, r14
mov rcx, r15
mov r9d, dword [rax]
call fcn.140007950
mov rax, r14
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xb8]
mov r14, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140076fa0
add rsp, 0x90
pop r15
pop rdi
pop rbx
ret
lea rdx, str.____Failed_to_write_local_image_to_remote_image
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006290
lea rdx, [0x140006640]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r14
mov rcx, r15
call fcn.140007e00
xor eax, eax
jmp 0x140009cc3
lea rdx, str.____Invalid_format_of_PE_image
jmp 0x1400099cd