Function at 0x14000d860
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, 0xa0
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rbp - 9], rax
mov rax, qword [rbp + 0x8f]
xor edi, edi
mov qword [rbp - 0x49], rax
mov r13, rdx
mov eax, 0x5a4d
mov qword [rbp - 0x19], rdi
mov r14, rcx
mov qword [rbp - 0x29], rdi
cmp word [rdx], ax
jne 0x14000dccd
movsxd rsi, dword [rdx + 0x3c]
add rsi, rdx
cmp dword [rsi], 0x4550
jne 0x14000dccd
mov eax, 0x20b
cmp word [rsi + 0x18], ax
je 0x14000d8dd
lea rdx, str.____Image_is_not_64_bit
jmp 0x14000dcd4
mov r15d, dword [rsi + 0x50]
xor ecx, ecx
mov edx, r15d
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
test rax, rax
je 0x14000dce8
movzx eax, word [rsi + 0x14]
mov rcx, r14
mov eax, dword [rax + rsi + 0x24]
sub r15d, eax
cmp dword [rbp + 0x77], 1
mov dword [rbp - 0x61], eax
jne 0x14000d923
mov edx, r15d
call fcn.14000d740
jmp 0x14000d92b
mov r8d, r15d
call fcn.140003a48
mov qword [rbp - 0x59], rax
mov rbx, rax
mov qword [rbp - 0x51], rax
test rax, rax
jne 0x14000d96c
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
lea rcx, [0x14005c750]
call fcn.140008acc
mov rcx, rax
call fcn.140008cc4
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000dce8
lea rdi, [0x14005c750]
mov rcx, rdi
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.140008acc
mov rdx, rbx
mov rcx, rax
call fcn.140006508
mov rcx, rax
call fcn.140008cc4
mov r8d, dword [rsi + 0x54]
mov rdx, r13
mov rcx, r12
call fcn.140016480
movzx eax, word [rsi + 0x14]
xor edx, edx
add rax, 0x28
mov dword [rbp - 0x69], edx
mov ecx, edx
cmp dx, word [rsi + 6]
jae 0x14000d9f2
lea rbx, [rax + rsi]
test dword [rbx + 0x14], 0x80
ja 0x14000d9dd
mov edx, dword [rbx + 4]
mov ecx, dword [rbx - 4]
add rdx, r13
mov r8d, dword [rbx]
add rcx, r12
call fcn.140016480
mov ecx, dword [rbp - 0x69]
movzx eax, word [rsi + 6]
inc ecx
add rbx, 0x28
mov dword [rbp - 0x69], ecx
cmp ecx, eax
jl 0x14000d9bd
mov rbx, qword [rbp - 0x59]
mov eax, dword [rbp - 0x61]
lea rdx, str.___Skipped_0x
mov r13, rbx
mov rcx, rdi
sub rbx, rax
mov qword [rbp - 0x59], rbx
call fcn.140008acc
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call fcn.140002594
mov edx, dword [rbp - 0x61]
mov rcx, rbx
call fcn.14000d210
mov rcx, rax
lea rdx, str._bytes_of_PE_Header
call fcn.140008acc
mov rcx, rax
call fcn.140008cc4
mov rbx, qword [rbp - 0x59]
lea rcx, [rbp - 0x41]
mov rax, rbx
mov rdx, r12
sub rax, qword [rsi + 0x30]
mov qword [rbp - 0x59], rax
call fcn.14000ec48
mov qword [rbp - 0x69], rax
mov r10, qword [rax + 8]
mov rdx, qword [rax]
cmp rdx, r10
je 0x14000dac3
mov r11, qword [rbp - 0x59]
xor eax, eax
mov r9d, eax
cmp dword [rdx + 0x10], eax
jbe 0x14000dab6
mov rax, qword [rdx + 8]
mov ecx, r9d
movzx r8d, word [rax + rcx*2]
mov ecx, 0xf000
movzx eax, r8w
and ax, cx
mov ecx, 0xa000
cmp ax, cx
jne 0x14000daab
mov rax, qword [rdx]
and r8d, 0xfff
add qword [r8 + rax], r11
inc r9d
cmp r9d, dword [rdx + 0x10]
jb 0x14000da7b
xor eax, eax
add rdx, 0x18
cmp rdx, r10
jne 0x14000da73
mov rax, qword [rbp - 0x69]
mov rcx, rax
call fcn.14000e04c
mov rdx, rbx
mov rcx, r12
call fcn.14000dd14
test al, al
jne 0x14000dae9
lea rdx, str.____Failed_to_fix_cookie
mov rcx, rdi
jmp 0x14000dcdb
mov rdx, r12
lea rcx, [rbp - 0x41]
call fcn.14000eda0
mov rdx, rax
mov rcx, r14
call fcn.14000de00
test al, al
jne 0x14000db10
lea rdx, str.____Failed_to_resolve_imports
jmp 0x14000dbad
mov r8d, dword [rbp - 0x61]
mov rdx, r13
add r8, r12
mov r9d, r15d
mov rcx, r14
call fcn.1400035e0
test al, al
jne 0x14000db32
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x14000dbad
mov esi, dword [rsi + 0x28]
lea rdx, str.____Calling_DriverEntry_0x
mov rcx, rdi
add rsi, rbx
call fcn.140008acc
mov rdx, rsi
mov rcx, rax
call fcn.140006508
mov rcx, rax
call fcn.140008cc4
mov r9d, r15d
lea rdx, [rbp - 0x19]
mov r8, r13
lea rcx, [rbp - 0x29]
call fcn.14000c604
xor ebx, ebx
test al, al
jne 0x14000db7c
lea rdx, str.____Callback_returns_false__failed_
jmp 0x14000dbad
mov r9, qword [rbp - 0x29]
lea rdx, [rbp - 0x69]
mov rax, qword [rbp - 0x19]
mov r8, rsi
cmp byte [rbp + 0x7f], bl
mov rcx, r14
mov dword [rbp - 0x69], ebx
cmovne r9, r13
mov qword [rsp + 0x20], rax
call fcn.14000e2a0
test al, al
jne 0x14000dc1c
lea rdx, str.____Failed_to_call_driver_entry
mov rcx, rdi
call fcn.140008acc
mov rcx, rax
call fcn.140008cc4
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rdx, str.___Freeing_memory
mov rcx, rdi
call fcn.140008acc
mov rcx, rax
call fcn.140008cc4
cmp dword [rbp + 0x77], 1
mov rcx, r14
mov rdx, qword [rbp - 0x51]
jne 0x14000dbfc
mov r8d, r15d
call fcn.140003864
jmp 0x14000dc01
call fcn.140003b84
mov cl, al
lea rdx, str.___Memory_has_been_released
test cl, cl
lea rax, str.____WARNING:_Failed_to_free_memory_
cmove rdx, rax
jmp 0x14000dae1
mov rax, qword [rbp - 0x49]
mov esi, dword [rbp - 0x69]
test rax, rax
je 0x14000dc2a
mov dword [rax], esi
lea rdx, str.___DriverEntry_returned_0x
mov rcx, rdi
call fcn.140008acc
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call fcn.140002594
mov edx, esi
mov rcx, rbx
call fcn.14000e0c8
mov rcx, rax
call fcn.140008cc4
cmp byte [rbp + 0x67], 0
je 0x14000dcb7
lea rdx, str.___Freeing_memory
mov rcx, rdi
call fcn.140008acc
mov rcx, rax
call fcn.140008cc4
cmp dword [rbp + 0x77], 1
mov rdx, r13
mov rcx, r14
jne 0x14000dc90
mov r8d, r15d
call fcn.140003864
jmp 0x14000dc95
call fcn.140003b84
lea rdx, str.___Memory_has_been_released
mov rcx, rdi
test al, al
jne 0x14000dcaa
lea rdx, str.____WARNING:_Failed_to_free_memory_
call fcn.140008acc
mov rcx, rax
call fcn.140008cc4
xor edx, edx
mov r8d, 0x8000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r13
jmp 0x14000dcea
lea rdx, str.____Invalid_format_of_PE_image
lea rcx, [0x14005c750]
call fcn.140008acc
mov rcx, rax
call fcn.140008cc4
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140013f10
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret