Function at 0x409500
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], 0xd3d5
mov byte [esp + 0x1a], 0xc4
mov dword [esp + 0x1b], 0
mov dword [esp + 0x1f], 0
mov dword [esp + 0x23], 0
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
cmp edx, 0xe
ja 0x409591
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 8]
mov esi, dword [esp + 8]
movzx esi, byte [esp + esi + 0x18]
lea edi, [edx + 0xa1]
and edi, esi
add edx, esi
add edi, edi
sub edx, edi
add edx, 0xc31060a1
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x28]
add dl, 0x99
mov esi, dword [esp + 8]
mov byte [esp + esi + 0x18], dl
inc dword [esp + 8]
mov edx, dword [esp + 8]
cmp edx, 0xf
jb 0x409550
mov dword [esp + 8], 0x5e5c5862
mov word [esp + 0xc], 0x495e
mov dword [esp + 0x12], 0
mov dword [esp + 0xe], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 0xd
ja 0x4095fd
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 8]
lea edi, [edx + esi]
add edi, 0xb0a0160a
add edx, 0xb0a0160a
and edx, esi
add edx, edx
sub edi, edx
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x28]
add dl, 0xba
mov esi, dword [esp]
mov byte [esp + esi + 8], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 0xe
jb 0x4095c0
mov dword [esp + 0x28], 0x90b24645
mov dword [esp + 0x2c], 0x94ac4242
mov dword [esp + 0x30], 0xa79c9245
mov dword [esp + 0x34], 0x9c9fa493
mov dword [esp + 0x38], 0x2c9f9390
mov dword [esp + 0x3c], 0xee3d0709
mov dword [esp + 0x40], 0xe1e7e9ec
mov dword [esp + 0x44], 0xe83422e6
mov dword [esp + 0x48], 0xfee5e5e3
mov dword [esp + 0x4c], 0xfef7fdf5
mov dword [esp + 0x50], 0xf90c23fc
mov dword [esp + 0x54], 0x34f3f7f3
mov dword [esp + 0x58], 0xfcf0c2c2
mov dword [esp + 0x5c], 0xf8ca3917
mov dword [esp + 0x60], 0x351fc6cd
mov byte [esp + 0x64], 0x52
mov dword [esp + 0x69], 0
mov dword [esp + 0x65], 0
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
cmp edx, 0x44
ja 0x4096e7
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
mov esi, dword [esp + 4]
movzx esi, byte [esp + esi + 0x28]
lea edi, [edx + 0x16a1e0ad]
add edx, 0xad
and edx, esi
or edi, esi
sub edi, edx
mov dword [esp], edi
mov edx, dword [esp]
mov esi, edx
xor esi, 0x44
and edx, 0x44
lea edx, [esi + edx*2]
inc dl
mov esi, dword [esp + 4]
mov byte [esp + esi + 0x28], dl
inc dword [esp + 4]
mov edx, dword [esp + 4]
cmp edx, 0x45
jb 0x4096a0
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esp + 0x28]
mov edx, eax
test bl, bl
je 0x40970b
lea edi, [esp + 0x29]
mov edx, eax
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x409700
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40972b
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 0x409720
mov esi, dword [ebp + 0x10]
mov byte [edx], 0
movzx ebx, byte [esp + 8]
test bl, bl
je 0x40974b
lea edi, [esp + 9]
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x409740
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40976b
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 0x409760
mov byte [edx], 0
movzx ebx, byte [esp + 0x18]
test bl, bl
je 0x40978b
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 0x409780
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