Function at 0x1400b64d0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r13, rdx
mov rsi, rcx
xor r14d, r14d
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r14
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400b6b34
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x1400b6b34
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x1400b653a
lea rdx, str.____Image_is_not_64_bit
jmp 0x1400b6b3b
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
je 0x1400b6b57
movzx eax, word [rdi + 0x14]
mov eax, dword [rax + rdi + 0x24]
mov dword [rbp + 0x60], eax
sub ebx, eax
mov dword [rbp + 0x68], ebx
mov qword [rbp + 0x50], r14
mov r12d, ebx
mov ecx, 4
mov eax, dword [rbp + 0x70]
cmp eax, 1
jne 0x1400b6598
lea r8, [rbp + 0x50]
mov edx, r12d
mov rcx, rsi
call fcn.1400b5d80
mov rbx, rax
jmp 0x1400b6720
cmp eax, 2
jne 0x1400b65af
mov edx, ebx
mov rcx, rsi
call fcn.1400b62c0
mov rbx, rax
jmp 0x1400b6720
test ebx, ebx
je 0x1400b66ca
mov edx, ecx
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401e62d0], eax
jle 0x1400b669d
lea rcx, [0x1401e62d0]
call fcn.1400b8c54
cmp dword [0x1401e62d0], 0xffffffff
jne 0x1400b669d
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov ecx, 0x20
call fcn.1400b8ccc
mov qword [rbp - 0x20], rax
movdqa xmm0, xmmword [0x1400e3ae0]
movdqu xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [str.ExAllocatePoolWithTag]
movups xmmword [rax], xmm1
mov ecx, dword [0x1400e15b0]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400e15b4]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea r8, [rbp - 0x20]
mov rdx, qword [0x1401c0088]
mov rcx, rsi
call fcn.1400b0d60
mov qword [0x1401e63b8], rax
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x1400b6691
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b668b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b668b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b9018
nop
lea rcx, [0x1401e62d0]
call fcn.1400b8be8
cmp qword [0x1401e63b8], 0
jne 0x1400b6703
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.140099170
lea rdx, [0x140099340]
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.140099170
lea rdx, [0x140099340]
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, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400b6b57
mov qword [rbp + 0x58], r14
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x58]
mov rcx, rsi
call fcn.1400b4a90
test al, al
je 0x1400b66ca
mov rbx, qword [rbp + 0x58]
mov qword [rbp + 0x58], rbx
test rbx, rbx
je 0x1400b66ca
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.140099170
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, [0x140099340]
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 [rdi + 0x54]
mov rdx, r13
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [rdi + 0x14]
add rax, 0x24
xor ecx, ecx
cmp cx, word [rdi + 6]
jae 0x1400b67b1
lea rbx, [rax + rdi]
nop dword [rax + rax]
test dword [rbx + 0x18], 0x80
ja 0x1400b679d
mov ecx, dword [rbx]
add rcx, r15
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, r13
call sub.VCRUNTIME140.dll_memcpy
inc r14d
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp r14d, eax
jl 0x1400b6780
mov rbx, qword [rbp + 0x58]
mov r14, rbx
mov r13d, dword [rbp + 0x60]
sub rbx, r13
mov qword [rbp + 0x58], 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.140099170
lea rdx, [0x140069870]
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 + 0x60]
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.140099170
lea rdx, [0x140099340]
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]
sub rbx, qword [rdi + 0x30]
mov rdx, r15
lea rcx, [rbp - 0x20]
call fcn.1400b74f0
mov rdx, rbx
mov rcx, rax
call fcn.1400b6b80
mov rbx, qword [rbp + 0x58]
mov rdx, rbx
mov rcx, r15
call fcn.1400b6c80
test al, al
jne 0x1400b6847
lea rdx, str.____Failed_to_fix_cookie
jmp 0x1400b6b3b
mov rdx, r15
lea rcx, [rbp - 0x20]
call fcn.1400b7620
mov rdx, rax
mov rcx, rsi
call fcn.1400b6dd0
test al, al
jne 0x1400b688e
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.140099170
lea rdx, [0x140099340]
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, qword [rbp + 0x50]
jmp 0x1400b6957
lea r8, [r15 + r13]
mov r9, r12
mov rdx, r14
mov rcx, rsi
call fcn.1400b0580
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 0x1400b68b4
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x1400b6870
mov edi, dword [rdi + 0x28]
add rdi, rbx
lea rdx, str.____Calling_DriverEntry_0x
call fcn.140099170
mov rdx, rdi
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, [0x140099340]
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, qword [rbp + 0x50]
mov qword [rsp + 0x20], rbx
mov r9, r12
mov r8, r14
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x28]
call fcn.14008cf50
test al, al
jne 0x1400b690b
lea rdx, str.____Callback_returns_false__failed_
jmp 0x1400b693b
xor eax, eax
mov dword [rbp + 0x60], eax
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x28]
mov r8, rdi
lea rdx, [rbp + 0x60]
mov rcx, rsi
call fcn.1400b70d0
test al, al
jne 0x1400b6acf
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.140099170
lea rdx, [0x140099340]
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, r15
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.140099170
lea rdx, [0x140099340]
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 + 0x70]
mov rdx, r14
mov rcx, rsi
cmp eax, 1
jne 0x1400b6a9f
mov r8, rbx
call fcn.1400b0960
test al, al
je 0x1400b69bd
mov rdx, rbx
mov rcx, rsi
call fcn.1400b0ad0
test al, al
je 0x1400b69bd
test rbx, rbx
jne 0x1400b69c4
xor al, al
jmp 0x1400b6ab4
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401e6368], eax
jle 0x1400b6a5f
lea rcx, [0x1401e6368]
call fcn.1400b8c54
cmp dword [0x1401e6368], 0xffffffff
jne 0x1400b6a5f
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1400e3a30]
movdqu xmmword [rbp - 0x10], xmm1
movsd xmm0, qword [str.ExFreePool]
movsd qword [rbp - 0x20], xmm0
movzx eax, word [0x1400e1610]
mov word [rbp - 0x18], ax
mov byte [rbp - 0x16], 0
lea r8, [rbp - 0x20]
mov rdx, qword [0x1401c0088]
mov rcx, rsi
call fcn.1400b0d60
mov qword [0x1401e6318], rax
mov r8, qword [rbp - 8]
cmp r8, 0xf
jbe 0x1400b6a53
mov rdx, qword [rbp - 0x20]
call fcn.140061210
nop
lea rcx, [0x1401e6368]
call fcn.1400b8be8
mov r8, qword [0x1401e6318]
test r8, r8
jne 0x1400b6a92
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.140099170
lea rdx, [0x140099340]
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 al, al
jmp 0x1400b6ab4
mov r9, rbx
mov rcx, rsi
call fcn.1400b3450
jmp 0x1400b6ab4
cmp eax, 2
jne 0x1400b6aaf
mov r8d, dword [rbp + 0x68]
call fcn.1400b0870
jmp 0x1400b6ab4
call fcn.1400b0c20
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 0x1400b6b42
lea rdx, str.____WARNING:_Failed_to_free_memory_
jmp 0x1400b6b42
mov ebx, dword [rbp + 0x60]
mov rax, qword [rbp + 0x88]
test rax, rax
je 0x1400b6ae0
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.140099170
lea rdx, [0x140069870]
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, [0x140099340]
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, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r14
jmp 0x1400b6b59
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.140099170
lea rdx, [0x140099340]
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 rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret