Function at 0x520618
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 4], ecx
test esi, esi
jle 0x52069e
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
lea eax, [edi + esi]
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + eax*4 - 0x20]
xor ecx, dword [esi + edx*4]
mov dword [ebx + eax*4], ecx
mov ecx, dword [ebx + eax*4 - 0x1c]
xor ecx, dword [esi + edx*4 + 4]
mov dword [ebx + eax*4 + 4], ecx
mov ecx, dword [esi + edx*4 + 8]
xor ecx, dword [ebx + eax*4 - 0x18]
mov dword [ebx + eax*4 + 8], ecx
mov ecx, dword [esi + edx*4 + 0xc]
xor ecx, dword [ebx + eax*4 - 0x14]
mov dword [ebx + eax*4 + 0xc], ecx
mov ecx, dword [esi + edx*4 + 0x10]
xor ecx, dword [ebx + eax*4 - 0x10]
mov dword [ebx + eax*4 + 0x10], ecx
mov ecx, dword [esi + edx*4 + 0x14]
xor ecx, dword [ebx + eax*4 - 0xc]
mov dword [ebx + eax*4 + 0x14], ecx
mov ecx, dword [esi + edx*4 + 0x18]
xor ecx, dword [ebx + eax*4 - 8]
mov dword [ebx + eax*4 + 0x18], ecx
mov edx, dword [esi + edx*4 + 0x1c]
xor edx, dword [ebx + eax*4 - 4]
mov esi, dword [ebp + 0x24]
mov dword [ebx + eax*4 + 0x1c], edx
jmp 0x5206e2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + ecx*4]
mov dword [ebx + edi*4], edx
mov edx, dword [eax + ecx*4 + 4]
mov dword [ebx + edi*4 + 4], edx
mov edx, dword [eax + ecx*4 + 8]
mov dword [ebx + edi*4 + 8], edx
mov edx, dword [eax + ecx*4 + 0xc]
mov dword [ebx + edi*4 + 0xc], edx
mov edx, dword [eax + ecx*4 + 0x10]
mov dword [ebx + edi*4 + 0x10], edx
mov edx, dword [eax + ecx*4 + 0x14]
mov dword [ebx + edi*4 + 0x14], edx
mov edx, dword [eax + ecx*4 + 0x18]
mov dword [ebx + edi*4 + 0x18], edx
mov eax, dword [eax + ecx*4 + 0x1c]
mov dword [ebx + edi*4 + 0x1c], eax
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp - 4]
push edx
call fcn.00520558
mov edx, eax
lea eax, [edi + esi]
mov esi, dword [ebp + 0x1c]
lea ecx, [eax + 4]
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x2c], eax
cmp ecx, esi
jle 0x52070b
xor edi, edi
jmp 0x520723
mov edi, dword [ebx + eax*4]
shl edi, 8
or edi, dword [ebx + eax*4 + 4]
shl edi, 8
or edi, dword [ebx + eax*4 + 8]
shl edi, 8
or edi, dword [ebx + eax*4 + 0xc]
lea eax, [ecx + 4]
cmp eax, esi
jle 0x52072e
xor esi, esi
jmp 0x520746
mov esi, dword [ebx + ecx*4]
shl esi, 8
or esi, dword [ebx + ecx*4 + 4]
shl esi, 8
or esi, dword [ebx + ecx*4 + 8]
shl esi, 8
or esi, dword [ebx + ecx*4 + 0xc]
mov ecx, dword [edx + 8]
mov dword [ebp + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp + 0x24], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx]
mov eax, 0x270f0
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], 4
mov ecx, edi
sar ecx, 5
add ecx, dword [ebp + 0x24]
mov edx, edi
shl edx, 4
add edx, dword [ebp + 8]
xor ecx, edx
lea edx, [eax + edi]
xor ecx, edx
sub esi, ecx
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0x10]
mov edx, esi
sar edx, 5
add edx, dword [ebp + 0x20]
xor ecx, edx
lea edx, [eax + esi]
xor ecx, edx
sub edi, ecx
mov ecx, edi
sar ecx, 5
add ecx, dword [ebp + 0x24]
mov edx, edi
shl edx, 4
add edx, dword [ebp + 8]
xor ecx, edx
lea edx, [eax + edi - 0x270f]
xor ecx, edx
sub esi, ecx
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0x10]
mov edx, esi
sar edx, 5
add edx, dword [ebp + 0x20]
xor ecx, edx
lea edx, [eax + esi - 0x270f]
xor ecx, edx
sub edi, ecx
mov ecx, edi
sar ecx, 5
add ecx, dword [ebp + 0x24]
mov edx, edi
shl edx, 4
add edx, dword [ebp + 8]
xor ecx, edx
lea edx, [eax + edi - 0x4e1e]
xor ecx, edx
sub esi, ecx
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0x10]
mov edx, esi
sar edx, 5
add edx, dword [ebp + 0x20]
xor ecx, edx
lea edx, [eax + esi - 0x4e1e]
xor ecx, edx
sub edi, ecx
mov ecx, edi
sar ecx, 5
add ecx, dword [ebp + 0x24]
mov edx, edi
shl edx, 4
add edx, dword [ebp + 8]
xor ecx, edx
lea edx, [eax + edi - 0x752d]
xor ecx, edx
sub esi, ecx
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0x10]
mov edx, esi
sar edx, 5
add edx, dword [ebp + 0x20]
xor ecx, edx
lea edx, [eax + esi - 0x752d]
xor ecx, edx
sub edi, ecx
sub eax, 0x9c3c
dec dword [ebp + 0x14]
jne 0x520769
push 0x10
call fcn.00527586
mov ebx, dword [ebp + 0x18]
mov ecx, edi
sar ecx, 0x18
and ecx, 0xff
mov dword [eax], ecx
mov edx, edi
mov ecx, edi
sar edx, 0x10
sar ecx, 8
and edx, 0xff
mov dword [eax + 4], edx
and ecx, 0xff
mov dword [eax + 8], ecx
and edi, 0xff
mov dword [eax + 0xc], edi
mov edx, dword [eax]
mov edi, dword [ebp + 0x2c]
mov dword [ebx + edi*4], edx
mov ecx, dword [eax + 4]
mov dword [ebx + edi*4 + 4], ecx
mov edx, dword [eax + 8]
mov dword [ebx + edi*4 + 8], edx
mov ecx, dword [eax + 0xc]
push eax
mov dword [ebx + edi*4 + 0xc], ecx
call fcn.0052882b
push 0x10
call fcn.00527586
mov edx, esi
sar edx, 0x18
and edx, 0xff
mov dword [eax], edx
mov ecx, esi
sar ecx, 0x10
mov edx, esi
sar edx, 8
and ecx, 0xff
mov dword [eax + 4], ecx
and edx, 0xff
mov dword [eax + 8], edx
and esi, 0xff
mov dword [eax + 0xc], esi
mov edx, dword [eax]
mov dword [ebx + edi*4 + 0x10], edx
mov ecx, dword [eax + 4]
mov dword [ebx + edi*4 + 0x14], ecx
mov edx, dword [eax + 8]
mov dword [ebx + edi*4 + 0x18], edx
mov ecx, dword [eax + 0xc]
push eax
mov dword [ebx + edi*4 + 0x1c], ecx
call fcn.0052882b
mov edx, dword [ebp + 0x28]
push edx
call fcn.0052882b
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28