Function at 0x140001904
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 [0x14008b4d0], 0
jne 0x140001b70
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 0x140001b8a
mov r9d, 0x20202020
mov rsi, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x14000197f
lea rdx, [rsi + rcx]
mov ecx, dword [rdx + 0xc]
mov eax, dword [rcx + rsi]
or eax, r9d
cmp eax, 0x6c64746e
jne 0x14000197f
mov eax, dword [rcx + rsi + 4]
or eax, r9d
cmp eax, 0x6c642e6c
je 0x14000198b
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x14000194b
test rdx, rdx
je 0x140001b8a
mov eax, dword [rdx + 0x1c]
lea r12, [0x14008b4d0]
mov r13d, dword [rdx + 0x20]
add rax, rsi
mov r14d, dword [rdx + 0x18]
add r13, rsi
mov qword [rsp + 0x70], rax
mov eax, dword [rdx + 0x24]
add rax, rsi
mov qword [rsp + 0x68], rax
xor edi, edi
lea eax, [r14 - 1]
mov ebp, dword [r13 + rax*4]
mov eax, 0x775a
add rbp, rsi
cmp word [rbp], ax
jne 0x140001ada
xor r12d, r12d
mov r15d, 0x9327c3c6
cmp byte [rbp], r12b
je 0x140001a0d
mov rax, rbp
movzx ebx, word [rax]
inc r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, r15d
mov eax, r12d
ror ecx, 8
add rax, rbp
add ecx, ebx
xor r15d, ecx
cmp byte [rax], 0
jne 0x1400019eb
mov rax, qword [rsp + 0x68]
lea r8, [0x14008b4d0]
lea ecx, [r14 - 1]
mov edx, edi
add rdx, rdx
mov word [rsp + 0x60], 0x50f
mov byte [rsp + 0x62], 0xc3
mov dword [r8 + rdx*8 + 8], r15d
movzx eax, word [rax + rcx*2]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + rax*4]
mov dword [r8 + rdx*8 + 0xc], ecx
mov r8d, 3
lea r12, [rsi + rcx]
lea rbx, [r12 + 0x12]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.VCRUNTIME140.dll_memcmp]
test eax, eax
je 0x140001abf
mov ebp, 1
mov eax, ebp
lea rcx, [rsp + 0x60]
shl eax, 5
mov r8d, 3
mov r15d, eax
lea rbx, [rax + 0x12]
add rbx, r12
mov rdx, rbx
call qword [sym.imp.VCRUNTIME140.dll_memcmp]
test eax, eax
je 0x140001abf
mov rbx, r12
lea rcx, [rsp + 0x60]
sub rbx, r15
mov r8d, 3
add rbx, 0x12
mov rdx, rbx
call qword [sym.imp.VCRUNTIME140.dll_memcmp]
test eax, eax
je 0x140001abf
inc ebp
cmp ebp, 0x200
jb 0x140001a6a
xor ebx, ebx
mov eax, edi
lea r12, [0x14008b4d0]
add rax, rax
inc edi
mov qword [r12 + rax*8 + 0x10], rbx
cmp edi, 0x258
je 0x140001ae4
add r14d, 0xffffffff
jne 0x1400019be
xor r8d, r8d
mov dword [0x14008b4d0], edi
lea eax, [rdi - 1]
test eax, eax
je 0x140001b70
mov eax, edi
xor ecx, ecx
sub eax, r8d
cmp eax, 1
je 0x140001b65
lea r11d, [rcx + 1]
mov r10d, ecx
add r10, r10
mov r9d, r11d
add r9, r9
mov esi, dword [r12 + r10*8 + 0xc]
mov ebx, dword [r12 + r9*8 + 0xc]
cmp esi, ebx
jbe 0x140001b56
mov eax, dword [r12 + r9*8 + 8]
mov edx, dword [r12 + r10*8 + 8]
mov rcx, qword [r12 + r10*8 + 0x10]
mov dword [r12 + r10*8 + 8], eax
mov rax, qword [r12 + r9*8 + 0x10]
mov qword [r12 + r10*8 + 0x10], rax
mov dword [r12 + r10*8 + 0xc], ebx
mov dword [r12 + r9*8 + 8], edx
mov dword [r12 + r9*8 + 0xc], esi
mov qword [r12 + r9*8 + 0x10], rcx
mov edi, dword [0x14008b4d0]
mov eax, edi
mov ecx, r11d
sub eax, r8d
dec eax
cmp r11d, eax
jb 0x140001b00
inc r8d
lea eax, [rdi - 1]
cmp r8d, eax
jb 0x140001af4
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 0x140001b75