Function at 0x4bb373
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, 0x5b4424
call fcn.00576dcc
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], edi
call fcn.004c3a7c
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
imul eax, dword [ebp + 0x10]
push eax
call fcn.004c3a88
mov esi, dword [ebp - 0x30]
xor ebx, ebx
cmp esi, ebx
jne 0x4bb3b4
mov dword [edi], 1
jmp 0x4bb558
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x14], esi
je 0x4bb53f
mov esi, dword [ebp + 0x18]
cmp word [esi + 0x16], 8
jne 0x4bb552
movzx eax, word [esi + 0xc]
imul eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
call fcn.004b7879
movzx eax, word [esi + 0xc]
imul eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 4], ebx
test eax, eax
jle 0x4bb424
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.004ba23b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x28]
cmp ax, bx
mov word [ecx + edi*2], ax
jle 0x4bb417
mov ebx, eax
movzx eax, word [esi + 0xc]
imul eax, dword [ebp + 0x10]
inc edi
cmp edi, eax
jl 0x4bb3f7
movsx eax, bx
xor esi, esi
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call fcn.004d00a4
xor eax, eax
cmp dword [ebp + 0x10], esi
mov byte [ebp - 4], 1
mov dword [ebp + 0x14], eax
jbe 0x4bb4e7
mov ecx, dword [ebp - 0x14]
mov esi, 0x62cf44
mov dword [ebp + 0x18], ecx
mov ecx, dword [ebp - 0x28]
movsx edi, word [ecx + eax*2]
mov ecx, dword [ebp + 8]
push edi
push dword [ebp - 0x20]
call fcn.004b8bfa
test al, al
je 0x4bb504
push edi
xor eax, eax
push dword [ebp - 0x20]
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
push eax
push eax
push edi
push edi
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call fcn.004ba0c7
test al, al
je 0x4bb504
mov ecx, esi
call fcn.004b1763
cmp dword [eax + 4], edi
jne 0x4bb4cb
mov ecx, esi
call fcn.004b1763
cmp dword [eax], 0
je 0x4bb4cb
mov ecx, esi
call fcn.004b1763
mov ecx, esi
mov edi, eax
call fcn.004b1763
push dword [eax + 8]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [edi]
neg eax
sbb eax, eax
inc eax
jmp 0x4bb4cd
xor eax, eax
test eax, eax
jne 0x4bb50f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
add dword [ebp + 0x18], ecx
inc eax
cmp eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
jb 0x4bb455
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004c7789
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004c7789
jmp 0x4bb660
mov eax, dword [ebp - 0x10]
mov dword [eax], 3
jmp 0x4bb518
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xe
lea ecx, [ebp - 0x38]
call fcn.004c3be9
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.004c7789
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004c7789
jmp 0x4bb6a3
mov eax, dword [ebp + 0x18]
mov ax, word [eax + 0x16]
cmp ax, 8
je 0x4bb55f
cmp ax, 0x10
je 0x4bb55f
mov dword [edi], 0x2f
xor eax, eax
jmp 0x4bb668
movzx eax, ax
shr eax, 3
imul eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004d00a4
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 4], 2
mov dword [ebp - 0x14], ebx
jle 0x4bb654
mov dword [ebp + 0x14], esi
mov esi, 0x62cf44
push dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x18]
call fcn.004b8bfa
test al, al
je 0x4bb679
mov eax, dword [ebp + 0x18]
movzx eax, word [eax + 0x16]
cmp eax, 8
je 0x4bb5e4
cmp eax, 0x10
jne 0x4bb5fd
xor ecx, ecx
cmp dword [ebp + 0xc], ebx
jbe 0x4bb5fd
mov eax, dword [ebp - 0x18]
mov edi, 0xffff
movzx eax, word [eax + ecx*2]
imul eax, eax, 0xff
cdq
idiv edi
mov edx, dword [ebp + 0x14]
mov byte [edx + ecx], al
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x4bb5c1
jmp 0x4bb5fd
cmp dword [ebp + 0xc], ebx
jbe 0x4bb5fd
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 0xc]
sub eax, ecx
mov dl, byte [eax + ecx]
mov byte [ecx], dl
inc ecx
dec edi
jne 0x4bb5f4
mov ecx, esi
call fcn.004b1763
cmp dword [eax + 4], 1
jne 0x4bb639
mov ecx, esi
call fcn.004b1763
cmp dword [eax], ebx
je 0x4bb639
mov ecx, esi
call fcn.004b1763
mov ecx, esi
mov edi, eax
call fcn.004b1763
push dword [eax + 8]
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [edi]
neg eax
sbb eax, eax
inc eax
xor ebx, ebx
jmp 0x4bb63b
xor eax, eax
cmp eax, ebx
jne 0x4bb684
mov eax, dword [ebp + 0xc]
inc dword [ebp - 0x14]
add dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jl 0x4bb593
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004c7789
lea ecx, [ebp - 0x38]
call fcn.004c3be9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
mov eax, dword [ebp - 0x10]
mov dword [eax], 3
jmp 0x4bb68d
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xe
lea ecx, [ebp - 0x38]
call fcn.004c3be9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004c7789
mov eax, esi
jmp 0x4bb668