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

Disassembly:
lea r12, [rsp - 0x88]
cmp r12, qword [r14 + 0x10]
jbe 0x57efed
push rbp
mov rbp, rsp
sub rsp, 0x100
mov qword [rsp + 0x118], rbx
mov qword [rsp + 0x130], rsi
cmp rcx, r8
jne 0x57efd9
nop word [rax + rax]
nop
test rcx, 0x3f
jne 0x57efd9
mov qword [rsp + 0x120], rcx
mov edx, dword [rax]
mov dword [rsp + 0x64], edx
mov r10d, dword [rax + 4]
mov dword [rsp + 0x28], r10d
mov r11d, dword [rax + 8]
mov dword [rsp + 0x18], r11d
mov r12d, dword [rax + 0xc]
mov dword [rsp + 0x14], r12d
mov r13d, dword [rax + 0x10]
mov dword [rsp + 0x2c], r13d
mov r15d, dword [rax + 0x14]
mov dword [rsp + 0x30], r15d
mov r13d, dword [rax + 0x18]
mov dword [rsp + 0x88], r13d
mov edx, dword [rax + 0x1c]
mov dword [rsp + 0x74], edx
mov edx, dword [rax + 0x24]
mov dword [rsp + 0x10], edx
mov r12d, dword [rax + 0x28]
mov dword [rsp + 0x8c], r12d
mov ecx, dword [rax + 0x2c]
mov dword [rsp + 0x78], ecx
cmp byte [rax + 0x79], 0
jne 0x57e980
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 + 0x58], 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 + 0x58]
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 + 0x54], 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 + 0x54]
add r11d, esi
xor r12d, r11d
rol r12d, 7
mov edi, dword [rsp + 0x14]
lea r8d, [rdi + 0x6b206574]
xor r8d, ecx
rol r8d, 0x10
mov ecx, dword [rsp + 0x74]
add ecx, r8d
mov dword [rsp + 0x50], 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 + 0x50]
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 + 0x78]
mov edx, dword [rsp + 0x10]
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 + 0x28]
mov r11d, dword [rsp + 0x18]
mov r12d, dword [rsp + 0x8c]
mov r13d, dword [rsp + 0x88]
mov r15d, dword [rsp + 0x30]
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 0x57ec2f
mov dword [rsp + 0x1c], 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 + 0x6c], edi
mov edi, dword [rsp + 0x80]
add edi, 0x3320646e
add r13d, 0x79622d32
add ecx, 0x6b206574
mov dword [rsp + 0x9c], ecx
mov ecx, dword [rsp + 0x64]
add eax, ecx
mov ecx, dword [rsp + 0x28]
add ebx, ecx
mov ecx, dword [rsp + 0x18]
add r12d, ecx
mov ecx, dword [rsp + 0x14]
add r15d, ecx
mov dword [rsp + 0x98], r15d
mov ecx, dword [rsp + 0x20]
mov r15d, dword [rsp + 0x2c]
add ecx, r15d
mov r15d, dword [rsp + 0x30]
add esi, r15d
mov r15d, dword [rsp + 0x88]
add r8d, r15d
mov dword [rsp + 0x94], r8d
mov r15d, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x74]
add r15d, r8d
mov r8d, dword [rsp + 0x10]
add r11d, r8d
mov r8d, dword [rsp + 0x8c]
add edx, r8d
mov dword [rsp + 0x90], edx
mov r8d, dword [rsp + 0x84]
mov edx, dword [rsp + 0x78]
add r8d, edx
mov rdx, qword [rsp + 0xd0]
add rdx, 0xffffffffffffffc0
mov qword [rsp + 0xd0], rdx
add r10, r9
mov qword [rsp + 0xf0], r10
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
mov edx, dword [rsp + 0x6c]
mov dword [r10], edx
xor edi, dword [r9 + 4]
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]
mov dword [r10 + 0xc], edx
xor eax, dword [r9 + 0x10]
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]
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]
mov dword [r10 + 0x2c], r15d
mov rax, qword [rsp + 0x110]
mov ecx, dword [rax + 0x20]
mov edx, dword [rsp + 0x1c]
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]
mov dword [r10 + 0x3c], r8d
inc dword [rax + 0x20]
mov ecx, dword [rsp + 0x2c]
mov edx, dword [rsp + 0x64]
mov rbx, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xf8]
mov r8, qword [rsp + 0xd8]
mov r9, qword [rsp + 0xf0]
mov r10, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0x78]
mov edx, dword [rsp + 0x10]
mov r10d, dword [rsp + 0x28]
mov r11d, dword [rsp + 0x18]
mov r12d, dword [rsp + 0x8c]
mov r13d, dword [rsp + 0x88]
mov r15d, dword [rsp + 0x30]
mov r8, qword [rsp + 0xd0]
mov rsi, r9
mov r9, qword [rsp + 0xd8]
mov rbx, rdi
mov rdi, qword [rsp + 0xe0]
cmp r8, 0x40
jl 0x57ee26
mov qword [rsp + 0xf8], rbx
mov rbx, qword [rsp + 0xe8]
cmp rbx, 0x40
jl 0x57ee26
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 + 0x5c], r10d
mov esi, dword [rax + 0x84]
mov dword [rsp + 0x40], esi
mov edi, dword [rax + 0x98]
mov dword [rsp + 0x38], edi
mov r9d, dword [rsp + 0x64]
lea esi, [r9 + 0x61707865]
xor esi, dword [rax + 0x20]
rol esi, 0x10
mov edi, dword [rsp + 0x2c]
add edi, esi
mov dword [rsp + 0x4c], 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 + 0x4c]
add esi, r9d
xor edi, esi
rol edi, 7
mov dword [rsp + 0x34], 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 + 0x60], ecx
xor r9d, ecx
rol r9d, 8
add edx, r9d
mov dword [rsp + 0x48], 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 + 0x44], esi
xor r15d, esi
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x5c]
add ecx, eax
mov edx, dword [rsp + 0x38]
xor edx, ecx
rol edx, 0x10
mov esi, dword [rsp + 0x40]
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 + 0x60]
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0xa8], ecx
mov ecx, dword [rsp + 0x48]
mov dword [rsp + 0x3c], ecx
mov eax, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xa8]
jmp 0x57efba
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 + 0x70], eax
mov eax, dword [rsp + 0x80]
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 + 0x24], 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 + 0x68], edx
add r8d, edx
xor r12d, r8d
rol r12d, 7
add ecx, r15d
mov esi, dword [rsp + 0x84]
xor esi, ecx
rol esi, 0x10
mov edx, dword [rsp + 0x3c]
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 + 0x84], 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 + 0x80], eax
xor r9d, eax
rol r9d, 8
add edx, r9d
mov dword [rsp + 0x3c], 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 + 0x70]
add ecx, eax
mov edx, dword [rsp + 0x68]
xor edx, ecx
rol edx, 0x10
mov esi, dword [rsp + 0x24]
add esi, edx
xor eax, esi
rol eax, 0xc
add ecx, eax
mov dword [rsp + 0x7c], 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
nop
nop
nop
rol ebx, 7
rol r12d, 7
rol r15d, 7
rol eax, 7
mov qword [rsp + 0xa0], rcx
mov ecx, dword [rsp + 0x7c]
mov dword [rsp + 0x20], r10d
mov r10d, dword [rsp + 0x84]
mov dword [rsp + 0x84], r10d
mov r10, qword [rsp + 0xa0]
cmp r10, 9
jl 0x57ee2f
jmp 0x57e9ad
lea rax, [0x0067b560]
lea rbx, [0x00765380]
call fcn.00431120
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.0045a0c0
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.0057e740