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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp r8, 0x10
lea rax, str.expand_16_byte_kexpand_32_byte_k_
mov rsi, rdx
lea rbx, [0x1802119f8]
cmove rbx, rax
mov rbp, rcx
add rcx, 8
mov edx, 0x10
mov rdi, r8
call fcn.180039a60
lea rcx, [rbp + 0x20]
mov edx, 0x40
call fcn.180036440
mov rcx, qword [rbp + 8]
lea rdx, [rsi + 0x10]
mov eax, dword [rbx]
cmp rdi, 0x20
cmovne rdx, rsi
xor r8d, r8d
mov dword [rcx], eax
mov rcx, qword [rbp + 8]
mov eax, dword [rbx + 4]
mov dword [rcx + 0x14], eax
mov rcx, qword [rbp + 8]
mov eax, dword [rbx + 8]
mov dword [rcx + 0x28], eax
mov rcx, qword [rbp + 8]
mov eax, dword [rbx + 0xc]
mov dword [rcx + 0x3c], eax
mov rcx, qword [rbp + 8]
mov eax, dword [rsi]
mov dword [rcx + 4], eax
mov rcx, qword [rbp + 8]
mov eax, dword [rsi + 4]
mov dword [rcx + 8], eax
mov rcx, qword [rbp + 8]
mov eax, dword [rsi + 8]
mov dword [rcx + 0xc], eax
mov rcx, qword [rbp + 8]
mov eax, dword [rsi + 0xc]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx]
mov rcx, qword [rbp + 8]
mov dword [rcx + 0x2c], eax
mov eax, dword [rdx + 4]
mov rcx, qword [rbp + 8]
mov dword [rcx + 0x30], eax
mov eax, dword [rdx + 8]
mov rcx, qword [rbp + 8]
mov dword [rcx + 0x34], eax
mov rcx, qword [rbp + 8]
mov eax, dword [rdx + 0xc]
xor edx, edx
mov dword [rcx + 0x38], eax
mov rcx, rbp
mov qword [rbp + 0x38], 0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp method.Botan::Salsa20.virtual_48
push rbp
push rsi
push rdi
sub rsp, 0x90
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rax, qword [0x18028f9a8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
test r8, r8
je 0x180102f30
lea rax, [r8 - 8]
test rax, 0xffffffffffffffef
je 0x180102e4b
lea rdx, [rsp + 0x28]
call fcn.1801029e0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180034340
lea rdx, [0x18028bca0]
lea rcx, [rsp + 0x48]
call fcn.1801a3720
nop
cmp rbx, 8
jne 0x180102e69
mov rcx, qword [rcx + 8]
mov eax, dword [rdx]
mov dword [rcx + 0x18], eax
mov rcx, qword [rdi + 8]
mov eax, dword [rdx + 4]
mov dword [rcx + 0x1c], eax
jmp 0x180102f3e
mov ecx, dword [rdx]
mov rax, qword [rdi + 8]
mov dword [rax + 0x18], ecx
mov ecx, dword [rdx + 4]
mov rax, qword [rdi + 8]
mov dword [rax + 0x1c], ecx
mov ecx, dword [rdx + 8]
mov rax, qword [rdi + 8]
mov dword [rax + 0x20], ecx
mov ecx, dword [rdx + 0xc]
mov rax, qword [rdi + 8]
mov dword [rax + 0x24], ecx
mov edx, 8
lea rcx, [rsp + 0x28]
call fcn.180037c40
mov rdx, qword [rdi + 8]
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.1801026d0
mov rcx, qword [rdi + 8]
mov eax, dword [rbx]
mov dword [rcx + 4], eax
mov rcx, qword [rdi + 8]
mov eax, dword [rbx + 4]
mov dword [rcx + 8], eax
mov rcx, qword [rdi + 8]
mov eax, dword [rbx + 8]
mov dword [rcx + 0xc], eax
mov rcx, qword [rdi + 8]
mov eax, dword [rbx + 0xc]
mov dword [rcx + 0x10], eax
mov ecx, dword [rsi + 0x10]
mov rax, qword [rdi + 8]
mov dword [rax + 0x18], ecx
mov ecx, dword [rsi + 0x14]
mov rax, qword [rdi + 8]
mov dword [rax + 0x1c], ecx
mov rcx, qword [rdi + 8]
mov eax, dword [rbx + 0x10]
mov dword [rcx + 0x2c], eax
mov rcx, qword [rdi + 8]
mov eax, dword [rbx + 0x14]
mov dword [rcx + 0x30], eax
mov rdx, qword [rdi + 8]
mov eax, dword [rbx + 0x18]
mov dword [rdx + 0x34], eax
mov rdx, qword [rdi + 8]
mov eax, dword [rbx + 0x1c]
mov dword [rdx + 0x38], eax
mov rdx, qword [rsp + 0x38]
sub rdx, rbx
sar rdx, 2
mov r8d, 4
mov rcx, rbx
call fcn.180033660
nop
jmp 0x180102f3e
mov rax, qword [rcx + 8]
mov dword [rax + 0x18], ebp
mov rax, qword [rcx + 8]
mov dword [rax + 0x1c], ebp
mov rax, qword [rdi + 8]
mov dword [rax + 0x20], ebp
mov rax, qword [rdi + 8]
mov dword [rax + 0x24], ebp
mov r8d, 0x14
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x20]
call fcn.180102a20
mov rax, qword [rdi + 8]
inc dword [rax + 0x20]
mov rcx, qword [rdi + 8]
mov eax, ebp
cmp dword [rcx + 0x20], eax
sete al
add dword [rcx + 0x24], eax
mov qword [rdi + 0x38], rbp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180186840
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret