Function at 0x4bbea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x4bbfbc
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x28]
mov edx, dword [edx + 0x58]
lea ecx, [eax + eax*2]
lea edi, [edx + ecx*8]
mov edx, dword [edi + 4]
or edx, dword [edi]
jne 0x4bbfbc
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x4bc070
cmp eax, dword [edx]
mov esi, 2
je 0x4bc070
mov ecx, dword [ebx + 0x30]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ecx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [ecx + 0x14]
sub esp, 0x10
test eax, eax
je 0x4bbfe0
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x4bc080
mov esi, eax
mov eax, dword [edx]
mov dword [esp], edx
call dword [eax + 8]
sub esp, 4
test esi, esi
jne 0x4bbfbe
xor esi, esi
cmp byte [ebx + 0xf], 0
mov eax, dword [ebx + 0x28]
je 0x4bbf68
mov ecx, dword [ebx + 0x2c]
lea edx, [eax + eax*2]
mov esi, dword [ecx + 0x58]
mov ecx, dword [ebx + 0x10]
lea edx, [esi + edx*8]
not ecx
cmp dword [edx + 0xc], ecx
setne cl
movzx ecx, cl
lea esi, [ecx + ecx*2]
mov edx, dword [ebx + 8]
test edx, edx
je 0x4bbf84
mov eax, dword [edx]
mov dword [esp], edx
call dword [eax + 8]
mov eax, dword [ebx + 0x28]
sub esp, 4
mov dword [ebx + 8], 0
mov edx, dword [ebx + 0x20]
mov byte [ebx + 0xe], 0
test edx, edx
je 0x4bbfd6
cmp dword [edx], eax
je 0x4bbfd0
add eax, 1
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 8
test eax, eax
mov esi, eax
jne 0x4bbfbe
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x4bbec0
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
add edx, 4
mov dword [ebx + 0x20], edx
sub dword [ebx + 0x24], 1
jmp 0x4bbf93
mov eax, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x4bbff7
mov ecx, eax
mov eax, dword [eax]
mov dword [esp], ecx
call dword [eax + 4]
sub esp, 4
mov eax, dword [ebx + 8]
test eax, eax
je 0x4bc009
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x10], 0xffffffff
mov dword [ebx + 8], eax
movzx eax, byte [ebx + 0xd]
test al, al
je 0x4bc02d
movzx eax, byte [edi + 0x12]
test al, al
je 0x4bc02d
movzx eax, byte [edi + 0x11]
xor eax, 1
mov edx, dword [edi + 4]
mov byte [ebx + 0xf], al
test esi, esi
mov eax, dword [edi]
mov byte [ebx + 0xe], 1
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x18], eax
jne 0x4bc04a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4bc090
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 8
mov esi, eax
test edx, edx
je 0x4bbf3c
jmp 0x4bbf31
movzx esi, byte [ebx + 0xc]
jmp 0x4bbef2
lea esp, [ebp - 0xc]
mov esi, eax
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x28]
cmp eax, dword [edx + 0xc8]
jae 0x4bc0aa
mov edx, dword [edx + 0xc4]
cmp byte [edx + eax], 0
jne 0x4bc04a
cmp byte [edi + 0x11], 0
mov eax, 2
cmove esi, eax
jmp 0x4bc04a