Function at 0x417a90
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, 0x70
mov esi, esp
mov ebx, dword [ebp + 0xc]
push eax
sub esp, 0x4c
mov eax, esp
and eax, 0xfffffff0
mov esp, eax
push eax
mov dword [esi + 0x24], esp
sub esp, 0x1c
mov dword [esi + 0x14], esp
sub esp, 0x20
mov ecx, esp
and ecx, 0xfffffff0
mov dword [esi + 0x10], ecx
mov esp, ecx
push eax
mov dword [esi + 0x20], esp
sub esp, 0x20
mov ecx, esp
and ecx, 0xfffffff0
mov dword [esi + 0x1c], ecx
mov esp, ecx
mov dword [eax], 0xf33e0db0
mov dword [eax + 4], 0xf751f163
mov dword [eax + 8], 0xfb56f555
mov dword [eax + 0xc], 0xff3bf918
mov dword [eax + 0x10], 0xe376fd64
mov dword [eax + 0x14], 0xe774e145
mov dword [eax + 0x18], 0xeb43e573
mov dword [eax + 0x1c], 0xef7ce97b
mov dword [eax + 0x20], 0xd365ed0c
mov dword [eax + 0x24], 0xd742d175
mov dword [eax + 0x28], 0xdb73d540
mov dword [eax + 0x2c], 0xdf75d94a
mov dword [eax + 0x30], 0xc37edd4b
lea edx, [eax + 0x34]
mov word [eax + 0x34], 0xc1c0
mov dword [eax + 0x36], 0
mov dword [eax + 0x3a], 0
mov dword [eax + 0x3e], 0
mov dword [eax + 0x42], 0
mov dword [eax + 0x46], 0
mov dword [eax + 0x4a], 0
mov dword [esi + 0x28], 0
mov ecx, dword [esi + 0x28]
cmp ecx, 0x4d
ja 0x417b90
mov ecx, dword [esi + 0x28]
mov edi, dword [esi + 0x28]
add cl, 0x7e
xor cl, byte [eax + edi]
add cl, 0x8e
mov edi, dword [esi + 0x28]
mov byte [eax + edi], cl
inc dword [esi + 0x28]
mov ecx, dword [esi + 0x28]
cmp ecx, 0x4e
jb 0x417b70
lea edi, [esi + 0x28]
mov ecx, 0xd
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea edi, [esi + 0x5c]
mov ecx, 1
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov ebx, dword [ebx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x417bc0
sar eax, 1
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x417be0
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x417bfe
mov eax, 0xffffffff
jmp 0x417c05
add eax, ecx
add eax, eax
add eax, 0x36
push eax
call fcn.004089b0
add esp, 4
mov ecx, dword [esi + 0x24]
mov dword [ecx], eax
movzx ecx, word [ebx]
test cx, cx
je 0x417c31
add ebx, 2
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x417c20
mov word [eax], 0
movzx ecx, word [esi + 0x28]
test cx, cx
je 0x417c61
lea edx, [esi + 0x2a]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x417c50
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x417c91
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x417c80
mov word [eax], 0
mov ebx, dword [esi + 0x10]
mov dword [ebx], 0xdb17d9ef
mov dword [ebx + 4], 0xe71ae51c
mov dword [ebx + 8], 0xe314e10d
mov dword [ebx + 0xc], 0xef07ed1f
mov dword [ebx + 0x10], 0xeb1ce91f
mov dword [ebx + 0x14], 0xf7c1f507
lea eax, [ebx + 0x18]
mov word [ebx + 0x18], 0xf1f0
mov dword [ebx + 0x1a], 0
mov word [ebx + 0x1e], 0
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 0xc]
cmp ecx, 0x1f
ja 0x417d26
mov ebx, dword [esi + 0x10]
nop
nop
nop
nop
nop
nop
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
movzx edi, byte [edi + ecx]
lea ecx, [edx + edi]
add ecx, 0x809e109c
add edx, 0x809e109c
and edx, edi
add edx, edx
sub ecx, edx
add cl, 0xbc
mov edx, dword [esi + 0xc]
mov byte [ebx + edx], cl
inc dword [esi + 0xc]
mov ecx, dword [esi + 0xc]
cmp ecx, 0x20
jb 0x417cf0
mov edx, dword [esi + 0x14]
mov edi, edx
mov ecx, 6
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
lea edi, [edx + 0x18]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx]
mov eax, 0xfffffffe
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x417d50
mov edx, dword [ecx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x417d70
mov dword [esi + 0x18], edx
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + 4]
mov dword [esi + 0x10], edx
mov edx, 0xfffffffe
mov ebx, dword [esi + 0x10]
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x417d90
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x417db4
mov eax, 0xffffffff
jmp 0x417dbc
add ecx, edx
lea eax, [ecx + ecx]
add eax, 0x1c
mov ebx, dword [esi + 0x18]
push eax
call fcn.004089b0
add esp, 4
mov ecx, dword [esi + 0x20]
mov dword [ecx], eax
movzx ecx, word [edi]
test cx, cx
je 0x417df3
add edi, 2
mov edx, dword [esi + 0x14]
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x417de0
jmp 0x417df6
mov edx, dword [esi + 0x14]
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [ebx]
test cx, cx
je 0x417e23
add ebx, 2
mov edi, dword [esi + 0x1c]
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x417e10
jmp 0x417e26
mov edi, dword [esi + 0x1c]
mov word [eax], 0
movzx ecx, word [edx]
test cx, cx
je 0x417e51
add edx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x417e40
mov word [eax], 0
mov edx, dword [esi + 0x10]
movzx ecx, word [edx]
test cx, cx
je 0x417e81
add edx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x417e70
mov word [eax], 0
mov byte [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0xd3d0d13c
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0xc]
cmp eax, 0x14
ja 0x417eec
nop
nop
nop
nop
nop
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0xc]
movzx edx, byte [edi + eax]
lea eax, [ecx + edx]
add eax, 0x23
add ecx, 0x23
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0xb
mov ecx, dword [esi + 0xc]
mov byte [edi + ecx], al
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, 0x15
jb 0x417ec0
push 0
push 0xc00000
push edi
mov eax, dword [esi + 0x24]
push dword [eax]
mov eax, dword [esi + 0x20]
push dword [eax]
push dword [ebp + 8]
call fcn.00418bf0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret