Function at 0x140010440
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, 0xe0
mov rax, qword [0x14005d080]
xor rax, rsp
mov qword [rbp - 9], rax
mov rbx, rdx
mov qword [rbp - 0x71], rdx
mov r12, rcx
mov qword [rbp - 0x79], rcx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x61], rax
xor r13d, r13d
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x29], r13
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400109ee
movsxd rsi, dword [rdx + 0x3c]
add rsi, rdx
cmp dword [rsi], 0x4550
jne 0x1400109ee
test rsi, rsi
je 0x1400109ee
mov eax, 0x20b
cmp word [rsi + 0x18], ax
je 0x1400104cf
lea rdx, str.____Image_is_not_64_bit
jmp 0x1400109f5
mov r14d, dword [rsi + 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 0x140010a09
movzx eax, word [rsi + 0x14]
mov eax, dword [rax + rsi + 0x24]
mov dword [rbp - 0x59], eax
sub r14d, eax
mov dword [rsp + 0x40], r14d
mov edx, r14d
mov qword [rsp + 0x50], rdx
lea rdi, [0x14005e7c0]
cmp dword [rbp + 0x77], 1
jne 0x140010539
mov edx, r14d
mov rcx, r12
call fcn.1400101c0
mov r13, rax
mov eax, r14d
mov qword [rsp + 0x58], rax
jmp 0x140010659
mov qword [rsp + 0x58], rdx
test r14d, r14d
je 0x140010659
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x140060160], eax
jle 0x14001060f
lea rcx, [0x140060160]
call fcn.140017990
cmp dword [0x140060160], 0xffffffff
jne 0x14001060a
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
mov r8d, 0x15
lea rdx, [0x14004a3c0]
lea rcx, [rbp - 0x51]
call fcn.14000bf20
nop
lea r8, [rbp - 0x51]
mov rdx, qword [0x1400600f8]
mov rcx, r12
call fcn.140004210
mov qword [0x1400601f8], rax
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x1400105fe
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400105f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010a32
call fcn.1400178e0
nop
lea rcx, [0x140060160]
call fcn.140017924
mov rdx, qword [rsp + 0x50]
cmp qword [0x1400601f8], 0
jne 0x140010632
lea rdx, str.____Failed_to_find_ExAllocatePool
mov rcx, rdi
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
jmp 0x140010659
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x48]
mov rcx, r12
call fcn.14000af30
mov r13, qword [rsp + 0x48]
test al, al
mov eax, 0
cmove r13, rax
mov rcx, rdi
test r13, r13
jne 0x14001068b
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140010a09
lea rdx, str.___Image_base_has_been_allocated_at_0x
call fcn.140009f80
mov rdx, r13
mov rcx, rax
call fcn.140007310
mov rcx, rax
call fcn.14000a240
mov r8d, dword [rsi + 0x54]
mov rdx, rbx
mov rcx, r15
call fcn.14003b4b0
movzx ebx, word [rsi + 0x14]
add rbx, 0x28
xor ecx, ecx
mov r14d, ecx
cmp cx, word [rsi + 6]
jae 0x140010714
add rbx, rsi
mov r12, qword [rbp - 0x71]
test dword [rbx + 0x14], 0x80
ja 0x1400106f0
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r12
mov ecx, dword [rbx - 4]
add rcx, r15
call fcn.14003b4b0
inc r14d
add rbx, 0x28
movzx eax, word [rsi + 6]
cmp r14d, eax
jl 0x1400106d3
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rdi, [0x14005e7c0]
mov r12, qword [rbp - 0x79]
mov r14, r13
mov ebx, dword [rbp - 0x59]
sub r13, rbx
lea rdx, str.___Skipped_0x
mov rcx, rdi
call fcn.140009f80
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.14000faa0
mov rcx, rax
lea rdx, str._bytes_of_PE_Header
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
mov rbx, r13
sub rbx, qword [rsi + 0x30]
mov rdx, r15
lea rcx, [rbp - 0x51]
call fcn.140011ec0
mov rdx, rbx
mov rcx, rax
call fcn.140010a40
mov rdx, r13
mov rcx, r15
call fcn.140010b40
test al, al
jne 0x1400107a4
lea rdx, str.____Failed_to_fix_cookie
mov rcx, rdi
jmp 0x1400109fc
mov rdx, r15
lea rcx, [rbp - 0x51]
call fcn.140012020
mov rdx, rax
mov rcx, r12
call fcn.140010c80
test al, al
jne 0x1400107cb
lea rdx, str.____Failed_to_resolve_imports
jmp 0x140010982
mov eax, dword [rbp - 0x59]
add rax, r15
je 0x14001097b
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14001097b
xor ecx, ecx
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x51], 0x33
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], r14
mov qword [rbp - 0x31], rbx
mov dword [rbp - 0x59], ecx
mov qword [rsp + 0x38], rcx
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov r9d, 0x28
lea r8, [rbp - 0x51]
mov edx, 0x80862007
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14001097b
mov esi, dword [rsi + 0x28]
add rsi, r13
lea rdx, str.____Calling_DriverEntry_0x
mov rcx, rdi
call fcn.140009f80
mov rdx, rsi
mov rcx, rax
call fcn.140007310
mov rcx, rax
call fcn.14000a240
mov r9, rbx
mov r8, r14
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x29]
call fcn.14000ec50
test al, al
jne 0x140010884
lea rdx, str.____Callback_returns_false__failed_
jmp 0x140010982
xor eax, eax
mov dword [rbp - 0x59], eax
mov r9, qword [rbp - 0x29]
cmp byte [rbp + 0x7f], al
cmovne r9, r14
mov rax, qword [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r8, rsi
lea rdx, [rbp - 0x59]
mov rcx, r12
call fcn.140011260
test al, al
jne 0x1400108bc
lea rdx, str.____Failed_to_call_driver_entry
jmp 0x140010982
mov ebx, dword [rbp - 0x59]
mov rax, qword [rbp - 0x61]
test rax, rax
je 0x1400108ca
mov dword [rax], ebx
lea rdx, str.___DriverEntry_returned_0x
mov rcx, rdi
call fcn.140009f80
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.140011020
mov rcx, rax
call fcn.14000a240
cmp byte [rbp + 0x67], 0
je 0x140010962
lea rdx, str.___Freeing_memory
mov rcx, rdi
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
mov rdx, r14
mov rcx, r12
cmp dword [rbp + 0x77], 1
jne 0x14001093b
mov r8d, dword [rsp + 0x40]
call fcn.140003fd0
jmp 0x140010940
call fcn.1400040e0
mov rcx, rdi
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x140010955
lea rdx, str.____WARNING:_Failed_to_free_memory_
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r14
jmp 0x140010a0b
lea rdx, str.____Failed_to_write_local_image_to_remote_image
mov rcx, rdi
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rdx, str.___Freeing_memory
mov rcx, rdi
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
mov rdx, r14
mov rcx, r12
cmp dword [rbp + 0x77], 1
jne 0x1400109d2
mov r8d, dword [rsp + 0x40]
call fcn.140003fd0
jmp 0x1400109d7
call fcn.1400040e0
test al, al
lea rdx, str.___Memory_has_been_released
jne 0x1400109e9
lea rdx, str.____WARNING:_Failed_to_free_memory_
mov rcx, rdi
jmp 0x1400109fc
lea rdx, str.____Invalid_format_of_PE_image
lea rcx, [0x14005e7c0]
call fcn.140009f80
mov rcx, rax
call fcn.14000a240
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400178c0
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140021e8c
nop
int3