Function at 0x409330
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push eax
push ecx
push edx
push ebx
push esp
push ebp
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], 0xb
mov edi, 3
and dword [ebp - 0x18], 0
and dword [ebp - 0x3c], 0
and dword [ebp - 0x40], 0
jmp 0x409522
add dword [ebp - 0x3c], 0x4a31
jmp 0x409372
mov dword [ebp - 0x20], 0x412665
jmp 0x40937b
mov dword [ebp - 0x48], 0xed7dfa99
jmp 0x4093af
mov eax, esi
add eax, 3
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x3c]
movzx edx, byte [eax]
movzx ecx, byte [ebp - 0x48]
xor edx, ecx
mov byte [eax], dl
inc dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x40], eax
ja 0x409383
mov dword [ebp - 0x1c], 0x436000
mov dword [ebp - 0x24], 0x42c465
jmp 0x4093b8
mov dword [ebp - 0x40], 0x2371
jmp 0x40941f
mov dword [ebp - 0x28], 0x469000
mov eax, dword [ebp - 0x10]
add eax, esi
sub eax, 0xb
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x19df0
jae 0x4093e7
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 4]
jmp 0x4093ca
mov eax, dword [ebp - 0x10]
mov ebx, eax
add ebx, eax
sub ebx, 0x16
jmp 0x409400
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dl, byte [edx + ebx]
mov byte [eax + ebx], dl
inc ebx
cmp ebx, 0x6624
jb 0x4093f3
mov dword [ebp - 0xc], 0x433265
mov dword [ebp - 0x2c], 0x10000000
mov dword [ebp - 0x4c], 0x34000
jmp 0x40942b
add dword [ebp - 0x40], 0x2168f
jmp 0x409369
mov dword [ebp - 0x30], 0x1000
mov eax, dword [ebp - 0x10]
sub eax, 0xb
mov dword [ebp - 8], eax
jmp 0x4094f1
mov eax, dword [ebp - 8]
mov edx, edi
add edx, dword [ebp - 0x10]
sub edx, 6
add eax, edx
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x54], eax
mov ax, word [eax]
mov word [ebp - 0x50], ax
jmp 0x409467
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
jmp 0x409440
movzx edx, word [ebp - 0x50]
lea ecx, [esi + edi + 1]
shl edx, cl
mov word [ebp - 0x4e], dx
movzx edx, word [ebp - 0x4e]
lea ecx, [esi + edi + 1]
sar edx, cl
mov word [ebp - 0x4e], dx
movzx eax, word [ebp - 0x50]
mov edx, dword [ebp - 0x18]
add edx, edi
sub edx, 3
cmp eax, edx
je 0x409569
movzx edx, word [ebp - 0x50]
mov ecx, esi
add ecx, 0xc
sar edx, cl
mov word [ebp - 0x56], dx
cmp dword [ebp - 8], esi
je 0x4094bd
mov eax, dword [ebp - 0x10]
sub eax, 0xb
movzx edx, word [ebp - 0x4e]
cmp eax, edx
je 0x409569
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], eax
movzx eax, word [ebp - 0x56]
mov edx, edi
add edx, dword [ebp - 0x18]
cmp eax, edx
jne 0x4094e9
movzx eax, word [ebp - 0x4e]
mov edx, dword [ebp - 0xc]
add eax, dword [edx]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x5c]
add edx, dword [eax]
mov dword [eax], edx
mov eax, edi
add eax, esi
dec eax
add dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
cmp dword [ebp - 8], eax
jb 0x40945c
jmp 0x409569
mov eax, esi
add eax, 0x1388
mov dword [ebp - 0x38], eax
mov eax, edi
add eax, 0x445
mov dword [ebp - 0x34], eax
lea eax, [esi + esi + 0xa4]
add dword [ebp - 0x34], eax
jmp 0x409576
mov dword [ebp - 0x3c], 0x40d834
jmp 0x409360
cmp dword [ebp - 0xc], 0x435a49
jae 0x409502
jmp 0x409416
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
add edx, eax
mov ecx, dword [ebp - 0x10]
add ecx, esi
invalid