Function at 0x10001417
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x24]
push edi
xor edi, edi
mov eax, dword [esi]
mov dword [esp + 0x10], edi
cmp eax, edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
je 0x100014c8
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x28]
mov eax, esi
add esi, 4
mov eax, dword [eax]
dec eax
cmp eax, 0x28
ja case.0x10001304.9
xor ecx, ecx
mov cl, byte [eax + 0x100014f4]
jmp dword [ecx*4 + 0x100014d0]
mov edx, dword [esi]
mov cl, byte [esi + 4]
mov al, byte [edx + ebp]
shr al, cl
and al, 1
and eax, 0xff
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
jmp 0x100014ad
mov edx, dword [esi]
xor eax, eax
mov al, byte [edx + ebp]
cdq
idiv dword [esi + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
fild dword [esp + 0x30]
fstp dword [ebx + eax*4]
jmp case.0x10001304.9
mov eax, dword [esi]
mov ecx, 2
add eax, ebp
mov edx, dword [esp + 0x14]
movzx di, byte [eax]
shl edx, 8
add edx, edi
inc eax
dec ecx
mov dword [esp + 0x14], edx
jne 0x10001350
mov eax, edx
and eax, 0xffff
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
jmp 0x100014aa
mov edx, dword [esi]
xor ecx, ecx
mov cl, byte [edx + ebp + 1]
lea eax, [edx + ebp]
xor edx, edx
mov dl, byte [eax]
shl edx, 8
add ecx, edx
xor edx, edx
mov dl, byte [eax + 2]
mov eax, dword [esi + 8]
shl ecx, 8
add ecx, edx
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fidiv dword [esi + 4]
fstp dword [ebx + eax*4]
jmp case.0x10001304.9
mov ecx, dword [esi]
mov dword [esp + 0x30], 1
lea eax, [ecx + ebp]
mov cl, byte [ecx + ebp]
cmp cl, 1
jne 0x100013ca
mov dword [esp + 0x30], 0xffffffff
xor edx, edx
mov dl, byte [eax + 1]
mov eax, dword [esi + 8]
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
fimul dword [esp + 0x30]
fidiv dword [esi + 4]
fstp dword [ebx + eax*4]
jmp case.0x10001304.9
mov eax, dword [esi]
mov ecx, 2
add eax, ebp
mov edx, dword [esp + 0x18]
movzx di, byte [eax]
shl edx, 8
add edx, edi
inc eax
dec ecx
mov dword [esp + 0x18], edx
jne 0x100013f2
movsx eax, dx
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
jmp 0x100014aa
xor eax, eax
mov edx, dword [esi]
mov cl, al
sub edx, edi
mov dl, byte [edx + ebp + 1]
shr dl, cl
lea ecx, [eax + edi*8]
and dl, 1
and edx, 0xff
mov dword [esp + 0x30], edx
mov edx, dword [esi + 8]
fild dword [esp + 0x30]
add ecx, edx
inc eax
cmp eax, 8
fstp dword [ebx + ecx*4]
jl 0x10001419
inc edi
cmp edi, 2
jl case.0x10001304.4
jmp case.0x10001304.9
mov edx, dword [esi]
mov dword [esp + 0x30], 2
lea edi, [edx + ebp]
lea eax, [edi + 2]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
add ecx, edx
inc eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
dec ecx
mov dword [esp + 0x30], ecx
jne 0x1000145f
mov eax, edi
mov edi, 2
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
add ecx, edx
inc eax
dec edi
mov dword [esp + 0x10], ecx
jne 0x10001483
mov eax, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
fild qword [esp + 0x1c]
fidiv dword [esi + 4]
mov ecx, dword [esi + 8]
fstp dword [ebx + ecx*4]
add esi, 0x10
xor edi, edi
mov ecx, dword [esi - 4]
lea eax, [esi - 4]
cmp ecx, edi
jne 0x100012f0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret