Function at 0x14004a0b0
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 - 7]
sub rsp, 0xa0
mov rax, qword [0x1401a38c0]
xor rax, rsp
mov qword [rbp - 9], rax
mov r14, rdx
mov rdi, rcx
mov qword [rbp - 0x31], rcx
xor r15d, r15d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14004a7d9
movsxd r13, dword [rdx + 0x3c]
add r13, rdx
cmp dword [r13], 0x4550
jne 0x14004a7d9
test r13, r13
je 0x14004a7d9
mov eax, 0x20b
cmp word [r13 + 0x18], ax
je 0x14004a12b
lea rdx, str.____Image_is_not_64_bit
jmp 0x14004a7e0
mov ebx, dword [r13 + 0x50]
mov edx, ebx
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x14004a7fc
movzx eax, word [r13 + 0x14]
mov r12d, dword [rax + r13 + 0x24]
sub ebx, r12d
mov ecx, ebx
mov qword [rbp - 0x59], rcx
je 0x14004a25f
mov edx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rdx + rax]
cmp dword [0x140347d64], eax
jle 0x14004a232
lea rcx, [0x140347d64]
call fcn.1400d90b8
cmp dword [0x140347d64], 0xffffffff
jne 0x14004a22e
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.ExAllocatePoolWithTag
lea rcx, [rbp - 0x51]
call fcn.140038af0
nop
lea r8, [rbp - 0x51]
mov rdx, qword [0x140347068]
mov rcx, rdi
call fcn.1400466b0
mov qword [0x140347dc8], rax
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x14004a222
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a21c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a21c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d9724
nop
lea rcx, [0x140347d64]
call fcn.1400d904c
mov rcx, qword [rbp - 0x59]
cmp qword [0x140347dc8], 0
jne 0x14004a298
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.140048760
lea rdx, [0x140048940]
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.140048760
lea rdx, [0x140048940]
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, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14004a7fc
mov qword [rbp - 0x69], r15
mov qword [rsp + 0x20], rcx
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.140048e10
test al, al
je 0x14004a25f
mov rbx, qword [rbp - 0x69]
mov qword [rbp - 0x61], rbx
test rbx, rbx
je 0x14004a25f
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.140048760
mov rdx, rbx
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, [0x140048940]
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 [r13 + 0x54]
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r13 + 0x14]
add rbx, 0x24
mov edi, r15d
xor eax, eax
cmp ax, word [r13 + 6]
jae 0x14004a34c
add rbx, r13
mov rax, qword [rbp - 0x69]
mov qword [rbp - 0x61], rax
nop dword [rax]
test dword [rbx + 0x18], 0x80
ja 0x14004a33d
mov ecx, dword [rbx]
add rcx, rsi
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, r14
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r13 + 6]
cmp edi, eax
jl 0x14004a320
mov r15, qword [rbp - 0x61]
mov rbx, r15
sub rbx, r12
mov qword [rbp - 0x69], 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.140048760
lea rdx, [0x140044e80]
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, r12d
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.140048760
lea rdx, [0x140048940]
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 r14, rbx
sub r14, qword [r13 + 0x30]
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x14004a485
movsxd rax, dword [rsi + 0x3c]
add rax, rsi
cmp dword [rax], 0x4550
jne 0x14004a485
test rax, rax
je 0x14004a485
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
xor edx, edx
mov r11d, edx
mov qword [rbp - 0x11], rdx
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x14004a3fc
jmp 0x14004a490
lea rbx, [rsi + rcx]
mov edi, dword [rax + 0xb4]
add rdi, rbx
mov r10, qword [rbp - 0x19]
cmp rbx, rdi
jae 0x14004a47f
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x14004a47d
mov eax, dword [rbx]
add rax, rsi
mov qword [rbp - 0x51], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x49], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x41], eax
cmp r10, r11
je 0x14004a45a
movups xmm0, xmmword [rbp - 0x51]
movups xmmword [r10], xmm0
movsd xmm1, qword [rbp - 0x41]
movsd qword [r10 + 0x10], xmm1
mov r10, qword [rbp - 0x19]
add r10, 0x18
mov qword [rbp - 0x19], r10
jmp 0x14004a46e
lea r8, [rbp - 0x51]
mov rdx, r10
lea rcx, [rbp - 0x21]
call fcn.14004b8a0
mov r10, qword [rbp - 0x19]
mov eax, dword [rbx + 4]
add rbx, rax
mov r11, qword [rbp - 0x11]
cmp rbx, rdi
jb 0x14004a412
xor edx, edx
mov rbx, qword [rbp - 0x21]
jmp 0x14004a49f
xorps xmm1, xmm1
xor edx, edx
mov r11d, edx
xorps xmm0, xmm0
psrldq xmm0, 8
movq rbx, xmm1
movq r10, xmm0
cmp rbx, r10
je 0x14004a500
lea r9, [rbx + 0x10]
mov edi, 0xf000
mov r15d, 0xa000
mov r8d, edx
cmp dword [r9], 0
jbe 0x14004a4ef
nop dword [rax]
mov ecx, r8d
mov rax, qword [r9 - 8]
movzx edx, word [rax + rcx*2]
movzx eax, dx
and ax, di
cmp ax, r15w
jne 0x14004a4e5
and edx, 0xfff
mov rax, qword [r9 - 0x10]
add qword [rdx + rax], r14
inc r8d
cmp r8d, dword [r9]
jb 0x14004a4c0
xor edx, edx
add r9, 0x18
lea rax, [r9 - 0x10]
cmp rax, r10
jne 0x14004a4b3
mov r15, qword [rbp - 0x61]
test rbx, rbx
je 0x14004a55b
sub r11, rbx
movabs rax, 0x2aaaaaaaaaaaaaab
imul r11
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, rbx
cmp rdx, 0x1000
jb 0x14004a553
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a553
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400d9724
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x14004a60d
movsxd rax, dword [rsi + 0x3c]
add rax, rsi
cmp dword [rax], 0x4550
jne 0x14004a60d
test rax, rax
je 0x14004a60d
mov ecx, dword [rax + 0xd8]
test ecx, ecx
jne 0x14004a5bb
lea rdx, str.___Load_config_directory_wasnt_found__probably_StackCookie_not_defined__fix_cookie_skipped
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140048760
lea rdx, [0x140048940]
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 r14, qword [rbp - 0x69]
jmp 0x14004a669
mov rdi, qword [rcx + rsi + 0x58]
test rdi, rdi
jne 0x14004a5ce
lea rdx, str.___StackCookie_not_defined__fix_cookie_skipped
jmp 0x14004a596
mov rax, rsi
mov r14, qword [rbp - 0x69]
sub rax, r14
add rdi, rax
movabs rax, 0x2b992ddfa232
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
cmp qword [rdi], rax
je 0x14004a619
lea rdx, str.____StackCookie_already_fixed___this_probably_wrong
call fcn.140048760
lea rdx, [0x140048940]
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_fix_cookie
jmp 0x14004a7e0
lea rdx, str.___Fixing_stack_cookie
call fcn.140048760
lea rdx, [0x140048940]
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]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor rcx, rbx
movabs rdx, 0x2b992ddfa232
xor rcx, rdx
movabs rax, 0x2b992ddfa233
cmp rcx, rdx
cmove rcx, rax
mov qword [rdi], rcx
mov rdx, rsi
lea rcx, [rbp - 0x51]
call fcn.14004b1b0
mov rdx, rax
mov rdi, qword [rbp - 0x31]
mov rcx, rdi
call fcn.14004a830
test al, al
jne 0x14004a691
lea rdx, str.____Failed_to_resolve_imports
jmp 0x14004a70e
lea r8, [rsi + r12]
mov r9, qword [rbp - 0x59]
mov rdx, r15
mov rcx, rdi
call fcn.140046270
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 0x14004a6b8
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x14004a715
mov ebx, dword [r13 + 0x28]
add rbx, r14
lea rdx, str.____Calling_DriverEntry_0x
call fcn.140048760
mov rdx, rbx
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, [0x140048940]
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 dword [rbp - 0x69], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rbx
lea rdx, [rbp - 0x69]
mov rcx, rdi
call fcn.14004ab40
test al, al
jne 0x14004a784
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.140048760
lea rdx, [0x140048940]
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, rsi
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.140048760
lea rdx, [0x140048940]
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 rdx, r15
mov rcx, rdi
call fcn.140046570
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x14004a7e7
lea rdx, str.____WARNING:_Failed_to_free_memory_
jmp 0x14004a7e7
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.140048760
lea rdx, [0x140044e80]
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, dword [rbp - 0x69]
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, [0x140048940]
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, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r15
jmp 0x14004a7fe
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.140048760
lea rdx, [0x140048940]
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.1400d8ff0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret