Function at 0x4241e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x14
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ebx
mov edi, ecx
test eax, eax
je 0x424387
cmp dword [eax + 0x14], 0
je 0x424387
test esi, esi
jl 0x424393
test esi, 0x40000000
je 0x424393
mov eax, 0x80
mov dword [ebp - 8], eax
test eax, eax
je 0x42422b
and esi, 0xbfffffff
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
cmp al, 3
jae 0x42439a
cmp al, 2
jne 0x4243c2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
xor ecx, ecx
mov cl, byte [eax + 0xc]
add ecx, eax
mov al, byte [eax + 0xd]
and eax, 0xff
shl eax, 8
mov ebx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0x10]
imul eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
mov eax, edx
sar edx, 0x1f
idiv dword [ebx + 4]
mov eax, dword [ebp - 0x14]
add ecx, 0xe
add eax, edx
je 0x424287
xor edx, edx
mov dl, byte [ecx + 6]
inc edx
imul edx, edx, 7
add ecx, edx
dec eax
jne 0x424279
xor edx, edx
mov dl, byte [ecx + 6]
lea eax, [ecx + 7]
test edx, edx
je 0x4242d1
xor ebx, ebx
mov bl, byte [eax]
cmp ebx, dword [ebp + 0x10]
jne 0x4243d6
xor ebx, ebx
mov bl, byte [eax + 1]
cmp edi, ebx
jne 0x4243f1
xor ebx, ebx
mov bl, byte [eax + 2]
cmp esi, ebx
jne 0x42440a
mov bl, byte [eax + 4]
and bl, 0x80
mov byte [ebp - 4], bl
xor ebx, ebx
mov bl, byte [ebp - 4]
cmp ebx, dword [ebp - 8]
jne 0x42440a
test edx, edx
je 0x42437d
mov ebx, dword [ebp - 0xc]
mov dl, byte [eax]
mov byte [ebx + 0x1c], dl
mov dl, byte [eax + 1]
mov byte [ebx + 0x1d], dl
mov dl, byte [eax + 2]
mov byte [ebx + 0x1e], dl
cmp byte [eax + 3], 3
ja 0x424423
xor edx, edx
mov dl, byte [eax + 3]
mov ebx, dword [ebp - 0xc]
mov byte [ebx + 0x1f], dl
mov dl, byte [eax + 4]
mov byte [ebx + 0x20], dl
mov edx, ebx
mov byte [ebx + 0x21], 0
xor edx, ebx
mov dl, byte [ecx + 6]
mov dword [ebx + 0xc], edx
cmp byte [eax + 3], 4
ja 0x42442d
xor edx, edx
mov dl, byte [eax + 3]
mov ebx, dword [ebp - 0xc]
mov edx, dword [edx*4 + 0x453074]
mov dword [ebx + 0x10], edx
mov edx, dword [ebx + 0x14]
movzx esi, byte [edx + 0xa]
add esi, edx
mov dl, byte [edx + 0xb]
and edx, 0xff
shl edx, 8
add esi, edx
xor edx, edx
mov dl, byte [ecx]
add edx, esi
movzx esi, byte [ecx + 1]
shl esi, 8
add esi, edx
xor edx, edx
mov dl, byte [ecx + 2]
shl edx, 0x10
add esi, edx
xor edx, edx
mov dl, byte [ecx + 3]
xor ecx, ecx
shl edx, 0x18
mov cl, byte [eax + 5]
add edx, esi
add ecx, edx
xor edx, edx
mov dl, byte [eax + 6]
shl edx, 8
add edx, ecx
mov eax, edx
mov esp, ebp
pop ebp
pop edi
pop esi
ret 8
xor edx, edx
mov eax, edx
mov esp, ebp
pop ebp
pop edi
pop esi
ret 8
xor eax, eax
jmp 0x42421e
cmp al, 5
jbe 0x424240
cmp al, 0xe
je 0x424240
cmp al, 7
jb 0x4243b6
cmp al, 0xd
jbe 0x424240
xor edx, edx
mov eax, edx
mov esp, ebp
pop ebp
pop edi
pop esi
ret 8
cmp al, 1
je 0x424240
xor edx, edx
mov eax, edx
mov esp, ebp
pop ebp
pop edi
pop esi
ret 8
cmp dword [ebp + 0x10], 0
jl 0x4242a0
dec edx
add eax, 7
test edx, edx
jne 0x424293
jmp 0x4242d1
test edi, edi
jl 0x4242ad
dec edx
add eax, 7
test edx, edx
jne 0x424293
jmp 0x4242d1
test esi, esi
jl 0x4242d1
dec edx
add eax, 7
test edx, edx
jne 0x424293
jmp 0x4242d1
mov edx, 3
jmp 0x4242fc
mov edx, 4
jmp 0x424325