Function at 0x140014380
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 [0x140267660]
xor rax, rsp
mov qword [rbp - 9], rax
mov r12, rdx
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov qword [rbp - 0x61], rcx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x31], rax
xor edi, edi
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x29], rdi
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140014a35
movsxd r15, dword [rdx + 0x3c]
add r15, rdx
cmp dword [r15], 0x4550
jne 0x140014a35
mov eax, 0x20b
cmp word [r15 + 0x18], ax
je 0x14001441b
lea rdx, [0x140232378]
lea rcx, [0x140273a80]
call fcn.14000e490
lea rdx, str.____Image_is_not_64_bit
jmp 0x140014a4f
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 r13, rax
test rax, rax
je 0x140014a5f
movzx eax, word [r15 + 0x14]
mov eax, dword [rax + r15 + 0x24]
mov dword [rbp - 0x69], eax
sub ebx, eax
mov dword [rsp + 0x30], ebx
mov qword [rbp - 0x59], rdi
lea rsi, [0x140232378]
lea rdi, [0x140273a80]
mov eax, dword [rbp + 0x77]
cmp eax, 1
jne 0x140014482
mov edx, ebx
lea r8, [rbp - 0x59]
mov rcx, r14
call fcn.140013bf0
mov rbx, rax
jmp 0x1400145ea
cmp eax, 2
jne 0x140014499
mov edx, ebx
mov rcx, r14
call fcn.140014150
mov rbx, rax
jmp 0x1400145ea
test rbx, rbx
je 0x140014593
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140274e68], eax
jle 0x140014567
lea rcx, [0x140274e68]
call fcn.140197f54
cmp dword [0x140274e68], 0xffffffff
jne 0x140014567
xor eax, eax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], 0xf
mov byte [rbp - 0x51], al
lea r8d, [rax + 0x15]
lea rdx, str.ExAllocatePoolWithTag
lea rcx, [rbp - 0x51]
call fcn.1400043d0
nop
lea r8, [rbp - 0x51]
mov rdx, qword [0x140274d48]
mov rcx, r14
call fcn.1400079f0
mov qword [0x140274f60], rax
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x14001455b
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014555
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014a88
call fcn.140016b60
nop
lea rcx, [0x140274e68]
call fcn.140197ef4
cmp qword [0x140274f60], 0
jne 0x1400145cb
mov rdx, rsi
mov rcx, rdi
call fcn.14000e490
mov rcx, rax
lea rdx, str.____Failed_to_find_ExAllocatePool
call fcn.14000e7c0
mov rcx, rax
call fcn.14000ea50
mov rdx, rsi
mov rcx, rdi
call fcn.14000e490
mov rcx, rax
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
call fcn.14000e7c0
mov rcx, rax
call fcn.14000ea50
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140014a5f
xor eax, eax
mov qword [rbp - 0x71], rax
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x71]
mov rcx, r14
call fcn.1400103f0
test al, al
je 0x140014593
mov rbx, qword [rbp - 0x71]
mov qword [rbp - 0x79], rbx
mov qword [rbp - 0x71], rbx
test rbx, rbx
je 0x140014593
lea rsi, [0x140232378]
mov rdx, rsi
lea rdi, [0x140273a80]
mov rcx, rdi
call fcn.14000e490
mov rcx, rax
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.14000e7c0
mov rdx, rbx
mov rcx, rax
call fcn.14000b1b0
mov rcx, rax
call fcn.14000ea50
mov r8d, dword [r15 + 0x54]
mov rdx, r12
mov rcx, r13
call fcn.14019d100
movzx eax, word [r15 + 0x14]
add rax, 0x28
xor ecx, ecx
mov r12d, ecx
cmp cx, word [r15 + 6]
jae 0x140014696
lea rbx, [rax + r15]
mov r14, qword [rsp + 0x38]
nop
test dword [rbx + 0x14], 0x80
ja 0x14001467d
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r14
mov ecx, dword [rbx - 4]
add rcx, r13
call fcn.14019d100
inc r12d
add rbx, 0x28
movzx eax, word [r15 + 6]
cmp r12d, eax
jl 0x140014660
mov r14, qword [rbp - 0x61]
mov rbx, qword [rbp - 0x79]
mov qword [rsp + 0x38], rbx
mov r12d, dword [rbp - 0x69]
sub rbx, r12
mov qword [rbp - 0x79], rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14000e490
mov rcx, rax
lea rdx, str.___Skipped_0x
call fcn.14000e7c0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call fcn.140005960
mov edx, r12d
mov rcx, rbx
call fcn.140013a40
mov rcx, rax
lea rdx, str._bytes_of_PE_Header
call fcn.14000e7c0
mov rcx, rax
call fcn.14000ea50
mov rbx, qword [rbp - 0x79]
sub rbx, qword [r15 + 0x30]
mov rdx, r13
lea rcx, [rbp - 0x51]
call fcn.140015e40
mov rdx, rbx
mov rcx, rax
call fcn.140014a90
mov rdx, qword [rbp - 0x79]
mov rcx, r13
call fcn.140014b90
test al, al
jne 0x14001473a
mov rdx, rsi
mov rcx, rdi
call fcn.14000e490
lea rdx, str.____Failed_to_fix_cookie
jmp 0x140014a4f
mov rdx, r13
lea rcx, [rbp - 0x51]
call fcn.140015f90
mov rdx, rax
mov rcx, r14
call fcn.140014d00
test al, al
jne 0x14001476a
lea rbx, str.____Failed_to_resolve_imports
mov r15, qword [rbp - 0x59]
mov r12d, dword [rsp + 0x30]
jmp 0x140014839
mov r12d, dword [rsp + 0x30]
mov r9d, r12d
mov r8d, dword [rbp - 0x69]
add r8, r13
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
mov rcx, r14
call fcn.140007240
mov rcx, rdi
mov rdx, rsi
test al, al
jne 0x1400147a3
lea rbx, str.____Failed_to_write_local_image_to_remote_image
mov r15, qword [rbp - 0x59]
jmp 0x14001483f
mov r15d, dword [r15 + 0x28]
add r15, qword [rbp - 0x79]
mov qword [rbp - 0x61], r15
call fcn.14000e490
mov rcx, rax
lea rdx, str.____Calling_DriverEntry_0x
call fcn.14000e7c0
mov rdx, r15
mov rcx, rax
call fcn.14000b1b0
mov rcx, rax
call fcn.14000ea50
mov r15, qword [rbp - 0x59]
mov qword [rsp + 0x20], r15
mov r9, r12
mov r8, rbx
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x29]
call fcn.140012ed0
test al, al
jne 0x1400147ff
lea rbx, str.____Callback_returns_false__failed_
jmp 0x140014839
xor eax, eax
mov dword [rsp + 0x30], eax
mov r9, qword [rbp - 0x29]
cmp byte [rbp + 0x7f], al
cmovne r9, rbx
mov rax, qword [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r8, qword [rbp - 0x61]
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140015290
test al, al
jne 0x1400148f6
lea rbx, str.____Failed_to_call_driver_entry
mov rcx, rdi
mov rdx, rsi
call fcn.14000e490
mov rcx, rax
mov rdx, rbx
call fcn.14000e7c0
mov rcx, rax
call fcn.14000ea50
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, rsi
mov rcx, rdi
call fcn.14000e490
mov rcx, rax
lea rdx, str.___Freeing_memory
call fcn.14000e7c0
mov rcx, rax
call fcn.14000ea50
mov eax, dword [rbp + 0x77]
mov rdx, qword [rbp - 0x71]
cmp eax, 1
jne 0x1400148e4
mov r8, r15
mov rcx, r14
call fcn.140007630
test al, al
je 0x1400148ca
mov rdx, r15
mov rcx, r14
call fcn.140007770
test al, al
je 0x1400148ca
mov rdx, r15
mov rcx, r14
call fcn.1400078b0
test al, al
lea rbx, str.___Memory_has_been_released
jne 0x1400148d1
lea rbx, str.____WARNING:_Failed_to_free_memory_
mov rdx, rsi
mov rcx, rdi
call fcn.14000e490
mov rdx, rbx
jmp 0x140014a4f
cmp eax, 2
jne 0x1400148b7
mov r8d, r12d
mov rcx, r14
call fcn.140007540
jmp 0x1400148bf
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140014905
mov eax, dword [rsp + 0x30]
mov dword [rcx], eax
mov rdx, rsi
mov rcx, rdi
call fcn.14000e490
mov rcx, rax
lea rdx, str.___DriverEntry_returned_0x
call fcn.14000e7c0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call fcn.140005960
mov edx, dword [rsp + 0x30]
mov rcx, rbx
call fcn.140015090
mov rcx, rax
call fcn.14000ea50
cmp byte [rbp + 0x67], 0
je 0x140014a1a
mov rdx, rsi
mov rcx, rdi
call fcn.14000e490
mov rcx, rax
lea rdx, str.___Freeing_memory
call fcn.14000e7c0
mov rcx, rax
call fcn.14000ea50
mov eax, dword [rbp + 0x77]
cmp eax, 1
jne 0x1400149a4
mov r8, r15
mov r12, qword [rsp + 0x38]
mov rdx, r12
mov rcx, r14
call fcn.140007630
test al, al
je 0x1400149f6
mov rdx, r15
mov rcx, r14
call fcn.140007770
test al, al
je 0x1400149f6
mov rdx, r15
jmp 0x1400149c6
cmp eax, 2
jne 0x1400149be
mov r8d, r12d
mov r12, qword [rsp + 0x38]
mov rdx, r12
mov rcx, r14
call fcn.140007540
jmp 0x1400149ce
mov r12, qword [rsp + 0x38]
mov rdx, r12
mov rcx, r14
call fcn.1400078b0
test al, al
je 0x1400149f6
mov rdx, rsi
mov rcx, rdi
call fcn.14000e490
mov rcx, rax
lea rdx, str.___Memory_has_been_released
call fcn.14000e7c0
mov rcx, rax
call fcn.14000ea50
jmp 0x140014a1f
mov rdx, rsi
mov rcx, rdi
call fcn.14000e490
mov rcx, rax
lea rdx, str.____WARNING:_Failed_to_free_memory_
call fcn.14000e7c0
mov rcx, rax
call fcn.14000ea50
jmp 0x140014a1f
mov r12, qword [rsp + 0x38]
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r12
jmp 0x140014a61
lea rdx, [0x140232378]
lea rcx, [0x140273a80]
call fcn.14000e490
lea rdx, str.____Invalid_format_of_PE_image
mov rcx, rax
call fcn.14000e7c0
mov rcx, rax
call fcn.14000ea50
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140197d80
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401a16fc
nop
int3