Function at 0x100228f0
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 [0x1015a368]
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 0x10022eed
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 0x10022d4b
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.100218f0
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 0x10022970
mov esi, dword [ebx + 0xc]
lea eax, [esi*8]
call fcn.101301c0
mov edx, dword [ebx + 8]
lea eax, [esi - 1]
movss xmm5, dword [0x10156550]
xorps xmm4, xmm4
movss xmm6, dword [0x10155c78]
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 0x10022a1a
call fcn.1001a1b0
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 0x100229d0
movss xmm7, dword [0x10155c1c]
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 [0x10155be0]
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 0x10022b54
movaps xmm0, xmm4
jmp 0x10022b58
minss xmm0, xmm6
movss xmm2, dword [0x10155edc]
movss xmm1, dword [0x10155c1c]
mulss xmm0, xmm2
addss xmm0, xmm1
cvttss2si ecx, xmm0
shl ecx, 0x10
comiss xmm4, xmm3
jbe 0x10022b81
movaps xmm3, xmm4
jmp 0x10022b85
minss xmm3, xmm6
mulss xmm3, xmm2
addss xmm3, xmm1
cvttss2si eax, xmm3
shl eax, 8
or ecx, eax
comiss xmm4, xmm5
jbe 0x10022ba0
movaps xmm5, xmm4
jmp 0x10022ba4
minss xmm5, xmm6
mulss xmm5, xmm2
addss xmm5, xmm1
cvttss2si eax, xmm5
or ecx, eax
comiss xmm4, xmm7
jbe 0x10022bbc
movaps xmm7, xmm4
jmp 0x10022bc0
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 0x10022c68
movaps xmm0, xmm4
jmp 0x10022c6c
minss xmm0, xmm6
movss xmm1, dword [0x10155edc]
movss xmm7, dword [0x10155c1c]
mulss xmm0, xmm1
addss xmm0, xmm7
cvttss2si ecx, xmm0
shl ecx, 0x10
comiss xmm4, xmm3
jbe 0x10022c95
movaps xmm3, xmm4
jmp 0x10022c99
minss xmm3, xmm6
mulss xmm3, xmm1
addss xmm3, xmm7
cvttss2si eax, xmm3
shl eax, 8
or ecx, eax
comiss xmm4, xmm5
jbe 0x10022cb4
movaps xmm5, xmm4
jmp 0x10022cb8
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 0x10022a53
mov eax, dword [ebp - 0x38]
jmp 0x10022ee7
push ecx
add ecx, 0xfffffffe
lea eax, [ecx + ecx*2]
mov ecx, edi
push eax
call fcn.100218f0
mov eax, dword [edi + 0x38]
xorps xmm6, xmm6
mov edx, dword [ebx + 8]
movss xmm7, dword [0x10155c78]
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 0x10022e06
movaps xmm0, xmm6
jmp 0x10022e0a
minss xmm0, xmm7
movss xmm2, dword [0x10155edc]
movss xmm1, dword [0x10155c1c]
mulss xmm0, xmm2
addss xmm0, xmm1
cvttss2si edx, xmm0
shl edx, 0x10
comiss xmm6, xmm3
jbe 0x10022e33
movaps xmm3, xmm6
jmp 0x10022e37
minss xmm3, xmm7
mulss xmm3, xmm2
addss xmm3, xmm1
cvttss2si eax, xmm3
shl eax, 8
or edx, eax
comiss xmm6, xmm4
jbe 0x10022e52
movaps xmm4, xmm6
jmp 0x10022e56
minss xmm4, xmm7
mulss xmm4, xmm2
addss xmm4, xmm1
cvttss2si eax, xmm4
or edx, eax
comiss xmm6, xmm5
jbe 0x10022e6e
movaps xmm5, xmm6
jmp 0x10022e72
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 0x10022d77
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 0x10022eb0
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.100d7a38
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc