Function at 0x14001ccc0
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, 0xd8
mov rax, qword [0x140033040]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15, rdx
mov qword [rbp - 0x69], rdx
mov rdi, rcx
mov qword [rbp - 0x71], rcx
mov qword [rbp - 0x19], r8
mov qword [rbp - 0x11], r9
movzx r14d, byte [rbp + 0x77]
mov byte [rsp + 0x40], r14b
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x59], rax
mov rax, qword [rbp + 0x97]
mov qword [rbp - 0x51], rax
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14001d379
movsxd rsi, dword [rdx + 0x3c]
add rsi, rdx
cmp dword [rsi], 0x4550
jne 0x14001d379
test rsi, rsi
je 0x14001d379
mov eax, 0x20b
cmp word [rsi + 0x18], ax
je 0x14001cd5e
lea rdx, str.____Image_is_not_64_bit
jmp 0x14001d380
mov ebx, dword [rsi + 0x50]
mov edx, ebx
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x14001d39c
movzx eax, word [rsi + 0x14]
mov ecx, dword [rax + rsi + 0x24]
mov dword [rsp + 0x50], ecx
xor r8d, r8d
mov eax, r8d
test r14b, r14b
cmovne eax, ecx
mov dword [rbp - 0x49], eax
sub ebx, eax
mov dword [rsp + 0x44], ebx
mov r13d, r8d
mov qword [rbp - 0x79], r8
mov eax, dword [rbp + 0x7f]
cmp eax, 1
jne 0x14001cdcd
mov edx, ebx
lea r8, [rbp - 0x79]
mov rcx, rdi
call fcn.14001c5b0
mov r14, rax
mov r13, qword [rbp - 0x79]
jmp 0x14001cf13
cmp eax, 2
jne 0x14001cde4
mov edx, ebx
mov rcx, rdi
call fcn.14001ca50
mov r14, rax
jmp 0x14001cf13
test rbx, rbx
jne 0x14001cdf1
mov r14, r8
jmp 0x14001cf13
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140033ba8], eax
jle 0x14001ceb8
lea rcx, [0x140033ba8]
call fcn.140020180
cmp dword [0x140033ba8], 0xffffffff
jne 0x14001ceb5
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x31], xmm1
mov r8d, 0x15
lea rdx, [0x1400234c0]
lea rcx, [rbp - 0x41]
call fcn.140008710
nop
lea r8, [rbp - 0x41]
mov rdx, qword [0x140033b38]
mov rcx, rdi
call fcn.140003010
mov qword [0x140033c90], rax
mov rdx, qword [rbp - 0x29]
cmp rdx, 0xf
jbe 0x14001cea9
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cea3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001cea3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400200d0
nop
lea rcx, [0x140033ba8]
call fcn.140020114
xor r8d, r8d
cmp qword [0x140033c90], 0
jne 0x14001ceec
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.1400060e0
lea rdx, [0x1400062c0]
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 r14d, eax
jmp 0x14001cf13
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.140007990
mov r14, qword [rsp + 0x48]
test al, al
mov eax, 0
cmove r14, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test r14, r14
jne 0x14001cf51
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
call fcn.1400060e0
lea rdx, [0x1400062c0]
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 0x14001d39c
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.1400060e0
mov rdx, r14
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, [0x1400062c0]
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, r15
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rsi + 0x14]
add rbx, 0x28
xor ecx, ecx
mov r15d, ecx
cmp cx, word [rsi + 6]
jae 0x14001cfd7
add rbx, rsi
mov rdi, qword [rbp - 0x69]
test dword [rbx + 0x14], 0x80
ja 0x14001cfbf
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, rdi
mov ecx, dword [rbx - 4]
add rcx, r12
call sub.VCRUNTIME140.dll_memcpy
inc r15d
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp r15d, eax
jl 0x14001cfa2
mov rdi, qword [rbp - 0x71]
mov r13, qword [rbp - 0x79]
mov r15, r14
cmp byte [rsp + 0x40], 0
je 0x14001d035
mov ebx, dword [rsp + 0x50]
sub r14, 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.1400060e0
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.1400060e0
lea rdx, [0x1400062c0]
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, r14
sub rbx, qword [rsi + 0x30]
mov rdx, r12
lea rcx, [rbp - 0x41]
call fcn.14001e2e0
mov rdx, rbx
mov rcx, rax
call fcn.14001d3c0
mov rdx, r14
mov rcx, r12
call fcn.14001d4c0
test al, al
jne 0x14001d06e
lea rdx, str.____Failed_to_fix_cookie
jmp 0x14001d380
mov rdx, r12
lea rcx, [rbp - 0x41]
call fcn.14001e440
mov rdx, rax
mov rcx, rdi
call fcn.14001d620
test al, al
jne 0x14001d0b5
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.1400060e0
lea rdx, [0x1400062c0]
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 [rsp + 0x44]
jmp 0x14001d2eb
mov ebx, dword [rsp + 0x44]
mov eax, dword [rbp - 0x49]
add rax, r12
je 0x14001d2c8
test ebx, ebx
je 0x14001d2c8
xor edx, edx
mov qword [rbp - 0x39], rdx
mov qword [rbp - 0x41], 0x33
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x21], rbx
mov dword [rbp - 0x49], edx
mov qword [rsp + 0x38], rdx
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rdx
mov r9d, 0x28
lea r8, [rbp - 0x41]
mov edx, 0x80862007
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14001d2c8
mov esi, dword [rsi + 0x28]
add rsi, r14
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.1400060e0
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, [0x1400062c0]
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 - 0x59]
test rax, rax
je 0x14001d184
mov qword [rsp + 0x20], r13
mov r9d, ebx
mov r8, r15
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x19]
call rax
test al, al
jne 0x14001d184
lea rdx, str.____Callback_returns_false__failed_
jmp 0x14001d2cf
xor eax, eax
mov dword [rsp + 0x44], eax
mov r9, qword [rbp - 0x19]
cmp byte [rbp + 0x87], al
cmovne r9, r15
mov rax, qword [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r8, rsi
lea rdx, [rsp + 0x44]
mov rcx, rdi
call fcn.14001da10
test al, al
jne 0x14001d1c1
lea rdx, str.____Failed_to_call_driver_entry
jmp 0x14001d2cf
mov esi, dword [rsp + 0x44]
mov rax, qword [rbp - 0x51]
test rax, rax
je 0x14001d1d0
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.1400060e0
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, [0x1400062c0]
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 0x14001d29d
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.1400060e0
lea rdx, [0x1400062c0]
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, r15
cmp eax, 1
jne 0x14001d2b6
mov r8, r13
mov rcx, rdi
call fcn.140002c70
test al, al
je 0x14001d27a
mov rdx, r13
mov rcx, rdi
call fcn.140002da0
test al, al
je 0x14001d27a
mov rdx, r13
mov rcx, rdi
call fcn.140002ed0
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x14001d281
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.1400060e0
lea rdx, [0x1400062c0]
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, r15
jmp 0x14001d39e
cmp eax, 2
jne 0x14001d267
mov r8d, ebx
mov rcx, rdi
call fcn.140002b50
jmp 0x14001d26f
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.1400060e0
lea rdx, [0x1400062c0]
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.1400060e0
lea rdx, [0x1400062c0]
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, r15
cmp eax, 1
jne 0x14001d367
mov r8, r13
mov rcx, rdi
call fcn.140002c70
test al, al
je 0x14001d35e
mov rdx, r13
mov rcx, rdi
call fcn.140002da0
test al, al
je 0x14001d35e
mov rdx, r13
mov rcx, rdi
call fcn.140002ed0
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x14001d380
lea rdx, str.____WARNING:_Failed_to_free_memory_
jmp 0x14001d380
cmp eax, 2
jne 0x14001d34b
mov r8d, ebx
mov rcx, rdi
call fcn.140002b50
jmp 0x14001d353
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.1400060e0
lea rdx, [0x1400062c0]
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.1400200b0
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret