Function at 0x140001310
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 [0x140005008]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x140005ca0], 0
jne 0x1400015d3
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 0x1400015eb
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 0x140001399
lea rdx, [rsi + rcx]
mov ecx, dword [rsi + rcx + 0xc]
mov eax, dword [rcx + rsi]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x140001399
mov eax, dword [rcx + rsi + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x1400013a5
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x140001360
test rdx, rdx
je 0x1400015eb
mov qword [rsp + 0x60], rbx
lea r11, [0x140005ca0]
mov qword [rsp + 0x70], rdi
mov ecx, 0x775a
mov qword [rsp + 0x48], r12
mov r12d, dword [rdx + 0x1c]
mov qword [rsp + 0x40], r13
add r12, rsi
mov r13d, dword [rdx + 0x24]
mov qword [rsp + 0x38], r14
add r13, rsi
mov r14d, dword [rdx + 0x18]
mov qword [rsp + 0x30], r15
mov r15d, dword [rdx + 0x20]
add r15, rsi
mov qword [rsp + 0x68], 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 0x140001503
xor r8d, r8d
mov edx, 0x4e6c021e
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 0x140001430
mov ebp, edi
add rbp, rbp
mov word [rsp + 0x20], 0x50f
movzx r9d, word [rsp + 0x20]
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 0x140001499
cmp r10b, byte [rbx + 2]
jne 0x140001499
mov rdx, rbx
lea rcx, str.Found_Syscall_Opcodes_at_address_0x_p_n
call fcn.140001010
jmp 0x1400014e8
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 0x1400014ba
cmp r10b, byte [rbx + 2]
je 0x140001488
mov rbx, r8
sub rbx, rdx
add rbx, 0x12
cmp r9w, word [rbx]
jne 0x1400014d0
cmp r10b, byte [rbx + 2]
je 0x140001488
inc ecx
cmp ecx, 0x200
jb 0x1400014a0
lea rcx, str.Syscall_Opcodes_not_found__n
call fcn.140001010
xor ebx, ebx
inc edi
lea r11, [0x140005ca0]
mov qword [r11 + rbp*8 + 0x10], rbx
cmp edi, 0x258
je 0x14000150c
mov ecx, 0x775a
test r14d, r14d
jne 0x140001400
mov r15, qword [rsp + 0x30]
lea eax, [rdi - 1]
mov r14, qword [rsp + 0x38]
xor r10d, r10d
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov dword [0x140005ca0], edi
test eax, eax
je 0x1400015c4
mov eax, edi
xor ecx, ecx
sub eax, r10d
cmp eax, 1
je 0x1400015b5
lea rbp, [0x140005ca0]
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 0x1400015a6
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 [0x140005ca0]
mov eax, edi
mov ecx, r11d
sub eax, r10d
dec eax
cmp r11d, eax
jb 0x140001550
inc r10d
lea eax, [rdi - 1]
cmp r10d, eax
jb 0x140001534
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
mov eax, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001800
add rsp, 0x50
pop rsi
ret
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001800
add rsp, 0x50
pop rsi
ret