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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xf0
mov esi, dword [ebp + 8]
mov dword [esp + 0x7c], ecx
add esi, dword [ecx + 0x60]
mov dword [esp + 0x80], 0x2f3630db
mov dword [esp + 0x84], 0x88504b3d
mov dword [esp + 0x88], 0x444852b2
mov dword [esp + 0x8c], 0x5bb7f590
mov dword [esp + 0x90], 0x4b4db25a
mov dword [esp + 0x94], 0x435a5245
mov dword [esp + 0x98], 0x5a9f419f
mov dword [esp + 0x9c], 0x5a5b5fa8
mov dword [esp + 0xa0], 0xf4faf64a
mov word [esp + 0xa4], 0xfdf8
mov dword [esp + 0xa6], 0
mov dword [esp + 0xaa], 0
mov dword [esp + 0xae], 0
mov dword [esp + 0xb2], 0
mov dword [esp + 0xb6], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x39
ja 0x409abd
nop
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0x80]
lea edx, [eax - 0x5f95c245]
and edx, ecx
add eax, ecx
add eax, 0xa06a3dbb
add edx, edx
sub eax, edx
add al, 0xe3
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x80], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x3a
jb 0x409a80
mov word [esp + 0xd8], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc0], 0x63929688
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x19
ja 0x409b55
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
movzx ecx, byte [esp + ecx + 0xc0]
lea edx, [eax + 0x11]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add al, 0x9a
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0xc0], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x1a
jb 0x409b20
mov dword [esp + 0x10], 0x9c9a5659
mov dword [esp + 0x14], 0x98986a62
mov dword [esp + 0x18], 0x87b08a69
mov dword [esp + 0x1c], 0x808f80b3
mov dword [esp + 0x20], 0x788fbbb4
mov dword [esp + 0x24], 0xbe692725
mov dword [esp + 0x28], 0xbdb78580
mov dword [esp + 0x2c], 0xbc507a86
mov dword [esp + 0x30], 0x8e898983
mov dword [esp + 0x34], 0x8eb789b1
mov dword [esp + 0x38], 0xa5605bb0
mov dword [esp + 0x3c], 0x68ab9793
mov dword [esp + 0x40], 0xa89caaa2
mov dword [esp + 0x44], 0xaca26d57
mov dword [esp + 0x48], 0x112fd6a1
mov dword [esp + 0x4c], 0xd0d8ded4
mov dword [esp + 0x50], 0xdd182414
mov dword [esp + 0x54], 0xd1dbd1d1
mov dword [esp + 0x58], 0x3cc7cedd
mov word [esp + 0x5c], 0x6500
mov dword [esp + 0x61], 0
mov dword [esp + 0x5e], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x54
ja 0x409c58
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov eax, dword [esp + 8]
movzx edx, byte [esp + eax + 0x10]
lea eax, [ecx + edx]
add eax, 0xeab4407
add ecx, 0xeab4407
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0xcf
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x55
jb 0x409c20
mov eax, dword [ebp + 0xc]
movzx ecx, byte [esp + 0x10]
mov edx, esi
test cl, cl
je 0x409c7b
lea edi, [esp + 0x11]
mov edx, esi
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [edi]
inc edi
test cl, cl
jne 0x409c70
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x409c9b
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x409c90
mov byte [edx], 0
movzx eax, byte [esp + 0xc0]
test al, al
je 0x409ccb
lea ecx, [esp + 0xc1]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x409cc0
mov edi, dword [ebp + 0x14]
mov byte [edx], 0
movzx eax, byte [esp + 0x80]
test al, al
mov dword [esp + 0xc], esi
je 0x409cfb
lea ecx, [esp + 0x81]
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x409cf0
mov esi, dword [ebp + 0x10]
mov byte [edx], 0
mov ecx, edi
and ecx, 3
je 0x409d1f
cmp ecx, 2
jne 0x409d31
mov ecx, edi
shr ecx, 1
mov edi, edx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
jmp 0x409dcd
mov ecx, edi
shr ecx, 2
mov edi, edx
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
jmp 0x409dcd
test edi, edi
je 0x409dcd
mov eax, dword [ebp + 0x14]
mov edi, eax
and edi, 7
je 0x409d6f
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esi + ebx]
mov byte [edx + ebx], cl
inc ebx
cmp edi, ebx
jne 0x409d50
add esi, ebx
lea ecx, [edx + ebx]
mov eax, dword [ebp + 0x14]
mov edi, eax
sub edi, ebx
cmp eax, 8
jae 0x409d78
jmp 0x409dcd
mov ecx, edx
mov edi, eax
cmp eax, 8
jb 0x409dcd
xor ebx, ebx
nop
nop
nop
nop
nop
nop
movzx eax, byte [esi + ebx]
mov byte [ecx + ebx], al
movzx eax, byte [esi + ebx + 1]
mov byte [ecx + ebx + 1], al
movzx eax, byte [esi + ebx + 2]
mov byte [ecx + ebx + 2], al
movzx eax, byte [esi + ebx + 3]
mov byte [ecx + ebx + 3], al
movzx eax, byte [esi + ebx + 4]
mov byte [ecx + ebx + 4], al
movzx eax, byte [esi + ebx + 5]
mov byte [ecx + ebx + 5], al
movzx eax, byte [esi + ebx + 6]
mov byte [ecx + ebx + 6], al
movzx eax, byte [esi + ebx + 7]
mov byte [ecx + ebx + 7], al
add ebx, 8
cmp edi, ebx
jne 0x409d80
mov dword [esp + 0x10], 0x44476379
mov dword [esp + 0x14], 0x48b49a98
mov dword [esp + 0x18], 0x8847969a
mov dword [esp + 0x1c], 0x92859182
mov dword [esp + 0x20], 0xf9faee8d
mov dword [esp + 0x24], 0x15133eed
mov word [esp + 0x28], 0x1b11
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov dword [esp + 0x32], 0
mov byte [esp + 0x36], 0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x80]
cmp eax, 0x26
ja 0x409e8b
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x80]
movzx esi, byte [esp + ecx + 0x10]
lea ecx, [eax - 0x18ac29d1]
mov edi, ecx
and edi, esi
xor ecx, esi
add eax, 0x2f
and eax, esi
add eax, edi
sub ecx, eax
lea eax, [ecx + edi*2]
add al, 0xb7
mov ecx, dword [esp + 0x80]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0x80]
mov eax, dword [esp + 0x80]
cmp eax, 0x27
jb 0x409e40
add edx, dword [ebp + 0x14]
movzx eax, byte [esp + 0x10]
test al, al
je 0x409ead
lea ecx, [esp + 0x11]
mov esi, dword [esp + 0xc]
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x409ea0
jmp 0x409eb1
mov esi, dword [esp + 0xc]
mov byte [edx], 0
sub edx, esi
mov eax, dword [esp + 0x7c]
add dword [eax + 0x60], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10