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, 0x250
xor ebp, ebp
mov r11, rcx
movzx ecx, byte [rcx]
xorps xmm0, xmm0
mov rbx, rdx
mov r10d, ebp
movups xmmword [rsp + 0x20], xmm0
cmp cl, 0x68
je 0x14000153d
nop dword [rax]
inc r10d
mov eax, ecx
xor eax, r10d
cmp eax, 0x68
jne 0x140001530
lea rax, [rsp + 0x20]
mov ecx, ebp
sub r11, rax
lea rdx, [rsp + 0x20]
nop dword [rax]
movzx eax, r10b
xor al, byte [r11 + rdx]
lea rdx, [rdx + 1]
sub al, cl
inc ecx
mov byte [rdx - 1], al
cmp ecx, 0x10
jl 0x140001550
mov dword [rsp + 0x30], r8d
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], r8d
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x44], r9d
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdi, qword [rcx + 0x20]
test rdi, rdi
je 0x14000173d
mov qword [rsp + 0x260], rsi
mov qword [rsp + 0x268], r14
mov r14d, 0x104
nop dword [rax + rax]
movzx eax, word [rdi + 0x48]
test ax, ax
je 0x14000172d
cmp ax, r14w
jae 0x14000172d
mov rax, qword [rdi + 0x50]
mov ebx, ebp
cmp word [rax], bx
je 0x14000160f
mov rsi, rbp
mov rcx, rbp
nop dword [rax + rax]
movzx ecx, byte [rcx + rax]
call fcn.1400020f0
inc ebx
mov byte [rsp + rsi + 0x50], al
mov rax, qword [rdi + 0x50]
mov esi, ebx
lea rcx, [rbx + rbx]
cmp word [rcx + rax], bp
jne 0x1400015f0
mov eax, ebx
lea rcx, [rsp + 0x50]
mov byte [rsp + rax + 0x50], bpl
call fcn.140001450
cmp eax, 0x8c90ae2b
je 0x140001634
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1400015c0
jmp 0x14000172d
mov rdi, qword [rdi + 0x20]
test rdi, rdi
je 0x14000172d
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x14000172d
movsxd rax, dword [rdi + 0x3c]
add rax, rdi
cmp dword [rax], 0x4550
jne 0x14000172d
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rsp + 0x160]
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 + 0x1d0]
mov r14d, dword [rsi + rdi + 0x20]
add r14, rdi
cmp dword [rsi + rdi + 0x14], ebx
jbe 0x14000172d
nop word [rax + rax]
mov eax, ebx
mov ecx, dword [r14 + rax*4]
add rcx, rdi
call fcn.140001450
cmp eax, 0x2b93e5ea
je 0x14000172d
inc ebx
cmp ebx, dword [rsi + rdi + 0x14]
jb 0x140001710
mov rsi, qword [rsp + 0x260]
mov r14, qword [rsp + 0x268]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.ADVAPI32.dll_SystemFunction032
test eax, eax
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
sete bpl
mov eax, ebp
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret