Function at 0x52f620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x52f649
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 0x1c], 0
je 0x52f6a7
mov eax, dword [ebp - 4]
and eax, 3
test eax, eax
je 0x52f6a7
mov ecx, dword [ebp - 4]
xor eax, eax
mov al, byte [ecx]
cdq
mov ecx, dword [ebp + 8]
xor ecx, eax
mov eax, dword [ebp + 0xc]
xor eax, edx
and ecx, 0xff
and eax, 0
push 0
push 8
push eax
push ecx
call fcn.0044fa70
mov esi, eax
mov edi, dword [ebp + 0x10]
mov ecx, 8
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.0044fb50
mov ecx, dword [edi + esi]
xor ecx, eax
mov eax, dword [edi + esi + 4]
xor eax, edx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
jmp 0x52f637
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x1c], 0xc
jb 0x52f865
mov edx, dword [ebp - 8]
sub edx, 0xc
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx]
mov dword [ebp - 0x14], eax
mov ecx, 0x20
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.0044fb50
mov edx, dword [ebp - 4]
xor eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
and ecx, 0xff
mov esi, dword [ebp + 0x10]
mov edi, dword [eax + edx*8 + 0x1800]
xor edi, dword [esi + ecx*8 + 0x1000]
mov edx, dword [eax + edx*8 + 0x1804]
xor edx, dword [esi + ecx*8 + 0x1004]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp + 0x10]
xor edi, dword [ecx + eax*8 + 0x800]
xor edx, dword [ecx + eax*8 + 0x804]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov ecx, dword [ebp + 0x10]
xor edi, dword [ecx + eax*8]
xor edx, dword [ecx + eax*8 + 4]
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edx
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
shr ecx, 8
and ecx, 0xff
mov esi, dword [ebp + 0x10]
mov edi, dword [eax + edx*8 + 0x5800]
xor edi, dword [esi + ecx*8 + 0x5000]
mov edx, dword [eax + edx*8 + 0x5804]
xor edx, dword [esi + ecx*8 + 0x5004]
mov eax, dword [ebp - 0x14]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp + 0x10]
xor edi, dword [ecx + eax*8 + 0x4800]
xor edx, dword [ecx + eax*8 + 0x4804]
mov eax, dword [ebp - 0x14]
shr eax, 0x18
mov ecx, dword [ebp + 0x10]
xor edi, dword [ecx + eax*8 + 0x4000]
xor edx, dword [ecx + eax*8 + 0x4004]
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 0xc]
shr esi, 8
and esi, 0xff
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov edx, dword [ecx + eax*8 + 0x3800]
xor edx, dword [ebx + esi*8 + 0x3000]
mov eax, dword [ecx + eax*8 + 0x3804]
xor eax, dword [ebx + esi*8 + 0x3004]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
and ecx, 0xff
mov esi, dword [ebp + 0x10]
xor edx, dword [esi + ecx*8 + 0x2800]
xor eax, dword [esi + ecx*8 + 0x2804]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
mov esi, dword [ebp + 0x10]
xor edx, dword [esi + ecx*8 + 0x2000]
xor eax, dword [esi + ecx*8 + 0x2004]
xor edi, edx
mov edx, dword [ebp - 0x20]
xor edx, eax
mov eax, dword [ebp + 8]
xor eax, edi
mov ecx, dword [ebp + 0xc]
xor ecx, edx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 4]
add edx, 0xc
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jbe 0x52f6c3
mov ecx, dword [ebp - 8]
add ecx, 0xc
mov dword [ebp - 8], ecx
jmp 0x52f870
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x52f8c6
mov ecx, dword [ebp - 4]
xor eax, eax
mov al, byte [ecx]
cdq
mov ecx, dword [ebp + 8]
xor ecx, eax
mov eax, dword [ebp + 0xc]
xor eax, edx
and ecx, 0xff
and eax, 0
push 0
push 8
push eax
push ecx
call fcn.0044fa70
mov esi, eax
mov edi, dword [ebp + 0x10]
mov ecx, 8
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.0044fb50
mov ecx, dword [edi + esi]
xor ecx, eax
mov eax, dword [edi + esi + 4]
xor eax, edx
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
jmp 0x52f867
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc