Function at 0x1007c050
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 0x1c]
xor edx, edx
mov eax, dword [ebp + 0x14]
div ecx
movss xmm1, dword [0x10106d1c]
push ebx
lea ebx, [ecx - 2]
mov ecx, edx
mov edx, dword [ebp + 0xc]
shr ebx, 1
push esi
mov esi, dword [ebp + 0x18]
add ebx, 7
imul ebx, esi
push edi
mov dword [ebp + 0x14], ecx
lea edi, [esi + esi]
mov dword [ebp - 0x20], edi
imul eax, ebx
mov dword [ebp - 0x34], ebx
add edx, eax
xor ebx, ebx
mov dword [ebp - 0x14], ecx
lea eax, [edx + esi]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0xc], edx
mov dword [ebp - 0xc], ebx
lea edx, [eax + ecx*2]
add eax, edi
lea esi, [eax + ecx*2]
add eax, edi
lea edi, [eax + ecx*2]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov al, byte [eax + ecx]
cmp al, 6
movzx ecx, al
mov eax, 6
cmova ecx, eax
movzx eax, cl
movzx ecx, byte [edx + 1]
mov dword [ebp - 0x18], eax
movzx eax, byte [edx]
movzx edx, byte [esi + 1]
shl ecx, 8
or ecx, eax
shl edx, 8
movzx eax, byte [esi]
xor ecx, 0x8000
or edx, eax
sub ecx, 0x8000
movzx eax, byte [edi + 1]
xor edx, 0x8000
shl eax, 8
sub edx, 0x8000
mov dword [ebp - 0x10], eax
movzx eax, byte [edi]
mov edi, dword [ebp - 0x10]
or edi, eax
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0x14]
xor edi, 0x8000
sub edi, 0x8000
mov dword [ebp - 4], edx
test ecx, ecx
jne 0x1007c170
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x20]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [eax + ebx*4], xmm0
inc ebx
cmp ebx, esi
je 0x1007c384
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [eax + ebx*4], xmm0
inc ebx
cmp ebx, esi
je 0x1007c384
mov esi, dword [ebp + 0x10]
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edx
jmp 0x1007c28d
cmp ecx, 1
jne 0x1007c1ad
mov eax, dword [ebp + 8]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mov dword [ebp + 0x14], 0
mulss xmm0, xmm1
movss dword [eax + ebx*4], xmm0
inc ebx
mov eax, dword [ebp + 0x20]
cmp ebx, eax
je 0x1007c384
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], 2
mov dword [ebp - 4], edx
jmp 0x1007c290
mov esi, dword [ebp + 0x10]
sub ecx, 2
mov ebx, dword [ebp - 0xc]
mov dword [ebp + 0x14], ecx
je 0x1007c28d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [eax*8 + 0x10106ab0]
mov eax, dword [eax*8 + 0x10106aac]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
mov dword [ebp + 0x14], ecx
jmp 0x1007c1e7
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
mov eax, esi
shr eax, 1
mov ecx, esi
add esi, dword [ebp + 0x18]
not ecx
and ecx, 1
mov dword [ebp - 0xc], esi
shl ecx, 2
movzx esi, byte [eax + edx]
mov eax, dword [ebp - 0x24]
shr esi, cl
mov ecx, ebx
imul ecx, dword [ebp - 0x28]
and esi, 0xf
imul eax, edi
mov edi, ebx
mov ebx, 0x7fff
add eax, ecx
mov ecx, esi
xor ecx, 8
cdq
sub ecx, 8
and edx, 0xff
imul ecx, dword [ebp - 8]
add eax, edx
sar eax, 8
add eax, ecx
mov ecx, 0xffff8000
cmp eax, 0xffff8000
cmovl eax, ecx
cmp eax, ebx
cmovl ebx, eax
mov eax, dword [esi*4 + 0x10106b68]
imul eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 4], ebx
cdq
and edx, 0xff
lea ecx, [edx + eax]
mov edx, dword [ebp - 0x10]
sar ecx, 8
mov eax, 0x10
cmp ecx, 0x10
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], ebx
cmovl ecx, eax
sub dword [ebp + 0x14], 1
mov dword [ebp - 8], ecx
jne 0x1007c1e4
mov ebx, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
sub eax, ebx
sub ecx, dword [ebp - 0x14]
cmp ecx, eax
cmova ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x1007c36b
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax*8 + 0x10106ab0]
mov eax, dword [eax*8 + 0x10106aac]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
nop
imul edi, dword [ebp - 0x2c]
mov eax, esi
shr eax, 1
mov ecx, esi
add esi, dword [ebp + 0x18]
not ecx
and ecx, 1
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0x1c]
shl ecx, 2
movzx esi, byte [eax + esi]
mov eax, dword [ebp - 0x30]
imul eax, edx
shr esi, cl
and esi, 0xf
mov ecx, esi
xor ecx, 8
add eax, edi
sub ecx, 8
imul ecx, dword [ebp - 8]
cdq
and edx, 0xff
mov edi, dword [ebp - 4]
add eax, edx
sar eax, 8
add eax, ecx
mov ecx, 0xffff8000
cmp eax, 0xffff8000
cmovl eax, ecx
mov ecx, 0x7fff
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [esi*4 + 0x10106b68]
imul eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cdq
and edx, 0xff
add eax, edx
mov edx, 0x10
sar eax, 8
cmp eax, 0x10
mulss xmm0, xmm1
cmovl eax, edx
mov edx, ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edx
movss dword [eax + ebx*4], xmm0
inc ebx
sub dword [ebp - 0x14], 1
jne 0x1007c2c0
cmp ebx, dword [ebp + 0x20]
je 0x1007c384
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp - 0x20]
jmp 0x1007c091
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret