Function at 0x7bbc90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push ebx
push ebp
lea eax, [eax + edx*2]
mov ebp, dword [esp + 0x2c]
add eax, 2
mov dword [esp + 0x10], eax
lea eax, [edx + 1]
mov dword [esp + 8], eax
xor edx, edx
mov eax, 1
shl eax, cl
mov dword [esp + 0xc], eax
push esi
xor esi, esi
lea ebx, [eax - 1]
mov eax, ecx
xor ecx, ecx
mov dword [esp + 0x18], ebx
bts ecx, eax
cmp eax, 0x20
push edi
cmovae edx, ecx
mov edi, ebx
xor ecx, edx
cmp eax, 0x40
lea eax, [ebp*2 + 2]
mov ebp, dword [esp + 0x30]
cmovae edx, ecx
add eax, ecx
adc esi, edx
add eax, 8
adc esi, 0
test esi, esi
ja 0x7bbf6f
jb 0x7bbd0e
cmp eax, dword [esp + 0x40]
ja 0x7bbf6f
cmp dword [esp + 0x34], 0xff
ja 0x7bbf6f
mov ecx, dword [esp + 0x38]
cmp ecx, 0xc
jbe 0x7bbd32
pop edi
pop esi
pop ebp
mov eax, 0xffffffd4
pop ebx
add esp, 0x18
ret
mov esi, dword [esp + 0x10]
mov eax, 1
mov word [esp + 0x34], cx
dec ecx
mov word [esp + 0x36], ax
shl ax, cl
xor ecx, ecx
movzx eax, ax
mov dword [esp + 0x20], eax
test esi, esi
je 0x7bbdb1
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
add esi, 6
sub ebp, edx
lea esi, [esi + edi*4]
movzx eax, word [edx + ebp]
mov ebx, eax
mov dword [esp + 0x40], ebx
cmp ax, 0xffff
jne 0x7bbd83
mov byte [esi], cl
dec edi
sub esi, 4
mov eax, 1
jmp 0x7bbd98
cmp ax, word [esp + 0x20]
jl 0x7bbd91
xor eax, eax
mov word [esp + 0x36], ax
mov eax, dword [esp + 0x40]
movzx eax, ax
mov word [edx], ax
inc ecx
add edx, 2
cmp ecx, dword [esp + 0x10]
jb 0x7bbd66
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov ecx, eax
shr eax, 1
shr ecx, 3
lea edx, [eax + 3]
xor eax, eax
add edx, ecx
mov dword [esp + 0x34], edx
cmp edi, ebx
jne 0x7bbeb0
xor esi, esi
xorps xmm0, xmm0
mov dword [esp + 0x40], esi
movlpd qword [esp + 0x20], xmm0
cmp dword [esp + 0x10], eax
jbe 0x7bbe5a
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
nop word [eax + eax]
movsx ecx, word [ebp + eax*2]
mov dword [esp + 0x20], ecx
mov dword [edi + esi], edx
mov dword [edi + esi + 4], ebx
cmp ecx, 8
jle 0x7bbe3d
add edi, esi
add ecx, 0xfffffff7
shr ecx, 2
and ecx, 0x3ffffffe
mov dword [edi + 8], edx
lea esi, [edi + 8]
mov dword [edi + 0xc], ebx
add edi, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x18]
add esi, ecx
inc eax
add edx, 0x1010101
mov dword [esp + 0x40], esi
adc ebx, 0x1010101
cmp eax, dword [esp + 0x10]
jb 0x7bbe00
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
xor esi, esi
xor edi, edi
test ebp, ebp
je 0x7bbf1a
mov ebp, dword [esp + 0x18]
nop
movzx eax, byte [edi + ebp]
mov ecx, esi
mov edx, dword [esp + 0x2c]
and ecx, ebx
mov byte [edx + ecx*4 + 6], al
mov edx, dword [esp + 0x34]
movzx eax, byte [edi + ebp + 1]
add edi, 2
mov ebp, dword [esp + 0x2c]
lea ecx, [esi + edx]
and ecx, ebx
lea esi, [esi + edx*2]
and esi, ebx
mov byte [ebp + ecx*4 + 6], al
mov ebp, dword [esp + 0x18]
cmp edi, dword [esp + 0x14]
jb 0x7bbe70
mov ebp, dword [esp + 0x14]
xor ebx, ebx
jmp 0x7bbf20
xor ecx, ecx
mov dword [esp + 0x40], ecx
test esi, esi
je 0x7bbf16
nop word [eax + eax]
xor edx, edx
xor esi, esi
cmp dx, word [ebp]
mov edx, dword [esp + 0x34]
jge 0x7bbef9
nop
mov ebx, dword [esp + 0x2c]
mov byte [ebx + eax*4 + 6], cl
add eax, edx
mov ebx, dword [esp + 0x1c]
and eax, ebx
cmp eax, edi
jbe 0x7bbeec
add eax, edx
and eax, ebx
cmp eax, edi
ja 0x7bbee4
movsx ecx, word [ebp]
inc esi
cmp esi, ecx
mov ecx, dword [esp + 0x40]
jl 0x7bbed0
inc ecx
add ebp, 2
mov dword [esp + 0x40], ecx
cmp ecx, dword [esp + 0x10]
jb 0x7bbec0
test eax, eax
je 0x7bbf16
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
mov ebp, dword [esp + 0x14]
xor ebx, ebx
test ebp, ebp
je 0x7bbf65
mov edi, dword [esp + 0x2c]
add edi, 7
nop word [eax + eax]
movzx eax, byte [edi - 1]
lea edi, [edi + 4]
mov ecx, dword [esp + 0x3c]
inc ebx
movzx esi, word [ecx + eax*2]
lea edx, [ecx + eax*2]
mov ecx, esi
lea eax, [esi + 1]
mov word [edx], ax
bsr eax, ecx
mov cl, byte [esp + 0x38]
sub cl, al
shl si, cl
sub si, bp
mov byte [edi - 4], cl
mov word [edi - 7], si
cmp ebx, ebp
jb 0x7bbf30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffffd2
pop ebx
add esp, 0x18
ret