Function at 0x5a0d20
Capabilities:
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
lea r12, [rsp - 0x88]
cmp r12, qword [r14 + 0x10]
jbe 0x5a15c7
push rbp
mov rbp, rsp
sub rsp, 0x100
mov qword [rsp + 0x118], rbx
mov qword [rsp + 0x130], rsi
cmp rcx, r8
jne 0x5a15b3
nop word [rax + rax]
nop
test rcx, 0x3f
jne 0x5a15b3
mov qword [rsp + 0x120], rcx
mov edx, dword [rax]
mov dword [rsp + 0x40], edx
mov r10d, dword [rax + 4]
mov dword [rsp + 0x54], r10d
mov r11d, dword [rax + 8]
mov dword [rsp + 0x48], r11d
mov r12d, dword [rax + 0xc]
mov dword [rsp + 0x4c], r12d
mov r13d, dword [rax + 0x10]
mov dword [rsp + 0x74], r13d
mov r15d, dword [rax + 0x14]
mov dword [rsp + 0x60], r15d
mov r13d, dword [rax + 0x18]
mov dword [rsp + 0x84], r13d
mov edx, dword [rax + 0x1c]
mov dword [rsp + 0x44], edx
mov edx, dword [rax + 0x24]
mov dword [rsp + 0x80], edx
mov r12d, dword [rax + 0x28]
mov dword [rsp + 0x1c], r12d
mov ecx, dword [rax + 0x2c]
mov dword [rsp + 0x14], ecx
cmp byte [rax + 0x79], 0
jne 0x5a0f60
mov qword [rsp + 0x140], r9
mov qword [rsp + 0x138], r8
mov qword [rsp + 0x130], rsi
mov qword [rsp + 0x128], rdi
mov qword [rsp + 0x118], rbx
lea ebx, [r10 + 0x3320646e]
xor ebx, edx
rol ebx, 0x10
lea edx, [r15 + rbx]
mov dword [rsp + 0x3c], edx
xor edx, r10d
rol edx, 0xc
lea r15d, [r10 + rdx]
lea r15d, [r15 + 0x3320646e]
xor ebx, r15d
rol ebx, 8
mov r10d, dword [rsp + 0x3c]
add r10d, ebx
xor edx, r10d
rol edx, 7
lea esi, [r11 + 0x79622d32]
xor esi, r12d
rol esi, 0x10
lea r12d, [r13 + rsi]
mov dword [rsp + 0x38], r12d
xor r12d, r11d
rol r12d, 0xc
lea r13d, [r11 + r12]
lea r13d, [r13 + 0x79622d32]
xor esi, r13d
rol esi, 8
mov r11d, dword [rsp + 0x38]
add r11d, esi
xor r12d, r11d
rol r12d, 7
mov edi, dword [rsp + 0x4c]
lea r8d, [rdi + 0x6b206574]
xor r8d, ecx
rol r8d, 0x10
mov ecx, dword [rsp + 0x44]
add ecx, r8d
mov dword [rsp + 0x34], ecx
xor ecx, edi
rol ecx, 0xc
lea edi, [rdi + rcx]
lea edi, [rdi + 0x6b206574]
xor r8d, edi
rol r8d, 8
mov r9d, dword [rsp + 0x34]
add r9d, r8d
xor ecx, r9d
rol ecx, 7
nop
mov dword [rax + 0x7c], r15d
mov dword [rax + 0x80], edx
mov dword [rax + 0x84], r10d
mov dword [rax + 0x88], ebx
nop
mov dword [rax + 0x8c], r13d
mov dword [rax + 0x90], r12d
mov dword [rax + 0x94], r11d
mov dword [rax + 0x98], esi
nop
mov dword [rax + 0x9c], edi
mov dword [rax + 0xa0], ecx
mov dword [rax + 0xa4], r9d
mov dword [rax + 0xa8], r8d
mov byte [rax + 0x79], 1
mov ecx, dword [rsp + 0x14]
mov edx, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x118]
mov rsi, qword [rsp + 0x130]
mov rdi, qword [rsp + 0x128]
mov r8, qword [rsp + 0x138]
mov r9, qword [rsp + 0x140]
mov r10d, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x48]
mov r12d, dword [rsp + 0x1c]
mov r13d, dword [rsp + 0x84]
mov r15d, dword [rsp + 0x60]
mov qword [rsp + 0x110], rax
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xc0]
jmp 0x5a1215
mov dword [rsp + 0x18], r9d
mov r10, qword [rsp + 0xd8]
add r10, 0xffffffffffffffc0
mov qword [rsp + 0xd8], r10
neg r10
sar r10, 0x3f
and r10d, 0x40
mov r9, qword [rsp + 0xe0]
add r9, 0xffffffffffffffc0
mov qword [rsp + 0xe0], r9
neg r9
sar r9, 0x3f
and r9d, 0x40
mov qword [rsp + 0xc8], r9
add edi, 0x61707865
mov r9, qword [rsp + 0xf0]
xor edi, dword [r9]
mov dword [rsp + 0x70], edi
mov edi, dword [rsp + 0x78]
add edi, 0x3320646e
add r13d, 0x79622d32
add ecx, 0x6b206574
mov dword [rsp + 0x9c], ecx
mov ecx, dword [rsp + 0x40]
add eax, ecx
mov ecx, dword [rsp + 0x54]
add ebx, ecx
mov ecx, dword [rsp + 0x48]
add r12d, ecx
mov ecx, dword [rsp + 0x4c]
add r15d, ecx
mov dword [rsp + 0x98], r15d
mov ecx, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x74]
add ecx, r15d
mov r15d, dword [rsp + 0x60]
add esi, r15d
mov r15d, dword [rsp + 0x84]
add r8d, r15d
mov dword [rsp + 0x94], r8d
mov r15d, dword [rsp + 0x7c]
mov r8d, dword [rsp + 0x44]
add r15d, r8d
mov r8d, dword [rsp + 0x80]
add r11d, r8d
mov r8d, dword [rsp + 0x1c]
add edx, r8d
mov dword [rsp + 0x90], edx
mov r8d, dword [rsp + 0x5c]
mov edx, dword [rsp + 0x14]
add r8d, edx
add r10, r9
mov qword [rsp + 0xf0], r10
mov rdx, qword [rsp + 0xd0]
add rdx, 0xffffffffffffffc0
mov qword [rsp + 0xd0], rdx
mov rdx, qword [rsp + 0xc8]
mov r10, qword [rsp + 0xf8]
add rdx, r10
mov qword [rsp + 0xf8], rdx
mov rdx, qword [rsp + 0xe8]
add rdx, 0xffffffffffffffc0
mov qword [rsp + 0xe8], rdx
nop
mov edx, dword [rsp + 0x70]
mov dword [r10], edx
xor edi, dword [r9 + 4]
nop
mov dword [r10 + 4], edi
xor r13d, dword [r9 + 8]
nop
mov dword [r10 + 8], r13d
mov edx, dword [rsp + 0x9c]
xor edx, dword [r9 + 0xc]
nop
mov dword [r10 + 0xc], edx
xor eax, dword [r9 + 0x10]
nop
mov dword [r10 + 0x10], eax
xor ebx, dword [r9 + 0x14]
nop
mov dword [r10 + 0x14], ebx
xor r12d, dword [r9 + 0x18]
nop
mov dword [r10 + 0x18], r12d
mov eax, dword [rsp + 0x98]
xor eax, dword [r9 + 0x1c]
nop
mov dword [r10 + 0x1c], eax
xor ecx, dword [r9 + 0x20]
nop
mov dword [r10 + 0x20], ecx
xor esi, dword [r9 + 0x24]
nop
mov dword [r10 + 0x24], esi
mov eax, dword [rsp + 0x94]
xor eax, dword [r9 + 0x28]
nop
mov dword [r10 + 0x28], eax
xor r15d, dword [r9 + 0x2c]
nop
mov dword [r10 + 0x2c], r15d
mov rax, qword [rsp + 0x110]
mov ecx, dword [rax + 0x20]
mov edx, dword [rsp + 0x18]
add ecx, edx
xor ecx, dword [r9 + 0x30]
mov dword [r10 + 0x30], ecx
xor r11d, dword [r9 + 0x34]
nop
mov dword [r10 + 0x34], r11d
mov ecx, dword [rsp + 0x90]
xor ecx, dword [r9 + 0x38]
nop
mov dword [r10 + 0x38], ecx
xor r8d, dword [r9 + 0x3c]
nop
mov dword [r10 + 0x3c], r8d
inc dword [rax + 0x20]
mov ecx, dword [rsp + 0x74]
mov edx, dword [rsp + 0x40]
mov rbx, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
mov r8, qword [rsp + 0xf0]
mov r9, qword [rsp + 0xf8]
mov r10, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0x14]
mov edx, dword [rsp + 0x80]
mov r10d, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x48]
mov r12d, dword [rsp + 0x1c]
mov r13d, dword [rsp + 0x84]
mov r15d, dword [rsp + 0x60]
mov r8, qword [rsp + 0xd0]
mov rbx, r9
mov rsi, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0xe0]
mov r9, qword [rsp + 0xd8]
cmp r8, 0x40
jl 0x5a140f
mov qword [rsp + 0xf8], rbx
mov rbx, qword [rsp + 0xe8]
cmp rbx, 0x40
jl 0x5a140f
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xd8], r9
mov qword [rsp + 0xd0], r8
mov qword [rsp + 0xf0], rsi
mov ebx, dword [rax + 0x80]
mov r8d, dword [rax + 0x94]
mov ecx, dword [rax + 0x7c]
mov r12d, dword [rax + 0x90]
mov edx, dword [rax + 0xa4]
mov r13d, dword [rax + 0x8c]
mov r15d, dword [rax + 0xa0]
mov r11d, dword [rax + 0x88]
mov r10d, dword [rax + 0x9c]
mov dword [rsp + 0x68], r10d
mov esi, dword [rax + 0x84]
mov dword [rsp + 0x24], esi
mov edi, dword [rax + 0x98]
mov dword [rsp + 0x10], edi
mov r9d, dword [rsp + 0x40]
lea esi, [r9 + 0x61707865]
xor esi, dword [rax + 0x20]
rol esi, 0x10
mov edi, dword [rsp + 0x74]
add edi, esi
mov dword [rsp + 0x30], edi
xor edi, r9d
rol edi, 0xc
lea r10d, [r9 + rdi]
lea r9d, [rdi + r9]
lea r9d, [r9 + 0x61707865]
xor r9d, esi
rol r9d, 8
mov esi, dword [rsp + 0x30]
add esi, r9d
xor edi, esi
rol edi, 7
mov dword [rsp + 0x88], edi
lea edi, [rbx + r10]
lea r10d, [r10 + rbx]
lea r10d, [r10 + 0x61707865]
xor r10d, dword [rax + 0xa8]
rol r10d, 0x10
add r8d, r10d
xor ebx, r8d
rol ebx, 0xc
lea edi, [rdi + rbx]
lea edi, [rdi + 0x61707865]
xor r10d, edi
rol r10d, 8
add r8d, r10d
xor ebx, r8d
add ecx, r12d
xor r9d, ecx
rol r9d, 0x10
add edx, r9d
xor r12d, edx
rol r12d, 0xc
add ecx, r12d
mov dword [rsp + 0x6c], ecx
xor r9d, ecx
rol r9d, 8
add edx, r9d
mov dword [rsp + 0x2c], edx
xor r12d, edx
add r13d, r15d
xor r11d, r13d
rol r11d, 0x10
add esi, r11d
xor r15d, esi
rol r15d, 0xc
add r13d, r15d
xor r11d, r13d
rol r11d, 8
add esi, r11d
mov dword [rsp + 0x28], esi
xor r15d, esi
mov eax, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x68]
add ecx, eax
mov edx, dword [rsp + 0x10]
xor edx, ecx
rol edx, 0x10
mov esi, dword [rsp + 0x24]
add esi, edx
xor eax, esi
rol eax, 0xc
add ecx, eax
xor edx, ecx
rol edx, 8
add esi, edx
xor eax, esi
nop
rol ebx, 7
rol r12d, 7
rol r15d, 7
rol eax, 7
mov dword [rsp + 0xb8], eax
xor eax, eax
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0xb0], ecx
mov ecx, dword [rsp + 0x2c]
mov dword [rsp + 0x7c], ecx
mov eax, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xb8]
jmp 0x5a1597
add rsp, 0x100
pop rbp
ret
add edi, eax
xor r9d, edi
rol r9d, 0x10
mov r10d, dword [rsp + 0x20]
add r10d, r9d
xor eax, r10d
rol eax, 0xc
add edi, eax
xor r9d, edi
rol r9d, 8
add r10d, r9d
xor eax, r10d
rol eax, 7
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x78]
add eax, ebx
xor r11d, eax
rol r11d, 0x10
add esi, r11d
xor ebx, esi
rol ebx, 0xc
add eax, ebx
xor r11d, eax
rol r11d, 8
add esi, r11d
mov dword [rsp + 0x64], esi
xor ebx, esi
rol ebx, 7
add r13d, r12d
xor edx, r13d
rol edx, 0x10
add r8d, edx
xor r12d, r8d
rol r12d, 0xc
add r13d, r12d
xor edx, r13d
rol edx, 8
mov dword [rsp + 0x8c], edx
add r8d, edx
xor r12d, r8d
rol r12d, 7
add ecx, r15d
mov esi, dword [rsp + 0x5c]
xor esi, ecx
rol esi, 0x10
mov edx, dword [rsp + 0x7c]
add edx, esi
xor r15d, edx
rol r15d, 0xc
add ecx, r15d
xor esi, ecx
rol esi, 8
add edx, esi
xor r15d, edx
rol r15d, 7
add edi, ebx
xor esi, edi
rol esi, 0x10
add r8d, esi
xor ebx, r8d
rol ebx, 0xc
add edi, ebx
xor esi, edi
rol esi, 8
mov dword [rsp + 0x5c], esi
add r8d, esi
xor ebx, r8d
add eax, r12d
xor r9d, eax
rol r9d, 0x10
add edx, r9d
xor r12d, edx
rol r12d, 0xc
add eax, r12d
mov dword [rsp + 0x78], eax
xor r9d, eax
rol r9d, 8
add edx, r9d
mov dword [rsp + 0x7c], edx
xor r12d, edx
add r13d, r15d
xor r11d, r13d
rol r11d, 0x10
add r10d, r11d
xor r15d, r10d
rol r15d, 0xc
add r13d, r15d
xor r11d, r13d
rol r11d, 8
add r10d, r11d
xor r15d, r10d
mov eax, dword [rsp + 0x50]
add ecx, eax
mov edx, dword [rsp + 0x8c]
xor edx, ecx
rol edx, 0x10
mov esi, dword [rsp + 0x64]
add esi, edx
xor eax, esi
rol eax, 0xc
add ecx, eax
mov dword [rsp + 0x58], ecx
xor edx, ecx
rol edx, 8
add esi, edx
xor eax, esi
mov rcx, qword [rsp + 0xa0]
inc rcx
nop
nop
nop
nop
nop
rol ebx, 7
rol r12d, 7
rol r15d, 7
rol eax, 7
mov qword [rsp + 0xa0], rcx
mov ecx, dword [rsp + 0x58]
mov dword [rsp + 0x20], r10d
mov r10d, dword [rsp + 0x5c]
mov dword [rsp + 0x5c], r10d
mov r10, qword [rsp + 0xa0]
cmp r10, 9
jl 0x5a1418
jmp 0x5a0f8d
lea rax, [0x0066e460]
lea rbx, [0x007413c0]
call fcn.00436ce0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
call fcn.004652a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
jmp fcn.005a0d20