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

Disassembly:
push rbx
sub rsp, 0x130
mov rax, qword [0x140248318]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbx, qword [rsp + 0x160]
xor eax, eax
mov qword [rsp + 0x98], rdx
mov r11, r9
mov qword [rsp + 0x48], rcx
mov r10, rcx
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa0], rax
test rdx, rdx
je 0x14017ecdb
mov r9d, dword [r8 + 8]
mov ecx, dword [r8 + 4]
mov qword [rsp + 0x150], rbp
mov qword [rsp + 0x128], rsi
mov esi, eax
mov qword [rsp + 0x120], rdi
mov edi, eax
mov dword [rsp + 0x50], r9d
mov r9d, dword [r8 + 0xc]
mov dword [rsp + 0x54], r9d
mov r9d, dword [r8 + 0x10]
mov qword [rsp + 0x118], r12
mov dword [rsp + 0x58], r9d
mov r9d, dword [r8 + 0x14]
mov qword [rsp + 0x110], r13
mov dword [rsp + 0x34], eax
mov eax, dword [r11]
mov qword [rsp + 0x108], r14
mov r14d, dword [r8]
mov dword [rsp + 0x5c], r9d
mov r9d, dword [r8 + 0x18]
mov r8d, dword [r8 + 0x1c]
mov dword [rsp + 0x64], eax
mov eax, dword [r11 + 4]
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x100], r15
mov dword [rsp + 0x6c], r14d
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x60], r9d
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x38], edi
cmp rdx, 0x40
jae 0x14017e8f1
mov r8, rdx
lea rcx, [rsp + 0xb0]
mov rdx, r10
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rsp + 0x3c]
lea r10, [rsp + 0xb0]
mov r8d, dword [rsp + 0x40]
mov qword [rsp + 0xa0], rbx
lea rbx, [rsp + 0xb0]
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x90], rbx
mov eax, dword [rsp + 0x50]
mov r9d, r14d
mov r10d, dword [rsp + 0x58]
mov r11d, esi
mov ebx, dword [rsp + 0x5c]
mov ebp, 0x61707865
mov edx, dword [rsp + 0x60]
mov r15d, 0x3320646e
mov esi, dword [rsp + 0x64]
mov r13d, 0x79622d32
mov r14d, dword [rsp + 0x68]
mov r12d, 0x6b206574
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x70], 4
jmp 0x14017e94b
mov r8d, dword [rsp + 0x28]
mov edx, ecx
mov ecx, dword [rsp + 0x2c]
add r13d, dword [rsp + 0x20]
add r15d, ecx
add r12d, dword [rsp + 0x30]
add ebp, r9d
xor r11d, ebp
xor r14d, r12d
rol r14d, 0x10
xor edi, r15d
add r8d, r14d
rol r11d, 0x10
add r10d, r11d
rol edi, 0x10
add ebx, edi
xor esi, r13d
rol esi, 0x10
mov eax, r10d
xor eax, r9d
add edx, esi
rol eax, 0xc
add ebp, eax
xor r11d, ebp
rol r11d, 8
add r10d, r11d
mov r9d, r10d
xor r9d, eax
mov eax, ebx
xor eax, ecx
rol r9d, 7
rol eax, 0xc
add r15d, eax
xor edi, r15d
rol edi, 8
add ebx, edi
mov ecx, ebx
xor ecx, eax
mov eax, edx
xor eax, dword [rsp + 0x20]
rol eax, 0xc
add r13d, eax
rol ecx, 7
add ebp, ecx
xor esi, r13d
rol esi, 8
add edx, esi
mov dword [rsp + 0x24], edx
xor edx, eax
mov eax, r8d
rol edx, 7
xor eax, dword [rsp + 0x30]
add r15d, edx
rol eax, 0xc
xor r11d, r15d
add r12d, eax
rol r11d, 0x10
xor r14d, r12d
rol r14d, 8
add r8d, r14d
xor r14d, ebp
mov dword [rsp + 0x28], r8d
xor r8d, eax
mov eax, dword [rsp + 0x24]
rol r14d, 0x10
add eax, r14d
rol r8d, 7
mov dword [rsp + 0x24], eax
xor eax, ecx
mov ecx, dword [rsp + 0x24]
rol eax, 0xc
add ebp, eax
xor r14d, ebp
rol r14d, 8
add ecx, r14d
mov dword [rsp + 0x2c], ecx
xor dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x28]
rol dword [rsp + 0x2c], 7
add eax, r11d
mov dword [rsp + 0x28], eax
xor eax, edx
rol eax, 0xc
add r15d, eax
mov edx, dword [rsp + 0x28]
add r13d, r8d
add r12d, r9d
xor edi, r13d
xor esi, r12d
rol edi, 0x10
add r10d, edi
rol esi, 0x10
add ebx, esi
xor r11d, r15d
rol r11d, 8
add edx, r11d
mov dword [rsp + 0x20], edx
xor dword [rsp + 0x20], eax
mov eax, r10d
rol dword [rsp + 0x20], 7
xor eax, r8d
rol eax, 0xc
add r13d, eax
mov dword [rsp + 0x28], edx
xor edi, r13d
rol edi, 8
add r10d, edi
mov r8d, r10d
xor r8d, eax
mov eax, ebx
xor eax, r9d
rol r8d, 7
rol eax, 0xc
add r12d, eax
mov dword [rsp + 0x30], r8d
xor esi, r12d
rol esi, 8
add ebx, esi
mov r9d, ebx
xor r9d, eax
rol r9d, 7
sub qword [rsp + 0x70], 1
jne 0x14017e940
mov dword [rsp + 0x30], r10d
lea eax, [r15 + 0x3320646e]
mov r10, qword [rsp + 0x48]
mov r15d, dword [rsp + 0x2c]
add r15d, dword [rsp + 0x3c]
mov dword [rsp + 0x84], ebp
xor eax, dword [r10 + 4]
xor r15d, dword [r10 + 0x14]
mov ebp, dword [rsp + 0x54]
mov dword [rsp + 0x88], eax
add ebp, r8d
xor ebp, dword [r10 + 0x1c]
lea eax, [r13 + 0x79622d32]
xor eax, dword [r10 + 8]
lea r13d, [r12 + 0x6b206574]
xor r13d, dword [r10 + 0xc]
mov r12d, dword [rsp + 0x6c]
mov dword [rsp + 0x8c], eax
add r12d, r9d
xor r12d, dword [r10 + 0x10]
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x80], r14d
mov r14d, dword [rsp + 0x20]
add r14d, dword [rsp + 0x50]
xor r14d, dword [r10 + 0x18]
mov dword [rsp + 0x7c], esi
mov esi, dword [rsp + 0x30]
add esi, dword [rsp + 0x58]
xor esi, dword [r10 + 0x20]
mov dword [rsp + 0x78], edi
mov edi, ebx
mov rbx, qword [rsp + 0x90]
add edi, dword [rsp + 0x5c]
xor edi, dword [r10 + 0x24]
mov r8d, dword [rsp + 0x78]
add r8d, dword [rsp + 0x38]
xor r8d, dword [rax + 0x34]
mov dword [rsp + 0x24], r11d
mov r11d, dword [rsp + 0x60]
mov r9d, dword [rsp + 0x24]
add r11d, ecx
xor r11d, dword [r10 + 0x28]
mov r10d, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x80]
add r10d, edx
xor r10d, dword [rax + 0x2c]
mov edx, dword [rsp + 0x64]
add edx, dword [rsp + 0x7c]
xor edx, dword [rax + 0x38]
add ecx, dword [rsp + 0x68]
xor ecx, dword [rax + 0x3c]
mov dword [rsp + 0x70], r13d
mov r13d, dword [rsp + 0x34]
add r9d, r13d
xor r9d, dword [rax + 0x30]
inc r13d
mov eax, dword [rsp + 0x84]
add eax, 0x61707865
mov dword [rsp + 0x34], r13d
mov r13, qword [rsp + 0x48]
xor eax, dword [r13]
mov r13d, dword [rsp + 0x70]
mov dword [rbx], eax
mov eax, dword [rsp + 0x88]
mov dword [rbx + 4], eax
mov eax, dword [rsp + 0x8c]
mov dword [rbx + 0x38], edx
mov rdx, qword [rsp + 0x98]
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], r13d
mov dword [rbx + 0x10], r12d
mov dword [rbx + 0x14], r15d
mov dword [rbx + 0x18], r14d
mov dword [rbx + 0x1c], ebp
mov dword [rbx + 0x20], esi
mov dword [rbx + 0x24], edi
mov dword [rbx + 0x28], r11d
mov dword [rbx + 0x2c], r10d
mov dword [rbx + 0x30], r9d
mov dword [rbx + 0x34], r8d
mov dword [rbx + 0x3c], ecx
cmp rdx, 0x40
jbe 0x14017ec8e
mov edi, dword [rsp + 0x38]
sub rdx, 0x40
mov r10, qword [rsp + 0x48]
add rbx, 0x40
mov esi, dword [rsp + 0x34]
add r10, 0x40
mov r14d, dword [rsp + 0x6c]
test esi, esi
mov ecx, dword [rsp + 0x3c]
lea eax, [rdi + 1]
mov r8d, dword [rsp + 0x40]
cmovne eax, edi
mov edi, eax
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x48], r10
jmp 0x14017e8a6
mov r15, qword [rsp + 0x100]
mov r14, qword [rsp + 0x108]
mov r13, qword [rsp + 0x110]
mov r12, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x128]
mov rbp, qword [rsp + 0x150]
jae 0x14017ecdb
mov rcx, qword [rsp + 0xa0]
mov r8, rdx
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14018bc90
add rsp, 0x130
pop rbx
ret