Function at 0x140004570
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rdx
xorps xmm0, xmm0
xor eax, eax
mov byte [rsp + 0x30], al
movdqu xmmword [rbp - 9], xmm0
xor ebx, ebx
mov qword [rbp + 7], rbx
lea ecx, [rax + 1]
call fcn.140007e78
mov qword [rbp - 9], rax
lea r8, [rax + 1]
mov qword [rbp + 7], r8
movzx edx, byte [rsp + 0x30]
mov byte [rax], dl
mov qword [rbp - 1], r8
lea rdx, [rbp - 9]
mov rcx, rdi
call fcn.140005cf0
test al, al
jne 0x1400045f4
lea rdx, str.____Failed_to_read_image_to_memory
jmp 0x140004949
mov ecx, 0x5a4d
mov rax, qword [rbp - 9]
cmp word [rax], cx
jne 0x140004942
movsxd rsi, dword [rax + 0x3c]
add rsi, rax
cmp dword [rsi], 0x4550
jne 0x140004942
mov eax, 0x20b
cmp word [rsi + 0x18], ax
je 0x140004630
lea rdx, str.____Image_is_not_64_bit
jmp 0x140004949
mov r13d, dword [rsi + 0x50]
mov r9d, 4
mov r8d, 0x3000
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
mov r8d, r13d
call fcn.1400012f0
mov r12, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test rax, rax
jne 0x140004671
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x140004769
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.140001c20
mov rdx, r12
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]
lea rdx, [0x140001df0]
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]
mov r8d, dword [rsi + 0x54]
mov rdx, qword [rbp - 9]
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx edi, word [rsi + 0x14]
add rdi, 0x28
mov r14d, ebx
cmp bx, word [rsi + 6]
jae 0x1400046e5
add rdi, rsi
nop dword [rax]
mov ecx, dword [rdi - 4]
add rcx, r15
mov r8d, dword [rdi]
mov edx, dword [rdi + 4]
add rdx, qword [rbp - 9]
call sub.VCRUNTIME140.dll_memcpy
inc r14d
lea rdi, [rdi + 0x28]
movzx eax, word [rsi + 6]
cmp r14d, eax
jl 0x1400046c0
mov rdx, r12
sub rdx, qword [rsi + 0x30]
mov eax, 0x5a4d
cmp word [r15], ax
jne 0x140004713
movsxd rax, dword [r15 + 0x3c]
cmp dword [rax + r15], 0x4550
jne 0x140004713
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rbx
jmp 0x14000471f
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rbx
lea rcx, [rbp - 0x29]
call fcn.1400049e0
mov rdx, r15
lea rcx, [rbp - 0x29]
call fcn.140005190
mov rdx, rax
call fcn.140004ae0
test al, al
jne 0x140004749
lea rdx, str.____Failed_to_resolve_imports
jmp 0x140004762
mov r9, r13
mov r8, r15
mov rdx, r12
call fcn.140001200
test al, al
jne 0x14000479c
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.140001c20
lea rdx, [0x140001df0]
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, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r12
call fcn.140001500
jmp 0x140004966
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edi, dword [rsi + 0x28]
add rdi, r12
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]
call fcn.140001c20
mov rdx, rdi
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]
lea rdx, [0x140001df0]
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]
mov dword [rbp - 0x11], ebx
mov ecx, 0x60
call fcn.140007e78
xor ecx, ecx
mov qword [rax + 0x58], rcx
mov dword [rax + 4], 5
mov dword [rax], 0xdeaf
mov qword [rbp - 0x79], rdi
lea rcx, [rbp - 0x11]
mov qword [rbp - 0x71], rcx
movaps xmm0, xmmword [rbp - 0x79]
movups xmmword [rax + 8], xmm0
movaps xmm1, xmmword [rbp - 0x69]
movups xmmword [rax + 0x18], xmm1
movaps xmm0, xmmword [rbp - 0x59]
movups xmmword [rax + 0x28], xmm0
movaps xmm1, xmmword [rbp - 0x49]
movups xmmword [rax + 0x38], xmm1
movaps xmm0, xmmword [rbp - 0x39]
movups xmmword [rax + 0x48], xmm0
mov dword [rbp - 0x29], 0x10000e
lea rcx, str.tseTifE
mov qword [rbp - 0x21], rcx
mov dword [rsp + 0x20], 7
mov r9d, 0x60
mov r8, rax
lea rdx, [0x14000f048]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_NtSetSystemEnvironmentValueEx]
lea rdx, str.___DriverEntry_returned_0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001c20
lea rdx, [0x140004530]
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 rdi, rax
mov edx, 8
lea rcx, [rbp - 0x29]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8, qword [rax]
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
add rcx, rdi
mov rdx, qword [rax + 8]
call r8
mov rcx, qword [rdi]
movsxd rdx, dword [rcx + 4]
mov byte [rdx + rdi + 0x58], 0x30
lea rdx, [0x140004560]
mov rcx, rdi
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 [rbp - 0x11]
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]
lea rdx, [0x140004550]
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]
lea rdx, [0x140004510]
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]
lea rdx, [0x140001df0]
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]
mov edi, dword [rsi + 0x54]
mov dword [rbp - 0x29], ebx
test rdi, rdi
je 0x14000493d
mov rax, rbx
nop dword [rax]
lea rdx, [rax + r12]
mov r9d, 4
lea r8, [rbp - 0x29]
call fcn.140001200
inc ebx
movsxd rax, ebx
cmp rax, rdi
jb 0x140004920
mov rbx, r12
jmp 0x140004966
lea rdx, str.____Invalid_format_of_PE_image
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001c20
lea rdx, [0x140001df0]
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]
nop
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x1400049a3
mov rdx, qword [rbp + 7]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000499e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000499e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008104
mov rax, rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140007d60
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret