Function at 0x10023840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10167368]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x24], edi
cmp ecx, 3
jl 0x10023e3d
test byte [edi + 0x24], 2
mov eax, dword [edi + 0x28]
movss xmm0, dword [eax]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [eax + 4]
movss dword [ebp - 0x20], xmm0
je 0x10023c9b
lea eax, [ecx + ecx]
push eax
mov dword [ebp - 0x38], eax
lea eax, [ecx*8 - 6]
add eax, ecx
mov ecx, edi
push eax
call fcn.10022840
mov eax, dword [edi + 0x34]
mov esi, 2
mov dword [ebp - 0x10], eax
lea ecx, [eax + 1]
mov dword [ebp - 0x34], ecx
nop
movzx ecx, ax
mov eax, dword [edi + 0x3c]
lea edx, [ecx + esi*2]
inc esi
mov word [eax], cx
lea ecx, [edx - 2]
mov eax, dword [edi + 0x3c]
mov word [eax + 2], cx
mov eax, dword [edi + 0x3c]
mov word [eax + 4], dx
add dword [edi + 0x3c], 6
mov eax, dword [ebp - 0x10]
cmp esi, dword [ebx + 0xc]
jl 0x100238c0
mov esi, dword [ebx + 0xc]
lea eax, [esi*8]
call fcn.1013a190
mov edx, dword [ebx + 8]
lea eax, [esi - 1]
movss xmm5, dword [0x10162350]
xorps xmm4, xmm4
movss xmm6, dword [0x10161a80]
mov dword [ebp - 0x14], eax
shl eax, 3
xor ecx, ecx
nop word [eax + eax]
movss xmm2, dword [ecx + edx]
lea edi, [edx + 4]
movss xmm3, dword [edx + ecx + 4]
subss xmm2, dword [eax + edx]
subss xmm3, dword [eax + edx + 4]
mov dword [ebp - 0xc], edi
movaps xmm1, xmm2
movaps xmm0, xmm3
mulss xmm1, xmm2
mulss xmm0, xmm3
addss xmm0, xmm1
comiss xmm0, xmm4
jbe 0x1002396a
call fcn.1001b110
movaps xmm1, xmm6
divss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm3, xmm1
mulss xmm2, xmm0
mov edi, esp
xorps xmm2, xmm5
movss dword [eax + edi], xmm3
movss dword [eax + edi + 4], xmm2
mov eax, ecx
add ecx, 8
sub esi, 1
jne 0x10023920
movss xmm7, dword [0x10161a18]
mov ecx, edi
mov edi, dword [ebp - 0x24]
mov eax, ecx
mov esi, dword [ebp - 0x14]
sub eax, edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], eax
movss xmm2, dword [ecx + eax*8]
movaps xmm5, xmm6
addss xmm2, dword [ecx + esi*8]
mov eax, dword [ebp - 0x28]
movss xmm3, dword [eax + edx]
movaps xmm0, xmm2
addss xmm3, dword [ecx + esi*8 + 4]
mulss xmm0, xmm2
mov eax, dword [edi + 0x38]
mov esi, dword [ebx + 0x10]
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm1, xmm0
movss xmm0, dword [0x101619d0]
mulss xmm1, xmm0
maxss xmm1, xmm7
divss xmm5, xmm1
movaps xmm1, xmm5
mulss xmm5, xmm3
mulss xmm1, xmm2
mulss xmm5, xmm0
mulss xmm1, xmm0
movss xmm0, dword [edx - 4]
movss dword [ebp - 0x30], xmm5
subss xmm0, xmm1
movss dword [ebp - 0x2c], xmm1
movss dword [eax], xmm0
movss xmm0, dword [edx]
mov eax, dword [edi + 0x38]
subss xmm0, xmm5
movss dword [eax + 4], xmm0
mov eax, dword [edi + 0x38]
movss xmm0, dword [ebp - 0x1c]
movss dword [eax + 8], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [eax + 0xc], xmm0
mov eax, dword [edi + 0x38]
movss xmm0, dword [esi + 0x10]
subss xmm0, dword [esi]
movss xmm3, dword [esi + 0x14]
movss xmm2, dword [eax]
subss xmm2, dword [esi + 0x20]
movss xmm5, dword [esi + 0x18]
movss xmm7, dword [esi + 0x1c]
subss xmm3, dword [esi + 4]
subss xmm5, dword [esi + 8]
divss xmm2, dword [esi + 0x28]
subss xmm7, dword [esi + 0xc]
minss xmm2, xmm6
mulss xmm0, xmm2
mulss xmm3, xmm2
addss xmm0, dword [esi]
mulss xmm5, xmm2
addss xmm3, dword [esi + 4]
mulss xmm7, xmm2
comiss xmm4, xmm0
addss xmm5, dword [esi + 8]
addss xmm7, dword [esi + 0xc]
jbe 0x10023aa4
movaps xmm0, xmm4
jmp 0x10023aa8
minss xmm0, xmm6
movss xmm2, dword [0x10161cc4]
movss xmm1, dword [0x10161a18]
mulss xmm0, xmm2
addss xmm0, xmm1
cvttss2si ecx, xmm0
shl ecx, 0x10
comiss xmm4, xmm3
jbe 0x10023ad1
movaps xmm3, xmm4
jmp 0x10023ad5
minss xmm3, xmm6
mulss xmm3, xmm2
addss xmm3, xmm1
cvttss2si eax, xmm3
shl eax, 8
or ecx, eax
comiss xmm4, xmm5
jbe 0x10023af0
movaps xmm5, xmm4
jmp 0x10023af4
minss xmm5, xmm6
mulss xmm5, xmm2
addss xmm5, xmm1
cvttss2si eax, xmm5
or ecx, eax
comiss xmm4, xmm7
jbe 0x10023b0c
movaps xmm7, xmm4
jmp 0x10023b10
minss xmm7, xmm6
movss xmm0, dword [ebp - 0x2c]
mulss xmm7, xmm2
addss xmm7, xmm1
cvttss2si eax, xmm7
shl eax, 0x18
or eax, ecx
mov ecx, dword [edi + 0x38]
mov dword [ecx + 0x10], eax
addss xmm0, dword [edx - 4]
mov eax, dword [edi + 0x38]
movss dword [eax + 0x14], xmm0
movss xmm0, dword [ebp - 0x30]
addss xmm0, dword [edx]
mov eax, dword [edi + 0x38]
movss dword [eax + 0x18], xmm0
mov eax, dword [edi + 0x38]
movss xmm0, dword [ebp - 0x1c]
movss dword [eax + 0x1c], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [eax + 0x20], xmm0
mov edx, dword [edi + 0x38]
movss xmm0, dword [esi + 0x10]
subss xmm0, dword [esi]
movss xmm3, dword [esi + 0x14]
movss xmm2, dword [edx + 0x14]
subss xmm2, dword [esi + 0x20]
movss xmm5, dword [esi + 0x18]
subss xmm3, dword [esi + 4]
subss xmm5, dword [esi + 8]
divss xmm2, dword [esi + 0x28]
minss xmm2, xmm6
mulss xmm0, xmm2
mulss xmm3, xmm2
addss xmm0, dword [esi]
mulss xmm5, xmm2
addss xmm3, dword [esi + 4]
comiss xmm4, xmm0
addss xmm5, dword [esi + 8]
jbe 0x10023bb8
movaps xmm0, xmm4
jmp 0x10023bbc
minss xmm0, xmm6
movss xmm1, dword [0x10161cc4]
movss xmm7, dword [0x10161a18]
mulss xmm0, xmm1
addss xmm0, xmm7
cvttss2si ecx, xmm0
shl ecx, 0x10
comiss xmm4, xmm3
jbe 0x10023be5
movaps xmm3, xmm4
jmp 0x10023be9
minss xmm3, xmm6
mulss xmm3, xmm1
addss xmm3, xmm7
cvttss2si eax, xmm3
shl eax, 8
or ecx, eax
comiss xmm4, xmm5
jbe 0x10023c04
movaps xmm5, xmm4
jmp 0x10023c08
minss xmm5, xmm6
mulss xmm5, xmm1
addss xmm5, xmm7
cvttss2si eax, xmm5
or eax, ecx
and eax, 0xffffff
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x10]
add dword [edi + 0x38], 0x28
movzx ecx, ax
mov eax, dword [ebp - 0x18]
lea esi, [ecx + eax*2]
mov eax, dword [edi + 0x3c]
mov word [eax], si
mov eax, dword [ebp - 0x14]
lea ecx, [ecx + eax*2]
mov eax, dword [edi + 0x3c]
mov word [eax + 2], cx
mov eax, dword [ebp - 0x34]
movzx edx, ax
mov eax, dword [ebp - 0x14]
lea ecx, [edx + eax*2]
mov eax, dword [edi + 0x3c]
mov word [eax + 4], cx
mov eax, dword [edi + 0x3c]
mov word [eax + 6], cx
mov eax, dword [ebp - 0x18]
lea ecx, [edx + eax*2]
mov eax, dword [edi + 0x3c]
mov edx, dword [ebp - 0xc]
add edx, 8
mov dword [ebp - 0xc], edx
mov word [eax + 8], cx
mov ecx, esp
mov eax, dword [edi + 0x3c]
mov word [eax + 0xa], si
mov eax, dword [ebp - 0x18]
mov esi, eax
add dword [edi + 0x3c], 0xc
inc eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
cmp eax, dword [ebx + 0xc]
jl 0x100239a3
mov eax, dword [ebp - 0x38]
jmp 0x10023e37
push ecx
add ecx, 0xfffffffe
lea eax, [ecx + ecx*2]
mov ecx, edi
push eax
call fcn.10022840
mov eax, dword [edi + 0x38]
xorps xmm6, xmm6
mov edx, dword [ebx + 8]
movss xmm7, dword [0x10161a80]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
movss xmm0, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, esi
mov esi, dword [ebx + 0x10]
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x38]
movss dword [eax + 8], xmm0
movss xmm0, dword [ebp - 0x20]
movss dword [eax + 0xc], xmm0
movss xmm2, dword [edx]
subss xmm2, dword [esi + 0x20]
movss xmm0, dword [esi + 0x10]
subss xmm0, dword [esi]
movss xmm3, dword [esi + 0x14]
movss xmm4, dword [esi + 0x18]
divss xmm2, dword [esi + 0x28]
movss xmm5, dword [esi + 0x1c]
subss xmm3, dword [esi + 4]
subss xmm4, dword [esi + 8]
subss xmm5, dword [esi + 0xc]
minss xmm2, xmm7
mulss xmm0, xmm2
mulss xmm3, xmm2
addss xmm0, dword [esi]
mulss xmm4, xmm2
addss xmm3, dword [esi + 4]
mulss xmm5, xmm2
comiss xmm6, xmm0
addss xmm4, dword [esi + 8]
addss xmm5, dword [esi + 0xc]
jbe 0x10023d56
movaps xmm0, xmm6
jmp 0x10023d5a
minss xmm0, xmm7
movss xmm2, dword [0x10161cc4]
movss xmm1, dword [0x10161a18]
mulss xmm0, xmm2
addss xmm0, xmm1
cvttss2si edx, xmm0
shl edx, 0x10
comiss xmm6, xmm3
jbe 0x10023d83
movaps xmm3, xmm6
jmp 0x10023d87
minss xmm3, xmm7
mulss xmm3, xmm2
addss xmm3, xmm1
cvttss2si eax, xmm3
shl eax, 8
or edx, eax
comiss xmm6, xmm4
jbe 0x10023da2
movaps xmm4, xmm6
jmp 0x10023da6
minss xmm4, xmm7
mulss xmm4, xmm2
addss xmm4, xmm1
cvttss2si eax, xmm4
or edx, eax
comiss xmm6, xmm5
jbe 0x10023dbe
movaps xmm5, xmm6
jmp 0x10023dc2
minss xmm5, xmm7
mov eax, dword [edi + 0x38]
mulss xmm5, xmm2
addss xmm5, xmm1
cvttss2si ecx, xmm5
shl ecx, 0x18
or ecx, edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x10], ecx
add edx, 8
add dword [edi + 0x38], 0x14
sub dword [ebp - 0xc], 1
mov eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edx
jne 0x10023cc7
mov esi, 2
nop dword [eax + eax]
mov ecx, dword [edi + 0x3c]
mov ax, word [edi + 0x34]
movzx edx, si
inc esi
mov word [ecx], ax
movzx ecx, word [edi + 0x34]
mov eax, dword [edi + 0x3c]
dec cx
add cx, dx
mov word [eax + 2], cx
mov eax, dword [edi + 0x3c]
movzx ecx, word [edi + 0x34]
add cx, dx
mov word [eax + 4], cx
add dword [edi + 0x3c], 6
mov eax, dword [ebx + 0xc]
cmp esi, eax
jl 0x10023e00
movzx eax, ax
add dword [edi + 0x34], eax
lea esp, [ebp - 0x40]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e1968
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc