Function at 0x100ecba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x1022a800]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 5
mov eax, ecx
mov dword [ebp - 0x28], eax
jne 0x100ed09c
push esi
mov esi, dword [0x101be07c]
test esi, esi
je 0x100ed09b
mov ecx, dword [0x1022b7cc]
test cl, 1
jne 0x100ecbf3
or ecx, 1
mov dword [0x1022b7cc], ecx
mov ecx, dword [0x1022b7c4]
mov dword [0x1022b7c8], ecx
jmp 0x100ecbf9
mov ecx, dword [0x1022b7c8]
cmp dword [ecx + esi], 0
jne 0x100ed09b
mov ecx, dword [0x1022b7d4]
test cl, 1
jne 0x100ecc25
or ecx, 1
mov dword [0x1022b7d4], ecx
mov ecx, dword [0x1022b7c0]
mov dword [0x1022b7d0], ecx
jmp 0x100ecc2b
mov ecx, dword [0x1022b7d0]
cmp dword [ecx + esi], 0
jle 0x100ed09b
cmp byte [0x10233758], 0
push edi
je 0x100ecd89
movss xmm1, dword [0x101667b8]
movss xmm0, dword [0x10233778]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [0x10233774]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [0x10233770]
mulss xmm0, xmm1
cvttss2si edi, xmm0
movss xmm0, dword [0x1023376c]
mulss xmm0, xmm1
mov dword [ebp - 0x10], edi
movd xmm1, dword [0x1023377c]
mov edi, dword [esi + 0x11c5c]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x10166720]
movss dword [ebp - 0x1c], xmm1
cmp edi, dword [eax]
jle 0x100ecd7f
movzx eax, cl
movaps xmm2, xmm1
mov ecx, dword [ebp - 0x10]
xorps xmm2, xmmword [0x10166880]
mov dword [ebp - 0x18], eax
movzx eax, dl
mov dword [ebp - 0x20], eax
movzx eax, cl
cvttss2si ecx, xmm0
mov dword [ebp - 0x10], eax
movss dword [ebp - 0x14], xmm2
movzx eax, cl
mov dword [ebp - 0x24], eax
lea eax, [edi + edi*4]
shl eax, 2
mov dword [ebp - 0xc], eax
nop word [eax + eax]
mov ecx, dword [0x1022b634]
push ecx
mov dword [esp], 0x40800000
push dword [ebp - 0x18]
mov eax, dword [ecx]
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 0x10]
mov edx, dword [eax + 4]
add ecx, 0xffffffec
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x2c], 0
push eax
mov eax, dword [esi + 0x11c50]
add eax, ecx
movss dword [ebp - 0x40], xmm1
mov ecx, dword [0x1022b634]
push eax
movss dword [ebp - 0x3c], xmm1
movss dword [ebp - 0x38], xmm1
movss dword [ebp - 0x4c], xmm2
movss dword [ebp - 0x48], xmm2
movss dword [ebp - 0x44], xmm2
call edx
mov eax, dword [ebp - 0x28]
dec edi
sub dword [ebp - 0xc], 0x14
movss xmm1, dword [ebp - 0x1c]
movss xmm2, dword [ebp - 0x14]
cmp edi, dword [eax]
jg 0x100eccf0
mov dword [esi + 0x11c5c], 0
mov ecx, dword [esi + 0x11c5c]
cmp ecx, dword [eax]
je 0x100ecd95
mov dword [eax], ecx
cmp dword [0x10233780], 0
je 0x100ed09a
xor esi, esi
lea edi, [eax + 8]
mov dword [ebp - 0xc], esi
nop word [eax + eax]
mov ecx, dword [edi]
mov eax, 0x2aaaaaab
sub ecx, dword [edi - 4]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100ed08a
mov ecx, dword [0x1022b630]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, eax
test edx, edx
je 0x100ed081
mov eax, dword [0x101be07c]
cmp edx, eax
sete byte [ebp - 5]
je 0x100ece3f
mov eax, dword [0x1022b9d8]
test al, 1
jne 0x100ece10
mov ecx, dword [0x1022b9d0]
or eax, 1
mov dword [0x1022b9d8], eax
mov dword [0x1022b9d4], ecx
jmp 0x100ece16
mov ecx, dword [0x1022b9d4]
mov edx, dword [ecx + edx]
test al, 1
jne 0x100ece31
mov ecx, dword [0x1022b9d0]
or eax, 1
mov dword [0x1022b9d8], eax
mov dword [0x1022b9d4], ecx
mov eax, dword [0x101be07c]
cmp edx, dword [ecx + eax]
je 0x100ece3f
mov al, 1
jmp 0x100ece41
xor al, al
cmp byte [ebp - 5], 0
je 0x100ece50
movups xmm2, xmmword [0x102337a8]
jmp 0x100ece64
test al, al
jne 0x100ece5d
movups xmm2, xmmword [0x10233798]
jmp 0x100ece64
movups xmm2, xmmword [0x10233788]
movss xmm1, dword [0x101667b8]
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xff
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
mulss xmm0, xmm1
mov dword [ebp - 0x1c], ecx
cvttss2si edx, xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
mulss xmm0, xmm1
mov dword [ebp - 0x14], edx
mulss xmm2, xmm1
cvttss2si eax, xmm0
mov dword [ebp - 0x18], eax
cvttss2si eax, xmm2
mov dword [ebp - 0x10], eax
mov eax, dword [0x10233784]
sub eax, 0
je 0x100ecf1f
sub eax, 1
je 0x100ecee3
sub eax, 1
jne 0x100ed081
mov edx, dword [edi]
mov ecx, dword [0x1022b618]
push eax
lea eax, [edx - 0xc]
mov esi, dword [ecx]
push eax
lea eax, [edx - 0x18]
push eax
call dword [esi + 0x1c]
mov esi, dword [ebp - 0xc]
jmp 0x100ed081
mov ecx, dword [0x1022b634]
mov eax, dword [ebp - 0x14]
mov edx, dword [edi]
push ecx
mov esi, dword [ecx]
mov dword [esp], 0x40400000
movzx eax, al
push 0
push eax
mov eax, dword [ebp - 0x18]
movzx eax, al
push eax
mov eax, dword [ebp - 0x10]
movzx eax, al
push eax
lea eax, [edx - 0xc]
push eax
lea eax, [edx - 0x18]
push eax
call dword [esi + 0x14]
mov esi, dword [ebp - 0xc]
jmp 0x100ed081
movzx ecx, cl
xorps xmm0, xmm0
movzx eax, dl
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x18]
mov edx, ecx
movzx eax, al
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi]
movups xmmword [ebp - 0xd8], xmm0
shl edx, 8
or edx, eax
mov dword [ebp - 0xa4], 0
mov eax, dword [ecx - 0x10]
mov dword [ebp - 0xc0], eax
mov eax, dword [ecx - 4]
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0xb4], eax
movq xmm0, qword [ecx - 0x18]
mov eax, dword [ebp - 0x1c]
movq qword [ebp - 0xc8], xmm0
movq xmm0, qword [ecx - 0xc]
movzx eax, al
movq qword [ebp - 0xbc], xmm0
mov ecx, dword [0x1022b66c]
mov dword [ebp - 0xa8], 0xffffffff
movd xmm0, eax
mov eax, dword [ebp - 0x10]
cvtdq2ps xmm0, xmm0
movzx eax, al
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xac], 0x1017a2e4
mov dword [ebp - 0xb0], 0xffffffff
mov dword [ebp - 0x9c], 0x40400000
movss dword [ebp - 0x88], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movzx eax, dl
lea edx, [ebp - 0xdc]
mov dword [ebp - 0x90], 0x3dcccccd
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x8c], 0x3f800000
mov dword [ebp - 0x68], 2
movss dword [ebp - 0x78], xmm0
movd xmm0, eax
mov eax, dword [ebp - 0x14]
cvtdq2ps xmm0, xmm0
movzx eax, al
mov byte [ebp - 0x6c], 1
mov dword [ebp - 0x84], 0x3f800000
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
movss dword [ebp - 0x74], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x98], 0x40400000
mov dword [ebp - 0x94], 0x40400000
mov dword [ebp - 0x64], 0x304
push edx
movss dword [ebp - 0x70], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
test eax, eax
je 0x100ed081
mov ecx, dword [0x1022b66c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
mov eax, dword [edi - 4]
cmp eax, dword [edi]
je 0x100ed08a
mov dword [edi], eax
inc esi
add edi, 0xc
mov dword [ebp - 0xc], esi
cmp esi, 0x41
jl 0x100ecdb0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f7dfb
mov esp, ebp
pop ebp
ret 4