Function at 0x14006fff0
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov dword [rsp + 0xb8], 0x3320646e
mov eax, 0x61707865
mov dword [rsp + 4], eax
mov r10d, 0x6b206574
mov dword [rsp], 0x79622d32
test r9, r9
je 0x140070048
mov eax, dword [r9]
mov r10d, dword [r9 + 0xc]
mov dword [rsp + 4], eax
mov eax, dword [r9 + 4]
mov dword [rsp + 0xb8], eax
mov eax, dword [r9 + 8]
mov dword [rsp], eax
cmp dword [rsp + 0xc0], 0
mov eax, dword [rdx + 4]
mov r11d, dword [r8]
mov ebx, dword [r8 + 4]
mov edi, dword [r8 + 8]
mov esi, dword [r8 + 0xc]
mov r14d, dword [r8 + 0x10]
mov r15d, dword [r8 + 0x14]
mov r12d, dword [r8 + 0x18]
mov ebp, dword [r8 + 0x1c]
mov r13d, dword [rdx]
mov r8d, dword [rsp + 0xb8]
mov r9d, dword [rsp]
mov dword [rsp + 8], eax
mov dword [rsp + 0x20], eax
mov eax, dword [rdx + 8]
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0x24], eax
mov eax, dword [rdx + 0xc]
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 4]
mov edx, eax
mov dword [rsp + 0x3c], r10d
mov dword [rsp + 0xc], r11d
mov dword [rsp + 0x10], ebx
mov dword [rsp + 0x14], edi
mov dword [rsp + 0x18], esi
mov dword [rsp + 0x2c], r14d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x1c], r13d
jle 0x14007029f
mov ecx, dword [rsp + 0xc0]
dec ecx
shr ecx, 1
inc ecx
mov qword [rsp + 0x40], rcx
mov ecx, dword [rsp + 8]
nop word [rax + rax]
lea eax, [r15 + rdx]
ror eax, 0x19
xor esi, eax
lea eax, [rsi + rdx]
ror eax, 0x17
xor dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xa8]
add eax, esi
ror eax, 0x13
xor r15d, eax
mov eax, dword [rsp + 0xa8]
add eax, r15d
mov dword [rsp + 0xc0], r15d
ror eax, 0xe
xor edx, eax
lea eax, [r11 + r8]
ror eax, 0x19
xor dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0xb0]
add eax, r8d
ror eax, 0x17
xor r12d, eax
mov eax, dword [rsp + 0xb0]
add eax, r12d
ror eax, 0x13
xor r11d, eax
lea eax, [r12 + r11]
ror eax, 0xe
xor r8d, eax
lea eax, [r9 + r13]
ror eax, 0x19
xor ebp, eax
lea eax, [r9 + rbp]
ror eax, 0x17
xor ebx, eax
lea eax, [rbx + rbp]
ror eax, 0x13
xor r13d, eax
lea eax, [rbx + r13]
ror eax, 0xe
xor r9d, eax
lea eax, [r14 + r10]
ror eax, 0x19
xor edi, eax
lea eax, [rdi + r10]
ror eax, 0x17
xor ecx, eax
lea eax, [rcx + rdi]
ror eax, 0x13
xor r14d, eax
lea eax, [rcx + r14]
ror eax, 0xe
xor r10d, eax
lea eax, [rdi + rdx]
ror eax, 0x19
xor r11d, eax
lea eax, [r11 + rdx]
ror eax, 0x17
xor ebx, eax
lea eax, [rbx + r11]
ror eax, 0x13
xor edi, eax
lea eax, [rdi + rbx]
ror eax, 0xe
xor edx, eax
lea eax, [rsi + r8]
ror eax, 0x19
xor r13d, eax
lea eax, [r8 + r13]
ror eax, 0x17
xor ecx, eax
lea eax, [rcx + r13]
ror eax, 0x13
xor esi, eax
lea eax, [rcx + rsi]
ror eax, 0xe
xor r8d, eax
mov eax, dword [rsp + 0xb0]
add eax, r9d
ror eax, 0x19
xor r14d, eax
mov r15d, dword [rsp + 0xb0]
lea eax, [r14 + r9]
ror eax, 0x17
xor dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xa8]
add eax, r14d
ror eax, 0x13
xor r15d, eax
mov eax, dword [rsp + 0xa8]
add eax, r15d
mov dword [rsp + 0xb0], r15d
mov r15d, dword [rsp + 0xc0]
ror eax, 0xe
xor r9d, eax
lea eax, [r10 + rbp]
ror eax, 0x19
xor r15d, eax
lea eax, [r15 + r10]
ror eax, 0x17
xor r12d, eax
lea eax, [r12 + r15]
ror eax, 0x13
xor ebp, eax
lea eax, [r12 + rbp]
ror eax, 0xe
xor r10d, eax
sub qword [rsp + 0x40], 1
jne 0x140070100
mov eax, dword [rsp + 4]
mov dword [rsp + 8], ecx
mov rcx, qword [rsp + 0xa0]
add eax, edx
mov dword [rcx], eax
mov eax, dword [rsp + 0xc]
add eax, r11d
mov dword [rcx + 4], eax
mov eax, dword [rsp + 0x10]
add eax, ebx
mov dword [rcx + 8], eax
mov eax, dword [rsp + 0x14]
add eax, edi
mov dword [rcx + 0xc], eax
mov eax, dword [rsp + 0x18]
add eax, esi
mov dword [rcx + 0x10], eax
mov eax, dword [rsp + 0xb8]
add eax, r8d
mov dword [rcx + 0x14], eax
mov eax, dword [rsp + 0x1c]
add eax, r13d
mov dword [rcx + 0x18], eax
mov eax, dword [rsp + 8]
add eax, dword [rsp + 0x20]
mov dword [rcx + 0x1c], eax
mov eax, dword [rsp + 0xa8]
add eax, dword [rsp + 0x24]
mov dword [rcx + 0x20], eax
mov eax, dword [rsp + 0xb0]
add eax, dword [rsp + 0x28]
mov dword [rcx + 0x24], eax
mov eax, dword [rsp]
add eax, r9d
mov dword [rcx + 0x28], eax
mov eax, dword [rsp + 0x2c]
add eax, r14d
mov dword [rcx + 0x2c], eax
mov eax, dword [rsp + 0x30]
add eax, r15d
mov dword [rcx + 0x30], eax
mov eax, dword [rsp + 0x34]
add eax, r12d
mov dword [rcx + 0x34], eax
mov eax, dword [rsp + 0x38]
add eax, ebp
mov dword [rcx + 0x38], eax
mov eax, dword [rsp + 0x3c]
add eax, r10d
mov dword [rcx + 0x3c], eax
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret