Function at 0x1007c140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
cmp dword [ebp + 0xc], 0
jle 0x1007c43d
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 8]
mov ebx, dword [edx]
mov edi, dword [edx + 1]
mov esi, edi
shr esi, 2
and esi, 0x3f3f3f3f
mov eax, ebx
shr eax, 2
and eax, 0x3f3f3f3f
add eax, esi
mov esi, dword [ebp + 0xc]
not esi
imul esi, ecx
mov dword [ebp - 0x2c], esi
and ebx, 0x3030303
and edi, 0x3030303
add ebx, edi
add ebx, 0x1010101
lea edi, [ecx + ecx]
mov dword [ebp - 0x14], 0
mov esi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x10], edx
mov edx, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
nop word cs:[eax + eax]
nop dword [eax + eax]
mov dword [ebp - 0x28], esi
mov edi, dword [ebp - 0x10]
mov esi, dword [edi + edx]
mov edx, esi
and edx, 0x3030303
mov ecx, dword [ebp + 8]
mov ecx, dword [edi + ecx + 1]
mov edi, ecx
and edi, 0x3030303
add edi, edx
shr esi, 2
and esi, 0x3f3f3f3f
shr ecx, 2
and ecx, 0x3f3f3f3f
add ecx, esi
mov dword [ebp - 0x24], ecx
add eax, ecx
add ebx, edi
shr ebx, 2
and ebx, 0xf0f0f0f
add ebx, eax
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
mov edx, ebx
or edx, eax
xor ebx, eax
shr ebx, 1
and ebx, 0x7f7f7f7f
sub edx, ebx
mov dword [esi], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx]
mov ebx, ecx
and ebx, 0x3030303
mov eax, dword [ebp + 8]
mov eax, dword [eax + edx + 1]
mov edx, eax
and edx, 0x3030303
add ebx, edx
add ebx, 0x1010101
shr ecx, 2
and ecx, 0x3f3f3f3f
shr eax, 2
and eax, 0x3f3f3f3f
add eax, ecx
mov ecx, dword [ebp - 0x24]
add ecx, eax
add edi, ebx
shr edi, 2
and edi, 0x7070707
add edi, ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [esi + ecx]
mov edx, edi
or edx, ecx
xor edi, ecx
shr edi, 1
and edi, 0x7f7f7f7f
sub edx, edi
mov ecx, dword [ebp + 8]
mov dword [esi + ecx], edx
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
add ecx, edx
mov dword [ebp - 0x10], ecx
add esi, edx
add esi, edx
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x20]
add esi, edi
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp + 0xc]
jl 0x1007c1c0
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0xc], 0
mov ebx, dword [ebp - 0x30]
jle 0x1007c43d
mov esi, eax
add esi, edx
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + esi + 4]
mov ecx, dword [ecx + esi + 5]
mov esi, edx
mov edx, ecx
shr edx, 2
and edx, 0x3f3f3f3f
mov edi, ebx
mov ebx, eax
shr ebx, 2
and ebx, 0x3f3f3f3f
add ebx, edx
and eax, 0x3030303
and ecx, 0x3030303
add ecx, eax
add ecx, 0x1010101
mov eax, 2
mov edx, dword [ebp + 0xc]
sub eax, edx
imul eax, esi
add eax, edi
add eax, 5
mov dword [ebp - 0x1c], eax
mov eax, 1
sub eax, edx
imul eax, esi
add edi, eax
add edi, 5
mov dword [ebp - 0x28], edi
mov edx, dword [ebp - 0x18]
lea eax, [eax + edx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
lea edi, [esi + esi]
mov dword [ebp - 0x20], edi
imul esi, dword [ebp + 0xc]
neg esi
add edx, esi
add edx, 4
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0
nop dword [eax]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x28]
mov edx, dword [esi + eax - 1]
mov esi, dword [esi + eax]
mov edi, edx
and edi, 0x3030303
mov eax, esi
and eax, 0x3030303
add eax, edi
shr edx, 2
and edx, 0x3f3f3f3f
shr esi, 2
and esi, 0x3f3f3f3f
add esi, edx
add ebx, esi
add ecx, eax
shr ecx, 2
and ecx, 0xf0f0f0f
add ecx, ebx
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebx + edx]
mov edi, ecx
or edi, edx
xor ecx, edx
shr ecx, 1
and ecx, 0x7f7f7f7f
sub edi, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebx + ecx], edi
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + ecx - 1]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [edi + ecx]
mov ecx, edx
and ecx, 0x3030303
mov edi, ebx
and edi, 0x3030303
add ecx, edi
add ecx, 0x1010101
shr edx, 2
and edx, 0x3f3f3f3f
shr ebx, 2
and ebx, 0x3f3f3f3f
add ebx, edx
add esi, ebx
add eax, ecx
shr eax, 2
and eax, 0x7070707
add eax, esi
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x24]
mov edx, dword [edi + edx]
mov esi, eax
or esi, edx
xor eax, edx
shr eax, 1
and eax, 0x7f7f7f7f
sub esi, eax
mov eax, dword [ebp - 0x10]
mov dword [edi + eax], esi
mov edx, dword [ebp - 0x14]
add edx, 2
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
cmp edx, dword [ebp + 0xc]
jl 0x1007c360
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret