Function at 0x10255840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push ebx
push ebp
add eax, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x30], eax
mov ebx, ecx
mov dword [esp + 8], ebx
push esi
push edi
cmp edx, eax
jae 0x10255b5f
mov eax, dword [edx]
lea ecx, [esp + 0x20]
mov edi, dword [edx + 0xc]
lea ebp, [edx + 0x10]
mov esi, dword [edx + 8]
add eax, edx
push 0
push 0
push ebx
mov dword [esp + 0x28], eax
call fcn.10194ac0
mov eax, dword [ebx]
lea ecx, [esp + 0x20]
push 0
xorps xmm2, xmm2
mov eax, dword [eax + 0x28]
mov dword [ebx + 4], eax
call fcn.10153460
movd xmm0, esi
neg edi
mov esi, dword [esp + 0x10]
cvtdq2ps xmm0, xmm0
lea ecx, [esi + 0xa]
mulss xmm0, dword [0x10300008]
movss dword [eax], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x10300008]
movss dword [eax + 4], xmm0
mov al, 2
mov byte [esi + 9], 0
xchg byte [ecx], al
cmp ebp, dword [esp + 0x1c]
jae 0x10255af0
nop word [eax + eax]
movzx eax, word [ebp]
mov ecx, eax
cmp eax, 1
jne 0x102559aa
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x40], eax
cmp cx, word [ebp + 2]
jae 0x10255adb
movzx eax, ax
mov ecx, esi
mov ebx, dword [ebp + eax*8 + 8]
mov edi, dword [ebp + eax*8 + 4]
call fcn.10155110
push 0
push 0
push esi
lea ecx, [esp + 0x30]
call fcn.10194ac0
mov esi, dword [esp + 0x24]
mov ecx, esi
push 9
or byte [esi + 0x1b], 1
call fcn.101949c0
mov ecx, dword [esi + 0x24]
neg ebx
mov eax, dword [esi + 0x20]
not ecx
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mov byte [ecx + eax], 1
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x1c]
inc dword [esi + 0x24]
mulss xmm0, dword [0x10300008]
add dword [esi + 0x2c], 0xfffffff7
lea eax, [edx + 1]
mov dword [esi + 0x28], eax
mov al, 2
mov byte [esi + 0x18], 1
mov byte [esi + 0x1a], 0
mov esi, dword [esp + 0x10]
movss dword [ecx + edx*8], xmm0
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x10300008]
movss dword [ecx + edx*8 + 4], xmm0
lea ecx, [esi + 0xa]
mov byte [esi + 9], 0
xchg byte [ecx], al
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
cmp ax, word [ebp + 2]
jb 0x10255901
movzx ecx, word [ebp]
cmp cx, 2
jne 0x10255adb
movzx ecx, word [ebp + 2]
mov dword [esp + 0x18], 0
lea eax, [ecx - 1]
test eax, eax
jle 0x10255adb
mov esi, ecx
xor ebx, ebx
jmp 0x102559d5
mov esi, dword [esp + 0x40]
mov edx, dword [ebp + ebx*8 + 4]
mov ecx, dword [ebp + ebx*8 + 8]
mov eax, dword [ebp + ebx*8 + 0xc]
mov edi, dword [ebp + ebx*8 + 0x10]
movzx esi, si
sub esi, 2
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], eax
cmp ebx, esi
jge 0x10255a07
add eax, edx
add edi, ecx
sar eax, 1
mov dword [esp + 0x40], eax
sar edi, 1
mov ebx, dword [esp + 0x10]
mov ecx, ebx
call fcn.10155110
push 0
push 0
push ebx
lea ecx, [esp + 0x34]
call fcn.10194ac0
mov esi, dword [esp + 0x28]
mov ecx, esi
push 0x11
or byte [esi + 0x1b], 2
call fcn.101949c0
mov ecx, dword [esi + 0x24]
neg edi
mov eax, dword [esi + 0x20]
not ecx
movd xmm0, dword [esp + 0x2c]
movss xmm1, dword [0x10300008]
cvtdq2ps xmm0, xmm0
mov byte [ecx + eax], 2
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x1c]
inc dword [esi + 0x24]
add dword [esi + 0x2c], 0xffffffef
mulss xmm0, xmm1
lea eax, [edx + 2]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x30]
mov byte [esi + 0x18], 1
neg eax
mov byte [esi + 0x1a], 0
mov esi, ebx
movss dword [ecx + edx*8], xmm0
movd xmm0, eax
mov al, 2
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ecx + edx*8 + 4], xmm0
movd xmm0, dword [esp + 0x40]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ecx + edx*8 + 8], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ecx + edx*8 + 0xc], xmm0
lea ecx, [esi + 0xa]
mov byte [esi + 9], 0
xchg byte [ecx], al
mov ecx, dword [esp + 0x18]
movzx eax, word [ebp + 2]
inc ecx
movzx ebx, cx
mov dword [esp + 0x18], ecx
mov ecx, eax
dec eax
mov dword [esp + 0x40], ecx
cmp ebx, eax
jl 0x102559d1
movzx eax, word [ebp + 2]
lea ebp, [ebp + eax*8]
add ebp, 4
cmp ebp, dword [esp + 0x1c]
jb 0x102558e0
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
add edx, dword [edx]
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x14], edx
test ecx, ecx
jle 0x10255b46
mov eax, dword [eax + 0x20]
sub eax, ecx
cmp byte [eax], 4
ja 0x10255b46
push 0
push 0
push esi
lea ecx, [esp + 0x40]
call fcn.10194ac0
mov esi, dword [esp + 0x34]
mov ecx, esi
push 1
call fcn.101949c0
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
not ecx
mov edx, dword [esp + 0x14]
mov byte [ecx + eax], 5
inc dword [esi + 0x24]
dec dword [esi + 0x2c]
mov byte [esi + 0x18], 1
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 4]
mov ebx, dword [esp + 0x10]
not ecx
sar ecx, 0x1f
xor dword [esi + 4], ecx
cmp edx, dword [esp + 0x38]
jb 0x10255863
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret