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

Disassembly:
lea r12, [rsp - 0x88]
cmp r12, qword [r14 + 0x10]
jbe 0x580fa6
push rbp
mov rbp, rsp
sub rsp, 0x100
mov qword [rsp + 0x118], rbx
mov qword [rsp + 0x130], rsi
cmp rcx, r8
jne 0x580f8f
nop word [rax + rax]
nop
test rcx, 0x3f
jne 0x580f8f
mov qword [rsp + 0x120], rcx
mov edx, dword [rax]
mov dword [rsp + 0x78], edx
mov r10d, dword [rax + 4]
mov dword [rsp + 0x80], r10d
mov r11d, dword [rax + 8]
mov dword [rsp + 0x64], r11d
mov r12d, dword [rax + 0xc]
mov dword [rsp + 0x70], r12d
mov r13d, dword [rax + 0x10]
mov dword [rsp + 0x10], r13d
mov r15d, dword [rax + 0x14]
mov dword [rsp + 0x3c], r15d
mov r13d, dword [rax + 0x18]
mov dword [rsp + 0x60], r13d
mov edx, dword [rax + 0x1c]
mov dword [rsp + 0x50], edx
mov edx, dword [rax + 0x24]
mov dword [rsp + 0x6c], edx
mov r12d, dword [rax + 0x28]
mov dword [rsp + 0x18], r12d
mov ecx, dword [rax + 0x2c]
mov dword [rsp + 0x38], ecx
cmp byte [rax + 0x79], 0
jne 0x58093a
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 + 0x34], 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 + 0x34]
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 + 0x30], 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 + 0x30]
add r11d, esi
xor r12d, r11d
rol r12d, 7
mov edi, dword [rsp + 0x70]
lea r8d, [rdi + 0x6b206574]
xor r8d, ecx
rol r8d, 0x10
mov ecx, dword [rsp + 0x50]
add ecx, r8d
mov dword [rsp + 0x2c], 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 + 0x2c]
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 + 0x38]
mov edx, dword [rsp + 0x6c]
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 + 0x80]
mov r11d, dword [rsp + 0x64]
mov r12d, dword [rsp + 0x18]
mov r13d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x3c]
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 0x580be9
mov dword [rsp + 0x74], 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 + 0x5c], edi
mov edi, dword [rsp + 0x7c]
add edi, 0x3320646e
add r13d, 0x79622d32
add ecx, 0x6b206574
mov dword [rsp + 0x9c], ecx
mov ecx, dword [rsp + 0x78]
add eax, ecx
mov ecx, dword [rsp + 0x80]
add ebx, ecx
mov ecx, dword [rsp + 0x64]
add r12d, ecx
mov ecx, dword [rsp + 0x70]
add r15d, ecx
mov dword [rsp + 0x98], r15d
mov ecx, dword [rsp + 0x54]
mov r15d, dword [rsp + 0x10]
add ecx, r15d
mov r15d, dword [rsp + 0x3c]
add esi, r15d
mov r15d, dword [rsp + 0x60]
add r8d, r15d
mov dword [rsp + 0x94], r8d
mov r15d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x50]
add r15d, r8d
mov r8d, dword [rsp + 0x6c]
add r11d, r8d
mov r8d, dword [rsp + 0x18]
add edx, r8d
mov dword [rsp + 0x90], edx
mov r8d, dword [rsp + 0x14]
mov edx, dword [rsp + 0x38]
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 + 0x5c]
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 + 0x74]
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 + 0x10]
mov edx, dword [rsp + 0x78]
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 + 0x38]
mov edx, dword [rsp + 0x6c]
mov r10d, dword [rsp + 0x80]
mov r11d, dword [rsp + 0x64]
mov r12d, dword [rsp + 0x18]
mov r13d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x3c]
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 0x580de9
mov qword [rsp + 0xf8], rbx
mov rbx, qword [rsp + 0xe8]
cmp rbx, 0x40
jl 0x580de9
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 + 0x88], r10d
mov esi, dword [rax + 0x84]
mov dword [rsp + 0x1c], esi
mov edi, dword [rax + 0x98]
mov dword [rsp + 0x48], edi
mov r9d, dword [rsp + 0x78]
lea esi, [r9 + 0x61707865]
xor esi, dword [rax + 0x20]
rol esi, 0x10
mov edi, dword [rsp + 0x10]
add edi, esi
mov dword [rsp + 0x28], 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 + 0x28]
add esi, r9d
xor edi, esi
rol edi, 7
mov dword [rsp + 0x40], 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 + 0x8c], ecx
xor r9d, ecx
rol r9d, 8
add edx, r9d
mov dword [rsp + 0x24], 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 + 0x20], esi
xor r15d, esi
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x88]
add ecx, eax
mov edx, dword [rsp + 0x48]
xor edx, ecx
rol edx, 0x10
mov esi, dword [rsp + 0x1c]
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 + 0x8c]
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0xb0], ecx
mov ecx, dword [rsp + 0x24]
mov dword [rsp + 0x44], ecx
mov eax, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0xb8]
jmp 0x580f71
add rsp, 0x100
pop rbp
ret
add edi, eax
xor r9d, edi
rol r9d, 0x10
mov r10d, dword [rsp + 0x54]
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 + 0x4c], eax
mov eax, dword [rsp + 0x7c]
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 + 0x68], 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 + 0x58], edx
add r8d, edx
xor r12d, r8d
rol r12d, 7
add ecx, r15d
mov esi, dword [rsp + 0x14]
xor esi, ecx
rol esi, 0x10
mov edx, dword [rsp + 0x44]
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 + 0x14], 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 + 0x7c], eax
xor r9d, eax
rol r9d, 8
add edx, r9d
mov dword [rsp + 0x44], 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 + 0x4c]
add ecx, eax
mov edx, dword [rsp + 0x58]
xor edx, ecx
rol edx, 0x10
mov esi, dword [rsp + 0x68]
add esi, edx
xor eax, esi
rol eax, 0xc
add ecx, eax
mov dword [rsp + 0x84], 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 + 0x84]
mov dword [rsp + 0x54], r10d
mov r10d, dword [rsp + 0x14]
mov dword [rsp + 0x14], r10d
mov r10, qword [rsp + 0xa0]
nop
cmp r10, 9
jl 0x580df2
jmp 0x580967
lea rax, [0x00653860]
lea rbx, [0x00722ce0]
nop dword [rax]
call fcn.00433a00
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.0045e020
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.00580700