Function at 0x6614f0
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 0x66161b
lea ecx, [ebp - 0xf0]
mov edx, edi
push dword [ebp - 0x7c]
call fcn.0065fd20
add esp, 4
mov eax, dword [ebp - 0xf0]
cmp eax, 2
jne 0x66165b
mov edx, dword [edi]
lea eax, [ebp - 0xd]
lea ecx, [ebp - 0x48]
push 1
push eax
call fcn.00662720
add esp, 8
mov eax, dword [ebp - 0x48]
cmp eax, 2
jne 0x6616a9
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 0x661761
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 0x661776
lea ecx, [ebp - 0xf0]
mov edx, edi
push dword [ebp - 0x7c]
call fcn.0065fd20
add esp, 4
mov eax, dword [ebp - 0xf0]
cmp eax, 2
jne 0x6618a6
mov edx, dword [edi]
lea ecx, [ebp - 0x48]
push 1
lea eax, [ebp - 0xd]
push eax
call fcn.00662720
add esp, 8
mov eax, dword [ebp - 0x48]
cmp eax, 2
jne 0x6618f4
movzx edx, byte [ebp - 0xd]
test dl, dl
js 0x6617b9
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 0x661756
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 0x6616a9
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 0x6616fc
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 0x6618f4
cmp edx, 0x80
jne 0x6617cd
mov ecx, 5
xor eax, eax
jmp 0x661949
cmp dl, 0x84
ja 0x6619fe
mov dword [ebp - 0xb8], edx
xor edx, 0x80
je 0x6619da
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 0x661a07
mov eax, edx
lea ecx, [ebp - 0xf0]
mov edx, edi
push eax
call fcn.0065fd20
add esp, 4
mov eax, dword [ebp - 0xf0]
cmp eax, 2
jne 0x6618a6
mov edx, dword [edi]
lea ecx, [ebp - 0x48]
push 1
lea eax, [ebp - 0xd]
push eax
call fcn.00662720
add esp, 8
mov eax, dword [ebp - 0x48]
cmp eax, 2
jne 0x6618f4
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 0x6617f5
mov edi, dword [ebp - 0x14]
mov ecx, 0xc
cmp edi, 0x10000000
jae 0x6617c6
and edi, 0xffffff80
mov al, 1
mov cl, 0x81
cmp edi, 0x80
je 0x66189e
lea edi, [edx - 0x100]
mov cl, 0x82
cmp edi, 0xff00
jae 0x661a47
mov edx, dword [ebp - 0x14]
jmp 0x6619ec
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 0x661949
xor eax, eax
mov cl, 6
jmp 0x66198f
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 0x661756
xor edx, edx
lea eax, [edx - 0x1000000]
mov cl, 0x84
cmp eax, 0xf000000
setb al
test al, al
mov eax, dword [ebp - 0xb8]
je 0x6619fe
cmp cl, al
je 0x661600
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov cl, 6
jmp 0x66198f
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 0x6618f4
add edx, 0xffff0000
mov cl, 0x83
cmp edx, 0xff0000
mov edx, dword [ebp - 0x14]
jae 0x6619dc
jmp 0x6619ec