Function at 0x5667e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [eax + 4]
mov ecx, edx
push esi
mov esi, dword [esp + 0x18]
shr ecx, 3
push edi
mov edi, dword [eax]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
je 0x5669e9
jmp 0x566810
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add edi, 1
mov byte [ecx], dl
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
add esi, 1
mov byte [ecx + 1], dl
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
add ecx, 1
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
add esi, 1
mov byte [ecx + 1], dl
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
add ecx, 1
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
add esi, 1
mov byte [ecx + 1], dl
add edi, 1
add ecx, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
add esi, 1
add ecx, 1
add edi, 1
mov byte [ecx], dl
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
add ecx, 1
add esi, 1
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add edi, 1
mov byte [ecx], dl
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
add esi, 1
mov byte [ecx + 1], dl
add ecx, 1
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [esi + 1]
add esi, 1
add ecx, 1
mov byte [ecx], dl
add ecx, 1
add esi, 1
sub dword [esp + 0x14], 1
jne 0x566810
mov edx, dword [esp + 0x18]
and edx, 7
mov dword [esp + 0x14], edx
je 0x566c11
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x14], 1
je 0x566c11
lea esp, [esp]
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x14], 1
je 0x566c11
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x14], 1
je 0x566c11
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x14], 1
je 0x566c11
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x14], 1
je 0x566c11
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x14], 1
je 0x566c11
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x14], 1
je 0x566c11
add edi, 1
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
add ecx, 1
mov byte [ecx - 1], dl
add esi, 1
sub dword [esp + 0x14], 1
jne 0x566a40
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], ebp
pop ebp
pop ebx
ret