Function at 0x52f430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x52f457
mov ecx, dword [ebp + 8]
sub ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp + 8], 0
je 0x52f48b
mov eax, dword [ebp - 4]
and eax, 3
test eax, eax
je 0x52f48b
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 0x14]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp - 0x14]
shr ecx, 8
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + eax*4]
xor eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x52f445
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0xc
jb 0x52f5db
mov edx, dword [ebp - 8]
sub edx, 0xc
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
mov edx, dword [ebp - 0xc]
shr edx, 8
and edx, 0xff
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0xc]
mov ecx, dword [eax + ecx*4 + 0x1c00]
xor ecx, dword [esi + edx*4 + 0x1800]
mov edx, dword [ebp - 0xc]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ebp + 0xc]
xor ecx, dword [eax + edx*4 + 0x1400]
mov edx, dword [ebp - 0xc]
shr edx, 0x18
mov eax, dword [ebp + 0xc]
xor ecx, dword [eax + edx*4 + 0x1000]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov ecx, dword [ebp - 0xc]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0xc]
mov eax, dword [edx + eax*4 + 0xc00]
xor eax, dword [esi + ecx*4 + 0x800]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp + 0xc]
xor eax, dword [edx + ecx*4 + 0x400]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
mov edx, dword [ebp + 0xc]
xor eax, dword [edx + ecx*4]
mov ecx, dword [ebp - 0x10]
xor ecx, eax
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov eax, dword [ebp - 0x14]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0xc]
mov edx, dword [ecx + edx*4 + 0x2c00]
xor edx, dword [esi + eax*4 + 0x2800]
mov eax, dword [ebp - 0x14]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp + 0xc]
xor edx, dword [ecx + eax*4 + 0x2400]
mov eax, dword [ebp - 0x14]
shr eax, 0x18
mov ecx, dword [ebp + 0xc]
xor edx, dword [ecx + eax*4 + 0x2000]
mov eax, dword [ebp - 0x10]
xor eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
add ecx, 0xc
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jbe 0x52f4a7
mov eax, dword [ebp - 8]
add eax, 0xc
mov dword [ebp - 8], eax
jmp 0x52f5e6
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jae 0x52f613
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x14]
xor edx, ecx
and edx, 0xff
mov eax, dword [ebp - 0x14]
shr eax, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + edx*4]
xor edx, eax
mov dword [ebp - 0x14], edx
jmp 0x52f5dd
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret 8