Function at 0x140020720
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 - 0x27]
sub rsp, 0xa0
mov rax, qword [0x140035040]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, rdx
mov r12, rcx
mov qword [rbp - 0x39], rcx
mov qword [rbp - 0x31], rdx
xor esi, esi
mov rax, qword [rdx]
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140020c5c
movsxd r15, dword [rax + 0x3c]
add r15, rax
cmp dword [r15], 0x4550
jne 0x140020c5c
mov eax, 0x20b
cmp word [r15 + 0x18], ax
je 0x140020797
lea rdx, str.____Image_is_not_64_bit
jmp 0x140020c63
mov ebx, dword [r15 + 0x50]
mov qword [rbp - 0x29], rbx
mov r9d, 4
mov r8d, 0x3000
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov r8d, ebx
mov rcx, r12
call fcn.14001c070
mov r13, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test rax, rax
jne 0x1400207de
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x140020aef
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.14001cda0
mov rdx, r13
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, [0x14001cf70]
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 [r15 + 0x54]
mov rdx, qword [rdi]
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r15 + 0x14]
add rbx, 0x28
xor edx, edx
cmp dx, word [r15 + 6]
jae 0x140020855
add rbx, r15
nop word [rax + rax]
mov ecx, dword [rbx - 4]
add rcx, r14
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, qword [rdi]
call sub.VCRUNTIME140.dll_memcpy
inc esi
lea rbx, [rbx + 0x28]
movzx eax, word [r15 + 6]
cmp esi, eax
jl 0x140020830
xor edx, edx
mov rsi, r13
sub rsi, qword [r15 + 0x30]
mov eax, 0x5a4d
cmp word [r14], ax
jne 0x140020946
movsxd rax, dword [r14 + 0x3c]
cmp dword [rax + r14], 0x4550
jne 0x140020946
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
mov r9, rdx
mov qword [rbp - 0x11], rdx
mov ecx, dword [rax + r14 + 0xb0]
test ecx, ecx
jne 0x1400208a0
mov rbx, rdx
jmp 0x14002094c
lea rbx, [r14 + rcx]
mov r12d, dword [rax + r14 + 0xb4]
add r12, rbx
mov eax, dword [rbx]
test eax, eax
je 0x140020932
mov rdx, qword [rbp - 0x19]
nop dword [rax]
mov ecx, eax
cmp rcx, r12
jae 0x14002092b
mov r8d, dword [rbx + 4]
test r8d, r8d
je 0x14002092b
lea rax, [rcx + r14]
mov qword [rbp - 9], rax
lea rax, [rbx + 8]
mov qword [rbp - 1], rax
lea rax, [r8 - 8]
shr rax, 1
mov dword [rbp + 7], eax
cmp rdx, r9
je 0x14002090a
movups xmm0, xmmword [rbp - 9]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rbp + 7]
movsd qword [rdx + 0x10], xmm1
add rdx, 0x18
mov qword [rbp - 0x19], rdx
jmp 0x14002091f
lea r8, [rbp - 9]
lea rcx, [rbp - 0x21]
call fcn.140022250
mov r9, qword [rbp - 0x11]
mov rdx, qword [rbp - 0x19]
mov eax, dword [rbx + 4]
add rbx, rax
mov eax, dword [rbx]
test eax, eax
jne 0x1400208c0
movdqu xmm1, xmmword [rbp - 0x21]
xor edx, edx
movsd xmm0, qword [rbp - 0x11]
movsd qword [rbp + 7], xmm0
mov rbx, qword [rbp + 7]
mov r12, qword [rbp - 0x39]
jmp 0x14002094c
xorps xmm1, xmm1
mov rbx, rdx
movq r10, xmm1
psrldq xmm1, 8
movq r11, xmm1
cmp r10, r11
je 0x1400209c3
lea r9, [r10 + 0x10]
mov r12d, 0xfff
nop word [rax + rax]
mov eax, edx
cmp dword [r9], 0
jbe 0x1400209b2
nop dword [rax + rax]
mov edx, eax
mov rcx, qword [r9 - 8]
movzx r8d, word [rcx + rdx*2]
movzx ecx, r8w
shr cx, 0xc
and r8w, r12w
cmp cx, 0xa
jne 0x1400209a9
movzx edx, r8w
mov rcx, qword [r9 - 0x10]
add qword [rcx + rdx], rsi
inc eax
cmp eax, dword [r9]
jb 0x140020980
xor edx, edx
add r9, 0x18
lea rax, [r9 - 0x10]
cmp rax, r11
jne 0x140020970
mov r12, qword [rbp - 0x39]
test r10, r10
je 0x140020a1e
sub rbx, r10
movabs rax, 0x2aaaaaaaaaaaaaab
imul rbx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r10
cmp rdx, 0x1000
jb 0x140020a16
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140020a16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.140025d5c
mov rdx, r14
lea rcx, [rbp - 9]
call fcn.140021a00
mov rdx, rax
mov rcx, r12
call fcn.140020cf0
test al, al
jne 0x140020a63
lea rdx, str.____Failed_to_resolve_imports
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001cda0
lea rdx, [0x14001cf70]
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 esi, esi
jmp 0x140020b04
mov r9, qword [rbp - 0x29]
mov r8, r14
mov rdx, r13
mov rcx, r12
call fcn.14001bd80
test al, al
jne 0x140020a82
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x140020a40
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, dword [r15 + 0x28]
add rbx, r13
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.14001cda0
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]
lea rdx, [0x14001cf70]
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 esi, esi
mov dword [rbp - 0x29], esi
mov r8, rbx
lea rdx, [rbp - 0x29]
mov rcx, r12
call fcn.140020fd0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test al, al
jne 0x140020b25
lea rdx, str.____Failed_to_call_driver_entry
call fcn.14001cda0
lea rdx, [0x14001cf70]
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, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r13
mov rcx, r12
call fcn.14001c1f0
jmp 0x140020c80
lea rdx, str.___DriverEntry_returned_0x
call fcn.14001cda0
lea rdx, [0x1400206e0]
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 rbx, rax
mov edx, 8
lea rcx, [rbp - 0x21]
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 [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call r8
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov byte [rdx + rbx + 0x58], 0x30
lea rdx, [0x140020710]
mov rcx, rbx
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 - 0x29]
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, [0x140020700]
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, [0x1400206c0]
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, [0x14001cf70]
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 eax, dword [r15 + 0x54]
test rax, rax
je 0x140020c13
mov qword [rbp - 1], rsi
mov qword [rbp + 7], rsi
mov qword [rbp - 9], 0x30
mov qword [rbp + 0xf], r13
mov qword [rbp + 0x17], rax
mov dword [rbp - 0x29], esi
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, 0x28
lea r8, [rbp - 9]
mov edx, 0x80862007
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140020c57
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140020c47
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140020ce9
mov rcx, r8
call fcn.140025d5c
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
mov rax, r13
jmp 0x140020cc2
lea rdx, [0x140030790]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001cda0
lea rdx, [0x14001cf70]
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 [rdi]
test rcx, rcx
je 0x140020cc0
mov rdx, qword [rdi + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140020cb0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140020ce9
mov rcx, r8
call fcn.140025d5c
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
xor eax, eax
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140025ac0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3