Function at 0x1400b8a80
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, 0xc0
mov rax, qword [0x140116340]
xor rax, rsp
mov qword [rbp - 9], rax
mov rbx, rdx
mov qword [rbp - 0x41], rdx
mov rsi, rcx
mov qword [rbp - 0x69], rcx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x31], rax
xor r12d, r12d
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x19], r12
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400b9080
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x1400b9080
test rdi, rdi
je 0x1400b9080
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x1400b8b0f
lea rdx, str.____Image_is_not_64_bit
jmp 0x1400b9087
mov r14d, dword [rdi + 0x50]
mov edx, r14d
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
je 0x1400b90a3
movzx eax, word [rdi + 0x14]
mov eax, dword [rax + rdi + 0x24]
mov dword [rsp + 0x30], eax
sub r14d, eax
mov dword [rbp - 0x71], r14d
mov r13d, r14d
mov qword [rbp - 0x39], r13
mov qword [rsp + 0x38], r12
mov ecx, 8
mov eax, dword [rbp + 0x77]
cmp eax, 1
jne 0x1400b8b7a
lea r8, [rsp + 0x38]
mov edx, r13d
mov rcx, rsi
call fcn.1400b8450
mov r12, rax
jmp 0x1400b8c5d
cmp eax, 2
jne 0x1400b8b92
mov edx, r14d
mov rcx, rsi
call fcn.1400b8810
mov r12, rax
jmp 0x1400b8c5d
test r14d, r14d
je 0x1400b8c5d
mov edx, ecx
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401cbb78], eax
jle 0x1400b8c0a
lea rcx, [0x1401cbb78]
call fcn.1400d5238
cmp dword [0x1401cbb78], 0xffffffff
jne 0x1400b8c0a
lea rdx, str.ExAllocatePoolWithTag
lea rcx, [rbp - 0x61]
call fcn.1400070a0
nop
lea r8, [rbp - 0x61]
mov rdx, qword [0x1401cb348]
mov rcx, rsi
call fcn.1400b49d0
mov qword [0x1401cbc60], rax
lea rcx, [rbp - 0x61]
call fcn.140006300
nop
lea rcx, [0x1401cbb78]
call fcn.1400d51cc
cmp qword [0x1401cbc60], 0
jne 0x1400b8c39
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.140036540
lea rdx, [0x140036720]
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]
jmp 0x1400b8c5d
mov qword [rbp - 0x79], r12
mov qword [rsp + 0x20], r13
lea rdx, [rbp - 0x79]
mov rcx, rsi
call fcn.1400b7550
mov r12, qword [rbp - 0x79]
test al, al
mov eax, 0
cmove r12, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test r12, r12
jne 0x1400b8c9b
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
call fcn.140036540
lea rdx, [0x140036720]
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 0x1400b90a3
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.140036540
mov rdx, r12
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, [0x140036720]
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, rbx
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rdi + 0x14]
add rbx, 0x24
xor ecx, ecx
mov r14d, ecx
cmp cx, word [rdi + 6]
jae 0x1400b8d25
add rbx, rdi
mov r13, qword [rbp - 0x41]
nop dword [rax]
test dword [rbx + 0x18], 0x80
ja 0x1400b8d0d
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 0x1400b8cf0
mov r13d, dword [rbp - 0x39]
mov rsi, qword [rbp - 0x69]
mov r14, r12
mov ebx, dword [rsp + 0x30]
sub r12, 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.140036540
lea rdx, [0x140030e10]
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.140036540
lea rdx, [0x140036720]
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, r12
sub rbx, qword [rdi + 0x30]
mov rdx, r15
lea rcx, [rbp - 0x61]
call fcn.1400b9f10
mov rdx, rbx
mov rcx, rax
call fcn.1400b90d0
mov rdx, r12
mov rcx, r15
call fcn.1400b91b0
test al, al
jne 0x1400b8db5
lea rdx, str.____Failed_to_fix_cookie
jmp 0x1400b9087
mov rdx, r15
lea rcx, [rbp - 0x61]
call fcn.1400ba070
mov rdx, rax
mov rcx, rsi
call fcn.1400b9310
test al, al
jne 0x1400b8dfd
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.140036540
lea rdx, [0x140036720]
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 [rsp + 0x38]
jmp 0x1400b8ecd
mov r8d, dword [rsp + 0x30]
add r8, r15
mov r9, r13
mov rdx, r14
mov rcx, rsi
call fcn.1400b42f0
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 0x1400b8e27
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x1400b8dde
mov edi, dword [rdi + 0x28]
add rdi, r12
lea rdx, str.____Calling_DriverEntry_0x
call fcn.140036540
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, [0x140036720]
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 [rsp + 0x38]
mov qword [rsp + 0x20], rbx
mov r9, r13
mov r8, r14
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.140032d80
test al, al
jne 0x1400b8e7f
lea rdx, str.____Callback_returns_false__failed_
jmp 0x1400b8eb1
xor eax, eax
mov dword [rsp + 0x30], eax
mov rax, qword [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x19]
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400b9580
test al, al
jne 0x1400b901d
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.140036540
lea rdx, [0x140036720]
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.140036540
lea rdx, [0x140036720]
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 + 0x77]
mov rdx, r14
mov rcx, rsi
cmp eax, 1
jne 0x1400b8ff4
mov r8, rbx
call fcn.1400b4710
test al, al
je 0x1400b9014
mov rdx, rbx
mov rcx, rsi
call fcn.1400b4810
test al, al
je 0x1400b9014
test rbx, rbx
jne 0x1400b8f42
xor al, al
jmp 0x1400b9009
mov edx, 8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401cbc10], eax
jle 0x1400b8fb4
lea rcx, [0x1401cbc10]
call fcn.1400d5238
cmp dword [0x1401cbc10], 0xffffffff
jne 0x1400b8fb4
lea rdx, str.ExFreePool
lea rcx, [rbp - 0x61]
call fcn.1400070a0
nop
lea r8, [rbp - 0x61]
mov rdx, qword [0x1401cb348]
mov rcx, rsi
call fcn.1400b49d0
mov qword [0x1401cbbc0], rax
lea rcx, [rbp - 0x61]
call fcn.140006300
nop
lea rcx, [0x1401cbc10]
call fcn.1400d51cc
mov r8, qword [0x1401cbbc0]
test r8, r8
jne 0x1400b8fe7
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.140036540
lea rdx, [0x140036720]
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 0x1400b9009
mov r9, rbx
mov rcx, rsi
call fcn.1400b6430
jmp 0x1400b9009
cmp eax, 2
jne 0x1400b9004
mov r8d, dword [rbp - 0x71]
call fcn.1400b45f0
jmp 0x1400b9009
call fcn.1400b48f0
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x1400b9087
lea rdx, str.____WARNING:_Failed_to_free_memory_
jmp 0x1400b9087
mov ebx, dword [rsp + 0x30]
mov rax, qword [rbp - 0x31]
test rax, rax
je 0x1400b902c
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.140036540
lea rdx, [0x140030e10]
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, [0x140036720]
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 0x1400b90a5
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.140036540
lea rdx, [0x140036720]
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.1400d5170
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret