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

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