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

Disassembly:
sub esp, 0x30
mov ecx, dword [esp + 0x48]
xor edx, edx
mov eax, dword [esp + 0x40]
div ecx
movss xmm1, dword [0x101ff414]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
lea ebx, [ecx - 2]
shr ebx, 1
mov ecx, edx
push esi
mov esi, dword [esp + 0x50]
add ebx, 7
imul ebx, esi
push edi
mov dword [esp + 0x50], ecx
lea edi, [esi + esi]
mov dword [esp + 0x28], edi
imul eax, ebx
mov dword [esp + 0x3c], ebx
add ebp, eax
xor ebx, ebx
mov dword [esp + 0x10], ecx
lea eax, [esi + ebp]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x1c], 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 [esp + 0x28]
mov dword [esp + 0x24], eax
mov al, byte [ecx + ebp]
movzx ebp, byte [esi + 1]
cmp al, 6
movzx ecx, al
mov eax, 6
cmova ecx, eax
shl ebp, 8
movzx eax, cl
movzx ecx, byte [edx + 1]
shl ecx, 8
mov dword [esp + 0x20], eax
movzx eax, byte [edx]
movzx edx, byte [edi + 1]
or ecx, eax
movzx eax, byte [esi]
xor ecx, 0x8000
or ebp, eax
shl edx, 8
movzx eax, byte [edi]
sub ecx, 0x8000
or edx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x50]
xor ebp, 0x8000
xor edx, 0x8000
sub ebp, 0x8000
sub edx, 0x8000
test ecx, ecx
jne 0x100e1163
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x5c]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [eax + ebx*4], xmm0
inc ebx
cmp ebx, esi
je 0x100e139d
movd xmm0, ebp
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [eax + ebx*4], xmm0
inc ebx
cmp ebx, esi
je 0x100e139d
mov esi, dword [esp + 0x4c]
lea eax, [ecx + 2]
mov dword [esp + 0x10], eax
jmp 0x100e1292
cmp ecx, 1
jne 0x100e119d
mov eax, dword [esp + 0x44]
movd xmm0, ebp
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x50], 0
mulss xmm0, xmm1
movss dword [eax + ebx*4], xmm0
inc ebx
mov eax, dword [esp + 0x5c]
cmp ebx, eax
je 0x100e139d
mov esi, dword [esp + 0x4c]
lea edi, [ecx + 1]
jmp 0x100e129a
mov edi, dword [esp + 0x1c]
sub ecx, 2
mov esi, dword [esp + 0x4c]
mov ebx, edi
mov dword [esp + 0x50], ecx
je 0x100e1292
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x50], ecx
mov edx, dword [eax*8 + 0x101ff254]
mov eax, dword [eax*8 + 0x101ff250]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edi
nop
mov edx, dword [esp + 0x24]
mov eax, esi
shr eax, 1
mov ecx, esi
add esi, dword [esp + 0x54]
not ecx
and ecx, 1
mov dword [esp + 0x14], esi
shl ecx, 2
movzx esi, byte [eax + edx]
mov eax, dword [esp + 0x2c]
imul eax, dword [esp + 0x1c]
shr esi, cl
mov ecx, dword [esp + 0x30]
and esi, 0xf
imul ecx, ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x1c], ebp
mov ebp, 0x7fff
add eax, ecx
mov ecx, esi
cdq
xor ecx, 8
and edx, 0xff
sub ecx, 8
imul ecx, ebx
lea edi, [edx + eax]
mov eax, 0xffff8000
sar edi, 8
add edi, ecx
mov ecx, dword [esp + 0x50]
cmp edi, 0xffff8000
cmovl edi, eax
mov eax, dword [esi*4 + 0x101ff210]
imul eax, ebx
mov esi, dword [esp + 0x14]
cdq
and edx, 0xff
lea ebx, [edx + eax]
mov eax, 0x10
sar ebx, 8
cmp ebx, 0x10
cmovl ebx, eax
dec ecx
cmp edi, ebp
mov dword [esp + 0x50], ecx
cmovl ebp, edi
test ecx, ecx
jne 0x100e11e0
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
sub eax, ebx
sub ecx, edi
cmp ecx, eax
cmova ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x100e137e
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov ecx, dword [eax*8 + 0x101ff254]
mov eax, dword [eax*8 + 0x101ff250]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov eax, esi
mov ecx, esi
add esi, dword [esp + 0x54]
not ecx
shr eax, 1
and ecx, 1
shl ecx, 2
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x24]
movzx esi, byte [eax + esi]
mov eax, dword [esp + 0x38]
shr esi, cl
mov ecx, dword [esp + 0x34]
and esi, 0xf
imul ecx, edx
imul eax, ebp
add eax, ecx
mov ecx, esi
xor ecx, 8
cdq
sub ecx, 8
and edx, 0xff
add eax, edx
imul ecx, edi
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 + 0x101ff210]
imul eax, edi
mov esi, dword [esp + 0x14]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cdq
and edx, 0xff
lea edi, [edx + eax]
mulss xmm0, xmm1
sar edi, 8
mov eax, 0x10
cmp edi, 0x10
mov edx, ebp
mov ebp, ecx
cmovl edi, eax
mov eax, dword [esp + 0x44]
movss dword [eax + ebx*4], xmm0
inc ebx
sub dword [esp + 0x1c], 1
jne 0x100e12d1
cmp ebx, dword [esp + 0x5c]
je 0x100e139d
mov ebp, dword [esp + 0x48]
add ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x28]
jmp 0x100e1086
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret