Function at 0x631e90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.default.0x631ebc
jmp dword [ecx*4 + 0x631eab]
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x632073
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00631098
test eax, eax
je 0x632073
mov eax, ebx
call fcn.0063207c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x63200c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
loop 0x67803c
dec dword [ebx - 0x2ecb1739]
cmc
inc dword [ebx]
inc edi
push esp
mov eax, edi
call fcn.005d5178
add eax, dword [edi + 0x54]
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 0x60]
mov ebx, dword [esp + 0x14]
add ecx, ebx
mov edx, dword [esp + 0x20]
mov eax, ebx
call fcn.004a0f98
mov eax, edi
call fcn.005d5178
add eax, dword [edi + 0x54]
push eax
lea eax, [esp + 0x50]
push eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, ebp
call fcn.004a0f98
xor ebx, ebx
push dword [esp + 8]
push dword [esp + 8]
lea eax, [esp + 0x14]
push eax
call fcn.004129f4
test eax, eax
je 0x6780b8
push dword [esp + 8]
push dword [esp + 8]
lea eax, [esp + 0x64]
push eax
call fcn.004129f4
test eax, eax
jne 0x6780b8
mov bl, 5
jmp 0x67837b
push dword [esp + 8]
push dword [esp + 8]
lea eax, [esp + 0x24]
push eax
call fcn.004129f4
test eax, eax
je 0x6780d5
mov bl, 2
jmp 0x67837b
push dword [esp + 8]
push dword [esp + 8]
lea eax, [esp + 0x34]
push eax
call fcn.004129f4
test eax, eax
je 0x678108
push dword [esp + 8]
push dword [esp + 8]
lea eax, [esp + 0x64]
push eax
call fcn.004129f4
test eax, eax
jne 0x678108
mov bl, 6
jmp 0x67837b
push dword [esp + 8]
push dword [esp + 8]
lea eax, [esp + 0x44]
push eax
call fcn.004129f4
test eax, eax
je 0x67813b
push dword [esp + 8]
push dword [esp + 8]
lea eax, [esp + 0x64]
push eax
call fcn.004129f4
test eax, eax
jne 0x67813b
mov bl, 1
jmp 0x67837b
push dword [esp + 8]
push dword [esp + 8]
lea eax, [esp + 0x54]
push eax
call fcn.004129f4
test eax, eax
je 0x67837b
push dword [esp + 8]
push dword [esp + 8]
lea eax, [esp + 0x64]
push eax
call fcn.004129f4
test eax, eax
jne 0x67837b
mov bl, 3
jmp 0x67837b
mov eax, ebx
add esp, 0x6c
pop ebp
pop edi
pop esi
pop ebx
ret