Function at 0x1400bb490
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 [0x140117340]
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 0x1400bba90
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x1400bba90
test rdi, rdi
je 0x1400bba90
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x1400bb51f
lea rdx, str.____Image_is_not_64_bit
jmp 0x1400bba97
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 0x1400bbab3
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 0x1400bb58a
lea r8, [rsp + 0x38]
mov edx, r13d
mov rcx, rsi
call fcn.1400bae60
mov r12, rax
jmp 0x1400bb66d
cmp eax, 2
jne 0x1400bb5a2
mov edx, r14d
mov rcx, rsi
call fcn.1400bb220
mov r12, rax
jmp 0x1400bb66d
test r14d, r14d
je 0x1400bb66d
mov edx, ecx
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401ccb80], eax
jle 0x1400bb61a
lea rcx, [0x1401ccb80]
call fcn.1400d79f8
cmp dword [0x1401ccb80], 0xffffffff
jne 0x1400bb61a
lea rdx, str.ExAllocatePoolWithTag
lea rcx, [rbp - 0x61]
call fcn.140007040
nop
lea r8, [rbp - 0x61]
mov rdx, qword [0x1401cc348]
mov rcx, rsi
call fcn.1400b73b0
mov qword [0x1401ccc68], rax
lea rcx, [rbp - 0x61]
call fcn.140006280
nop
lea rcx, [0x1401ccb80]
call fcn.1400d798c
cmp qword [0x1401ccc68], 0
jne 0x1400bb649
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.140039b80
lea rdx, [0x140039d60]
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 0x1400bb66d
mov qword [rbp - 0x79], r12
mov qword [rsp + 0x20], r13
lea rdx, [rbp - 0x79]
mov rcx, rsi
call fcn.1400b9f30
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 0x1400bb6ab
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
call fcn.140039b80
lea rdx, [0x140039d60]
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 0x1400bbab3
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.140039b80
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, [0x140039d60]
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 0x1400bb735
add rbx, rdi
mov r13, qword [rbp - 0x41]
nop dword [rax]
test dword [rbx + 0x18], 0x80
ja 0x1400bb71d
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 0x1400bb700
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.140039b80
lea rdx, [0x140032b10]
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.140039b80
lea rdx, [0x140039d60]
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.1400bc920
mov rdx, rbx
mov rcx, rax
call fcn.1400bbae0
mov rdx, r12
mov rcx, r15
call fcn.1400bbbc0
test al, al
jne 0x1400bb7c5
lea rdx, str.____Failed_to_fix_cookie
jmp 0x1400bba97
mov rdx, r15
lea rcx, [rbp - 0x61]
call fcn.1400bca80
mov rdx, rax
mov rcx, rsi
call fcn.1400bbd20
test al, al
jne 0x1400bb80d
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.140039b80
lea rdx, [0x140039d60]
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 0x1400bb8dd
mov r8d, dword [rsp + 0x30]
add r8, r15
mov r9, r13
mov rdx, r14
mov rcx, rsi
call fcn.1400b6cd0
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 0x1400bb837
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x1400bb7ee
mov edi, dword [rdi + 0x28]
add rdi, r12
lea rdx, str.____Calling_DriverEntry_0x
call fcn.140039b80
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, [0x140039d60]
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.140034e00
test al, al
jne 0x1400bb88f
lea rdx, str.____Callback_returns_false__failed_
jmp 0x1400bb8c1
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.1400bbf90
test al, al
jne 0x1400bba2d
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.140039b80
lea rdx, [0x140039d60]
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.140039b80
lea rdx, [0x140039d60]
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 0x1400bba04
mov r8, rbx
call fcn.1400b70f0
test al, al
je 0x1400bba24
mov rdx, rbx
mov rcx, rsi
call fcn.1400b71f0
test al, al
je 0x1400bba24
test rbx, rbx
jne 0x1400bb952
xor al, al
jmp 0x1400bba19
mov edx, 8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401ccc18], eax
jle 0x1400bb9c4
lea rcx, [0x1401ccc18]
call fcn.1400d79f8
cmp dword [0x1401ccc18], 0xffffffff
jne 0x1400bb9c4
lea rdx, str.ExFreePool
lea rcx, [rbp - 0x61]
call fcn.140007040
nop
lea r8, [rbp - 0x61]
mov rdx, qword [0x1401cc348]
mov rcx, rsi
call fcn.1400b73b0
mov qword [0x1401ccbc8], rax
lea rcx, [rbp - 0x61]
call fcn.140006280
nop
lea rcx, [0x1401ccc18]
call fcn.1400d798c
mov r8, qword [0x1401ccbc8]
test r8, r8
jne 0x1400bb9f7
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.140039b80
lea rdx, [0x140039d60]
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 0x1400bba19
mov r9, rbx
mov rcx, rsi
call fcn.1400b8e10
jmp 0x1400bba19
cmp eax, 2
jne 0x1400bba14
mov r8d, dword [rbp - 0x71]
call fcn.1400b6fd0
jmp 0x1400bba19
call fcn.1400b72d0
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x1400bba97
lea rdx, str.____WARNING:_Failed_to_free_memory_
jmp 0x1400bba97
mov ebx, dword [rsp + 0x30]
mov rax, qword [rbp - 0x31]
test rax, rax
je 0x1400bba3c
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.140039b80
lea rdx, [0x140032b10]
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, [0x140039d60]
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 0x1400bbab5
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.140039b80
lea rdx, [0x140039d60]
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.1400d7930
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret