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], 0xdba1
mov byte [esp + 0x1a], 0xd0
mov dword [esp + 0x1b], 0
mov dword [esp + 0x1f], 0
mov dword [esp + 0x22], 0
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
cmp edx, 0xd
ja 0x40995f
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 + 0x2a30dde3]
add edx, 0xe3
and edx, esi
or edi, esi
sub edi, edx
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x28]
add dl, 0xcb
mov esi, dword [esp + 8]
mov byte [esp + esi + 0x18], dl
inc dword [esp + 8]
mov edx, dword [esp + 8]
cmp edx, 0xe
jb 0x409920
mov dword [esp + 8], 0x3e3c300a
mov word [esp + 0xc], 0x213e
mov dword [esp + 0xe], 0
mov word [esp + 0x12], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 0xb
ja 0x4099d4
nop
nop
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx edi, byte [esp + esi + 8]
lea esi, [edx + edi]
add esi, 0x3684b326
add edx, 0x26
and edx, edi
add edx, edx
mov edi, esi
not edi
and edi, edx
not edx
and edx, esi
sub edx, edi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x28]
add dl, 0xf6
mov esi, dword [esp]
mov byte [esp + esi + 8], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 0xc
jb 0x409990
mov dword [esp + 0x28], 0x86845051
mov dword [esp + 0x2c], 0x82825468
mov dword [esp + 0x30], 0x9f8a9c51
mov dword [esp + 0x34], 0x9a879e8b
mov dword [esp + 0x38], 0x42978b8a
mov dword [esp + 0x3c], 0x84712f2d
mov dword [esp + 0x40], 0xb9af8186
mov dword [esp + 0x44], 0xb64a74bc
mov dword [esp + 0x48], 0xb4b1bdbb
mov dword [esp + 0x4c], 0xb4bfb5b9
mov dword [esp + 0x50], 0xa17a4bb6
mov dword [esp + 0x54], 0x62a3afab
mov dword [esp + 0x58], 0xb2a6bcb8
mov dword [esp + 0x5c], 0xb6a4715f
mov dword [esp + 0x60], 0xd27b0a9
mov byte [esp + 0x64], 0x68
mov dword [esp + 0x65], 0
mov word [esp + 0x69], 0
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
cmp edx, 0x42
ja 0x409acf
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
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, 0x1d603906
add edx, 0x1d603906
and edx, esi
add edx, edx
sub edi, edx
mov dword [esp], edi
mov edx, dword [esp]
add dl, 0xd6
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, 0x43
jb 0x409a80
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esp + 0x28]
mov edx, eax
test bl, bl
je 0x409afb
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 0x409af0
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x409b1b
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 0x409b10
mov esi, dword [ebp + 0x10]
mov byte [edx], 0
movzx ebx, byte [esp + 8]
test bl, bl
je 0x409b3b
lea edi, [esp + 9]
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x409b30
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x409b5b
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 0x409b50
mov byte [edx], 0
movzx ebx, byte [esp + 0x18]
test bl, bl
je 0x409b7b
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 0x409b70
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