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

Disassembly:
push rbp
push rbx
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x58
mov rax, qword [0x140035010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13, rdx
mov dword [rbp - 0x14], 0x28
mov dword [rbp - 0x18], 0x6bb462
mov r14, 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 0x14000d29f
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 0x14000d272
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x14000d30b
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 0x14000d299
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x14000d280
jmp 0x14000d30b
mov eax, dword [rbp - 0x18]
mov eax, dword [rbp - 0x18]
mov ecx, dword [rbp - 0x18]
lea eax, [r8 + 3]
add ecx, r12d
imul ecx, eax
mov dword [rbp - 0x18], ecx
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x14000d2c6
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x14000d30b
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 0x14000d2f1
dec eax
jmp 0x14000d2f3
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x14000d307
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x14000d2d0
mov edx, 0x10
mov qword [rsp + 0xa8], rsi
mov r8d, 0xe6b09957
mov qword [rsp + 0x50], rdi
lea r9d, [rdx + 0x25]
call fcn.1400046f0
lea rbx, [r15 + 0x60]
mov edx, 0x20
mov r8, rbx
mov rcx, r14
call rax
test eax, eax
je 0x14000d6ce
mov dword [rbp - 0x18], 0x6bb462
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 0x14000d3af
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 0x14000d380
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x14000d41b
nop dword [rax + rax]
mov eax, dword [rbp - 0x18]
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000003
jge 0x14000d3a9
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x14000d390
jmp 0x14000d41b
mov eax, dword [rbp - 0x18]
mov eax, dword [rbp - 0x18]
mov ecx, dword [rbp - 0x18]
lea eax, [rbx + 3]
add ecx, r12d
imul ecx, eax
mov dword [rbp - 0x18], ecx
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x14000d3d5
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x14000d41b
nop dword [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 0x14000d401
dec eax
jmp 0x14000d403
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x14000d417
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x14000d3e0
mov edx, 0x10
mov r8d, 0xe6b09957
lea r9d, [rdx + 0x25]
call fcn.1400046f0
lea rsi, [r15 + 0x58]
mov edx, 8
mov r8, rsi
mov rcx, r14
call rax
test eax, eax
je 0x14000d6ce
mov dword [rbp - 0x18], 0x6bb462
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 0x14000d4af
mov ecx, dword [rbp - 0x18]
add ecx, r12d
add ecx, esi
mov dword [rbp - 0x18], ecx
mov eax, dword [rbp - 0x18]
and eax, 0x80000003
jge 0x14000d483
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x14000d51b
nop dword [rax + rax]
mov eax, dword [rbp - 0x18]
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000003
jge 0x14000d4a9
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x14000d490
jmp 0x14000d51b
mov eax, dword [rbp - 0x18]
mov eax, dword [rbp - 0x18]
mov ecx, dword [rbp - 0x18]
lea eax, [rsi + 3]
add ecx, r12d
imul ecx, eax
mov dword [rbp - 0x18], ecx
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x14000d4d5
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x14000d51b
nop dword [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 0x14000d501
dec eax
jmp 0x14000d503
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x14000d517
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x14000d4e0
xor eax, eax
lea rdi, [r15 + 0x18]
mov ecx, 0x40
rep stosb byte [rdi], al
mov eax, dword [rbx]
lea rdi, [r15 + 0x80]
mov dword [r15 + 0x28], eax
mov ecx, 4
mov eax, dword [rbx + 4]
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
xor eax, 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], rax
mov eax, dword [rsi]
mov dword [r15 + 0x50], eax
mov eax, dword [rsi + 4]
mov dword [r15 + 0x54], eax
nop
mov rax, qword [rbx]
mov qword [rbx + 0x20], rax
lea rbx, [rbx + 8]
sub rcx, 1
jne 0x14000d5a0
mov rax, qword [rsi]
mov qword [r15 + 0xa0], rax
mov eax, 0x55555556
mov dword [rbp - 0x18], 0x6bb462
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 0x14000d61f
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 0x14000d5f6
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x14000d68b
nop
mov eax, dword [rbp - 0x18]
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000003
jge 0x14000d619
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x14000d600
jmp 0x14000d68b
mov eax, dword [rbp - 0x18]
mov eax, dword [rbp - 0x18]
mov ecx, dword [rbp - 0x18]
lea eax, [rdi + 3]
add ecx, r12d
imul ecx, eax
mov dword [rbp - 0x18], ecx
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x14000d645
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x14000d68b
nop dword [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 0x14000d671
dec eax
jmp 0x14000d673
inc eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
and eax, 0x80000001
jge 0x14000d687
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x14000d650
mov edx, 0x10
mov r8d, 0xd3bb19e6
lea r9d, [rdx + 0x26]
call fcn.1400046f0
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
je 0x14000d6ce
mov eax, 1
jmp 0x14000d6d0
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0xa8]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001f920
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret