Function at 0x4098d0
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], 0x1b19
mov byte [esp + 0x1a], 0xa
mov dword [esp + 0x1f], 0
mov dword [esp + 0x1b], 0
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
cmp edx, 0xa
ja 0x409952
nop
mov edx, dword [esp + 8]
mov esi, dword [esp + 8]
movzx esi, byte [esp + esi + 0x18]
lea edi, [edx + esi]
add edi, 0x6ad672aa
add edx, 0x6ad672aa
and edx, esi
add edx, edx
sub edi, edx
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x28]
add dl, 0x5a
mov esi, dword [esp + 8]
mov byte [esp + esi + 0x18], dl
inc dword [esp + 8]
mov edx, dword [esp + 8]
cmp edx, 0xb
jb 0x409910
mov dword [esp + 8], 0x6e506c7a
mov word [esp + 0xc], 0x454e
mov dword [esp + 0xe], 0
mov dword [esp + 0x12], 0
mov word [esp + 0x16], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 0xf
ja 0x4099cf
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 8]
lea edi, [edx + 0x8c]
and edi, esi
mov ebx, 0x889c3073
sub ebx, edx
or ebx, esi
not ebx
add ebx, esi
sub ebx, edi
mov dword [esp + 0x28], ebx
mov edx, dword [esp + 0x28]
add dl, 0x2c
mov esi, dword [esp]
mov byte [esp + esi + 8], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 0x10
jb 0x409990
mov dword [esp + 0x28], 0x9694e0e1
mov dword [esp + 0x2c], 0x9292a4a8
mov dword [esp + 0x30], 0x9f6a9ca1
mov dword [esp + 0x34], 0x9a979e6b
mov dword [esp + 0x38], 0xb2876b6a
mov dword [esp + 0x3c], 0x74a1efed
mov dword [esp + 0x40], 0x798f7176
mov dword [esp + 0x44], 0x86aac47c
mov dword [esp + 0x48], 0x84817d7b
mov dword [esp + 0x4c], 0x847f8579
mov dword [esp + 0x50], 0x713a4b86
mov dword [esp + 0x54], 0x32738f8b
mov dword [esp + 0x58], 0x62967c78
mov dword [esp + 0x5c], 0x6694215f
mov dword [esp + 0x60], 0x2d576069
mov byte [esp + 0x64], 8
mov dword [esp + 0x69], 0
mov dword [esp + 0x65], 0
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
cmp edx, 0x44
ja 0x409abf
nop
nop
nop
mov edx, dword [esp + 4]
mov esi, dword [esp + 4]
movzx esi, byte [esp + esi + 0x28]
lea edi, [edx + esi]
add edi, 0xe2d2685e
add edx, 0xe2d2685e
and edx, esi
add edx, edx
sub edi, edx
mov dword [esp], edi
mov edx, dword [esp]
add dl, 0x6e
mov esi, dword [esp + 4]
mov byte [esp + esi + 0x28], dl
mov edx, dword [esp + 4]
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
mov dword [esp + 4], edx
mov edx, dword [esp + 4]
cmp edx, 0x45
jb 0x409a70
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esp + 0x28]
mov edx, eax
test bl, bl
je 0x409aeb
lea edi, [esp + 0x29]
mov edx, eax
nop
nop
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 0x409ae0
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x409b0b
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 0x409b00
mov esi, dword [ebp + 0x10]
mov byte [edx], 0
movzx ebx, byte [esp + 8]
test bl, bl
je 0x409b2b
lea edi, [esp + 9]
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x409b20
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x409b4b
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 0x409b40
mov byte [edx], 0
movzx ebx, byte [esp + 0x18]
test bl, bl
je 0x409b6b
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 0x409b60
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