Function at 0x51ad00
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
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
lea edi, [eax + eax]
xor ebx, ecx
xor edi, edx
ror ebx, 0x1d
ror edi, 0x1d
cmp dword [esp + 0x1c], 0
je 0x51ae9d
add ebp, 8
mov dword [esp + 0x18], 8
nop dword [eax + eax]
mov edx, dword [ebp - 4]
lea ebp, [ebp + 0x10]
mov esi, dword [ebp - 0x18]
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 + 0x5c4528]
xor ecx, dword [eax*4 + 0x5c4328]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x5c4128]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x5c4428]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x5c4228]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x5c4028]
xor ecx, dword [edx*4 + 0x5c4728]
xor ecx, dword [esi*4 + 0x5c4628]
mov edx, dword [ebp - 0xc]
xor edi, ecx
mov esi, dword [ebp - 0x10]
xor edx, edi
ror edx, 4
xor esi, edi
mov ecx, edx
mov eax, edx
shr eax, 0xa
shr ecx, 0x12
and eax, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x5c4528]
xor ecx, dword [eax*4 + 0x5c4328]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x5c4128]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x5c4428]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x5c4228]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x5c4028]
xor ecx, dword [edx*4 + 0x5c4728]
xor ecx, dword [esi*4 + 0x5c4628]
xor ebx, ecx
sub dword [esp + 0x18], 1
jne 0x51ad90
jmp 0x51afb8
add ebp, 0x70
mov dword [esp + 0x18], 8
nop dword [eax + eax]
mov edx, dword [ebp + 0xc]
lea ebp, [ebp - 0x10]
mov esi, dword [ebp + 0x18]
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 + 0x5c4528]
xor ecx, dword [eax*4 + 0x5c4328]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x5c4128]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x5c4428]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x5c4228]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x5c4028]
xor ecx, dword [edx*4 + 0x5c4728]
xor ecx, dword [esi*4 + 0x5c4628]
mov edx, dword [ebp + 0x14]
xor edi, ecx
mov esi, dword [ebp + 0x10]
xor edx, edi
ror edx, 4
xor esi, edi
mov ecx, edx
mov eax, edx
shr eax, 0xa
shr ecx, 0x12
and eax, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x5c4528]
xor ecx, dword [eax*4 + 0x5c4328]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr edx, 0x1a
xor ecx, dword [eax*4 + 0x5c4128]
mov eax, esi
shr eax, 0x12
and eax, 0x3f
xor ecx, dword [eax*4 + 0x5c4428]
mov eax, esi
shr eax, 0xa
and eax, 0x3f
xor ecx, dword [eax*4 + 0x5c4228]
mov eax, esi
shr eax, 2
and eax, 0x3f
shr esi, 0x1a
xor ecx, dword [eax*4 + 0x5c4028]
xor ecx, dword [edx*4 + 0x5c4728]
xor ecx, dword [esi*4 + 0x5c4628]
xor ebx, ecx
sub dword [esp + 0x18], 1
jne 0x51aeb0
ror ebx, 3
mov eax, ebx
ror edi, 3
shr eax, 1
xor eax, edi
mov edx, dword [esp + 0x14]
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
pop ebp
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
ret