Function at 0x1002be30
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
push esi
push edi
mov edi, dword [ebx + 0xc]
mov esi, ecx
mov dword [ebp - 0x20], esi
cmp edi, 3
jl 0x1002c220
mov ecx, dword [ebx + 0x10]
test ecx, 0xff000000
je 0x1002c220
test byte [esi + 0x24], 4
mov eax, dword [esi + 0x2c]
vmovss xmm0, dword [eax]
vmovss dword [ebp - 0x14], xmm0
vmovss xmm0, dword [eax + 4]
vmovss dword [ebp - 0x18], xmm0
je 0x1002c17a
vmovss xmm0, dword [esi + 0x8c]
lea eax, [edi + edi]
and ecx, 0xffffff
push eax
mov dword [ebp - 0x34], eax
lea eax, [edi*8 - 6]
add eax, edi
mov dword [ebp - 0x28], ecx
push eax
mov ecx, esi
vmovss dword [ebp - 0x24], xmm0
call fcn.1002af60
mov eax, dword [esi + 0x28]
movzx edx, ax
mov dword [ebp - 0x10], edx
lea ecx, [eax + 1]
movzx eax, dx
mov dword [ebp - 0x30], ecx
mov ecx, 2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x38]
mov word [eax], dx
lea edx, [edx + ecx*2]
mov eax, dword [esi + 0x38]
lea ecx, [edx - 2]
mov word [eax + 2], cx
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
mov word [eax + 4], dx
add dword [esi + 0x38], 6
mov edx, dword [ebp - 0x10]
cmp ecx, edi
jl 0x1002bed6
mov eax, dword [ebp - 8]
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x10], eax
mov ecx, dword [eax + 0x34]
cmp edi, dword [eax + 0x30]
jle 0x1002bf6f
test ecx, ecx
je 0x1002bf36
mov eax, dword [0x1006ef44]
test eax, eax
je 0x1002bf2c
dec dword [eax + 0xac]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [0x1006ef44]
test eax, eax
je 0x1002bf45
inc dword [eax + 0xac]
lea eax, [edi*8]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [ebp - 0x10]
lea edx, [edi - 1]
add esp, 4
mov dword [ebp - 8], edx
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x30], edi
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x34]
mov eax, edx
jmp 0x1002bf75
lea eax, [edi - 1]
mov dword [ebp - 8], eax
vmovss xmm4, dword [0x10055d40]
mov esi, dword [ebx + 8]
xor edx, edx
mov dword [ebp - 0x10], ecx
shl eax, 3
vxorps xmm5, xmm5, xmm5
nop dword [eax]
vmovss xmm0, dword [esi + edx*8]
vsubss xmm2, xmm0, dword [eax + esi]
lea edi, [edx*8]
mov dword [ebp - 0x1c], edi
lea edi, [esi + 4]
vmovss xmm0, dword [edi + edx*8]
vsubss xmm3, xmm0, dword [eax + esi + 4]
vmulss xmm1, xmm3, xmm3
vmulss xmm0, xmm2, xmm2
vaddss xmm0, xmm1, xmm0
vcomiss xmm0, xmm5
mov dword [ebp - 0xc], edi
mov edi, dword [ebx + 0xc]
vmovss dword [ebp - 4], xmm0
jbe 0x1002bfe0
vmovss xmm0, dword [ebp - 4]
vrsqrtss xmm0, xmm0, xmm0
vmulss xmm2, xmm0, xmm2
vmulss xmm3, xmm0, xmm3
vxorps xmm0, xmm2, xmm4
inc edx
vmovss dword [eax + ecx], xmm3
vmovss dword [eax + ecx + 4], xmm0
mov eax, dword [ebp - 0x1c]
cmp edx, edi
jl 0x1002bf90
vmovss xmm4, dword [0x100558e8]
vmovss xmm6, dword [0x10055920]
vmovss xmm7, dword [0x10055aa4]
vmovss xmm5, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, ecx
sub eax, esi
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [edi - 1]
nop dword [eax + eax]
mov edi, dword [ebp - 4]
vmovss xmm0, dword [ecx + edi*8]
vaddss xmm0, xmm0, dword [ecx + eax*8]
mov edi, dword [ebp - 0x1c]
vmulss xmm2, xmm0, xmm4
vmovss xmm0, dword [edi + edx]
vaddss xmm0, xmm0, dword [ecx + eax*8 + 4]
vmulss xmm3, xmm0, xmm4
vmulss xmm1, xmm3, xmm3
vmulss xmm0, xmm2, xmm2
vaddss xmm0, xmm1, xmm0
vcomiss xmm0, dword [0x100558a0]
jbe 0x1002c079
vdivss xmm0, xmm6, xmm0
vminss xmm0, xmm7, xmm0
vmulss xmm2, xmm0, xmm2
vmulss xmm3, xmm0, xmm3
mov eax, dword [esi + 0x34]
vmulss xmm0, xmm4, dword [ebp - 0x24]
mov ecx, dword [ebx + 0x10]
vmulss xmm1, xmm0, xmm2
vmulss xmm2, xmm0, xmm3
vmovss xmm0, dword [edx - 4]
vmovss xmm3, dword [ebp - 0x14]
vsubss xmm0, xmm0, xmm1
vmovss dword [eax], xmm0
vmovss xmm0, dword [edx]
mov eax, dword [esi + 0x34]
vsubss xmm0, xmm0, xmm2
mov edi, dword [ebp - 0x30]
vmovss dword [eax + 4], xmm0
mov eax, dword [esi + 0x34]
vmovss dword [eax + 8], xmm3
vmovss dword [eax + 0xc], xmm5
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], ecx
vaddss xmm0, xmm1, dword [edx - 4]
mov eax, dword [esi + 0x34]
mov ecx, dword [ebp - 0x28]
vmovss dword [eax + 0x14], xmm0
vaddss xmm0, xmm2, dword [edx]
mov eax, dword [esi + 0x34]
vmovss dword [eax + 0x18], xmm0
mov eax, dword [esi + 0x34]
vmovss dword [eax + 0x1c], xmm3
vmovss dword [eax + 0x20], xmm5
mov eax, dword [esi + 0x34]
mov dword [eax + 0x24], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
add dword [esi + 0x34], 0x28
lea edx, [ecx + eax*2]
mov eax, dword [esi + 0x38]
mov word [eax], dx
mov eax, dword [ebp - 8]
lea ecx, [ecx + eax*2]
mov eax, dword [esi + 0x38]
mov word [eax + 2], cx
mov eax, dword [ebp - 8]
movzx ecx, di
lea ecx, [ecx + eax*2]
mov eax, dword [esi + 0x38]
mov word [eax + 4], cx
mov eax, dword [esi + 0x38]
mov word [eax + 6], cx
mov eax, dword [ebp - 4]
movzx ecx, di
lea ecx, [ecx + eax*2]
mov eax, dword [esi + 0x38]
mov word [eax + 8], cx
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov word [eax + 0xa], dx
mov eax, ecx
mov edx, dword [ebp - 0xc]
inc ecx
add dword [esi + 0x38], 0xc
add edx, 8
cmp ecx, dword [ebx + 0xc]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
jl 0x1002c030
mov eax, dword [ebp - 0x34]
movzx eax, ax
add dword [esi + 0x28], eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
lea eax, [edi - 2]
mov ecx, esi
push edi
lea eax, [eax + eax*2]
push eax
call fcn.1002af60
vmovss xmm0, dword [ebp - 0x14]
vmovss xmm1, dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
mov edi, dword [ebx + 8]
nop dword [eax]
mov eax, dword [esi + 0x34]
lea edi, [edi + 8]
mov ecx, dword [edi - 8]
mov edx, dword [edi - 4]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x10]
mov dword [eax + 4], edx
mov eax, dword [esi + 0x34]
vmovss dword [eax + 8], xmm0
vmovss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], ecx
add dword [esi + 0x34], 0x14
sub dword [ebp - 0x10], 1
jne 0x1002c1a0
mov edi, dword [ebx + 0xc]
mov edx, 2
mov dword [ebp - 0x18], edx
nop dword [eax]
mov ecx, dword [esi + 0x38]
mov ax, word [esi + 0x28]
movzx edx, dx
mov word [ecx], ax
movzx ecx, word [esi + 0x28]
mov eax, dword [esi + 0x38]
dec cx
add cx, dx
mov word [eax + 2], cx
movzx ecx, word [esi + 0x28]
mov eax, dword [esi + 0x38]
add cx, dx
mov edx, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x18], edx
mov word [eax + 4], cx
add dword [esi + 0x38], 6
cmp edx, edi
jl 0x1002c1e0
movzx eax, di
add dword [esi + 0x28], eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc