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

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x1400058c0], 0
jne 0x14000197f
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 0x140001997
nop dword [rax]
nop word [rax + rax]
mov rsi, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x140001769
lea rdx, [rsi + rcx]
mov ecx, dword [rsi + rcx + 0xc]
mov eax, dword [rcx + rsi]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x140001769
mov eax, dword [rcx + rsi + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x140001775
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x140001730
test rdx, rdx
je 0x140001997
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov ebp, dword [rdx + 0x18]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x48], r12
mov r12d, dword [rdx + 0x24]
mov qword [rsp + 0x40], r13
add r12, rsi
mov qword [rsp + 0x38], r14
lea r13, [0x1400058c0]
mov r14d, dword [rdx + 0x20]
mov qword [rsp + 0x30], r15
add r14, rsi
mov r15d, dword [rdx + 0x1c]
mov edx, 0x775a
add r15, rsi
xor edi, edi
nop word [rax + rax]
lea eax, [rbp - 1]
mov r9d, dword [r14 + rax*4]
add r9, rsi
cmp word [r9], dx
jne 0x1400018c1
xor edx, edx
mov r8d, 0xb739d2a0
mov rax, r9
nop
movzx eax, word [rax]
mov ecx, r8d
ror ecx, 8
inc edx
add ecx, eax
mov eax, edx
add rax, r9
xor r8d, ecx
cmp byte [rax], 0
jne 0x1400017f0
mov edx, edi
lea eax, [rbp - 1]
add rdx, rdx
mov word [rsp + 0x20], 0x50f
movzx r9d, word [rsp + 0x20]
mov r10b, 0xc3
mov dword [r13 + rdx*8 + 8], r8d
movzx eax, word [r12 + rax*2]
mov ecx, dword [r15 + rax*4]
mov dword [r13 + rdx*8 + 0xc], ecx
lea r8, [rsi + rcx]
cmp r9w, word [r8 + 0x12]
lea rbx, [r8 + 0x12]
jne 0x14000185b
cmp r10b, byte [rbx + 2]
jne 0x14000185b
mov rdx, rbx
lea rcx, str.Found_Syscall_Opcodes_at_address_0x_p_n
call fcn.140001070
jmp 0x1400018a8
mov ecx, 1
mov eax, ecx
shl eax, 5
mov edx, eax
lea rbx, [rax + 0x12]
add rbx, r8
cmp r9w, word [rbx]
jne 0x14000187a
cmp r10b, byte [rbx + 2]
je 0x14000184a
mov rbx, r8
sub rbx, rdx
add rbx, 0x12
cmp r9w, word [rbx]
jne 0x140001890
cmp r10b, byte [rbx + 2]
je 0x14000184a
inc ecx
cmp ecx, 0x200
jb 0x140001860
lea rcx, str.Syscall_Opcodes_not_found__n
call fcn.140001070
xor ebx, ebx
mov eax, edi
inc edi
add rax, rax
mov qword [r13 + rax*8 + 0x10], rbx
cmp edi, 0x258
je 0x1400018ca
mov edx, 0x775a
add ebp, 0xffffffff
jne 0x1400017d0
mov r15, qword [rsp + 0x30]
lea eax, [rdi - 1]
mov r14, qword [rsp + 0x38]
xor r11d, r11d
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x68]
mov dword [0x1400058c0], edi
test eax, eax
je 0x140001970
mov eax, edi
xor ecx, ecx
sub eax, r11d
cmp eax, 1
je 0x140001965
nop
lea r10d, [rcx + 1]
mov r9d, ecx
add r9, r9
mov r8d, r10d
add r8, r8
mov esi, dword [r13 + r9*8 + 0xc]
mov ebx, dword [r13 + r8*8 + 0xc]
cmp esi, ebx
jbe 0x140001956
mov eax, dword [r13 + r8*8 + 8]
mov edx, dword [r13 + r9*8 + 8]
mov rcx, qword [r13 + r9*8 + 0x10]
mov dword [r13 + r9*8 + 8], eax
mov rax, qword [r13 + r8*8 + 0x10]
mov qword [r13 + r9*8 + 0x10], rax
mov dword [r13 + r9*8 + 0xc], ebx
mov dword [r13 + r8*8 + 8], edx
mov dword [r13 + r8*8 + 0xc], esi
mov qword [r13 + r8*8 + 0x10], rcx
mov edi, dword [0x1400058c0]
mov eax, edi
mov ecx, r10d
sub eax, r11d
dec eax
cmp r10d, eax
jb 0x140001900
inc r11d
lea eax, [rdi - 1]
cmp r11d, eax
jb 0x1400018f2
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
mov r13, qword [rsp + 0x40]
mov eax, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001bb0
add rsp, 0x50
pop rsi
ret
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001bb0
add rsp, 0x50
pop rsi
ret