Function at 0x4a87b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x9c
mov esi, ecx
lea ecx, [ebp - 0x48]
mov ebx, edx
call fcn.004a7d40
cmp dword [ebp - 0x1c], 2
jne 0x4a87df
lea eax, [ebp - 0x7c]
push dword [ebp - 0x48]
push eax
call fcn.0041d150
add esp, 8
jmp 0x4a8821
movsd xmm1, qword [ebp - 0x28]
movsd xmm2, qword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x20]
movsd qword [ebp - 0x5c], xmm1
movsd xmm1, qword [ebp - 0x38]
movsd qword [ebp - 0x64], xmm2
movsd xmm2, qword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
movsd qword [ebp - 0x54], xmm0
movsd qword [ebp - 0x6c], xmm1
movsd xmm1, qword [ebp - 0x40]
movsd qword [ebp - 0x7c], xmm2
movsd qword [ebp - 0x74], xmm1
movzx ecx, byte [ebp - 0x7a]
mov eax, dword [ebp - 0x50]
movzx edi, word [ebp - 0x7c]
shl ecx, 0x10
or edi, ecx
cmp eax, 2
jne 0x4a8882
lea ecx, [ebp - 0x48]
mov edx, ebx
call fcn.004a7d40
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
movzx ebx, byte [ebp - 0x48]
cmp eax, 2
jne 0x4a88d4
mov eax, ebx
movzx ebx, bl
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x14], edi
test al, al
js 0x4a8955
mov edi, ebx
mov eax, dword [ebp - 0x14]
mov word [esi + 4], ax
shr eax, 0x10
mov byte [esi + 6], al
mov dword [esi], edi
mov dword [esi + 0x2c], 2
jmp 0x4a8a99
movzx ecx, byte [ebp - 0x51]
movsd xmm2, qword [ebp - 0x61]
movsd xmm1, qword [ebp - 0x69]
movsd xmm0, qword [ebp - 0x59]
mov edx, edi
shr edx, 0x10
mov byte [esi + 0x2b], cl
movsd qword [esi + 0x1b], xmm2
movsd qword [esi + 0x13], xmm1
movsd xmm2, qword [ebp - 0x79]
movsd xmm1, qword [ebp - 0x71]
mov ecx, dword [ebp - 0x4c]
movsd qword [esi + 0x23], xmm0
movsd qword [esi + 0xb], xmm1
movsd qword [esi + 3], xmm2
mov byte [esi + 2], dl
mov word [esi], di
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
jmp 0x4a8a99
movsd xmm1, qword [ebp - 0x3c]
movzx edx, byte [ebp - 0x45]
movzx ecx, word [ebp - 0x47]
movsd xmm0, qword [ebp - 0x44]
movsd xmm2, qword [ebp - 0x2c]
movsd qword [ebp - 0x74], xmm1
movsd xmm1, qword [ebp - 0x34]
shl edx, 0x10
movsd qword [ebp - 0x7c], xmm0
movsd qword [ebp - 0x64], xmm2
or ecx, edx
mov edx, dword [ebp - 0x18]
movsd qword [ebp - 0x6c], xmm1
movsd xmm1, qword [ebp - 0x24]
movsd qword [ebp - 0x5c], xmm1
cmp bl, 0xb
je 0x4a8a05
movsd xmm2, qword [ebp - 0x64]
movsd xmm1, qword [ebp - 0x6c]
movsd xmm0, qword [ebp - 0x5c]
movzx edi, bl
shl ecx, 8
or ecx, edi
movsd qword [ebp - 0x90], xmm2
movsd qword [ebp - 0x98], xmm1
movsd xmm2, qword [ebp - 0x7c]
movsd xmm1, qword [ebp - 0x74]
jmp 0x4a8a38
cmp al, 0x80
je 0x4a8a02
cmp al, 0x85
jae 0x4a8a02
xor edi, edi
xor ebx, 0x80
mov byte [ebp - 0xd], al
je 0x4a89e2
nop word cs:[eax + eax]
nop dword [eax]
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x48]
call fcn.004a7d40
mov eax, dword [ebp - 0x1c]
cmp eax, 2
jne 0x4a8aa4
mov eax, edi
movzx edi, byte [ebp - 0x48]
shl eax, 8
or edi, eax
dec ebx
jne 0x4a8980
cmp edi, 0x10000000
jae 0x4a8afb
mov edx, edi
mov al, 1
mov cl, 0x81
and edx, 0xffffff80
cmp edx, 0x80
je 0x4a89f2
lea edx, [edi - 0x100]
mov cl, 0x82
cmp edx, 0xff00
jb 0x4a89f2
lea edx, [edi - 0x10000]
mov cl, 0x83
cmp edx, 0xff0000
jb 0x4a89f2
lea eax, [edi - 0x1000000]
mov cl, 0x84
cmp eax, 0xf000000
setb al
test al, al
movzx eax, byte [ebp - 0xd]
je 0x4a8a02
cmp cl, al
je 0x4a8867
mov edi, dword [ebp - 0x14]
movsd xmm2, qword [ebp - 0x30]
movsd xmm1, qword [ebp - 0x38]
movsd xmm0, qword [ebp - 0x28]
shl edi, 8
xor eax, eax
or edi, 5
mov ecx, edi
movsd qword [ebp - 0x90], xmm2
movsd qword [ebp - 0x98], xmm1
movsd xmm2, qword [ebp - 0x48]
movsd xmm1, qword [ebp - 0x40]
movsd qword [ebp - 0x88], xmm0
movsd qword [ebp - 0xa0], xmm1
movsd qword [ebp - 0xa8], xmm2
movsd xmm2, qword [ebp - 0x90]
movsd xmm1, qword [ebp - 0x98]
movsd xmm0, qword [ebp - 0x88]
movsd qword [esi + 0x1c], xmm2
movsd qword [esi + 0x14], xmm1
movsd xmm2, qword [ebp - 0xa8]
movsd xmm1, qword [ebp - 0xa0]
movsd qword [esi + 0x24], xmm0
movsd qword [esi + 0xc], xmm1
movsd qword [esi + 4], xmm2
mov dword [esi], ecx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edx
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret
movzx edx, byte [ebp - 0x45]
movsd xmm2, qword [ebp - 0x3c]
movsd xmm1, qword [ebp - 0x34]
movzx ecx, word [ebp - 0x47]
movsd xmm0, qword [ebp - 0x44]
movzx ebx, byte [ebp - 0x48]
mov edi, dword [ebp - 0x14]
shl edx, 0x10
movsd qword [ebp - 0x74], xmm2
movsd qword [ebp - 0x6c], xmm1
movsd xmm2, qword [ebp - 0x2c]
movsd xmm1, qword [ebp - 0x24]
movsd qword [ebp - 0x7c], xmm0
or ecx, edx
mov edx, dword [ebp - 0x18]
movsd qword [ebp - 0x64], xmm2
movsd qword [ebp - 0x5c], xmm1
cmp bl, 0xb
jne 0x4a891f
jmp 0x4a8a05
xor eax, eax
mov bl, 0xa
xor ecx, ecx
jmp 0x4a891f