Function at 0x4785f0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [eax + 4]
mov edx, ebx
shr edx, 3
push edi
mov edi, ecx
mov ecx, dword [eax]
mov dword [esp + 0x10], edx
test edx, edx
je 0x4787b9
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + esi*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [edi]
inc ecx
mov byte [ebp], dl
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + esi*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [edi + 1]
inc ecx
mov byte [ebp + 1], dl
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + esi*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [edi + 2]
inc ecx
mov byte [ebp + 2], dl
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + esi*4 + 8], edx
add ebx, edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [edi + 3]
inc ecx
mov byte [ebp + 3], dl
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [edi + 4]
inc ecx
mov byte [ebp + 4], dl
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [edi + 5]
inc ecx
and ecx, 0xff
mov byte [ebp + 5], dl
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [edi + 6]
inc ecx
mov byte [ebp + 6], dl
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
movzx edx, byte [eax + ebx*4 + 8]
xor dl, byte [edi + 7]
add edi, 8
mov byte [ebp + 7], dl
add ebp, 8
sub dword [esp + 0x10], 1
jne 0x478615
mov ebx, dword [esp + 0x18]
and ebx, 7
mov dword [esp + 0x10], ebx
je 0x47899c
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [edi]
sub dword [esp + 0x10], 1
mov byte [ebp], dl
je 0x47899c
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [edi + 1]
sub dword [esp + 0x10], 1
mov byte [ebp + 1], dl
je 0x47899c
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [edi + 2]
sub dword [esp + 0x10], 1
mov byte [ebp + 2], dl
je 0x47899c
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [edi + 3]
sub dword [esp + 0x10], 1
mov byte [ebp + 3], dl
je 0x47899c
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [edi + 4]
sub dword [esp + 0x10], 1
mov byte [ebp + 4], dl
je 0x47899c
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [edi + 5]
sub dword [esp + 0x10], 1
mov byte [ebp + 5], dl
je 0x47899c
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [edi + 6]
sub dword [esp + 0x10], 1
mov byte [ebp + 6], dl
je 0x47899c
inc ecx
and ecx, 0xff
mov edx, dword [eax + ecx*4 + 8]
add esi, edx
and esi, 0xff
mov ebx, dword [eax + esi*4 + 8]
mov dword [eax + ecx*4 + 8], ebx
add ebx, edx
mov dword [eax + esi*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [edi]
sub dword [esp + 0x10], 1
mov byte [ebp], dl
jne 0x478801
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
pop ecx
ret