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

Disassembly:
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x68], rax
mov edx, dword [str.expand_32_byte_k]
mov esi, dword [0x00603714]
mov edi, dword [0x00603718]
mov r8d, dword [0x0060371c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov r9d, dword [rcx]
mov r10d, dword [rcx + 4]
mov r11d, dword [rcx + 8]
mov r12d, dword [rcx + 0xc]
mov r13d, dword [rcx + 0x10]
mov r15d, dword [rcx + 0x14]
mov eax, dword [rcx + 0x18]
mov dword [rsp + 0x2c], eax
mov ecx, dword [rcx + 0x1c]
mov eax, dword [rbx]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x24], eax
mov eax, dword [rbx + 8]
mov ebx, dword [rbx + 0xc]
mov dword [rsp + 0x50], eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x10], eax
mov dword [rsp + 0x48], ecx
mov ecx, dword [rsp + 0x28]
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x40], edx
mov edx, dword [rsp + 0x24]
mov dword [rsp + 4], edx
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x48]
mov edx, dword [rsp + 0x40]
jmp 0x4f582f
add rcx, 2
mov qword [rsp + 0x30], rcx
add edx, r9d
mov ecx, dword [rsp + 0x20]
xor ecx, edx
rol ecx, 0x10
add r13d, ecx
xor r9d, r13d
rol r9d, 0xc
add edx, r9d
xor ecx, edx
rol ecx, 8
add r13d, ecx
xor r9d, r13d
rol r9d, 7
mov dword [rsp + 0x18], r9d
add esi, r10d
mov r9d, dword [rsp + 4]
xor r9d, esi
rol r9d, 0x10
add r15d, r9d
xor r10d, r15d
rol r10d, 0xc
add esi, r10d
xor r9d, esi
rol r9d, 8
add r15d, r9d
mov dword [rsp + 0x14], r15d
xor r10d, r15d
rol r10d, 7
add edi, r11d
xor eax, edi
rol eax, 0x10
mov r15d, dword [rsp + 0x10]
add r15d, eax
xor r11d, r15d
rol r11d, 0xc
add edi, r11d
xor eax, edi
rol eax, 8
mov dword [rsp], eax
add r15d, eax
xor r11d, r15d
rol r11d, 7
add r8d, r12d
xor ebx, r8d
rol ebx, 0x10
mov eax, dword [rsp + 0xc]
add eax, ebx
xor r12d, eax
rol r12d, 0xc
add r8d, r12d
xor ebx, r8d
rol ebx, 8
add eax, ebx
xor r12d, eax
rol r12d, 7
add edx, r10d
xor ebx, edx
rol ebx, 0x10
add r15d, ebx
xor r10d, r15d
rol r10d, 0xc
add edx, r10d
mov dword [rsp + 0x1c], edx
xor ebx, edx
rol ebx, 8
add r15d, ebx
xor r10d, r15d
rol r10d, 7
add esi, r11d
xor ecx, esi
rol ecx, 0x10
add eax, ecx
xor r11d, eax
rol r11d, 0xc
add esi, r11d
xor ecx, esi
rol ecx, 8
mov dword [rsp + 8], ecx
add eax, ecx
mov dword [rsp + 0xc], eax
xor r11d, eax
rol r11d, 7
add edi, r12d
xor r9d, edi
rol r9d, 0x10
add r13d, r9d
xor r12d, r13d
rol r12d, 0xc
add edi, r12d
xor r9d, edi
rol r9d, 8
add r13d, r9d
xor r12d, r13d
rol r12d, 7
mov eax, dword [rsp + 0x18]
add r8d, eax
mov ecx, dword [rsp]
xor ecx, r8d
rol ecx, 0x10
mov edx, dword [rsp + 0x14]
add edx, ecx
xor eax, edx
rol eax, 0xc
add r8d, eax
xor ecx, r8d
rol ecx, 8
add edx, ecx
xor eax, edx
rol eax, 7
mov dword [rsp + 0x10], r15d
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 8]
mov dword [rsp + 0x20], eax
mov dword [rsp + 4], r9d
mov eax, ecx
mov r9d, dword [rsp + 0x38]
mov r15d, edx
mov ecx, dword [rsp + 0xc]
mov edx, dword [rsp + 0x1c]
mov dword [rsp + 0xc], ecx
mov rcx, qword [rsp + 0x30]
nop dword [rax + rax]
cmp rcx, 0x14
jl 0x4f56a6
mov rcx, qword [rsp + 0x68]
mov dword [rcx], edx
nop
mov dword [rcx + 4], esi
nop
mov dword [rcx + 8], edi
nop
mov dword [rcx + 0xc], r8d
mov edx, dword [rsp + 0x20]
mov dword [rcx + 0x10], edx
mov edx, dword [rsp + 4]
mov dword [rcx + 0x14], edx
mov dword [rcx + 0x18], eax
nop
mov dword [rcx + 0x1c], ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret