Function at 0x4bb6a7
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, 0x5b4448
call fcn.00576dcc
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ebx
push esi
shl eax, 2
imul eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push eax
mov ecx, edi
mov dword [ebp - 0x10], esi
call fcn.004c3a88
mov eax, dword [edi + 8]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x20], eax
jne 0x4bb6ea
mov dword [esi], 1
jmp 0x4bba44
cmp byte [ebp + 0x18], 0
je 0x4bb8bc
mov esi, dword [ebp + 0x1c]
cmp word [esi + 0x16], 8
je 0x4bb713
mov ecx, edi
call fcn.004c3b85
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x2f
jmp 0x4bba44
movzx eax, word [esi + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x34], ecx
imul eax, ebx
mov dword [ebp - 0x38], ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004b7879
movzx eax, word [esi + 0xc]
imul eax, ebx
xor edi, edi
test eax, eax
mov dword [ebp - 4], edi
mov dword [ebp + 0x18], edi
jle 0x4bb76d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.004ba23b
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x34]
cmp ax, word [ebp + 0x18]
mov word [ecx + edi*2], ax
jle 0x4bb761
mov dword [ebp + 0x18], eax
movzx eax, word [esi + 0xc]
imul eax, ebx
inc edi
cmp edi, eax
jl 0x4bb73f
movsx eax, word [ebp + 0x18]
and dword [ebp - 0x2c], 0
and dword [ebp - 0x30], 0
push eax
lea ecx, [ebp - 0x30]
call fcn.004d00a4
and dword [ebp + 0x18], 0
and dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
mov esi, 0x62cf44
and dword [ebp - 0x18], 0
test ebx, ebx
jbe 0x4bb85b
mov eax, dword [ebp - 0x1c]
and dword [ebp - 0x14], 0
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x1c]
movsx edi, word [ecx + eax]
mov ecx, dword [ebp + 0xc]
push edi
push dword [ebp - 0x2c]
call fcn.004b8bfa
test al, al
je 0x4bb88b
push edi
xor edi, edi
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
push edi
push edi
push edi
push edi
push dword [ebp + 0x18]
push 4
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004ba0c7
test al, al
je 0x4bb88b
mov ecx, esi
call fcn.004b1763
cmp dword [eax + 4], 1
jne 0x4bb830
mov ecx, esi
call fcn.004b1763
cmp dword [eax], edi
je 0x4bb830
mov ecx, esi
call fcn.004b1763
mov ecx, esi
mov ebx, eax
call fcn.004b1763
push dword [eax + 8]
mov eax, dword [ebp + 0x14]
shl eax, 2
push eax
push dword [ebp - 0x14]
call dword [ebx]
neg eax
sbb eax, eax
inc eax
jmp 0x4bb832
xor eax, eax
cmp eax, edi
jne 0x4bb8b1
mov eax, dword [ebp + 0x10]
inc dword [ebp - 0x18]
add dword [ebp + 0x1c], 2
shl eax, 2
add dword [ebp + 8], eax
mov eax, dword [ebp + 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x14]
jb 0x4bb7af
mov ebx, dword [ebp + 0x14]
inc dword [ebp + 0x18]
lea eax, [ebx + ebx]
add dword [ebp - 0x1c], eax
cmp dword [ebp + 0x18], 4
jb 0x4bb793
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004c7789
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004c7789
jmp 0x4bba11
mov eax, dword [ebp - 0x10]
mov dword [eax], 3
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004c7789
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004c7789
jmp 0x4bba44
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xe
jmp 0x4bb894
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
cmp word [edx + 0x16], 0x10
lea ecx, [ebp - 0x28]
sete al
inc eax
imul eax, ebx
push eax
call fcn.004d00a4
and dword [ebp + 0x18], 0
mov dword [ebp - 4], 2
mov esi, 0x62cf44
and dword [ebp - 0x18], 0
cmp dword [ebp + 0x14], 0
jle 0x4bb9f8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x18]
and dword [ebp - 0x1c], 0
add ecx, eax
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0x1c]
mov ax, word [eax + 0x16]
cmp ax, 8
jne 0x4bb945
mov ecx, dword [ebp + 0xc]
push ebx
push dword [ebp - 0x24]
call fcn.004b8bfa
test al, al
je 0x4bba24
xor eax, eax
test ebx, ebx
jbe 0x4bb996
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx + eax]
inc eax
mov byte [edi], cl
add edi, 4
cmp eax, ebx
jb 0x4bb933
jmp 0x4bb996
cmp ax, 0x10
jne 0x4bb996
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + ebx]
push eax
push dword [ebp - 0x24]
call fcn.004b8bfa
test al, al
je 0x4bba24
test ebx, ebx
jbe 0x4bb996
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
xor eax, eax
mov ebx, 0xffff
mov ah, byte [ecx + 1]
mov al, byte [ecx]
movzx eax, ax
imul eax, eax, 0xff
cdq
idiv ebx
inc ecx
inc ecx
mov byte [edi], al
add edi, 4
dec dword [ebp - 0x14]
jne 0x4bb96f
mov ebx, dword [ebp + 0x10]
mov ecx, esi
call fcn.004b1763
cmp dword [eax + 4], 1
jne 0x4bb9d5
mov ecx, esi
call fcn.004b1763
cmp dword [eax], 0
je 0x4bb9d5
mov ecx, esi
call fcn.004b1763
mov ecx, esi
mov edi, eax
call fcn.004b1763
push dword [eax + 8]
mov eax, dword [ebp + 0x14]
shl eax, 2
push eax
push dword [ebp - 0x1c]
call dword [edi]
neg eax
sbb eax, eax
inc eax
jmp 0x4bb9d7
xor eax, eax
test eax, eax
jne 0x4bba2f
inc dword [ebp - 0x18]
mov eax, ebx
shl eax, 2
add dword [ebp + 8], eax
mov eax, dword [ebp + 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x14]
jl 0x4bb909
inc dword [ebp + 0x18]
cmp dword [ebp + 0x18], 4
jl 0x4bb8ec
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004c7789
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
mov eax, dword [ebp - 0x10]
mov dword [eax], 3
jmp 0x4bba38
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004c7789
xor al, al
jmp 0x4bba13