Function at 0x1400012a0
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 8], rax
cmp dword [0x140005640], 0
jne 0x140001524
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov r8, qword [rcx + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x14000153b
mov r10, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r10 + 0x88]
test ecx, ecx
je 0x14000131d
lea rdx, [r10 + rcx]
mov ecx, dword [r10 + rcx + 0xc]
mov eax, dword [rcx + r10]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x14000131d
mov eax, dword [rcx + r10 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x140001329
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x1400012e0
test rdx, rdx
je 0x14000153b
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov ebp, dword [rdx + 0x20]
mov qword [rsp + 0x50], rsi
add rbp, r10
mov esi, dword [rdx + 0x18]
mov qword [rsp + 0x28], r12
lea r12, [0x140005640]
mov qword [rsp + 0x20], r13
mov r13d, 0x775a
mov qword [rsp + 0x18], r14
mov r14d, dword [rdx + 0x1c]
mov qword [rsp + 0x10], r15
add r14, r10
mov r15d, dword [rdx + 0x24]
add r15, r10
mov qword [rsp + 0x30], rdi
xor ebx, ebx
lea eax, [rsi - 1]
mov r9d, dword [rbp + rax*4]
mov esi, eax
add r9, r10
mov r11d, eax
cmp word [r9], r13w
jne 0x14000145b
xor r8d, r8d
mov edx, 0x4552ac07
mov rax, r9
nop word [rax + rax]
movzx eax, word [rax]
mov ecx, edx
ror ecx, 8
inc r8d
add ecx, eax
mov eax, r8d
add rax, r9
xor edx, ecx
cmp byte [rax], 0
jne 0x1400013b0
mov edi, ebx
add rdi, rdi
mov word [rsp], 0x50f
movzx r9d, word [rsp]
mov dword [r12 + rdi*8 + 8], edx
movzx eax, word [r15 + r11*2]
mov r11b, 0xc3
mov ecx, dword [r14 + rax*4]
mov dword [r12 + rdi*8 + 0xc], ecx
lea r8, [r10 + rcx]
cmp r9w, word [r8 + 0x12]
lea rax, [r8 + 0x12]
jne 0x140001405
cmp r11b, byte [rax + 2]
je 0x14000144c
mov ecx, 1
nop word [rax + rax]
mov eax, ecx
shl eax, 5
mov edx, eax
add rax, 0x12
add rax, r8
cmp r9w, word [rax]
jne 0x14000142a
cmp r11b, byte [rax + 2]
je 0x14000144c
mov rax, r8
sub rax, rdx
add rax, 0x12
cmp r9w, word [rax]
jne 0x140001440
cmp r11b, byte [rax + 2]
je 0x14000144c
inc ecx
cmp ecx, 0x200
jb 0x140001410
xor eax, eax
inc ebx
mov qword [r12 + rdi*8 + 0x10], rax
cmp ebx, 0x1f4
je 0x140001463
test esi, esi
jne 0x140001380
mov r15, qword [rsp + 0x10]
lea eax, [rbx - 1]
mov r14, qword [rsp + 0x18]
xor r10d, r10d
mov r13, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x48]
mov dword [0x140005640], ebx
test eax, eax
je 0x140001510
nop dword [rax + rax]
mov eax, ebx
xor ecx, ecx
sub eax, r10d
cmp eax, 1
je 0x140001505
nop dword [rax]
lea r11d, [rcx + 1]
mov r9d, ecx
add r9, r9
mov r8d, r11d
add r8, r8
mov esi, dword [r12 + r9*8 + 0xc]
mov edi, dword [r12 + r8*8 + 0xc]
cmp esi, edi
jbe 0x1400014f6
mov eax, dword [r12 + r8*8 + 8]
mov edx, dword [r12 + r9*8 + 8]
mov rcx, qword [r12 + r9*8 + 0x10]
mov dword [r12 + r9*8 + 8], eax
mov rax, qword [r12 + r8*8 + 0x10]
mov qword [r12 + r9*8 + 0x10], rax
mov dword [r12 + r9*8 + 0xc], edi
mov dword [r12 + r8*8 + 8], edx
mov dword [r12 + r8*8 + 0xc], esi
mov qword [r12 + r8*8 + 0x10], rcx
mov ebx, dword [0x140005640]
mov eax, ebx
mov ecx, r11d
sub eax, r10d
dec eax
cmp r11d, eax
jb 0x1400014a0
inc r10d
lea eax, [rbx - 1]
cmp r10d, eax
jb 0x140001490
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov r12, qword [rsp + 0x28]
mov eax, 1
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.140001750
add rsp, 0x38
ret
xor eax, eax
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.140001750
add rsp, 0x38
ret