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

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x220
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x190], xmm6
and rsp, 0xffffffffffffffe0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r14, qword [r8 + 4]
movzx eax, byte [0x1403cd785]
cmp al, 0xff
je 0x14027e152
cmp al, 1
jne 0x14027e1ad
mov r15, r14
shr r15, 0x20
lea rcx, [rsp + 0x120]
mov rdx, rbx
call fcn.14027f430
movaps xmm2, xmmword [rsp + 0x120]
movaps xmm0, xmmword [rsp + 0x130]
movaps xmm1, xmmword [rsp + 0x140]
mov eax, dword [rsp + 0x150]
mov ecx, r14d
mov r8d, dword [rsp + 0x154]
mov rdx, qword [rsp + 0x158]
movaps xmm3, xmmword [rsp + 0x160]
movaps xmmword [rsp + 0x20], xmm3
movaps xmm3, xmmword [rsp + 0x170]
movaps xmmword [rsp + 0x30], xmm3
movaps xmm3, xmmword [rsp + 0x180]
movaps xmmword [rsp + 0x40], xmm3
movaps xmm3, xmmword [rsp + 0x190]
movaps xmmword [rsp + 0x50], xmm3
movaps xmm3, xmmword [rsp + 0x1a0]
movaps xmmword [rsp + 0x60], xmm3
movaps xmm3, xmmword [rsp + 0x1b0]
movaps xmmword [rsp + 0x70], xmm3
movaps xmm3, xmmword [rsp + 0x1c0]
movaps xmmword [rsp + 0x80], xmm3
movaps xmm3, xmmword [rsp + 0x1d0]
movaps xmmword [rsp + 0x90], xmm3
movaps xmm3, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x110], xmm3
movaps xmm3, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x100], xmm3
movaps xmm3, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0xf0], xmm3
movaps xmm3, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xe0], xmm3
movaps xmm3, xmmword [rsp + 0x20]
movaps xmm4, xmmword [rsp + 0x30]
movaps xmm5, xmmword [rsp + 0x40]
movaps xmm6, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm5
movaps xmmword [rsp + 0xb0], xmm4
movaps xmmword [rsp + 0xa0], xmm3
mov r14d, r8d
jmp 0x14027e1c2
lea rcx, [rsp + 0x20]
call fcn.1400f6fc0
lea rcx, [rsp + 0x120]
call fcn.1400f6ff0
mov r15d, dword [rsp + 0x28]
mov r12d, dword [rsp + 0x124]
mov eax, r15d
not eax
test eax, 0xc000000
jne 0x14027e190
call fcn.14017c060
not eax
test al, 6
sete al
jmp 0x14027e192
xor eax, eax
shr r12b, 5
and r12b, al
shr r15d, 0x1c
and r15b, r12b
mov byte [0x1403cd785], r15b
jne 0x14027e028
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
mov rax, r14
shr rax, 0x20
movaps xmm2, xmmword [str.expand_32_byte_k]
movaps xmm3, xmmword [rsp + 0x110]
movaps xmmword [rsi + 0x1b0], xmm3
movaps xmm3, xmmword [rsp + 0x100]
movaps xmmword [rsi + 0x1a0], xmm3
movaps xmm3, xmmword [rsp + 0xf0]
movaps xmmword [rsi + 0x190], xmm3
movaps xmm3, xmmword [rsp + 0xe0]
movaps xmmword [rsi + 0x180], xmm3
movaps xmm3, xmmword [rsp + 0xa0]
movaps xmm4, xmmword [rsp + 0xb0]
movaps xmm5, xmmword [rsp + 0xc0]
movaps xmm6, xmmword [rsp + 0xd0]
movaps xmmword [rsi + 0x170], xmm6
movaps xmmword [rsi + 0x160], xmm5
movaps xmmword [rsi + 0x150], xmm4
movaps xmmword [rsi + 0x140], xmm3
movups xmm3, xmmword [rsp + 0x1f8]
movups xmmword [rsi + 0x1c8], xmm3
mov r8, qword [rsp + 0x208]
mov qword [rsi + 0x1d8], r8
mov r8d, dword [rdi]
shl r8, 0x20
xorps xmm3, xmm3
movups xmmword [rsi + 0xf0], xmm3
movups xmmword [rsi + 0xe0], xmm3
movups xmmword [rsi + 0xd0], xmm3
movups xmmword [rsi + 0xc0], xmm3
movups xmmword [rsi + 0xb0], xmm3
movups xmmword [rsi + 0xa0], xmm3
movups xmmword [rsi + 0x90], xmm3
movups xmmword [rsi + 0x80], xmm3
movups xmmword [rsi + 0x70], xmm3
movups xmmword [rsi + 0x60], xmm3
movups xmmword [rsi + 0x50], xmm3
movups xmmword [rsi + 0x40], xmm3
movups xmmword [rsi + 0x30], xmm3
movups xmmword [rsi + 0x20], xmm3
movups xmmword [rsi + 0x10], xmm3
movups xmmword [rsi], xmm3
movaps xmmword [rsi + 0x100], xmm2
movaps xmmword [rsi + 0x110], xmm0
movaps xmmword [rsi + 0x120], xmm1
mov dword [rsi + 0x130], eax
mov dword [rsi + 0x134], r14d
mov qword [rsi + 0x138], rdx
mov dword [rsi + 0x1c0], r15d
mov dword [rsi + 0x1c4], ecx
mov word [rsi + 0x1f0], 0
mov qword [rsi + 0x1e0], 0
mov qword [rsi + 0x1e8], r8
movaps xmm6, xmmword [rbp + 0x190]
lea rsp, [rbp + 0x1a0]
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret