Function at 0x14002b640
Capabilities:
Parse pe header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa8
mov rax, qword [0x140041040]
xor rax, rsp
mov qword [rbp - 9], rax
mov r14, rdx
mov qword [rbp - 0x51], rdx
mov rdi, rcx
mov qword [rbp - 0x19], r8
mov qword [rbp - 0x11], r9
movzx r15d, byte [rbp + 0x77]
mov byte [rbp - 0x71], r15b
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x29], rax
mov rax, qword [rbp + 0x97]
mov qword [rbp - 0x21], rax
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14002bcb5
movsxd rsi, dword [rdx + 0x3c]
add rsi, rdx
cmp dword [rsi], 0x4550
jne 0x14002bcb5
mov eax, 0x20b
cmp word [rsi + 0x18], ax
je 0x14002b6d0
lea rdx, str.____Image_is_not_64_bit
jmp 0x14002bcbc
mov ebx, dword [rsi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x14002bcd8
movzx eax, word [rsi + 0x14]
mov ecx, dword [rax + rsi + 0x24]
mov dword [rbp - 0x61], ecx
xor r13d, r13d
mov eax, r13d
test r15b, r15b
cmovne eax, ecx
mov dword [rbp - 0x5d], eax
sub ebx, eax
mov dword [rbp - 0x6d], ebx
mov r15d, r13d
mov qword [rbp - 0x59], r13
mov eax, dword [rbp + 0x7f]
cmp eax, 1
jne 0x14002b73b
mov edx, ebx
lea r8, [rbp - 0x59]
mov rcx, rdi
call fcn.14002aea0
mov r13, rax
mov r15, qword [rbp - 0x59]
jmp 0x14002b8ce
cmp eax, 2
jne 0x14002b752
mov edx, ebx
mov rcx, rdi
call fcn.14002b3d0
mov r13, rax
jmp 0x14002b8ce
test rbx, rbx
je 0x14002b878
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140041a68], eax
jle 0x14002b84b
lea rcx, [0x140041a68]
call fcn.14002e750
cmp dword [0x140041a68], 0xffffffff
jne 0x14002b84b
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], 0xf
mov ecx, 0x20
call fcn.14002e7c8
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x39], 0x15
mov qword [rbp - 0x31], 0x1f
movups xmm0, xmmword [0x140032340]
movups xmmword [rax], xmm0
mov ecx, dword [0x140032350]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x140032354]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea r8, [rbp - 0x49]
mov rdx, qword [0x1400419f8]
mov rcx, rdi
call fcn.140003020
mov qword [0x140041b50], rax
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x14002b83f
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b839
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002b839
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002e6a0
nop
lea rcx, [0x140041a68]
call fcn.14002e6e4
cmp qword [0x140041b50], 0
jne 0x14002b8b1
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.1400063d0
lea rdx, [0x1400065b0]
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.____Failed_to_allocate_remote_image_in_kernel
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400063d0
lea rdx, [0x1400065b0]
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, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14002bcd8
mov qword [rbp - 0x69], r13
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.140007c90
test al, al
je 0x14002b878
mov r13, qword [rbp - 0x69]
test r13, r13
je 0x14002b878
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.1400063d0
mov rdx, r13
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, [0x1400065b0]
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 [rsi + 0x54]
mov rdx, r14
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rsi + 0x14]
add rbx, 0x28
xor eax, eax
mov r14d, eax
cmp ax, word [rsi + 6]
jae 0x14002b961
add rbx, rsi
mov r15, qword [rbp - 0x51]
nop dword [rax + rax]
test dword [rbx + 0x14], 0x80
ja 0x14002b94d
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r15
mov ecx, dword [rbx - 4]
add rcx, r12
call sub.VCRUNTIME140.dll_memcpy
inc r14d
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp r14d, eax
jl 0x14002b930
mov r15, qword [rbp - 0x59]
mov r14, r13
cmp byte [rbp - 0x71], 0
je 0x14002b9bd
mov ebx, dword [rbp - 0x61]
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.1400063d0
lea rdx, [0x140001290]
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.1400063d0
lea rdx, [0x1400065b0]
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 [rsi + 0x30]
mov rdx, r12
lea rcx, [rbp - 0x49]
call fcn.14002cb70
mov rdx, rbx
mov rcx, rax
call fcn.14002bd00
mov rdx, r13
mov rcx, r12
call fcn.14002be00
test al, al
jne 0x14002b9f6
lea rdx, str.____Failed_to_fix_cookie
jmp 0x14002bcbc
mov rdx, r12
lea rcx, [rbp - 0x49]
call fcn.14002ccc0
mov rdx, rax
mov rcx, rdi
call fcn.14002bf50
test al, al
jne 0x14002ba3c
lea rdx, str.____Failed_to_resolve_imports
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400063d0
lea rdx, [0x1400065b0]
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 ebx, dword [rbp - 0x6d]
jmp 0x14002bb1d
mov ebx, dword [rbp - 0x6d]
mov r9d, ebx
mov r8d, dword [rbp - 0x5d]
add r8, r12
mov rdx, r14
mov rcx, rdi
call fcn.140002800
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test al, al
jne 0x14002ba6b
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x14002bb08
mov esi, dword [rsi + 0x28]
add rsi, r13
lea rdx, str.____Calling_DriverEntry_0x
call fcn.1400063d0
mov rdx, rsi
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, [0x1400065b0]
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 rax, qword [rbp - 0x29]
test rax, rax
je 0x14002bac4
mov qword [rsp + 0x20], r15
mov r9, rbx
mov r8, r14
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x19]
call rax
test al, al
jne 0x14002bac4
lea rdx, str.____Callback_returns_false__failed_
jmp 0x14002bb01
mov dword [rbp - 0x6d], 0
mov r9, qword [rbp - 0x19]
cmp byte [rbp + 0x87], 0
cmovne r9, r14
mov rax, qword [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r8, rsi
lea rdx, [rbp - 0x6d]
mov rcx, rdi
call fcn.14002c2b0
test al, al
jne 0x14002bbb2
lea rdx, str.____Failed_to_call_driver_entry
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400063d0
lea rdx, [0x1400065b0]
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, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rdx, str.___Freeing_memory
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400063d0
lea rdx, [0x1400065b0]
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 eax, dword [rbp + 0x7f]
mov rdx, r14
cmp eax, 1
jne 0x14002bba0
mov r8, r15
mov rcx, rdi
call fcn.140002c10
test al, al
je 0x14002bb94
mov rdx, r15
mov rcx, rdi
call fcn.140002d70
test al, al
je 0x14002bb94
mov rdx, r15
mov rcx, rdi
call fcn.140002ed0
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x14002bcbc
lea rdx, str.____WARNING:_Failed_to_free_memory_
jmp 0x14002bcbc
cmp eax, 2
jne 0x14002bb7d
mov r8d, ebx
mov rcx, rdi
call fcn.140002af0
jmp 0x14002bb85
mov esi, dword [rbp - 0x6d]
mov rax, qword [rbp - 0x21]
test rax, rax
je 0x14002bbc0
mov dword [rax], esi
lea rdx, str.___DriverEntry_returned_0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400063d0
lea rdx, [0x140001290]
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, esi
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___long_int____ptr64]
lea rdx, [0x1400065b0]
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]
cmp byte [rbp + 0x6f], 0
je 0x14002bc8d
lea rdx, str.___Freeing_memory
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400063d0
lea rdx, [0x1400065b0]
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 eax, dword [rbp + 0x7f]
mov rdx, r14
cmp eax, 1
jne 0x14002bca3
mov r8, r15
mov rcx, rdi
call fcn.140002c10
test al, al
je 0x14002bc6a
mov rdx, r15
mov rcx, rdi
call fcn.140002d70
test al, al
je 0x14002bc6a
mov rdx, r15
mov rcx, rdi
call fcn.140002ed0
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x14002bc71
lea rdx, str.____WARNING:_Failed_to_free_memory_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400063d0
lea rdx, [0x1400065b0]
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, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r14
jmp 0x14002bcda
cmp eax, 2
jne 0x14002bc57
mov r8d, ebx
mov rcx, rdi
call fcn.140002af0
jmp 0x14002bc5f
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.1400063d0
lea rdx, [0x1400065b0]
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 - 9]
xor rcx, rsp
call fcn.14002e680
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret