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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov ecx, dword [ebp + 0xc]
mov eax, 0x3320646e
mov dword [ebp - 0x14], eax
movzx edx, byte [ecx + 3]
mov esi, 0x79622d32
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
mov dword [ebp - 0x10], esi
movzx eax, byte [ecx + 1]
shl edx, 8
or edx, eax
movzx esi, byte [ecx + 0x17]
movzx eax, byte [ecx]
shl edx, 8
or edx, eax
shl esi, 8
movzx eax, byte [ecx + 6]
mov dword [ebp - 0x2c], edx
movzx edx, byte [ecx + 7]
shl edx, 8
or edx, eax
mov dword [ebp - 8], 0x61707865
movzx eax, byte [ecx + 5]
shl edx, 8
or edx, eax
mov dword [ebp - 4], 0x6b206574
movzx eax, byte [ecx + 4]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xa]
mov dword [ebp - 0x24], edx
movzx edx, byte [ecx + 0xb]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 9]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 8]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xe]
mov dword [ebp - 0x30], edx
movzx edx, byte [ecx + 0xf]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xd]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xc]
movzx edi, byte [ecx + 0x13]
shl edx, 8
or edx, eax
shl edi, 8
movzx eax, byte [ecx + 0x12]
or edi, eax
mov dword [ebp - 0x28], edx
movzx eax, byte [ecx + 0x11]
movzx edx, byte [ecx + 0x1b]
shl edi, 8
or edi, eax
shl edx, 8
movzx eax, byte [ecx + 0x10]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x16]
or esi, eax
movzx eax, byte [ecx + 0x15]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x14]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x1a]
or edx, eax
mov dword [ebp - 0x18], esi
movzx eax, byte [ecx + 0x19]
shl edx, 8
or edx, eax
mov dword [ebp - 0x34], 0xa
movzx eax, byte [ecx + 0x18]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0x1e]
mov dword [ebp + 0xc], edx
movzx edx, byte [ecx + 0x1f]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0x1d]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0x1c]
mov ecx, dword [ebp + 0x10]
shl edx, 8
or edx, eax
mov dword [ebp - 0xc], edx
movzx ebx, byte [ecx + 3]
movzx eax, byte [ecx + 2]
movzx edx, byte [ecx + 7]
movzx esi, byte [ecx + 0xb]
shl ebx, 8
or ebx, eax
shl edx, 8
movzx eax, byte [ecx + 1]
shl ebx, 8
or ebx, eax
shl esi, 8
movzx eax, byte [ecx]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 6]
or edx, eax
movzx eax, byte [ecx + 5]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 4]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xa]
or esi, eax
movzx eax, byte [ecx + 9]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 8]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0xe]
mov dword [ebp - 0x20], esi
movzx esi, byte [ecx + 0xf]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0xd]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0xc]
shl esi, 8
or esi, eax
mov dword [ebp + 0x10], esi
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x2c]
xor ebx, ecx
rol ebx, 0x10
add edi, ebx
mov eax, edi
xor eax, dword [ebp - 0x2c]
rol eax, 0xc
add ecx, eax
xor ebx, ecx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x24]
xor edx, ecx
rol ebx, 8
rol edx, 0x10
add edi, ebx
add esi, edx
mov dword [ebp - 0x1c], edi
xor edi, eax
mov eax, esi
xor eax, dword [ebp - 0x24]
rol eax, 0xc
add ecx, eax
rol edi, 7
xor edx, ecx
mov dword [ebp - 0x14], ecx
rol edx, 8
add esi, edx
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x20]
mov ecx, esi
xor ecx, eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x30]
xor edx, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
rol edx, 0x10
add eax, edx
rol ecx, 7
mov dword [ebp + 0xc], eax
xor eax, dword [ebp - 0x30]
rol eax, 0xc
add esi, eax
add dword [ebp - 8], ecx
xor edx, esi
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 0xc]
rol edx, 8
add esi, edx
mov dword [ebp - 0x20], edx
mov edx, esi
mov dword [ebp + 0xc], esi
xor edx, eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
xor eax, esi
rol eax, 0x10
add dword [ebp - 0xc], eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x28]
rol eax, 0xc
add esi, eax
rol edx, 7
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0x10]
xor esi, dword [ebp - 4]
rol esi, 8
add dword [ebp - 0xc], esi
mov dword [ebp + 0x10], esi
mov esi, dword [ebp - 0xc]
xor esi, eax
mov eax, dword [ebp + 0x10]
rol esi, 7
xor eax, dword [ebp - 8]
rol eax, 0x10
add dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
xor eax, ecx
mov ecx, dword [ebp + 0x10]
rol eax, 0xc
add dword [ebp - 8], eax
xor ecx, dword [ebp - 8]
rol ecx, 8
add dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0xc]
xor ecx, eax
mov eax, dword [ebp - 0xc]
rol ecx, 7
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x14]
add ecx, edx
xor ebx, ecx
rol ebx, 0x10
add eax, ebx
mov dword [ebp - 0xc], eax
xor eax, edx
mov edx, dword [ebp - 0x2c]
rol eax, 0xc
add ecx, eax
xor ebx, ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0xc]
rol ebx, 8
add ecx, ebx
mov dword [ebp - 0xc], ecx
xor ecx, eax
mov eax, dword [ebp - 0x1c]
rol ecx, 7
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x10]
add ecx, esi
xor edx, ecx
rol edx, 0x10
add eax, edx
mov dword [ebp - 0x1c], eax
xor eax, esi
mov esi, dword [ebp - 0x18]
rol eax, 0xc
add ecx, eax
xor edx, ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x1c]
rol edx, 8
add ecx, edx
mov dword [ebp - 0x1c], ecx
xor ecx, eax
mov eax, dword [ebp - 4]
rol ecx, 7
add eax, edi
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x20]
xor ecx, eax
mov dword [ebp - 4], eax
rol ecx, 0x10
add esi, ecx
mov eax, esi
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 4]
xor eax, edi
mov edi, dword [ebp - 0x1c]
rol eax, 0xc
add esi, eax
xor ecx, esi
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x18]
rol ecx, 8
add esi, ecx
mov dword [ebp - 0x20], ecx
mov ecx, esi
xor ecx, eax
rol ecx, 7
dec dword [ebp - 0x34]
mov dword [ebp - 0x2c], ecx
jne 0x101616d4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [ebp - 8]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [ebp - 8]
shr eax, 0x18
mov byte [ecx + 3], al
mov eax, dword [ebp - 0x14]
mov byte [ecx + 4], al
shr eax, 8
mov byte [ecx + 5], al
mov eax, dword [ebp - 0x14]
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, dword [ebp - 0x14]
shr eax, 0x18
mov byte [ecx + 7], al
mov eax, dword [ebp - 0x10]
mov byte [ecx + 8], al
shr eax, 8
mov byte [ecx + 9], al
mov eax, dword [ebp - 0x10]
shr eax, 0x10
mov byte [ecx + 0xa], al
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov byte [ecx + 0xb], al
mov eax, dword [ebp - 4]
mov byte [ecx + 0xc], al
shr eax, 8
mov byte [ecx + 0xd], al
mov eax, dword [ebp - 4]
shr eax, 0x10
mov byte [ecx + 0xe], al
mov eax, dword [ebp - 4]
shr eax, 0x18
mov byte [ecx + 0xf], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 0x11], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 0x12], al
mov eax, edx
shr eax, 8
mov byte [ecx + 0x15], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 0x14], dl
mov byte [ecx + 0x16], al
shr edx, 0x18
mov byte [ecx + 0x17], dl
mov edx, dword [ebp - 0x20]
mov eax, edx
shr eax, 8
mov byte [ecx + 0x19], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 0x18], dl
shr edx, 0x18
mov byte [ecx + 0x1a], al
mov byte [ecx + 0x1b], dl
mov edx, dword [ebp + 0x10]
mov eax, edx
shr eax, 8
mov byte [ecx + 0x1d], al
mov eax, edx
mov byte [ecx + 0x10], bl
shr ebx, 0x18
shr eax, 0x10
mov byte [ecx + 0x1c], dl
shr edx, 0x18
mov byte [ecx + 0x13], bl
mov byte [ecx + 0x1e], al
mov byte [ecx + 0x1f], dl
pop ebx
mov esp, ebp
pop ebp
ret