Function at 0x5851d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edx
shr eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
xor ecx, eax
shl eax, 4
xor edx, eax
mov eax, ecx
shr eax, 0x10
xor eax, edx
movzx eax, ax
xor edx, eax
shl eax, 0x10
xor ecx, eax
mov eax, edx
shr eax, 2
xor eax, ecx
and eax, 0x33333333
xor ecx, eax
shl eax, 2
xor edx, eax
mov eax, ecx
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor edx, eax
shl eax, 8
xor ecx, eax
mov eax, edx
shr eax, 1
xor eax, ecx
and eax, 0x55555555
mov ebx, eax
xor ebx, ecx
ror ebx, 0x1d
lea edi, [eax + eax]
mov eax, dword [ebp + 0xc]
xor edi, edx
ror edi, 0x1d
cmp dword [ebp + 0x10], 0
je 0x585374
add eax, 8
mov dword [ebp + 0x10], 8
mov dword [ebp + 0xc], eax
nop dword [eax]
mov edx, dword [eax - 4]
mov esi, dword [eax - 8]
xor edx, ebx
ror edx, 4
xor esi, ebx
mov ecx, edx
mov eax, edx
shr eax, 0xa
and eax, 0x3f
shr ecx, 0x12
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x67aca8]
xor ecx, dword [eax*4 + 0x67aaa8]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x67a8a8]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x67aba8]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x67a9a8]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x67a7a8]
xor ecx, dword [edx*4 + 0x67aea8]
xor ecx, dword [esi*4 + 0x67ada8]
mov edx, dword [ebp + 0xc]
xor edi, ecx
mov esi, dword [edx]
mov edx, dword [edx + 4]
xor esi, edi
xor edx, edi
ror edx, 4
mov ecx, edx
mov eax, edx
shr eax, 0xa
and eax, 0x3f
shr ecx, 0x12
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x67aca8]
xor ecx, dword [eax*4 + 0x67aaa8]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x67a8a8]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x67aba8]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x67a9a8]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x67a7a8]
xor ecx, dword [edx*4 + 0x67aea8]
xor ecx, dword [esi*4 + 0x67ada8]
mov eax, dword [ebp + 0xc]
xor ebx, ecx
add eax, 0x10
sub dword [ebp + 0x10], 1
mov dword [ebp + 0xc], eax
jne 0x585260
jmp 0x585490
add eax, 0x70
mov dword [ebp + 0x10], 8
mov dword [ebp + 0xc], eax
mov edx, dword [eax + 0xc]
mov esi, dword [eax + 8]
xor edx, ebx
ror edx, 4
xor esi, ebx
mov ecx, edx
mov eax, edx
shr eax, 0xa
and eax, 0x3f
shr ecx, 0x12
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x67aca8]
xor ecx, dword [eax*4 + 0x67aaa8]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x67a8a8]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x67aba8]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x67a9a8]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x67a7a8]
xor ecx, dword [edx*4 + 0x67aea8]
xor ecx, dword [esi*4 + 0x67ada8]
mov edx, dword [ebp + 0xc]
xor edi, ecx
mov esi, dword [edx]
mov edx, dword [edx + 4]
xor esi, edi
xor edx, edi
ror edx, 4
mov ecx, edx
mov eax, edx
shr eax, 0xa
and eax, 0x3f
shr ecx, 0x12
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x67aca8]
xor ecx, dword [eax*4 + 0x67aaa8]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x67a8a8]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x67aba8]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x67a9a8]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x67a7a8]
xor ecx, dword [edx*4 + 0x67aea8]
xor ecx, dword [esi*4 + 0x67ada8]
mov eax, dword [ebp + 0xc]
xor ebx, ecx
sub eax, 0x10
sub dword [ebp + 0x10], 1
mov dword [ebp + 0xc], eax
jne 0x585381
ror ebx, 3
mov eax, ebx
ror edi, 3
shr eax, 1
xor eax, edi
mov edx, dword [ebp + 8]
and eax, 0x55555555
xor edi, eax
add eax, eax
xor ebx, eax
mov eax, edi
shr eax, 8
xor eax, ebx
and eax, 0xff00ff
xor ebx, eax
shl eax, 8
xor edi, eax
mov eax, ebx
shr eax, 2
xor eax, edi
and eax, 0x33333333
xor edi, eax
shl eax, 2
xor ebx, eax
mov eax, edi
shr eax, 0x10
xor eax, ebx
movzx eax, ax
xor ebx, eax
shl eax, 0x10
xor edi, eax
mov ecx, ebx
shr ecx, 4
xor ecx, edi
and ecx, 0xf0f0f0f
mov eax, ecx
shl ecx, 4
xor eax, edi
xor ecx, ebx
pop edi
pop esi
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
pop ebp
ret