Function at 0x57e287
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 4], ecx
test edi, edi
jle 0x57e309
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x14]
add edx, dword [ebp + 0x10]
add eax, edi
mov ecx, dword [ebx + eax*4 - 0x20]
xor ecx, dword [esi + edx*4]
mov dword [esi + eax*4], ecx
mov ecx, dword [ebx + eax*4 - 0x1c]
xor ecx, dword [esi + edx*4 + 4]
mov dword [esi + eax*4 + 4], ecx
mov ecx, dword [ebx + eax*4 - 0x18]
xor ecx, dword [esi + edx*4 + 8]
mov dword [esi + eax*4 + 8], ecx
mov ecx, dword [ebx + eax*4 - 0x14]
xor ecx, dword [esi + edx*4 + 0xc]
mov dword [esi + eax*4 + 0xc], ecx
mov ecx, dword [ebx + eax*4 - 0x10]
xor ecx, dword [esi + edx*4 + 0x10]
mov dword [esi + eax*4 + 0x10], ecx
mov ecx, dword [ebx + eax*4 - 0xc]
xor ecx, dword [esi + edx*4 + 0x14]
mov dword [esi + eax*4 + 0x14], ecx
mov ecx, dword [ebx + eax*4 - 8]
xor ecx, dword [esi + edx*4 + 0x18]
mov dword [esi + eax*4 + 0x18], ecx
mov edx, dword [esi + edx*4 + 0x1c]
xor edx, dword [ebx + eax*4 - 4]
mov dword [esi + eax*4 + 0x1c], edx
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x28]
push eax
push ecx
mov ecx, dword [ebp - 4]
call fcn.0057dda7
mov edx, dword [ebp + 0x20]
add edx, edi
lea ecx, [edx + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
cmp ecx, dword [ebp + 0xc]
jle 0x57e330
xor edi, edi
jmp 0x57e348
mov edi, dword [esi + edx*4]
shl edi, 8
or edi, dword [esi + edx*4 + 4]
shl edi, 8
or edi, dword [esi + edx*4 + 8]
shl edi, 8
or edi, dword [esi + edx*4 + 0xc]
lea edx, [ecx + 4]
cmp edx, dword [ebp + 0xc]
jle 0x57e354
xor esi, esi
jmp 0x57e36f
mov esi, dword [esi + ecx*4]
mov edx, dword [ebp + 8]
shl esi, 8
or esi, dword [edx + ecx*4 + 4]
shl esi, 8
or esi, dword [edx + ecx*4 + 8]
shl esi, 8
or esi, dword [edx + ecx*4 + 0xc]
mov edx, dword [eax + 4]
mov dword [ebp + 0x24], edx
mov edx, dword [eax]
mov dword [ebp + 0xc], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov dword [ebp + 0x2c], edx
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x28], 4
jmp 0x57e397
add ecx, 0x270f
mov dword [ebp + 0x20], ecx
mov eax, dword [ebp + 0x20]
add eax, esi
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp + 0xc]
mov edx, esi
sar edx, 5
add edx, dword [ebp + 0x24]
xor ecx, edx
xor ecx, eax
add edi, ecx
mov eax, dword [ebp + 0x20]
mov ecx, edi
sar ecx, 5
add ecx, dword [ebp + 0x18]
mov edx, edi
shl edx, 4
add edx, dword [ebp + 0x2c]
xor ecx, edx
lea edx, [eax + edi]
xor ecx, edx
add esi, ecx
add eax, 0x270f
mov dword [ebp + 0x20], eax
mov edx, dword [ebp + 0x20]
add edx, esi
mov eax, esi
shl eax, 4
add eax, dword [ebp + 0xc]
mov ecx, esi
sar ecx, 5
add ecx, dword [ebp + 0x24]
xor eax, ecx
xor eax, edx
add edi, eax
mov eax, dword [ebp + 0x20]
mov ecx, edi
sar ecx, 5
add ecx, dword [ebp + 0x18]
mov edx, edi
shl edx, 4
add edx, dword [ebp + 0x2c]
xor ecx, edx
lea edx, [eax + edi]
xor ecx, edx
add esi, ecx
add eax, 0x270f
mov dword [ebp + 0x20], eax
mov edx, dword [ebp + 0x20]
mov eax, esi
shl eax, 4
add eax, dword [ebp + 0xc]
mov ecx, esi
sar ecx, 5
add ecx, dword [ebp + 0x24]
add edx, esi
xor eax, ecx
xor eax, edx
add edi, eax
mov eax, dword [ebp + 0x20]
mov ecx, edi
sar ecx, 5
add ecx, dword [ebp + 0x18]
mov edx, edi
shl edx, 4
add edx, dword [ebp + 0x2c]
xor ecx, edx
lea edx, [eax + edi]
xor ecx, edx
add eax, 0x270f
add esi, ecx
mov dword [ebp + 0x20], eax
mov eax, esi
mov ecx, esi
shl eax, 4
add eax, dword [ebp + 0xc]
sar ecx, 5
add ecx, dword [ebp + 0x24]
xor eax, ecx
mov edx, dword [ebp + 0x20]
add edx, esi
xor eax, edx
add edi, eax
mov eax, edi
sar eax, 5
add eax, dword [ebp + 0x18]
mov ecx, edi
shl ecx, 4
add ecx, dword [ebp + 0x2c]
xor eax, ecx
mov ecx, dword [ebp + 0x20]
lea edx, [ecx + edi]
xor eax, edx
add esi, eax
dec dword [ebp + 0x28]
jne 0x57e397
push 0x10
call fcn.00584d31
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 - 4]
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.00585fd3
push 0x10
call fcn.00584d31
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 ecx, dword [eax]
mov dword [ebx + edi*4 + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebx + edi*4 + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [ebx + edi*4 + 0x18], ecx
mov edx, dword [eax + 0xc]
push eax
mov dword [ebx + edi*4 + 0x1c], edx
call fcn.00585fd3
mov eax, dword [ebp + 0x14]
add esp, 0x10
test eax, eax
jle 0x57e5a2
add eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 - 0x20]
xor dword [ebx + edi*4], edx
mov edx, dword [ecx + eax*4 - 0x1c]
xor dword [ebx + edi*4 + 4], edx
mov edx, dword [ecx + eax*4 - 0x18]
xor dword [ebx + edi*4 + 8], edx
mov edx, dword [ecx + eax*4 - 0x14]
xor dword [ebx + edi*4 + 0xc], edx
mov edx, dword [ecx + eax*4 - 0x10]
xor dword [ebx + edi*4 + 0x10], edx
mov edx, dword [ecx + eax*4 - 0xc]
xor dword [ebx + edi*4 + 0x14], edx
mov edx, dword [ecx + eax*4 - 8]
xor dword [ebx + edi*4 + 0x18], edx
mov eax, dword [ecx + eax*4 - 4]
xor dword [ebx + edi*4 + 0x1c], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00585fd3
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28