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

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r15
mov rbp, rsp
sub rsp, 0x58
mov rax, qword [0x140051010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13, rdx
mov dword [rbp - 0x14], 0x28
mov dword [rbp - 0x18], 0x613683
mov rdi, rcx
mov ecx, dword [rbp - 0x18]
mov eax, 0x55555556
imul ecx
mov r15, r8
mov r12d, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x140013962
mov ecx, dword [rbp - 0x18]
add ecx, r12d
add ecx, r15d
mov dword [rbp - 0x18], ecx
mov eax, dword [rbp - 0x18]
and eax, 0x80000003
jge 0x140013931
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x140013abe
nop dword [rax]
mov eax, dword [rbp - 0x18]
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000003
jge 0x140013959
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x140013940
jmp 0x140013abe
mov eax, dword [rbp - 0x18]
test dword [rbp - 0x18], 0x80000001
mov eax, dword [rbp - 0x18]
je 0x1400139c5
mov ecx, r12d
sub ecx, r15d
add ecx, eax
mov eax, 0x55555556
mov dword [rbp - 0x18], ecx
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
jne 0x140013abe
nop dword [rax + rax]
mov eax, dword [rbp - 0x18]
inc eax
mov dword [rbp - 0x18], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x1400139a0
jmp 0x140013abe
test dword [rbp - 0x18], 0x80000003
mov ecx, dword [rbp - 0x18]
je 0x140013a40
add ecx, r12d
lea eax, [r8 + 3]
imul ecx, eax
mov dword [rbp - 0x18], ecx
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x1400139ef
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x140013abe
nop word [rax + rax]
mov ecx, dword [rbp - 0x18]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
cmp ecx, eax
mov eax, dword [rbp - 0x18]
je 0x140013a21
dec eax
jmp 0x140013a23
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x140013a37
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x140013a00
jmp 0x140013abe
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
cmp ecx, eax
je 0x140013abe
mov eax, dword [rbp - 0x18]
lea ecx, [r8 + 0x17]
add eax, 0xb
cdq
idiv ecx
mov dword [rbp - 0x18], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
jne 0x140013abe
nop
mov ecx, dword [rbp - 0x18]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
cmp ecx, eax
mov eax, dword [rbp - 0x18]
je 0x140013aa1
inc eax
jmp 0x140013aa3
dec eax
mov dword [rbp - 0x18], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x140013a80
mov edx, 0x10
mov qword [rsp + 0x50], r14
mov r8d, 0xe6b09957
lea r9d, [rdx + 0x25]
call fcn.1400064a0
lea rbx, [r15 + 0x60]
mov edx, 0x20
mov r8, rbx
mov rcx, rdi
call rax
test eax, eax
je 0x140014188
mov dword [rbp - 0x18], 0x613683
mov eax, 0x55555556
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x140013b62
mov ecx, dword [rbp - 0x18]
add ecx, r12d
add ecx, ebx
mov dword [rbp - 0x18], ecx
mov eax, dword [rbp - 0x18]
and eax, 0x80000003
jge 0x140013b2b
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x140013cbe
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rbp - 0x18]
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000003
jge 0x140013b59
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x140013b40
jmp 0x140013cbe
mov eax, dword [rbp - 0x18]
test dword [rbp - 0x18], 0x80000001
mov eax, dword [rbp - 0x18]
je 0x140013bc5
mov ecx, r12d
sub ecx, ebx
add ecx, eax
mov eax, 0x55555556
mov dword [rbp - 0x18], ecx
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
jne 0x140013cbe
nop word [rax + rax]
mov eax, dword [rbp - 0x18]
inc eax
mov dword [rbp - 0x18], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x140013ba0
jmp 0x140013cbe
test dword [rbp - 0x18], 0x80000003
mov ecx, dword [rbp - 0x18]
je 0x140013c40
add ecx, r12d
lea eax, [rbx + 3]
imul ecx, eax
mov dword [rbp - 0x18], ecx
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x140013bee
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x140013cbe
nop word [rax + rax]
mov ecx, dword [rbp - 0x18]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
cmp ecx, eax
mov eax, dword [rbp - 0x18]
je 0x140013c21
dec eax
jmp 0x140013c23
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x140013c37
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x140013c00
jmp 0x140013cbe
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
cmp ecx, eax
je 0x140013cbe
mov eax, dword [rbp - 0x18]
lea ecx, [rbx + 0x17]
add eax, 0xb
cdq
idiv ecx
mov dword [rbp - 0x18], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
jne 0x140013cbe
nop
mov ecx, dword [rbp - 0x18]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
cmp ecx, eax
mov eax, dword [rbp - 0x18]
je 0x140013ca1
inc eax
jmp 0x140013ca3
dec eax
mov dword [rbp - 0x18], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x140013c80
mov edx, 0x10
mov r8d, 0xe6b09957
lea r9d, [rdx + 0x25]
call fcn.1400064a0
lea r14, [r15 + 0x58]
mov edx, 8
mov r8, r14
mov rcx, rdi
call rax
test eax, eax
je 0x140014188
mov dword [rbp - 0x18], 0x613683
mov eax, 0x55555556
mov ecx, dword [rbp - 0x18]
imul ecx
mov qword [rsp + 0xa8], rsi
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x140013d62
mov ecx, dword [rbp - 0x18]
add ecx, r12d
add ecx, r14d
mov dword [rbp - 0x18], ecx
mov eax, dword [rbp - 0x18]
and eax, 0x80000003
jge 0x140013d2f
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x140013ebe
nop word [rax + rax]
mov eax, dword [rbp - 0x18]
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000003
jge 0x140013d59
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x140013d40
jmp 0x140013ebe
mov eax, dword [rbp - 0x18]
test dword [rbp - 0x18], 0x80000001
mov eax, dword [rbp - 0x18]
je 0x140013dc5
mov ecx, r12d
sub ecx, r14d
add ecx, eax
mov eax, 0x55555556
mov dword [rbp - 0x18], ecx
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
jne 0x140013ebe
nop dword [rax + rax]
mov eax, dword [rbp - 0x18]
inc eax
mov dword [rbp - 0x18], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x140013da0
jmp 0x140013ebe
test dword [rbp - 0x18], 0x80000003
mov ecx, dword [rbp - 0x18]
je 0x140013e40
add ecx, r12d
lea eax, [r14 + 3]
imul ecx, eax
mov dword [rbp - 0x18], ecx
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x140013def
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x140013ebe
nop word [rax + rax]
mov ecx, dword [rbp - 0x18]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
cmp ecx, eax
mov eax, dword [rbp - 0x18]
je 0x140013e21
dec eax
jmp 0x140013e23
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x140013e37
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x140013e00
jmp 0x140013ebe
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
cmp ecx, eax
je 0x140013ebe
mov eax, dword [rbp - 0x18]
lea ecx, [r14 + 0x17]
add eax, 0xb
cdq
idiv ecx
mov dword [rbp - 0x18], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
jne 0x140013ebe
nop
mov ecx, dword [rbp - 0x18]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
cmp ecx, eax
mov eax, dword [rbp - 0x18]
je 0x140013ea1
inc eax
jmp 0x140013ea3
dec eax
mov dword [rbp - 0x18], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x140013e80
xor eax, eax
lea rdi, [r15 + 0x18]
xor esi, esi
mov ecx, 0x40
rep stosb byte [rdi], al
mov eax, dword [rbx]
lea rdi, [r15 + 0x80]
mov dword [r15 + 0x28], eax
lea edx, [rsi + 4]
mov eax, dword [rbx + 4]
mov rcx, rdi
mov dword [r15 + 0x2c], eax
mov eax, dword [rbx + 8]
mov dword [r15 + 0x30], eax
mov eax, dword [rbx + 0xc]
mov dword [r15 + 0x34], eax
mov eax, dword [rbx + 0x10]
mov dword [r15 + 0x38], eax
mov eax, dword [rbx + 0x14]
mov dword [r15 + 0x3c], eax
mov eax, dword [rbx + 0x18]
mov dword [r15 + 0x40], eax
mov eax, dword [rbx + 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], rsi
mov eax, dword [r14]
mov dword [r15 + 0x50], eax
mov eax, dword [r14 + 4]
mov dword [r15 + 0x54], eax
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
lea rbx, [rbx + 8]
mov qword [rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x140013f50
mov rax, qword [r14]
mov qword [r15 + 0xa0], rax
mov eax, 0x55555556
mov dword [rbp - 0x18], 0x613683
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x140013fe2
mov ecx, dword [rbp - 0x18]
add ecx, r12d
add ecx, edi
mov dword [rbp - 0x18], ecx
mov eax, dword [rbp - 0x18]
and eax, 0x80000003
jge 0x140013fa9
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x14001413e
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rbp - 0x18]
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000003
jge 0x140013fd9
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x140013fc0
jmp 0x14001413e
mov eax, dword [rbp - 0x18]
test dword [rbp - 0x18], 0x80000001
mov eax, dword [rbp - 0x18]
je 0x140014045
sub r12d, edi
add r12d, eax
mov eax, 0x55555556
mov dword [rbp - 0x18], r12d
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
jne 0x14001413e
nop word [rax + rax]
mov eax, dword [rbp - 0x18]
inc eax
mov dword [rbp - 0x18], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x140014020
jmp 0x14001413e
test dword [rbp - 0x18], 0x80000003
mov ecx, dword [rbp - 0x18]
je 0x1400140c0
add ecx, r12d
lea eax, [rdi + 3]
imul ecx, eax
mov dword [rbp - 0x18], ecx
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x14001406e
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x14001413e
nop word [rax + rax]
mov ecx, dword [rbp - 0x18]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
cmp ecx, eax
mov eax, dword [rbp - 0x18]
je 0x1400140a1
dec eax
jmp 0x1400140a3
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x1400140b7
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x140014080
jmp 0x14001413e
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
cmp ecx, eax
je 0x14001413e
mov eax, dword [rbp - 0x18]
lea ecx, [rdi + 0x17]
add eax, 0xb
cdq
idiv ecx
mov dword [rbp - 0x18], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
jne 0x14001413e
nop
mov ecx, dword [rbp - 0x18]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
cmp ecx, eax
mov eax, dword [rbp - 0x18]
je 0x140014121
inc eax
jmp 0x140014123
dec eax
mov dword [rbp - 0x18], eax
mov eax, 0x55555556
mov ecx, dword [rbp - 0x18]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
je 0x140014100
mov edx, 0x10
mov r8d, 0xd3bb19e6
lea r9d, [rdx + 0x26]
call fcn.1400064a0
xor r9d, r9d
mov dword [rsp + 0x30], 0x20c
lea rcx, [rbp - 0x14]
xor edx, edx
mov qword [rsp + 0x28], rcx
mov rcx, r13
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 1]
call rax
test eax, eax
setne sil
mov eax, esi
mov rsi, qword [rsp + 0xa8]
jmp 0x14001418a
xor eax, eax
mov r14, qword [rsp + 0x50]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14002c3e0
add rsp, 0x58
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret