Function at 0x660f80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xe4
mov edi, edx
mov esi, ecx
lea ebx, [ebp - 0x80]
mov byte [ebp - 0xd], 0
push 1
push ebx
call fcn.004e5780
add esp, 8
mov eax, dword [ebp - 0x80]
cmp eax, 2
jne 0x6610ab
lea ecx, [ebp - 0xf0]
mov edx, edi
push dword [ebp - 0x7c]
call fcn.0065fad0
add esp, 4
mov eax, dword [ebp - 0xf0]
cmp eax, 2
jne 0x6610eb
mov edx, dword [edi]
lea eax, [ebp - 0xd]
lea ecx, [ebp - 0x48]
push 1
push eax
call fcn.006628a0
add esp, 8
mov eax, dword [ebp - 0x48]
cmp eax, 2
jne 0x661139
movzx eax, byte [ebp - 0xd]
lea ecx, [ebp - 0xb4]
push eax
push ecx
call fcn.004e6b30
add esp, 8
mov eax, dword [ebp - 0xb4]
cmp eax, 2
jne 0x6611f1
movzx eax, byte [ebp - 0xae]
movzx ecx, word [ebp - 0xb0]
mov byte [ebp - 0xd], 0
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x4c], ecx
push 1
push ebx
call fcn.004e5780
add esp, 8
mov eax, dword [ebp - 0x80]
cmp eax, 2
jne 0x661206
lea ecx, [ebp - 0xf0]
mov edx, edi
push dword [ebp - 0x7c]
call fcn.0065fad0
add esp, 4
mov eax, dword [ebp - 0xf0]
cmp eax, 2
jne 0x661336
mov edx, dword [edi]
lea ecx, [ebp - 0x48]
push 1
lea eax, [ebp - 0xd]
push eax
call fcn.006628a0
add esp, 8
mov eax, dword [ebp - 0x48]
cmp eax, 2
jne 0x661384
movzx edx, byte [ebp - 0xd]
test dl, dl
js 0x661249
mov eax, dword [ebp - 0x4c]
mov dword [esi + 4], edx
mov word [esi + 8], ax
shr eax, 0x10
mov byte [esi + 0xa], al
mov dword [esi], 2
jmp 0x6611e6
movsd xmm2, qword [ebp - 0x70]
movsd xmm1, qword [ebp - 0x68]
movsd xmm0, qword [ebp - 0x78]
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x7c]
movsd qword [ebp - 0x38], xmm2
movsd qword [ebp - 0x30], xmm1
movsd xmm2, qword [ebp - 0x60]
movsd xmm1, qword [ebp - 0x58]
movsd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x18], edx
movsd qword [ebp - 0x28], xmm2
movsd qword [ebp - 0x20], xmm1
mov dword [ebp - 0x44], ecx
jmp 0x661139
movsd xmm1, qword [ebp - 0xcc]
movsd xmm2, qword [ebp - 0xd4]
movsd xmm0, qword [ebp - 0xc4]
movsd qword [ebp - 0x24], xmm1
movsd xmm1, qword [ebp - 0xdc]
movsd qword [ebp - 0x2c], xmm2
movsd xmm2, qword [ebp - 0xec]
movsd qword [ebp - 0x1c], xmm0
movsd qword [ebp - 0x34], xmm1
movsd xmm1, qword [ebp - 0xe4]
movsd qword [ebp - 0x44], xmm2
movsd qword [ebp - 0x3c], xmm1
movsd xmm2, qword [ebp - 0x34]
movsd xmm1, qword [ebp - 0x2c]
mov ecx, dword [ebp - 0x44]
movsd xmm0, qword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
movsd qword [ebp - 0xa0], xmm2
movsd qword [ebp - 0x98], xmm1
movsd xmm2, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
movsd qword [ebp - 0xa8], xmm0
movsd qword [ebp - 0x90], xmm2
movsd qword [ebp - 0x88], xmm1
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], edx
movsd xmm0, qword [ebp - 0x88]
movsd xmm1, qword [ebp - 0x8d]
movsd xmm2, qword [ebp - 0x95]
movsd qword [esi + 0x2c], xmm0
movsd qword [esi + 0x27], xmm1
movsd xmm1, qword [ebp - 0x9d]
movsd qword [esi + 0x1f], xmm2
movsd xmm2, qword [ebp - 0xad]
movsd qword [esi + 0x17], xmm1
movsd xmm1, qword [ebp - 0xa5]
movsd qword [esi + 7], xmm2
movsd qword [esi + 0xf], xmm1
mov dword [esi], eax
mov word [esi + 4], cx
shr ecx, 0x10
mov byte [esi + 6], cl
add esp, 0xe4
pop esi
pop edi
pop ebx
pop ebp
ret
movzx edx, byte [ebp - 0xae]
movzx ecx, word [ebp - 0xb0]
shl edx, 0x10
or ecx, edx
jmp 0x66118c
movsd xmm2, qword [ebp - 0x70]
movsd xmm1, qword [ebp - 0x68]
movsd xmm0, qword [ebp - 0x78]
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x7c]
movsd qword [ebp - 0x38], xmm2
movsd qword [ebp - 0x30], xmm1
movsd xmm2, qword [ebp - 0x60]
movsd xmm1, qword [ebp - 0x58]
movsd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x18], edx
movsd qword [ebp - 0x28], xmm2
movsd qword [ebp - 0x20], xmm1
mov dword [ebp - 0x44], ecx
jmp 0x661384
cmp edx, 0x80
jne 0x66125d
mov ecx, 5
xor eax, eax
jmp 0x6613d9
cmp dl, 0x84
ja 0x66148e
mov dword [ebp - 0xb8], edx
xor edx, 0x80
je 0x66146a
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0x14], 0
mov byte [ebp - 0xd], 0
push 1
push ebx
call fcn.004e5780
add esp, 8
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
cmp eax, 2
jne 0x661497
mov eax, edx
lea ecx, [ebp - 0xf0]
mov edx, edi
push eax
call fcn.0065fad0
add esp, 4
mov eax, dword [ebp - 0xf0]
cmp eax, 2
jne 0x661336
mov edx, dword [edi]
lea ecx, [ebp - 0x48]
push 1
lea eax, [ebp - 0xd]
push eax
call fcn.006628a0
add esp, 8
mov eax, dword [ebp - 0x48]
cmp eax, 2
jne 0x661384
mov edx, dword [ebp - 0x14]
movzx eax, byte [ebp - 0xd]
shl edx, 8
or eax, edx
dec dword [ebp - 0xbc]
mov dword [ebp - 0x14], eax
jne 0x661285
mov edi, dword [ebp - 0x14]
mov ecx, 0xc
cmp edi, 0x10000000
jae 0x661256
and edi, 0xffffff80
mov al, 1
mov cl, 0x81
cmp edi, 0x80
je 0x66132e
lea edi, [edx - 0x100]
mov cl, 0x82
cmp edi, 0xff00
jae 0x6614d7
mov edx, dword [ebp - 0x14]
jmp 0x66147c
movsd xmm0, qword [ebp - 0xc4]
movsd xmm1, qword [ebp - 0xcc]
movsd xmm2, qword [ebp - 0xd4]
movsd qword [ebp - 0x1c], xmm0
movsd qword [ebp - 0x24], xmm1
movsd xmm1, qword [ebp - 0xdc]
movsd qword [ebp - 0x2c], xmm2
movsd xmm2, qword [ebp - 0xec]
movsd qword [ebp - 0x34], xmm1
movsd xmm1, qword [ebp - 0xe4]
movsd qword [ebp - 0x3c], xmm1
movsd qword [ebp - 0x44], xmm2
movsd xmm2, qword [ebp - 0x34]
movsd xmm1, qword [ebp - 0x2c]
mov ecx, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x3c]
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
movsd qword [ebp - 0xac], xmm2
movsd qword [ebp - 0xa4], xmm1
movsd xmm2, qword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x1c]
cmp cl, 0xd
movsd qword [ebp - 0xb4], xmm0
movsd qword [ebp - 0x9c], xmm2
movsd qword [ebp - 0x94], xmm1
jne 0x6613d9
xor eax, eax
mov cl, 6
jmp 0x66141f
movsd xmm2, qword [ebp - 0x9c]
movsd xmm1, qword [ebp - 0xa4]
movsd xmm0, qword [ebp - 0x94]
mov edx, ecx
shr edx, 8
movsd qword [ebp - 0x68], xmm2
movsd qword [ebp - 0x70], xmm1
movsd xmm2, qword [ebp - 0xb4]
movsd xmm1, qword [ebp - 0xac]
movsd qword [ebp - 0x60], xmm0
movsd qword [ebp - 0x78], xmm1
movsd qword [ebp - 0x80], xmm2
movsd xmm2, qword [ebp - 0x68]
movsd xmm1, qword [ebp - 0x70]
movsd xmm0, qword [ebp - 0x60]
movsd qword [esi + 0x24], xmm2
movsd qword [esi + 0x1c], xmm1
movsd xmm2, qword [ebp - 0x80]
movsd xmm1, qword [ebp - 0x78]
movsd qword [esi + 0x2c], xmm0
movsd qword [esi + 0x14], xmm1
movsd qword [esi + 0xc], xmm2
mov dword [esi], eax
mov eax, edx
mov dword [esi + 4], edi
mov byte [esi + 8], cl
mov word [esi + 9], dx
shr eax, 0x10
mov byte [esi + 0xb], al
jmp 0x6611e6
xor edx, edx
lea eax, [edx - 0x1000000]
mov cl, 0x84
cmp eax, 0xf000000
setb al
test al, al
mov eax, dword [ebp - 0xb8]
je 0x66148e
cmp cl, al
je 0x661090
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov cl, 6
jmp 0x66141f
movsd xmm2, qword [ebp - 0x60]
movsd xmm1, qword [ebp - 0x68]
mov ecx, dword [ebp - 0x50]
movsd xmm0, qword [ebp - 0x58]
movsd qword [ebp - 0x28], xmm2
movsd qword [ebp - 0x30], xmm1
movsd xmm2, qword [ebp - 0x78]
movsd xmm1, qword [ebp - 0x70]
mov dword [ebp - 0x18], ecx
movsd qword [ebp - 0x20], xmm0
movsd qword [ebp - 0x38], xmm1
movsd qword [ebp - 0x40], xmm2
mov dword [ebp - 0x44], edx
jmp 0x661384
add edx, 0xffff0000
mov cl, 0x83
cmp edx, 0xff0000
mov edx, dword [ebp - 0x14]
jae 0x66146c
jmp 0x66147c