Function at 0x4fb480
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0xc]
mov ecx, edx
push edi
mov edi, 1
shl edi, cl
lea eax, [esi + 4]
mov dword [ebp - 0x1c], eax
mov ecx, 1
mov eax, edi
mov dword [ebp - 8], edi
shr eax, 1
test edx, edx
lea ebx, [edi - 1]
cmove eax, ecx
mov dword [ebp - 0x10], ebx
mov ecx, edi
shr ecx, 1
add ecx, 3
lea eax, [esi + eax*4]
xor esi, esi
mov dword [ebp - 0x2c], eax
mov eax, edi
shr eax, 3
mov edi, ebx
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x24], eax
lea eax, [ecx + eax*2]
xor ecx, ecx
mov dword [ebp - 4], eax
mov eax, edx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [ebp + 8]
cmovae edx, ecx
add eax, 2
add eax, ecx
adc esi, edx
shrd eax, esi, 1
shr esi, 1
add eax, 2
adc esi, 0
shld esi, eax, 2
shl eax, 2
test esi, esi
jb 0x4fb52d
ja 0x4fb521
cmp eax, dword [ebp + 0x14]
jbe 0x4fb52d
mov eax, 0xffffffd4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
inc esi
mov word [ecx - 4], ax
mov eax, dword [ebp + 8]
mov word [ecx - 2], ax
xor ecx, ecx
mov eax, dword [ebp + 0x10]
lea edx, [ecx + 1]
mov word [eax], cx
cmp esi, edx
jb 0x4fb594
mov ebx, dword [ebp - 0xc]
mov ecx, eax
sub ebx, eax
nop dword [eax + eax]
movzx esi, word [ebx + ecx]
movzx eax, word [ecx]
cmp si, 0xffff
jne 0x4fb57f
mov esi, dword [ebp - 4]
inc eax
mov word [ecx + 2], ax
lea eax, [edx - 1]
mov byte [edi + esi + 2], al
dec edi
jmp 0x4fb585
add eax, esi
mov word [ecx + 2], ax
mov esi, dword [ebp + 8]
inc edx
inc esi
add ecx, 2
cmp edx, esi
jbe 0x4fb560
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
movzx eax, cx
mov dword [ebp - 0x20], eax
inc eax
mov word [edx], ax
xor eax, eax
cmp edi, ebx
jne 0x4fb6fd
lea edi, [edx + 2]
xor esi, esi
mov edx, dword [ebp + 8]
add edi, ecx
mov dword [ebp + 0x14], edi
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
movlpd qword [ebp - 0x28], xmm0
add edx, 1
je 0x4fb62c
mov edx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
movsx ecx, word [ecx + eax*2]
mov dword [ebp - 0x24], ecx
mov dword [esi + edi], ebx
mov dword [esi + edi + 4], edx
cmp ecx, 8
jle 0x4fb609
add edi, esi
add ecx, 0xfffffff7
shr ecx, 2
and ecx, 0x3ffffffe
mov dword [edi + 8], ebx
lea esi, [edi + 8]
mov dword [edi + 0xc], edx
add edi, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp + 0x14]
add esi, ecx
mov ecx, dword [ebp + 8]
inc eax
add ebx, 0x1010101
mov dword [ebp - 0x18], esi
adc edx, 0x1010101
inc ecx
cmp eax, ecx
jb 0x4fb5d1
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
xor esi, esi
xor edi, edi
test ecx, ecx
je 0x4fb66f
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov edx, dword [ebp - 4]
and ecx, ebx
movzx eax, byte [edi + eax]
mov byte [ecx + edx + 2], al
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x14]
lea ecx, [edx + esi]
movzx eax, byte [edi + eax + 1]
lea esi, [esi + edx*2]
and ecx, ebx
add edi, 2
mov ebx, dword [ebp - 4]
mov byte [ecx + ebx + 2], al
mov ebx, dword [ebp - 0x10]
and esi, ebx
mov ecx, dword [ebp - 8]
cmp edi, ecx
jb 0x4fb634
mov edx, dword [ebp - 4]
xor esi, esi
test ecx, ecx
je 0x4fb6a5
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp - 0x20]
nop
movzx edx, byte [esi + edx + 2]
lea ecx, [edi + esi]
mov edi, dword [ebp - 0x1c]
inc esi
movzx eax, word [ebx + edx*2]
mov word [edi + eax*2], cx
inc word [ebx + edx*2]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 0x20]
cmp esi, ecx
jb 0x4fb680
mov esi, dword [ebp - 0x2c]
xor edi, edi
mov edx, dword [ebp - 0xc]
xor ebx, ebx
add esi, 8
movsx edx, word [edx + ebx*2]
cmp edx, 0xffffffff
je 0x4fb75e
test edx, edx
je 0x4fb751
cmp edx, 1
je 0x4fb75e
mov ecx, dword [ebp + 0xc]
lea eax, [edx - 1]
bsr eax, eax
sub ecx, eax
shl edx, cl
shl ecx, 0x10
sub ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [esi], ecx
mov ecx, edi
movsx eax, word [edx + ebx*2]
sub ecx, eax
mov dword [esi - 4], ecx
movsx eax, word [edx + ebx*2]
mov ecx, dword [ebp - 8]
add edi, eax
jmp 0x4fb772
xor ecx, ecx
mov dword [ebp + 0x14], ecx
test esi, esi
je 0x4fb749
mov edx, dword [ebp - 0xc]
movsx edx, word [edx + ecx*2]
test edx, edx
jle 0x4fb739
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov byte [eax + esi + 2], cl
mov ecx, dword [ebp - 0x14]
add eax, ecx
and eax, ebx
cmp eax, edi
jbe 0x4fb72e
add eax, ecx
and eax, ebx
cmp eax, edi
ja 0x4fb726
sub edx, 1
jne 0x4fb714
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp - 0x24]
inc ecx
mov dword [ebp + 0x14], ecx
cmp ecx, esi
jb 0x4fb706
mov ecx, dword [ebp - 8]
jmp 0x4fb66f
mov ecx, dword [ebp - 8]
jmp 0x4fb672
mov eax, dword [ebp + 0xc]
inc eax
shl eax, 0x10
sub eax, ecx
mov dword [esi], eax
jmp 0x4fb76f
mov eax, dword [ebp + 0xc]
shl eax, 0x10
sub eax, ecx
mov dword [esi], eax
lea eax, [edi - 1]
mov dword [esi - 4], eax
inc edi
mov edx, dword [ebp - 0xc]
inc ebx
add esi, 8
cmp ebx, dword [ebp + 8]
jbe 0x4fb6b2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret