Function at 0x1001c280
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
test eax, eax
je 0x1001c4c7
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1001c4c7
mov ebx, dword [esp + 0x14]
test ebx, ebx
jbe 0x1001c4c7
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1001c4c7
mov edx, ebx
push ebp
mov ebp, dword [eax + 4]
shr edx, 3
push edi
mov edi, dword [eax]
mov dword [esp + 0x14], edx
test edx, edx
je 0x1001c479
lea ebx, [ebx]
inc edi
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]
inc edi
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]
inc esi
mov byte [ecx + 1], dl
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
inc ecx
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]
inc esi
mov byte [ecx + 1], dl
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
inc ecx
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]
inc esi
mov byte [ecx + 1], dl
inc edi
inc ecx
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]
inc esi
inc ecx
inc edi
mov byte [ecx], dl
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
inc ecx
inc esi
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]
inc edi
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]
inc esi
mov byte [ecx + 1], dl
inc ecx
inc edi
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]
inc esi
inc ecx
mov byte [ecx], dl
inc ecx
inc esi
sub dword [esp + 0x14], 1
jne 0x1001c2d0
mov ebx, dword [esp + 0x1c]
and ebx, 7
mov dword [esp + 0x14], ebx
je 0x1001c4bb
inc edi
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]
inc ecx
mov byte [ecx - 1], dl
inc esi
sub dword [esp + 0x14], 1
jne 0x1001c482
mov dword [eax], edi
pop edi
mov dword [eax + 4], ebp
pop ebp
pop esi
xor eax, eax
pop ebx
ret
pop esi
mov eax, 0x1600002b
pop ebx
ret