Function at 0x14006b800
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov r12, rdx
mov rbx, rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14006bc3e
movsxd rsi, dword [rdx + 0x3c]
add rsi, rdx
cmp dword [rsi], 0x4550
jne 0x14006bc3e
test rsi, rsi
je 0x14006bc3e
mov eax, 0x20b
cmp word [rsi + 0x18], ax
je 0x14006b866
lea rdx, str.____Image_is_not_64_bit
jmp 0x14006bc45
lea rax, [rsi + 0x50]
mov qword [rsp + 0xa8], rax
mov ebp, dword [rax]
mov qword [rsp + 0xb0], rbp
mov r9d, 4
mov r8d, 0x3000
mov edx, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x14006bc59
lea rdi, [0x140662140]
test rbp, rbp
je 0x14006b9bc
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14066375c], eax
jle 0x14006b99b
lea rcx, [0x14066375c]
call fcn.14015d524
cmp dword [0x14066375c], 0xffffffff
jne 0x14006b99b
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov ecx, 0x20
call fcn.14015d5ac
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [reloc.WS2_32.dll_setsockopt]
movdqu xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [str.ExAllocatePoolWithTag]
movups xmmword [rax], xmm0
mov ecx, dword [0x1401fb5c8]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1401fb5cc]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea r8, [rsp + 0x30]
mov rdx, qword [0x140663538]
mov rcx, rbx
call fcn.140064400
mov qword [0x1406637c8], rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14006b98f
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006b989
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006bc6c
call fcn.14015d5e8
nop
lea rcx, [0x14066375c]
call fcn.14015d4b8
cmp qword [0x1406637c8], 0
jne 0x14006b9e9
lea rdx, str.____Failed_to_find_ExAllocatePool
mov rcx, rdi
call fcn.1400688a0
mov rcx, rax
call fcn.140068b60
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
mov rcx, rdi
call fcn.1400688a0
mov rcx, rax
call fcn.140068b60
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14006bc59
xor r13d, r13d
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0xb8]
mov rcx, rbx
call fcn.1400694b0
test al, al
je 0x14006b9bc
mov r15, qword [rsp + 0xb8]
test r15, r15
je 0x14006b9bc
lea rdx, str.___Image_base_has_been_allocated_at_0x
mov rcx, rdi
call fcn.1400688a0
mov rdx, r15
mov rcx, rax
call fcn.140066ba0
mov rcx, rax
call fcn.140068b60
mov r8d, dword [rsi + 0x54]
mov rdx, r12
mov rcx, r14
call fcn.1401a2e10
movzx ebx, word [rsi + 0x14]
add rbx, 0x24
mov ebp, r13d
xor eax, eax
cmp ax, word [rsi + 6]
jae 0x14006ba8c
add rbx, rsi
test dword [rbx + 0x18], 0x80
ja 0x14006ba7e
mov ecx, dword [rbx]
add rcx, r14
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
add rdx, r12
call fcn.1401a2e10
inc ebp
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp ebp, eax
jl 0x14006ba61
mov rbx, r15
sub rbx, qword [rsi + 0x30]
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.14006c890
mov rdx, rbx
mov rcx, rax
call fcn.14006bc80
mov rdx, r15
mov rcx, r14
call fcn.14006bd80
test al, al
jne 0x14006bac9
lea rdx, str.____Failed_to_fix_cookie
mov rcx, rdi
jmp 0x14006bc4c
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.14006c9c0
mov rdx, rax
mov rbp, qword [rsp + 0xa0]
mov rcx, rbp
call fcn.14006bec0
test al, al
jne 0x14006baf9
lea rdx, str.____Failed_to_resolve_imports
jmp 0x14006bb7c
mov r9, qword [rsp + 0xb0]
mov r8, r14
mov rdx, r15
mov rcx, rbp
call fcn.140063ff0
mov rcx, rdi
test al, al
jne 0x14006bb1f
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x14006bb7f
mov ebx, dword [rsi + 0x28]
add rbx, r15
lea rdx, str.____Calling_DriverEntry_0x
call fcn.1400688a0
mov rdx, rbx
mov rcx, rax
call fcn.140066ba0
mov rcx, rax
call fcn.140068b60
xor eax, eax
mov dword [rsp + 0xc0], eax
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov r9, r15
mov r8, rbx
lea rdx, [rsp + 0xc0]
mov rcx, rbp
call fcn.140069240
test al, al
jne 0x14006bbd6
lea rdx, str.____Failed_to_call_driver_entry
mov rcx, rdi
call fcn.1400688a0
mov rcx, rax
call fcn.140068b60
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rdx, str.___Freeing_memory
mov rcx, rdi
call fcn.1400688a0
mov rcx, rax
call fcn.140068b60
mov rdx, r15
mov rcx, rbp
call fcn.1400642c0
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x14006bbd1
lea rdx, str.____WARNING:_Failed_to_free_memory_
mov rcx, rdi
jmp 0x14006bc4c
mov ebx, dword [rsp + 0xc0]
mov rax, qword [rsp + 0xe8]
test rax, rax
je 0x14006bbec
mov dword [rax], ebx
lea rdx, str.___DriverEntry_returned_0x
mov rcx, rdi
call fcn.1400688a0
mov rcx, qword [rax]
movsxd r8, dword [rcx + 4]
mov ecx, dword [r8 + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [r8 + rax + 0x18], ecx
mov edx, ebx
mov rcx, rax
call fcn.14006c160
mov rcx, rax
call fcn.140068b60
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r15
jmp 0x14006bc5b
lea rdx, str.____Invalid_format_of_PE_image
lea rcx, [0x140662140]
call fcn.1400688a0
mov rcx, rax
call fcn.140068b60
xor eax, eax
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140170074
nop
int3