Function at 0x140007910
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xd0
mov rax, qword [0x1404b3fb8]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, rdx
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x51], rax
xor r13d, r13d
mov qword [rbp - 0x29], r13
mov qword [rbp - 0x19], r13
mov rdi, qword [0x1404bd470]
mov qword [rbp - 0x61], rdi
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400080c0
movsxd r15, dword [rdx + 0x3c]
add r15, rdx
cmp dword [r15], 0x4550
jne 0x1400080c0
mov eax, 0x20b
cmp word [r15 + 0x18], ax
je 0x14000799d
lea rdx, str.____Image_is_not_64_bit
jmp 0x1400080c7
mov ebx, dword [r15 + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x1400080e3
movzx eax, word [r15 + 0x14]
mov r12d, dword [rax + r15 + 0x24]
sub ebx, r12d
mov ecx, ebx
mov qword [rbp - 0x69], rcx
je 0x140007b01
mov edx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rdx + rax]
cmp dword [0x1404bdc1c], eax
jle 0x140007ad4
lea rcx, [0x1404bdc1c]
call fcn.14012e820
cmp dword [0x1404bdc1c], 0xffffffff
jne 0x140007ad0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
mov qword [rbp - 0x79], reloc.WS2_32.dll_ntohs
mov ecx, 0x20
call fcn.14012e898
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], reloc.WS2_32.dll_setsockopt
mov qword [rbp - 0x79], 0x1f
movups xmm0, xmmword [0x140405e98]
movups xmmword [rax], xmm0
mov ecx, dword [0x140405ea8]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x140405eac]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea r8, [rsp + 0x38]
mov rdx, qword [0x1404bd468]
mov rcx, rdi
call fcn.140002c20
mov qword [0x1404bdc80], rax
mov rdx, qword [rbp - 0x79]
cmp rdx, 0x10
jb 0x140007ac4
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007abe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007abe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14012e770
nop
lea rcx, [0x1404bdc1c]
call fcn.14012e7b4
mov rcx, qword [rbp - 0x69]
cmp qword [0x1404bdc80], 0
jne 0x140007b3a
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.140005e30
lea rdx, [0x140006010]
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.140005e30
lea rdx, [0x140006010]
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, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400080e3
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400064f0
test al, al
je 0x140007b01
mov r13, qword [rsp + 0x30]
test r13, r13
je 0x140007b01
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.140005e30
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, [0x140006010]
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 [r15 + 0x54]
mov rdx, rsi
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [r15 + 0x14]
add rbx, 0x24
xor eax, eax
mov edi, eax
cmp ax, word [r15 + 6]
jae 0x140007be0
add rbx, r15
test dword [rbx + 0x18], 0x80
ja 0x140007bd1
mov ecx, dword [rbx]
add rcx, r14
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
inc edi
add rbx, 0x28
movzx eax, word [r15 + 6]
cmp edi, eax
jl 0x140007bb4
mov qword [rbp - 0x59], r12
mov rbx, r13
sub rbx, r12
mov qword [rbp - 0x71], 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.140005e30
lea rdx, [0x140001340]
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.140005e30
lea rdx, [0x140006010]
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 rsi, rbx
sub rsi, qword [r15 + 0x30]
mov eax, 0x5a4d
lea r12, [r14 + 0x3c]
cmp word [r14], ax
jne 0x140007c60
movsxd rax, dword [r12]
cmp dword [rax + r14], 0x4550
je 0x140007c7f
xorps xmm1, xmm1
xor edx, edx
mov r11d, edx
xorps xmm0, xmm0
psrldq xmm0, 8
movq r10, xmm0
movq rbx, xmm1
jmp 0x140007d47
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
xor edx, edx
mov r11d, edx
mov qword [rbp - 0x31], rdx
mov ecx, dword [rax + r14 + 0xb0]
test ecx, ecx
jne 0x140007cb3
psrldq xmm0, 8
movq r10, xmm0
movq rbx, xmm1
jmp 0x140007d47
lea rbx, [r14 + rcx]
mov edi, dword [rax + r14 + 0xb4]
add rdi, rbx
mov r10, qword [rbp - 0x39]
cmp rbx, rdi
jae 0x140007d43
nop dword [rax + rax]
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x140007d41
mov eax, dword [rbx]
add rax, r14
mov qword [rsp + 0x38], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x40], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rsp + 0x48], eax
cmp r10, r11
je 0x140007d1d
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [r10], xmm0
movsd xmm1, qword [rsp + 0x48]
movsd qword [r10 + 0x10], xmm1
mov r10, qword [rbp - 0x39]
add r10, 0x18
mov qword [rbp - 0x39], r10
jmp 0x140007d32
lea r8, [rsp + 0x38]
mov rdx, r10
lea rcx, [rbp - 0x41]
call fcn.140009510
mov r10, qword [rbp - 0x39]
mov eax, dword [rbx + 4]
add rbx, rax
mov r11, qword [rbp - 0x31]
cmp rbx, rdi
jb 0x140007cd0
xor edx, edx
mov rbx, qword [rbp - 0x41]
cmp rbx, r10
je 0x140007db1
lea r9, [rbx + 0x10]
mov edi, 0xf000
mov r13d, 0xa000
nop dword [rax + rax]
mov r8d, edx
cmp dword [r9], 0
jbe 0x140007d9f
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, r13w
jne 0x140007d95
and edx, 0xfff
mov rax, qword [r9 - 0x10]
add qword [rdx + rax], rsi
inc r8d
cmp r8d, dword [r9]
jb 0x140007d70
xor edx, edx
add r9, 0x18
lea rax, [r9 - 0x10]
cmp rax, r10
jne 0x140007d60
mov r13, qword [rsp + 0x30]
test rbx, rbx
je 0x140007e0c
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 0x140007e04
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007e04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14012e770
mov eax, 0x5a4d
cmp word [r14], ax
jne 0x140007eb7
movsxd rax, dword [r12]
cmp dword [rax + r14], 0x4550
jne 0x140007eb7
mov ecx, dword [rax + r14 + 0xd8]
test ecx, ecx
jne 0x140007e65
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.140005e30
lea rdx, [0x140006010]
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 rsi, qword [rbp - 0x71]
jmp 0x140007f09
mov rdi, qword [rcx + r14 + 0x58]
test rdi, rdi
jne 0x140007e78
lea rdx, str.___StackCookie_not_defined__fix_cookie_skipped
jmp 0x140007e40
mov rax, r14
mov rsi, qword [rbp - 0x71]
sub rax, rsi
add rdi, rax
movabs r12, 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], r12
je 0x140007ec3
lea rdx, str.____StackCookie_already_fixed___this_probably_wrong
call fcn.140005e30
lea rdx, [0x140006010]
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 0x1400080c7
lea rdx, str.___Fixing_stack_cookie
call fcn.140005e30
lea rdx, [0x140006010]
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
xor rcx, r12
movabs rax, 0x2b992ddfa233
cmp rcx, r12
cmove rcx, rax
mov qword [rdi], rcx
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.140008c80
mov rdx, rax
mov rdi, qword [rbp - 0x61]
mov rcx, rdi
call fcn.140008120
test al, al
jne 0x140007f35
lea rdx, str.____Failed_to_resolve_imports
jmp 0x140007fe7
mov r8, qword [rbp - 0x59]
add r8, r14
mov r12, qword [rbp - 0x69]
mov r9, r12
mov rdx, r13
mov rcx, rdi
call fcn.1400027e0
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 0x140007f65
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x140007fee
mov ebx, dword [r15 + 0x28]
add rbx, rsi
lea rdx, str.____Calling_DriverEntry_0x
call fcn.140005e30
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, [0x140006010]
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 esi, esi
mov qword [rsp + 0x20], rsi
mov r9, r12
mov r8, r13
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.14000cae0
test al, al
jne 0x140007fbb
lea rdx, str.____Callback_returns_false__failed_
jmp 0x140007fe7
mov dword [rsp + 0x30], esi
mov rax, qword [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x19]
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140008420
test al, al
jne 0x14000805d
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.140005e30
lea rdx, [0x140006010]
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, r14
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.140005e30
lea rdx, [0x140006010]
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, r13
mov rcx, rdi
call fcn.140002ad0
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 0x1400080ce
lea rdx, str.____WARNING:_Failed_to_free_memory_
jmp 0x1400080ce
mov ebx, dword [rsp + 0x30]
mov rax, qword [rbp - 0x51]
test rax, rax
je 0x14000806c
mov dword [rax], ebx
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.140005e30
lea rdx, [0x140001340]
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___long_int____ptr64]
lea rdx, [0x140006010]
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, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r13
jmp 0x1400080e5
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.140005e30
lea rdx, [0x140006010]
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.14012e750
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret