Function at 0x10015840
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax]
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, dword [esp + 0x20]
mov dword [esp + 0x14], edx
je 0x10015a24
jmp 0x10015870
add ecx, 1
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 [ebp]
add ecx, 1
mov byte [edi], 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 [ebp + 1]
add ecx, 1
mov byte [edi + 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 [ebp + 2]
add ecx, 1
mov byte [edi + 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 [ebp + 3]
add ecx, 1
mov byte [edi + 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 [ebp + 4]
add ecx, 1
mov byte [edi + 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 [ebp + 5]
add ecx, 1
and ecx, 0xff
mov byte [edi + 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 [ebp + 6]
add ecx, 1
mov byte [edi + 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 [ebp + 7]
add ebp, 8
mov byte [edi + 7], dl
add edi, 8
sub dword [esp + 0x14], 1
jne 0x10015870
mov ebx, dword [esp + 0x18]
and ebx, 7
mov dword [esp + 0x14], ebx
je 0x10015c19
add ecx, 1
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 [ebp]
sub dword [esp + 0x14], 1
mov byte [edi], dl
je 0x10015c19
mov edi, edi
add ecx, 1
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 [ebp + 1]
sub dword [esp + 0x14], 1
mov byte [edi + 1], dl
je 0x10015c19
add ecx, 1
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 [ebp + 2]
sub dword [esp + 0x14], 1
mov byte [edi + 2], dl
je 0x10015c19
add ecx, 1
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 [ebp + 3]
sub dword [esp + 0x14], 1
mov byte [edi + 3], dl
je 0x10015c19
add ecx, 1
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 [ebp + 4]
sub dword [esp + 0x14], 1
mov byte [edi + 4], dl
je 0x10015c19
add ecx, 1
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 [ebp + 5]
sub dword [esp + 0x14], 1
mov byte [edi + 5], dl
je 0x10015c19
add ecx, 1
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 [ebp + 6]
sub dword [esp + 0x14], 1
mov byte [edi + 6], dl
je 0x10015c19
add ecx, 1
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 [ebp]
sub dword [esp + 0x14], 1
mov byte [edi], dl
jne 0x10015a70
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
ret