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

Disassembly:
lea r12, [rsp - 0x70]
cmp r12, qword [r14 + 0x10]
jbe 0x5a5193
push rbp
mov rbp, rsp
sub rsp, 0xe8
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0x118], rsi
cmp rcx, r8
jne 0x5a517f
nop word [rax + rax]
nop dword [rax]
test rcx, 0x3f
jne 0x5a517f
mov qword [rsp + 0xf8], rax
mov edx, dword [rax]
mov dword [rsp + 0x98], edx
mov r10d, dword [rax + 4]
mov dword [rsp + 0x94], r10d
mov r11d, dword [rax + 8]
mov dword [rsp + 0x90], r11d
mov r12d, dword [rax + 0xc]
mov dword [rsp + 0x8c], r12d
mov r13d, dword [rax + 0x10]
mov dword [rsp + 0x88], r13d
mov r15d, dword [rax + 0x14]
mov dword [rsp + 0x84], r15d
mov r12d, dword [rax + 0x18]
mov dword [rsp + 0xac], r12d
mov r11d, dword [rax + 0x1c]
mov dword [rsp + 0xa8], r11d
mov r11d, dword [rax + 0x24]
mov dword [rsp + 0xa4], r11d
mov r12d, dword [rax + 0x28]
mov dword [rsp + 0xa0], r12d
mov r12d, dword [rax + 0x2c]
mov dword [rsp + 0x9c], r12d
cmp byte [rax + 0x79], 0
nop word [rax + rax]
jne 0x5a4e83
mov qword [rsp + 0x128], r9
mov qword [rsp + 0x120], r8
mov qword [rsp + 0x118], rsi
mov qword [rsp + 0x110], rdi
mov qword [rsp + 0x108], rcx
mov qword [rsp + 0x100], rbx
mov eax, 0x3320646e
mov ebx, r10d
mov ecx, r15d
mov edi, r11d
call fcn.005a4060
mov rdx, qword [rsp + 0xf8]
mov dword [rdx + 0x7c], eax
mov dword [rdx + 0x80], ebx
mov dword [rdx + 0x84], ecx
mov dword [rdx + 0x88], edi
mov eax, 0x79622d32
mov ebx, dword [rsp + 0x90]
mov ecx, dword [rsp + 0xac]
mov edi, dword [rsp + 0xa0]
call fcn.005a4060
mov rdx, qword [rsp + 0xf8]
mov dword [rdx + 0x8c], eax
mov dword [rdx + 0x90], ebx
mov dword [rdx + 0x94], ecx
mov dword [rdx + 0x98], edi
mov eax, 0x6b206574
mov ebx, dword [rsp + 0x8c]
mov ecx, dword [rsp + 0xa8]
mov edi, dword [rsp + 0x9c]
nop
call fcn.005a4060
mov rdx, qword [rsp + 0xf8]
mov dword [rdx + 0x9c], eax
mov dword [rdx + 0xa0], ebx
mov dword [rdx + 0xa4], ecx
mov dword [rdx + 0xa8], edi
mov byte [rdx + 0x79], 1
mov rax, rdx
mov rcx, qword [rsp + 0x108]
mov edx, dword [rsp + 0x98]
mov rbx, qword [rsp + 0x100]
mov rsi, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x110]
mov r8, qword [rsp + 0x120]
mov r9, qword [rsp + 0x128]
mov r10d, dword [rsp + 0x94]
mov r11d, dword [rsp + 0xa4]
mov r12d, dword [rsp + 0x9c]
mov r13d, dword [rsp + 0x88]
mov r15d, dword [rsp + 0x84]
jmp 0x5a4e83
mov dword [rsp + 0x3c], r13d
mov dword [rsp + 0x4c], ebx
mov rax, qword [rsp + 0xd8]
mov ebx, 4
mov rcx, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xe0]
mov r8, qword [rsp + 0xb8]
mov r9d, esi
mov r10d, 0x61707865
mov rsi, rbx
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 4]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 4]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 4]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 4]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x70]
mov r10d, 0x3320646e
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
nop
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 8]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 8]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 8]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 8]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x54]
mov r10d, 0x79622d32
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 0xc]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 0xc]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 0xc]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 0xc]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x50]
mov r10d, 0x6b206574
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 0x10]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 0x10]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 0x10]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 0x10]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x4c]
mov r10d, dword [rsp + 0x98]
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
nop
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 0x14]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 0x14]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 0x14]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 0x14]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x48]
mov r10d, dword [rsp + 0x94]
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 0x18]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 0x18]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 0x18]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 0x18]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x44]
mov r10d, dword [rsp + 0x90]
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 0x1c]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 0x1c]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 0x1c]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 0x1c]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x40]
mov r10d, dword [rsp + 0x8c]
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 0x20]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 0x20]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 0x20]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 0x20]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x3c]
mov r10d, dword [rsp + 0x88]
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 0x24]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 0x24]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 0x24]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 0x24]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x38]
mov r10d, dword [rsp + 0x84]
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 0x28]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 0x28]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 0x28]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 0x28]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x6c]
mov r10d, dword [rsp + 0xac]
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 0x2c]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 0x2c]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 0x2c]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 0x2c]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x68]
mov r10d, dword [rsp + 0xa8]
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 0x30]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 0x30]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 0x30]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 0x30]
mov r15, qword [rsp + 0xf8]
mov r10d, dword [r15 + 0x20]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x64]
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 0x34]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 0x34]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 0x34]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 0x34]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x60]
mov r10d, dword [rsp + 0xa4]
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 0x38]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 0x38]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 0x38]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 0x38]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x5c]
mov r10d, dword [rsp + 0xa0]
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
call fcn.005a59a0
mov rax, qword [rsp + 0xd8]
lea rdx, [rax + 0x3c]
mov rcx, qword [rsp + 0xd0]
lea r11, [rcx - 0x3c]
mov r8, qword [rsp + 0xb8]
lea r12, [r8 - 0x3c]
mov rdi, qword [rsp + 0xe0]
lea r13, [rdi + 0x3c]
mov ebx, 4
mov rsi, rbx
mov r9d, dword [rsp + 0x58]
mov r10d, dword [rsp + 0x9c]
mov rax, rdx
mov rcx, r11
mov rdi, r13
mov r8, r12
call fcn.005a59a0
mov rax, qword [rsp + 0xf8]
inc dword [rax + 0x20]
mov r9, qword [rsp + 0xb8]
add r9, 0xffffffffffffffc0
mov rdx, r9
neg rdx
sar rdx, 0x3f
and edx, 0x40
mov rdi, qword [rsp + 0xd0]
add rdi, 0xffffffffffffffc0
mov r11, rdi
neg r11
sar r11, 0x3f
and r11d, 0x40
mov r12, qword [rsp + 0xe0]
lea rsi, [r12 + rdx]
mov r8, qword [rsp + 0xc0]
add r8, 0xffffffffffffffc0
mov rdx, qword [rsp + 0xd8]
lea rbx, [rdx + r11]
mov rcx, qword [rsp + 0xc8]
add rcx, 0xffffffffffffffc0
mov edx, dword [rsp + 0x88]
mov r11d, dword [rsp + 0x98]
mov edx, r11d
mov r10d, dword [rsp + 0x94]
mov r11d, dword [rsp + 0xa4]
mov r12d, dword [rsp + 0x9c]
mov r13d, dword [rsp + 0x88]
mov r15d, dword [rsp + 0x84]
cmp r8, 0x40
jl 0x5a4ff6
cmp rcx, 0x40
jl 0x5a4ff6
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0xc8], rcx
mov qword [rsp + 0xc0], r8
mov qword [rsp + 0xe0], rsi
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xb8], r9
mov edi, dword [rax + 0x20]
mov ebx, edx
mov ecx, r13d
mov eax, 0x61707865
call fcn.005a4060
mov dword [rsp + 0x7c], ebx
mov dword [rsp + 0x78], ecx
mov dword [rsp + 0x80], edi
mov rdx, qword [rsp + 0xf8]
mov esi, dword [rdx + 0x80]
mov r8d, dword [rdx + 0x94]
mov r9d, dword [rdx + 0xa8]
mov ebx, esi
mov ecx, r8d
mov edi, r9d
call fcn.005a4060
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x6c], ecx
mov dword [rsp + 0x58], edi
mov rdx, qword [rsp + 0xf8]
mov esi, dword [rdx + 0x7c]
mov r8d, dword [rdx + 0x90]
mov r9d, dword [rdx + 0xa4]
mov eax, esi
mov ebx, r8d
mov ecx, r9d
mov edi, dword [rsp + 0x80]
call fcn.005a4060
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x68], ecx
mov dword [rsp + 0x64], edi
mov rdx, qword [rsp + 0xf8]
mov esi, dword [rdx + 0x8c]
mov r8d, dword [rdx + 0xa0]
mov r9d, dword [rdx + 0x88]
mov eax, esi
mov ebx, r8d
mov ecx, dword [rsp + 0x78]
mov edi, r9d
call fcn.005a4060
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x60], edi
mov rdx, qword [rsp + 0xf8]
mov esi, dword [rdx + 0x9c]
mov r8d, dword [rdx + 0x84]
mov r9d, dword [rdx + 0x98]
mov eax, esi
mov ebx, dword [rsp + 0x7c]
mov ecx, r8d
mov edi, r9d
call fcn.005a4060
xor edx, edx
mov esi, dword [rsp + 0x74]
mov r8d, dword [rsp + 0x70]
mov r9d, dword [rsp + 0x54]
mov r10d, dword [rsp + 0x48]
mov r11d, dword [rsp + 0x44]
mov r12d, dword [rsp + 0x40]
mov r13d, dword [rsp + 0x3c]
mov r15d, dword [rsp + 0x6c]
jmp 0x5a5146
add rsp, 0xe8
pop rbp
ret
mov qword [rsp + 0xb0], rdx
mov eax, esi
mov ecx, r13d
mov edi, dword [rsp + 0x64]
call fcn.005a4060
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x4c], ebx
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x64], edi
mov eax, dword [rsp + 0x70]
mov ebx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x38]
mov edi, dword [rsp + 0x60]
call fcn.005a4060
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x60], edi
mov eax, dword [rsp + 0x54]
mov ebx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
mov edi, dword [rsp + 0x5c]
call fcn.005a4060
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x6c], ecx
mov dword [rsp + 0x5c], edi
mov eax, dword [rsp + 0x50]
mov ebx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x68]
mov edi, dword [rsp + 0x58]
nop
call fcn.005a4060
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x68], ecx
mov eax, dword [rsp + 0x74]
mov ebx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x6c]
nop dword [rax]
call fcn.005a4060
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x6c], ecx
mov dword [rsp + 0x58], edi
mov eax, dword [rsp + 0x70]
mov ebx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x68]
mov edi, dword [rsp + 0x64]
call fcn.005a4060
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x68], ecx
mov dword [rsp + 0x64], edi
mov eax, dword [rsp + 0x54]
mov ebx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x3c]
mov edi, dword [rsp + 0x60]
call fcn.005a4060
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x60], edi
mov eax, dword [rsp + 0x50]
mov ebx, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x38]
mov edi, dword [rsp + 0x5c]
call fcn.005a4060
mov rdx, qword [rsp + 0xb0]
inc rdx
mov esi, dword [rsp + 0x74]
mov r8d, dword [rsp + 0x70]
mov r9d, dword [rsp + 0x54]
mov r10d, dword [rsp + 0x48]
mov r11d, dword [rsp + 0x44]
mov r12d, dword [rsp + 0x40]
mov r13d, dword [rsp + 0x3c]
mov r15d, dword [rsp + 0x6c]
mov dword [rsp + 0x5c], edi
mov dword [rsp + 0x6c], r15d
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x44], r11d
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], r9d
mov dword [rsp + 0x70], r8d
cmp rdx, 9
jl 0x5a4fff
jmp 0x5a4890
lea rax, [0x00665980]
lea rbx, [0x0070af70]
call fcn.00471f80
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.004780a0
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]
nop
jmp fcn.005a4660