Function at 0x1400132a0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
mov rax, qword [0x14005b080]
xor rax, rsp
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x38], rdx
mov rbx, rcx
mov dword [rbp - 0x30], 0x50
mov eax, 0x55555556
mov dword [rbp - 0x40], 0x6c514f
mov r15, r8
mov ecx, dword [rbp - 0x40]
mov r13d, 2
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x14001334f
mov ecx, dword [rbp - 0x40]
add ecx, r13d
add ecx, r15d
mov dword [rbp - 0x40], ecx
mov eax, dword [rbp - 0x40]
and eax, 0x80000003
jge 0x140013325
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x1400133a0
nop dword [rax]
mov eax, dword [rbp - 0x40]
inc eax
mov dword [rbp - 0x40], eax
mov eax, dword [rbp - 0x40]
and eax, 0x80000003
jge 0x140013349
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x140013330
jmp 0x1400133a0
mov eax, dword [rbp - 0x40]
mov ecx, r13d
mov eax, dword [rbp - 0x40]
sub ecx, r15d
add ecx, eax
mov eax, 0x55555556
mov dword [rbp - 0x40], ecx
mov ecx, dword [rbp - 0x40]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
jne 0x1400133a0
nop dword [rax + rax]
mov eax, dword [rbp - 0x40]
inc eax
mov dword [rbp - 0x40], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x40]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x140013380
mov edx, 0x10
xor ecx, ecx
mov r8d, 0xe6b09957
lea r9d, [rdx + 0x25]
call fcn.140008cd0
lea r14, [r15 + 0x68]
mov edx, 0x40
mov r8, r14
mov rcx, rbx
call rax
test eax, eax
je 0x14001372c
mov dword [rbp - 0x40], 0x6c514f
mov eax, 0x55555556
mov ecx, dword [rbp - 0x40]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x14001342f
mov ecx, dword [rbp - 0x40]
add ecx, r13d
add ecx, r14d
mov dword [rbp - 0x40], ecx
mov eax, dword [rbp - 0x40]
and eax, 0x80000003
jge 0x14001340b
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x140013480
nop
mov eax, dword [rbp - 0x40]
inc eax
mov dword [rbp - 0x40], eax
mov eax, dword [rbp - 0x40]
and eax, 0x80000003
jge 0x140013429
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x140013410
jmp 0x140013480
mov eax, dword [rbp - 0x40]
mov ecx, r13d
mov eax, dword [rbp - 0x40]
sub ecx, r14d
add ecx, eax
mov eax, 0x55555556
mov dword [rbp - 0x40], ecx
mov ecx, dword [rbp - 0x40]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
jne 0x140013480
nop dword [rax + rax]
mov eax, dword [rbp - 0x40]
inc eax
mov dword [rbp - 0x40], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x40]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x140013460
mov edx, 0x10
xor ecx, ecx
mov r8d, 0xe6b09957
lea r9d, [rdx + 0x25]
call fcn.140008cd0
lea rsi, [r15 + 0x58]
mov edx, 0x10
mov r8, rsi
mov rcx, rbx
call rax
test eax, eax
je 0x14001372c
mov dword [rbp - 0x40], 0x6c514f
mov eax, 0x55555556
mov ecx, dword [rbp - 0x40]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x14001350f
mov ecx, dword [rbp - 0x40]
add ecx, r13d
add ecx, esi
mov dword [rbp - 0x40], ecx
mov eax, dword [rbp - 0x40]
and eax, 0x80000003
jge 0x1400134ea
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x140013560
nop
mov eax, dword [rbp - 0x40]
inc eax
mov dword [rbp - 0x40], eax
mov eax, dword [rbp - 0x40]
and eax, 0x80000003
jge 0x140013509
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x1400134f0
jmp 0x140013560
mov eax, dword [rbp - 0x40]
mov ecx, r13d
mov eax, dword [rbp - 0x40]
sub ecx, esi
add ecx, eax
mov eax, 0x55555556
mov dword [rbp - 0x40], ecx
mov ecx, dword [rbp - 0x40]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
jne 0x140013560
nop word [rax + rax]
mov eax, dword [rbp - 0x40]
inc eax
mov dword [rbp - 0x40], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x40]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x140013540
xor eax, eax
lea rdi, [r15 + 0x18]
mov ecx, 0x40
lea rbx, [r15 + 0xa8]
rep stosb byte [rdi], al
mov eax, dword [r14]
mov rcx, rbx
mov dword [r15 + 0x28], eax
mov edx, 8
mov eax, dword [r14 + 4]
mov dword [r15 + 0x2c], eax
mov eax, dword [r14 + 8]
mov dword [r15 + 0x30], eax
mov eax, dword [r14 + 0xc]
mov dword [r15 + 0x34], eax
mov eax, dword [r14 + 0x10]
mov dword [r15 + 0x38], eax
mov eax, dword [r14 + 0x14]
mov dword [r15 + 0x3c], eax
mov eax, dword [r14 + 0x18]
mov dword [r15 + 0x40], eax
mov eax, dword [r14 + 0x1c]
mov dword [r15 + 0x44], eax
mov dword [r15 + 0x18], 0x61707865
mov dword [r15 + 0x1c], 0x3320646e
mov dword [r15 + 0x20], 0x79622d32
mov dword [r15 + 0x24], 0x6b206574
mov qword [r15 + 0x48], 0
mov eax, dword [rsi]
mov dword [r15 + 0x50], eax
mov eax, dword [rsi + 4]
mov dword [r15 + 0x54], eax
mov rax, qword [r14]
lea r14, [r14 + 8]
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x1400135f0
lea rcx, [r15 + 0xe8]
mov rdx, r13
nop
mov rax, qword [rsi]
lea rsi, [rsi + 8]
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x140013610
mov dword [rbp - 0x40], 0x6c514f
mov eax, 0x55555556
mov ecx, dword [rbp - 0x40]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x14001368f
mov ecx, dword [rbp - 0x40]
add ecx, r13d
add ecx, ebx
mov dword [rbp - 0x40], ecx
mov eax, dword [rbp - 0x40]
and eax, 0x80000003
jge 0x14001365f
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x1400136e0
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rbp - 0x40]
inc eax
mov dword [rbp - 0x40], eax
mov eax, dword [rbp - 0x40]
and eax, 0x80000003
jge 0x140013689
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x140013670
jmp 0x1400136e0
mov eax, dword [rbp - 0x40]
sub r13d, ebx
mov eax, dword [rbp - 0x40]
add r13d, eax
mov dword [rbp - 0x40], r13d
mov eax, 0x55555556
mov ecx, dword [rbp - 0x40]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
jne 0x1400136e0
nop word [rax + rax]
mov eax, dword [rbp - 0x40]
inc eax
mov dword [rbp - 0x40], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x40]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x1400136c0
mov edx, 0x10
xor ecx, ecx
mov r8d, 0xd3bb19e6
lea r9d, [rdx + 0x26]
call fcn.140008cd0
xor r9d, r9d
mov dword [rsp + 0x30], 0x20c
lea rcx, [rbp - 0x30]
xor edx, edx
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp - 0x38]
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], rbx
call rax
test eax, eax
mov r9d, 0
setne r9b
mov eax, r9d
jmp 0x14001372e
xor eax, eax
mov rcx, qword [rbp - 0x28]
xor rcx, rsp
call fcn.14002a2c0
mov rbx, qword [rsp + 0xd8]
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x60]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret