Function at 0x417d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0x63906582
mov dword [esp + 0x14], 0x6f8d61f3
mov dword [esp + 0x18], 0x6bf86d81
mov dword [esp + 0x1c], 0x17a3694a
mov dword [esp + 0x20], 0x1388158e
mov dword [esp + 0x24], 0x1f8211f9
mov dword [esp + 0x28], 0x1b8b1d83
mov dword [esp + 0x2c], 0x78a198b
mov dword [esp + 0x30], 0x3f90526
mov dword [esp + 0x34], 0xf9c01e9
mov dword [esp + 0x38], 0xb9b0d92
mov dword [esp + 0x3c], 0x37e10998
mov dword [esp + 0x40], 0x33d035ab
lea eax, [esp + 0x44]
mov word [esp + 0x44], 0x3132
mov dword [esp + 0x46], 0
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x50]
cmp ecx, 0x39
ja 0x417e51
nop
nop
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x50]
movzx esi, byte [esp + edx + 0x10]
mov edx, 0xb6518ace
sub edx, ecx
add ecx, 0x31
and ecx, esi
or edx, esi
not edx
add edx, esi
sub edx, ecx
mov dword [esp + 0x6c], edx
mov ecx, dword [esp + 0x6c]
add cl, 0xa9
mov edx, dword [esp + 0x50]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
cmp ecx, 0x3a
jb 0x417e10
lea edi, [esp + 0x6c]
lea edx, [esp + 0x10]
mov ecx, 0xd
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0xa0]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov esi, dword [ebx + 4]
mov eax, 0xfffffffe
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x417e80
sar eax, 1
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x417ea0
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x417ebe
mov eax, 0xffffffff
jmp 0x417ec5
add eax, ecx
add eax, eax
add eax, 0x36
push eax
call fcn.00408ea0
add esp, 4
movzx ecx, word [esi]
mov dword [esp + 8], eax
test cx, cx
je 0x417f01
add esi, 2
mov eax, dword [esp + 8]
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 [esi]
add esi, 2
test cx, cx
jne 0x417ef0
mov word [eax], 0
movzx ecx, word [esp + 0x6c]
test cx, cx
je 0x417f31
lea edx, [esp + 0x6e]
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 0x417f20
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x417f61
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 0x417f50
mov word [eax], 0
mov dword [esp + 0x10], 0x63a7618f
mov dword [esp + 0x14], 0x67f265fc
mov dword [esp + 0x18], 0x6bc469cd
mov dword [esp + 0x1c], 0x6fc76dff
mov dword [esp + 0x20], 0x53fc51ff
mov dword [esp + 0x24], 0x57b955c7
lea eax, [esp + 0x28]
mov word [esp + 0x28], 0x5958
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov dword [esp + 0x31], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x24
ja 0x41800c
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx - 0x606663f0]
and esi, edx
add ecx, edx
add ecx, 0x9f999c10
add esi, esi
sub ecx, esi
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x50]
add cl, 0x90
mov edx, dword [esp]
mov byte [esp + edx + 0x10], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x25
jb 0x417fd0
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
mov ecx, 6
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x68]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov edi, dword [ebx]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x418040
mov esi, dword [ebx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x418060
mov edx, dword [ebp + 0x10]
mov ebx, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x418080
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x4180a4
mov eax, 0xffffffff
jmp 0x4180ac
add ecx, edx
lea eax, [ecx + ecx]
add eax, 0x1c
push eax
call fcn.00408ea0
add esp, 4
movzx ecx, word [edi]
mov dword [esp + 0xc], eax
test cx, cx
je 0x4180e1
add edi, 2
mov eax, dword [esp + 0xc]
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 0x4180d0
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [esi]
test cx, cx
je 0x418111
add esi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x418100
mov word [eax], 0
movzx ecx, word [esp + 0x50]
test cx, cx
je 0x418143
lea edx, [esp + 0x52]
mov esi, dword [esp + 8]
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 0x418130
jmp 0x418147
mov esi, dword [esp + 8]
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x418171
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x418160
mov word [eax], 0
mov dword [esp + 0x10], 0x232021fc
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 9
ja 0x4181dd
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0x887affb]
and edx, ecx
add eax, ecx
add eax, 0x887affb
add edx, edx
sub eax, edx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0x23
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xa
jb 0x4181a0
push 0
push 0
push 0xc00000
lea eax, [esp + 0x1c]
push eax
push esi
push dword [esp + 0x20]
push dword [ebp + 8]
call fcn.0041b220
add esp, 0x1c
mov ebx, eax
mov eax, dword [0x442e4c]
mov ecx, 0x3138b913
xor ecx, dword [0x442e54]
add eax, ecx
inc eax
jmp eax