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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x3320646e
mov dword [ebp + 8], esi
mov dword [ebp - 0x34], esi
mov esi, 0x79622d32
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x38], esi
mov esi, 0x6b206574
mov edi, 0x61707865
mov dword [ebp - 0x30], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x3c], esi
test ecx, ecx
je 0x522f69
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp + 8], esi
mov dword [ebp - 0x34], esi
mov esi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx]
mov esi, dword [edx + 0x10]
mov ebx, dword [edx + 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x40], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x44], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x48], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x60], esi
mov esi, dword [edx + 0x14]
mov edx, dword [edx + 0x1c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x68], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x6c], edx
mov edx, dword [ebx]
mov dword [ebp + 0xc], edx
mov dword [ebp - 0x50], edx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x54], edx
mov edx, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x5c], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x58], edx
test ebx, ebx
jle 0x523193
dec ebx
shr ebx, 1
inc ebx
mov dword [ebp - 0x2c], ebx
nop
lea ebx, [esi + edi]
rol ebx, 7
xor ecx, ebx
lea ebx, [ecx + edi]
rol ebx, 9
xor edx, ebx
lea ebx, [edx + ecx]
rol ebx, 0xd
xor esi, ebx
lea ebx, [edx + esi]
ror ebx, 0xe
xor edi, ebx
mov ebx, dword [ebp + 8]
add ebx, dword [ebp - 0xc]
mov dword [ebp + 0x10], edi
rol ebx, 7
mov edi, dword [ebp - 0x1c]
xor edi, ebx
mov ebx, dword [ebp + 8]
add ebx, edi
rol ebx, 9
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x20]
xor edi, ebx
mov ebx, dword [ebp - 0x1c]
add ebx, edi
rol ebx, 0xd
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0xc]
xor edi, ebx
mov ebx, dword [ebp - 0x20]
add ebx, edi
ror ebx, 0xe
xor dword [ebp + 8], ebx
mov ebx, dword [ebp - 4]
add ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x24]
rol ebx, 7
xor edi, ebx
mov ebx, dword [ebp - 4]
add ebx, edi
rol ebx, 9
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x10]
xor edi, ebx
mov ebx, dword [ebp - 0x24]
add ebx, edi
rol ebx, 0xd
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0xc]
xor edi, ebx
mov ebx, dword [ebp - 8]
add ebx, dword [ebp - 0x28]
mov dword [ebp + 0xc], edi
add edi, dword [ebp - 0x10]
ror edi, 0xe
xor dword [ebp - 4], edi
mov edi, dword [ebp - 0x14]
rol ebx, 7
xor edi, ebx
mov ebx, dword [ebp - 8]
add ebx, edi
rol ebx, 9
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x18]
xor edi, ebx
mov ebx, dword [ebp - 0x14]
add ebx, edi
rol ebx, 0xd
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x28]
xor edi, ebx
mov ebx, dword [ebp - 0x18]
add ebx, edi
ror ebx, 0xe
xor dword [ebp - 8], ebx
mov ebx, dword [ebp + 0x10]
add ebx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edi
rol ebx, 7
mov edi, dword [ebp - 0xc]
xor edi, ebx
mov ebx, dword [ebp + 0x10]
add ebx, edi
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x10]
rol ebx, 9
xor edi, ebx
mov ebx, dword [ebp - 0xc]
add ebx, edi
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x14]
rol ebx, 0xd
xor edi, ebx
mov dword [ebp - 0x14], edi
add edi, dword [ebp - 0x10]
ror edi, 0xe
xor dword [ebp + 0x10], edi
mov edi, dword [ebp + 8]
lea ebx, [ecx + edi]
mov edi, dword [ebp + 0xc]
rol ebx, 7
xor edi, ebx
mov ebx, dword [ebp + 8]
add ebx, edi
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 0x18]
rol ebx, 9
xor edi, ebx
mov ebx, dword [ebp - 4]
add ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
add edi, dword [ebp + 0xc]
rol edi, 0xd
xor ecx, edi
mov edi, dword [ebp - 0x18]
add edi, ecx
ror edi, 0xe
xor dword [ebp + 8], edi
mov edi, dword [ebp - 0x28]
rol ebx, 7
xor edi, ebx
mov ebx, dword [ebp - 4]
add ebx, edi
rol ebx, 9
mov dword [ebp - 0x28], edi
xor edx, ebx
lea ebx, [edx + edi]
mov edi, dword [ebp - 0x1c]
rol ebx, 0xd
xor edi, ebx
mov dword [ebp - 0x1c], edi
add edi, edx
ror edi, 0xe
xor dword [ebp - 4], edi
mov edi, dword [ebp - 0x24]
add edi, dword [ebp - 8]
rol edi, 7
xor esi, edi
mov edi, dword [ebp - 8]
lea ebx, [esi + edi]
mov edi, dword [ebp - 0x20]
rol ebx, 9
xor edi, ebx
lea ebx, [edi + esi]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x24]
rol ebx, 0xd
xor edi, ebx
mov dword [ebp - 0x24], edi
add edi, dword [ebp - 0x20]
ror edi, 0xe
xor dword [ebp - 8], edi
dec dword [ebp - 0x2c]
mov edi, dword [ebp + 0x10]
jne 0x522fe0
add ecx, dword [ebp - 0x4c]
add edi, dword [ebp - 0x30]
add edx, dword [ebp - 0x58]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x34]
add esi, dword [ebp - 0x64]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x50]
mov dword [eax], edi
mov edi, dword [ebp - 0xc]
add edi, dword [ebp - 0x40]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x54]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x5c]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x68]
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x10]
add edi, dword [ebp - 0x44]
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x38]
mov dword [eax + 0x34], ecx
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x6c]
mov dword [eax + 8], edi
mov edi, dword [ebp - 0x14]
add edi, dword [ebp - 0x48]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x60]
mov dword [eax + 0x38], ecx
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x3c]
mov dword [eax + 0xc], edi
pop edi
mov dword [eax + 0x30], esi
pop esi
mov dword [eax + 0x2c], edx
mov dword [eax + 0x3c], ecx
pop ebx
mov esp, ebp
pop ebp
ret