Function at 0x14000f630
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, 0xb8
mov rax, qword [0x1401c5e00]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15, rdx
mov qword [rbp - 0x39], rdx
mov rdi, rcx
mov qword [rbp - 0x61], rcx
mov qword [rbp - 0x19], r8
mov qword [rbp - 0x11], r9
movzx r14d, byte [rbp + 0x77]
mov byte [rsp + 0x30], r14b
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 0x14000fcb9
movsxd rsi, dword [rdx + 0x3c]
add rsi, rdx
cmp dword [rsi], 0x4550
jne 0x14000fcb9
test rsi, rsi
je 0x14000fcb9
mov eax, 0x20b
cmp word [rsi + 0x18], ax
je 0x14000f6ce
lea rdx, str.____Image_is_not_64_bit
jmp 0x14000fcc0
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 0x14000fcdc
movzx eax, word [rsi + 0x14]
mov ecx, dword [rax + rsi + 0x24]
mov dword [rbp - 0x71], ecx
xor r8d, r8d
mov eax, r8d
test r14b, r14b
cmovne eax, ecx
mov dword [rbp - 0x6d], eax
sub ebx, eax
mov dword [rbp - 0x7d], ebx
mov r13d, r8d
mov qword [rbp - 0x69], r8
mov eax, dword [rbp + 0x7f]
cmp eax, 1
jne 0x14000f73b
mov edx, ebx
lea r8, [rbp - 0x69]
mov rcx, rdi
call fcn.14000eea0
mov r14, rax
mov r13, qword [rbp - 0x69]
jmp 0x14000f8a3
cmp eax, 2
jne 0x14000f752
mov edx, ebx
mov rcx, rdi
call fcn.14000f3c0
mov r14, rax
jmp 0x14000f8a3
test rbx, rbx
jne 0x14000f75f
mov r14, r8
jmp 0x14000f8a3
mov edx, 0x28
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401c8738], eax
jle 0x14000f84b
lea rcx, [0x1401c8738]
call fcn.1400d3280
cmp dword [0x1401c8738], 0xffffffff
jne 0x14000f848
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov ecx, 0x20
call fcn.1400d2f54
mov qword [rbp - 0x59], rax
movdqa xmm0, xmmword [0x1400f83f0]
movdqu xmmword [rbp - 0x49], xmm0
movups xmm0, xmmword [0x1400edc10]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400edc20]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400edc24]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea r8, [rbp - 0x59]
mov rdx, qword [0x1401c86d8]
mov rcx, rdi
call fcn.14000a800
mov qword [0x1401c8820], rax
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x14000f83c
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f836
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f836
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d2f90
nop
lea rcx, [0x1401c8738]
call fcn.1400d3214
xor r8d, r8d
cmp qword [0x1401c8820], 0
jne 0x14000f87f
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.140007e20
lea rdx, [0x140008000]
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 0x14000f8a3
mov qword [rbp - 0x79], r8
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.14000de80
mov r14, qword [rbp - 0x79]
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 0x14000f8e1
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
call fcn.140007e20
lea rdx, [0x140008000]
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 0x14000fcdc
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.140007e20
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, [0x140008000]
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 0x14000f967
add rbx, rsi
mov rdi, qword [rbp - 0x39]
test dword [rbx + 0x14], 0x80
ja 0x14000f94f
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 0x14000f932
mov rdi, qword [rbp - 0x61]
mov r13, qword [rbp - 0x69]
mov r15, r14
cmp byte [rsp + 0x30], 0
je 0x14000f9c4
mov ebx, dword [rbp - 0x71]
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.140007e20
lea rdx, [0x140008a60]
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.140007e20
lea rdx, [0x140008000]
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 - 0x59]
call fcn.140011440
mov rdx, rbx
mov rcx, rax
call fcn.14000fd00
mov rdx, r14
mov rcx, r12
call fcn.14000fe00
test al, al
jne 0x14000f9fd
lea rdx, str.____Failed_to_fix_cookie
jmp 0x14000fcc0
mov rdx, r12
lea rcx, [rbp - 0x59]
call fcn.1400115a0
mov rdx, rax
mov rcx, rdi
call fcn.14000ff60
test al, al
jne 0x14000fa43
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.140007e20
lea rdx, [0x140008000]
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 - 0x7d]
jmp 0x14000fb21
mov ebx, dword [rbp - 0x7d]
mov r9d, ebx
mov r8d, dword [rbp - 0x6d]
add r8, r12
mov rdx, r15
mov rcx, rdi
call fcn.14000a000
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 0x14000fa72
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x14000fb0c
mov esi, dword [rsi + 0x28]
add rsi, r14
lea rdx, str.____Calling_DriverEntry_0x
call fcn.140007e20
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, [0x140008000]
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 0x14000facb
mov qword [rsp + 0x20], r13
mov r9, rbx
mov r8, r15
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x19]
call rax
test al, al
jne 0x14000facb
lea rdx, str.____Callback_returns_false__failed_
jmp 0x14000fb05
xor eax, eax
mov dword [rbp - 0x7d], 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, [rbp - 0x7d]
mov rcx, rdi
call fcn.140010330
test al, al
jne 0x14000fbb6
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.140007e20
lea rdx, [0x140008000]
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.140007e20
lea rdx, [0x140008000]
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 0x14000fba4
mov r8, r13
mov rcx, rdi
call fcn.14000a420
test al, al
je 0x14000fb98
mov rdx, r13
mov rcx, rdi
call fcn.14000a570
test al, al
je 0x14000fb98
mov rdx, r13
mov rcx, rdi
call fcn.14000a6c0
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x14000fcc0
lea rdx, str.____WARNING:_Failed_to_free_memory_
jmp 0x14000fcc0
cmp eax, 2
jne 0x14000fb81
mov r8d, ebx
mov rcx, rdi
call fcn.14000a300
jmp 0x14000fb89
mov esi, dword [rbp - 0x7d]
mov rax, qword [rbp - 0x21]
test rax, rax
je 0x14000fbc4
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.140007e20
lea rdx, [0x140008a60]
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, [0x140008000]
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 0x14000fc91
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.140007e20
lea rdx, [0x140008000]
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 0x14000fca7
mov r8, r13
mov rcx, rdi
call fcn.14000a420
test al, al
je 0x14000fc6e
mov rdx, r13
mov rcx, rdi
call fcn.14000a570
test al, al
je 0x14000fc6e
mov rdx, r13
mov rcx, rdi
call fcn.14000a6c0
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x14000fc75
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.140007e20
lea rdx, [0x140008000]
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 0x14000fcde
cmp eax, 2
jne 0x14000fc5b
mov r8d, ebx
mov rcx, rdi
call fcn.14000a300
jmp 0x14000fc63
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.140007e20
lea rdx, [0x140008000]
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.1400d3390
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret