Function at 0x14000eaf0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa0
mov rax, qword [0x14005d060]
xor rax, rsp
mov qword [rbp - 9], rax
mov r15, rdx
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x31], rax
xor esi, esi
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x19], rsi
mov r13, qword [0x140060060]
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000ef75
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x14000ef75
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x14000eb76
lea rdx, str.____Image_is_not_64_bit
jmp 0x14000ef7c
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x14000ef90
movzx eax, word [rdi + 0x14]
mov eax, dword [rax + rdi + 0x24]
mov dword [rbp - 0x69], eax
sub ebx, eax
mov edx, ebx
mov qword [rbp - 0x59], rdx
je 0x14000eca3
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r8 + rcx]
cmp dword [0x1400600ac], eax
jle 0x14000ec7e
lea rcx, [0x1400600ac]
call fcn.140014a30
cmp dword [0x1400600ac], 0xffffffff
jne 0x14000ec7a
mov qword [rbp - 0x51], rsi
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x39], recv
mov byte [rbp - 0x51], 0
mov r8d, socket
lea rdx, [0x140048778]
lea rcx, [rbp - 0x51]
call fcn.140009710
nop
lea r8, [rbp - 0x51]
mov rdx, qword [0x140060058]
mov rcx, r13
call fcn.140004370
mov qword [0x140060120], rax
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x14000ec6e
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ec68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000efbf
call fcn.1400148a0
nop
lea rcx, [0x1400600ac]
call fcn.1400149d0
mov rdx, qword [rbp - 0x59]
cmp qword [0x140060120], 0
jne 0x14000ecd4
lea rdx, str.____Failed_to_find_ExAllocatePool
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rcx, rax
call fcn.14000af30
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rcx, rax
call fcn.14000af30
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000ef90
mov qword [rbp - 0x61], rsi
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x61]
mov rcx, r13
call fcn.14000b570
test al, al
je 0x14000eca3
mov r12, qword [rbp - 0x61]
test r12, r12
je 0x14000eca3
lea rdx, str.___Image_base_has_been_allocated_at_0x
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rdx, r12
mov rcx, rax
call fcn.140007830
mov rcx, rax
call fcn.14000af30
mov r8d, dword [rdi + 0x54]
mov rdx, r15
mov rcx, r14
call fcn.140016d90
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x14000ed6b
add rbx, rdi
nop
test dword [rbx + 0x14], 0x80
ja 0x14000ed5d
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r15
mov ecx, dword [rbx - 4]
add rcx, r14
call fcn.140016d90
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x14000ed40
mov esi, dword [rbp - 0x69]
mov r15, r12
sub r15, rsi
lea rdx, str.___Skipped_0x
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call fcn.1400027c0
mov edx, esi
mov rcx, rbx
call fcn.14000e840
mov rcx, rax
lea rdx, str._bytes_of_PE_Header
call fcn.14000aca0
mov rcx, rax
call fcn.14000af30
mov rbx, r15
sub rbx, qword [rdi + 0x30]
mov rdx, r14
lea rcx, [rbp - 0x51]
call fcn.140010340
mov rdx, rbx
mov rcx, rax
call fcn.14000efd0
mov rdx, r15
mov rcx, r14
call fcn.14000f0d0
test al, al
jne 0x14000edf3
lea rdx, str.____Failed_to_fix_cookie
jmp 0x14000ef7c
mov rdx, r14
lea rcx, [rbp - 0x51]
call fcn.140010490
mov rdx, rax
mov rcx, r13
call fcn.14000f200
test al, al
jne 0x14000ee1a
lea rdx, str.____Failed_to_resolve_imports
jmp 0x14000eeb9
lea r8, [r14 + rsi]
mov rsi, qword [rbp - 0x59]
mov r9, rsi
mov rdx, r12
mov rcx, r13
call fcn.140003f60
test al, al
jne 0x14000ee3d
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x14000eeb9
mov ebx, dword [rdi + 0x28]
add rbx, r15
lea rdx, str.____Calling_DriverEntry_0x
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rdx, rbx
mov rcx, rax
call fcn.140007830
mov rcx, rax
call fcn.14000af30
xor edi, edi
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov r8, r12
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.14000dfa0
test al, al
jne 0x14000ee90
lea rdx, str.____Callback_returns_false__failed_
jmp 0x14000eeb9
mov dword [rbp - 0x69], edi
mov rax, qword [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9, r12
mov r8, rbx
lea rdx, [rbp - 0x69]
mov rcx, r13
call fcn.14000f790
test al, al
jne 0x14000ef1a
lea rdx, str.____Failed_to_call_driver_entry
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rcx, rax
call fcn.14000af30
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rdx, str.___Freeing_memory
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rcx, rax
call fcn.14000af30
mov rdx, r12
mov rcx, r13
call fcn.140004230
lea rdx, str.___Memory_has_been_released
lea rcx, str.____WARNING:_Failed_to_free_memory_
test al, al
cmove rdx, rcx
jmp 0x14000ef7c
mov edi, dword [rbp - 0x69]
mov rax, qword [rbp - 0x31]
test rax, rax
je 0x14000ef28
mov dword [rax], edi
lea rdx, str.___DriverEntry_returned_0x
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call fcn.1400027c0
mov edx, edi
mov rcx, rbx
call fcn.14000f590
mov rcx, rax
call fcn.14000af30
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r12
jmp 0x14000ef92
lea rdx, str.____Invalid_format_of_PE_image
lea rcx, [0x14005e630]
call fcn.14000aca0
mov rcx, rax
call fcn.14000af30
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140014880
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14001eec4
nop
int3