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

Disassembly:
push rsi
sub rsp, 0x40
cmp dword [0x140023d80], 0
jne 0x140001a63
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 0x140001a6e
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 0x140001829
lea rdx, [rsi + rcx]
mov ecx, dword [rsi + rcx + 0xc]
mov eax, dword [rcx + rsi]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x140001829
mov eax, dword [rcx + rsi + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x140001835
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x1400017f0
test rdx, rdx
je 0x140001a6e
mov qword [rsp + 0x58], rbx
lea r11, [0x140023d80]
mov qword [rsp + 0x68], rdi
mov ecx, 0x775a
mov qword [rsp + 0x38], r12
mov r12d, dword [rdx + 0x1c]
mov qword [rsp + 0x30], r13
add r12, rsi
mov r13d, dword [rdx + 0x24]
mov qword [rsp + 0x28], r14
add r13, rsi
mov r14d, dword [rdx + 0x18]
mov qword [rsp + 0x20], r15
mov r15d, dword [rdx + 0x20]
add r15, rsi
mov qword [rsp + 0x60], rbp
xor edi, edi
nop dword [rax + rax]
lea eax, [r14 - 1]
mov r9d, dword [r15 + rax*4]
mov r14d, eax
add r9, rsi
mov r10d, eax
cmp word [r9], cx
jne 0x140001993
xor r8d, r8d
mov edx, 0xf4c99996
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 0x1400018c0
mov ebp, edi
add rbp, rbp
mov word [rsp + 0x50], 0x50f
movzx r9d, word [rsp + 0x50]
mov dword [r11 + rbp*8 + 8], edx
movzx eax, word [r13 + r10*2]
mov r10b, 0xc3
mov ecx, dword [r12 + rax*4]
mov dword [r11 + rbp*8 + 0xc], ecx
lea r8, [rsi + rcx]
cmp r9w, word [r8 + 0x12]
lea rbx, [r8 + 0x12]
jne 0x140001929
cmp r10b, byte [rbx + 2]
jne 0x140001929
mov rdx, rbx
lea rcx, str.Found_Syscall_Opcodes_at_address_0x_p_n
call fcn.140001010
jmp 0x140001978
mov ecx, 1
nop
mov eax, ecx
shl eax, 5
mov edx, eax
lea rbx, [rax + 0x12]
add rbx, r8
cmp r9w, word [rbx]
jne 0x14000194a
cmp r10b, byte [rbx + 2]
je 0x140001918
mov rbx, r8
sub rbx, rdx
add rbx, 0x12
cmp r9w, word [rbx]
jne 0x140001960
cmp r10b, byte [rbx + 2]
je 0x140001918
inc ecx
cmp ecx, 0x200
jb 0x140001930
lea rcx, str.Syscall_Opcodes_not_found__n
call fcn.140001010
xor ebx, ebx
inc edi
lea r11, [0x140023d80]
mov qword [r11 + rbp*8 + 0x10], rbx
cmp edi, 0x258
je 0x14000199c
mov ecx, 0x775a
test r14d, r14d
jne 0x140001890
mov r15, qword [rsp + 0x20]
lea eax, [rdi - 1]
mov r14, qword [rsp + 0x28]
xor r10d, r10d
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov dword [0x140023d80], edi
test eax, eax
je 0x140001a54
mov eax, edi
xor ecx, ecx
sub eax, r10d
cmp eax, 1
je 0x140001a45
lea rbp, [0x140023d80]
nop word [rax + rax]
lea r11d, [rcx + 1]
mov r9d, ecx
add r9, r9
mov r8d, r11d
add r8, r8
mov esi, dword [rbp + r9*8 + 0xc]
mov ebx, dword [rbp + r8*8 + 0xc]
cmp esi, ebx
jbe 0x140001a36
mov eax, dword [rbp + r8*8 + 8]
mov edx, dword [rbp + r9*8 + 8]
mov rcx, qword [rbp + r9*8 + 0x10]
mov dword [rbp + r9*8 + 8], eax
mov rax, qword [rbp + r8*8 + 0x10]
mov qword [rbp + r9*8 + 0x10], rax
mov dword [rbp + r9*8 + 0xc], ebx
mov dword [rbp + r8*8 + 8], edx
mov dword [rbp + r8*8 + 0xc], esi
mov qword [rbp + r8*8 + 0x10], rcx
mov edi, dword [0x140023d80]
mov eax, edi
mov ecx, r11d
sub eax, r10d
dec eax
cmp r11d, eax
jb 0x1400019e0
inc r10d
lea eax, [rdi - 1]
cmp r10d, eax
jb 0x1400019c4
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
mov eax, 1
add rsp, 0x40
pop rsi
ret
xor eax, eax
add rsp, 0x40
pop rsi
ret