Function at 0x409330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pushal
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], 6
mov dword [ebp - 0x24], 4
xor ebx, ebx
inc ebx
mov edi, 6
mov dword [ebp - 0x14], 0x4121fa
and dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + 2]
shl edx, 9
add dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
xor eax, 0x4d
mov byte [ebp - 0x29], al
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + 1]
shl edx, 0xc
add dword [ebp - 0x20], edx
mov dword [ebp - 4], 3
jmp 0x40939e
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
movzx edx, byte [eax]
movzx ecx, byte [ebp - 0x29]
xor edx, ecx
mov byte [eax], dl
inc dword [ebp - 4]
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 4], eax
jb 0x40938a
mov dword [ebp - 0x30], 0x4125fa
mov dword [ebp - 0x28], 0x42c000
mov eax, ebx
add eax, dword [ebp - 0x18]
sub eax, 7
mov dword [ebp - 8], eax
jmp 0x4093d3
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x11bc0
jb 0x4093c1
mov dword [ebp - 0x34], 0x44a000
mov dword [ebp - 0x38], 0x4241fa
mov eax, edi
add eax, ebx
sub eax, 7
mov dword [ebp - 0xc], eax
jmp 0x409408
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x5a58
jb 0x4093f6
mov esi, 0x42a1fa
mov dword [ebp - 0x3c], 0x10000000
mov dword [ebp - 0x44], 0x1f000
mov dword [ebp - 0x40], 0x1000
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
mov eax, edi
add eax, dword [ebp - 0x24]
sub eax, 0xa
mov dword [ebp - 0x10], eax
jmp 0x409502
mov eax, edi
add eax, 2
mov edx, esi
add edx, eax
mov eax, edx
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
mov ax, word [eax]
mov word [ebp - 0x48], ax
movzx eax, word [ebp - 0x48]
mov edx, dword [ebp - 0x18]
sub edx, 6
cmp eax, edx
je 0x40950e
movzx edx, word [ebp - 0x48]
mov ecx, dword [ebp - 0x18]
lea ecx, [ebx + ecx + 5]
sar edx, cl
mov word [ebp - 0x4e], dx
movzx edx, word [ebp - 0x48]
mov ecx, ebx
add ecx, 3
shl edx, cl
mov word [ebp - 0x46], dx
movzx edx, word [ebp - 0x46]
mov ecx, edi
sub ecx, 2
sar edx, cl
mov word [ebp - 0x46], dx
movzx eax, word [ebp - 0x46]
mov edx, edi
add edx, dword [ebp - 0x24]
sub edx, 0xa
cmp eax, edx
jne 0x4094b7
mov eax, edi
sub eax, 6
cmp dword [ebp - 0x10], eax
jne 0x40950e
movzx eax, word [ebp - 0x46]
add eax, dword [ebp - 0x1c]
add eax, dword [esi]
mov dword [ebp - 0x54], eax
mov eax, dword [esi]
movzx edx, word [ebp - 0x46]
add eax, edx
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x54]
sub ecx, eax
mov dword [ebp - 0x5c], ecx
mov eax, ebx
add eax, 2
movzx edx, word [ebp - 0x4e]
cmp eax, edx
jne 0x4094f8
movzx eax, word [ebp - 0x46]
add eax, dword [esi]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x60], eax
mov edx, ecx
add edx, dword [eax]
mov dword [eax], edx
mov eax, edi
add eax, ebx
sub eax, 5
add dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
cmp dword [ebp - 0x10], eax
jb 0x409444
mov eax, dword [esi + 4]
add eax, esi
mov esi, eax
cmp esi, 0x42bca6
jb 0x40941d
pop edi
pop esi
pop ebx
leave
jmp 0x42cfa4