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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp dword [0x14008d630], 0
jne 0x140002374
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 0x14000238e
mov r9d, 0x20202020
mov rsi, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x1400021a3
lea rdx, [rsi + rcx]
mov ecx, dword [rdx + 0xc]
mov eax, dword [rcx + rsi]
or eax, r9d
cmp eax, 0x6c64746e
jne 0x1400021a3
mov eax, dword [rcx + rsi + 4]
or eax, r9d
cmp eax, 0x6c642e6c
je 0x1400021b1
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x14000216f
jmp 0x1400021b8
mov qword [0x14008d5e0], rsi
test rdx, rdx
je 0x14000238e
mov eax, dword [rdx + 0x1c]
lea r15, [0x14008d630]
mov r12d, dword [rdx + 0x20]
add rax, rsi
mov r13d, dword [rdx + 0x18]
add r12, rsi
mov qword [rsp + 0x70], rax
mov eax, dword [rdx + 0x24]
add rax, rsi
mov qword [rsp + 0x68], rax
xor edi, edi
lea eax, [r13 - 1]
mov ebp, dword [r12 + rax*4]
mov eax, 0x775a
add rbp, rsi
cmp word [rbp], ax
jne 0x1400022de
xor r15d, r15d
mov r14d, 0x9327c3c6
cmp byte [rbp], r15b
je 0x140002239
mov rax, rbp
movzx ebx, word [rax]
inc r15d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, r14d
mov eax, r15d
ror ecx, 8
add rax, rbp
add ecx, ebx
xor r14d, ecx
cmp byte [rax], 0
jne 0x140002217
mov rax, qword [rsp + 0x68]
lea r15, [0x14008d630]
lea ecx, [r13 - 1]
mov edx, edi
add rdx, rdx
mov word [rsp + 0x60], 0x50f
movzx r10d, word [rsp + 0x60]
mov r11b, 0xc3
mov dword [r15 + rdx*8 + 8], r14d
movzx eax, word [rax + rcx*2]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + rax*4]
mov dword [r15 + rdx*8 + 0xc], ecx
lea r9, [rsi + rcx]
lea rcx, [r9 + 0x12]
cmp r10w, word [rcx]
jne 0x140002288
cmp r11b, byte [rcx + 2]
je 0x1400022ca
mov edx, 1
mov eax, edx
shl eax, 5
mov r8d, eax
lea rcx, [rax + 0x12]
add rcx, r9
cmp r10w, word [rcx]
jne 0x1400022a8
cmp r11b, byte [rcx + 2]
je 0x1400022ca
mov rcx, r9
sub rcx, r8
add rcx, 0x12
cmp r10w, word [rcx]
jne 0x1400022be
cmp r11b, byte [rcx + 2]
je 0x1400022ca
inc edx
cmp edx, 0x200
jb 0x14000228d
xor ecx, ecx
mov eax, edi
inc edi
add rax, rax
mov qword [r15 + rax*8 + 0x10], rcx
cmp edi, 0x258
je 0x1400022e8
add r13d, 0xffffffff
jne 0x1400021eb
xor r8d, r8d
mov dword [0x14008d630], edi
lea eax, [rdi - 1]
test eax, eax
je 0x140002374
mov eax, edi
xor ecx, ecx
sub eax, r8d
cmp eax, 1
je 0x140002369
lea r11d, [rcx + 1]
mov r10d, ecx
add r10, r10
mov r9d, r11d
add r9, r9
mov esi, dword [r15 + r10*8 + 0xc]
mov ebx, dword [r15 + r9*8 + 0xc]
cmp esi, ebx
jbe 0x14000235a
mov eax, dword [r15 + r9*8 + 8]
mov edx, dword [r15 + r10*8 + 8]
mov rcx, qword [r15 + r10*8 + 0x10]
mov dword [r15 + r10*8 + 8], eax
mov rax, qword [r15 + r9*8 + 0x10]
mov qword [r15 + r10*8 + 0x10], rax
mov dword [r15 + r10*8 + 0xc], ebx
mov dword [r15 + r9*8 + 8], edx
mov dword [r15 + r9*8 + 0xc], esi
mov qword [r15 + r9*8 + 0x10], rcx
mov edi, dword [0x14008d630]
mov eax, edi
mov ecx, r11d
sub eax, r8d
dec eax
cmp r11d, eax
jb 0x140002304
inc r8d
lea eax, [rdi - 1]
cmp r8d, eax
jb 0x1400022f8
mov eax, 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x140002379