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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [ebp + 8]
add eax, dword [ecx + 0x60]
mov word [esp + 0x18], 0x232d
mov byte [esp + 0x1a], 0x1a
mov dword [esp + 0x1b], 0
mov word [esp + 0x1f], 0
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
cmp edx, 8
ja 0x409be1
nop
nop
mov edx, dword [esp + 8]
mov esi, dword [esp + 8]
movzx esi, byte [esp + esi + 0x18]
lea edi, [edx + 0x67926404]
and edi, esi
lea ebx, [edx + esi]
add ebx, 0x67926404
add edx, 4
and edx, esi
add edx, edi
mov esi, edx
xor esi, ebx
not edx
and edx, ebx
add edx, edx
sub edx, esi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x28]
add dl, 0xe4
mov esi, dword [esp + 8]
mov byte [esp + esi + 0x18], dl
inc dword [esp + 8]
mov edx, dword [esp + 8]
cmp edx, 9
jb 0x409b90
mov dword [esp + 8], 0x202226c8
mov word [esp + 0xc], 0x3124
mov dword [esp + 0xe], 0
mov byte [esp + 0x12], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 0xa
ja 0x409c4a
nop
nop
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 8]
lea edi, [edx + esi]
add edx, 0x59
and edx, esi
add edx, edx
sub edi, edx
add edi, 0x41e9b59
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x28]
add dl, 0x91
mov esi, dword [esp]
mov byte [esp + esi + 8], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 0xb
jb 0x409c10
mov dword [esp + 0x28], 0xb6b88c8d
mov dword [esp + 0x2c], 0xaaaa989c
mov dword [esp + 0x30], 0xafd2a89d
mov dword [esp + 0x34], 0xa2a7aedb
mov dword [esp + 0x38], 0x9aa7dbda
mov dword [esp + 0x3c], 0xe0b57f41
mov dword [esp + 0x40], 0xe59fede6
mov dword [esp + 0x44], 0x96b2a8e0
mov dword [esp + 0x48], 0xe8ede9eb
mov dword [esp + 0x4c], 0xf08ff98d
mov dword [esp + 0x50], 0x8d42bbf6
mov dword [esp + 0x54], 0xbafbfffb
mov dword [esp + 0x58], 0x8af68884
mov dword [esp + 0x5c], 0xf68035cf
mov dword [esp + 0x60], 0x31d7fc85
mov byte [esp + 0x64], 0x1c
mov dword [esp + 0x65], 0
mov dword [esp + 0x68], 0
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
cmp edx, 0x43
ja 0x409d31
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
mov esi, dword [esp + 4]
movzx esi, byte [esp + esi + 0x28]
mov edi, 0xf3
sub edi, edx
add edx, esi
not esi
or edi, esi
lea edx, [edx + edi*2]
add edx, 0x5237670e
mov dword [esp], edx
mov edx, dword [esp]
add dl, 0xac
mov esi, dword [esp + 4]
mov byte [esp + esi + 0x28], dl
inc dword [esp + 4]
mov edx, dword [esp + 4]
cmp edx, 0x44
jb 0x409cf0
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esp + 0x28]
mov edx, eax
test bl, bl
je 0x409d5b
lea edi, [esp + 0x29]
mov edx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x409d50
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x409d7b
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x409d70
mov esi, dword [ebp + 0x10]
mov byte [edx], 0
movzx ebx, byte [esp + 8]
test bl, bl
je 0x409d9b
lea edi, [esp + 9]
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x409d90
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x409dbb
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x409db0
mov byte [edx], 0
movzx ebx, byte [esp + 0x18]
test bl, bl
je 0x409ddb
lea esi, [esp + 0x19]
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x409dd0
mov byte [edx], 0
sub edx, eax
add dword [ecx + 0x60], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc