Function at 0x10064ca0
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 - 0x1c], esi
cmp edi, 3
jl 0x10065040
mov ecx, dword [ebx + 0x10]
test ecx, 0xff000000
je 0x10065040
test byte [esi + 0x24], 4
mov eax, dword [esi + 0x2c]
vmovss xmm0, dword [eax]
vmovss dword [ebp - 0x10], xmm0
vmovss xmm0, dword [eax + 4]
vmovss dword [ebp - 0x14], xmm0
je 0x10064f9a
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 - 0x24], ecx
push eax
mov ecx, esi
vmovss dword [ebp - 0x20], xmm0
call fcn.10063e00
mov eax, dword [esi + 0x28]
movzx edx, ax
mov dword [ebp - 8], edx
lea ecx, [eax + 1]
movzx eax, dx
mov dword [ebp - 0x2c], ecx
mov ecx, 2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 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 - 8]
cmp ecx, edi
jl 0x10064d46
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x2c]
movzx eax, ax
add ecx, 0x2c
push edi
mov dword [ebp - 0x28], eax
call fcn.1006c190
mov eax, dword [esi + 0x2c]
xor edx, edx
vmovss xmm4, dword [0x10279910]
mov esi, dword [ebx + 8]
vxorps xmm5, xmm5, xmm5
mov ecx, dword [eax + 0x34]
lea eax, [edi - 1]
mov dword [ebp - 8], eax
mov dword [ebp - 0x30], ecx
shl eax, 3
nop word [eax + eax]
vmovss xmm0, dword [esi + edx*8]
vsubss xmm2, xmm0, dword [eax + esi]
lea edi, [edx*8]
mov dword [ebp - 0x18], 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 0x10064e00
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 - 0x18]
cmp edx, edi
jl 0x10064db0
vmovss xmm4, dword [0x102792ac]
vmovss xmm6, dword [0x10279330]
vmovss xmm7, dword [0x1027951c]
vmovss xmm5, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, ecx
sub eax, esi
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 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 - 0x18]
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 [0x1027919c]
jbe 0x10064e99
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 - 0x20]
mov ecx, dword [ebx + 0x10]
vmulss xmm1, xmm0, xmm2
vmulss xmm2, xmm0, xmm3
vmovss xmm0, dword [edx - 4]
vmovss xmm3, dword [ebp - 0x10]
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 - 0x2c]
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 - 0x24]
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 - 0x28]
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 - 0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
jl 0x10064e50
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.10063e00
vmovss xmm0, dword [ebp - 0x10]
vmovss xmm1, dword [ebp - 0x14]
mov dword [ebp - 0xc], 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 - 0xc], 1
jne 0x10064fc0
mov edi, dword [ebx + 0xc]
mov edx, 2
mov dword [ebp - 0x14], 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 - 0x14]
inc edx
mov dword [ebp - 0x14], edx
mov word [eax + 4], cx
add dword [esi + 0x38], 6
cmp edx, edi
jl 0x10065000
movzx eax, di
add dword [esi + 0x28], eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc