Function at 0x416d50
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, 0xc0
mov dword [esp + 0x10], 0xbb74b90a
mov dword [esp + 0x14], 0xbf19bd2b
mov dword [esp + 0x18], 0xa30ca11d
mov dword [esp + 0x1c], 0xa763a542
mov dword [esp + 0x20], 0xab3ca93e
mov dword [esp + 0x24], 0xaf02ad0d
mov dword [esp + 0x28], 0x933b913b
mov dword [esp + 0x2c], 0x973a9503
mov dword [esp + 0x30], 0x9b2d9976
mov dword [esp + 0x34], 0x9f089d3d
mov dword [esp + 0x38], 0x832b810a
mov dword [esp + 0x3c], 0x872d852c
mov dword [esp + 0x40], 0x8b348913
lea eax, [esp + 0x44]
mov word [esp + 0x44], 0x8d8a
mov dword [esp + 0x46], 0
mov dword [esp + 0x4a], 0
mov dword [esp + 0x4e], 0
mov dword [esp + 0x52], 0
mov dword [esp + 0x84], 0
mov ecx, dword [esp + 0x84]
cmp ecx, 0x45
ja 0x416e62
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [esp + 0x84]
mov ecx, dword [esp + 0x84]
movzx edi, byte [esp + ecx + 0x10]
lea ecx, [esi - 0x16512639]
mov edx, ecx
and edx, edi
xor ecx, edi
mov ebx, 0x38
sub ebx, esi
or ebx, edi
add ebx, esi
add ebx, edx
sub ecx, ebx
lea ecx, [ecx + edx*2]
add cl, 0xc7
mov edx, dword [esp + 0x84]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x84]
mov ecx, dword [esp + 0x84]
cmp ecx, 0x46
jb 0x416e10
mov ebx, dword [ebp + 0x10]
lea edi, [esp + 0x84]
lea edx, [esp + 0x10]
mov ecx, 0xd
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0xb8]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x416ea0
sar eax, 1
mov edi, dword [ebx]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x416ec0
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x416ede
mov eax, 0xffffffff
jmp 0x416ee5
add eax, ecx
add eax, eax
add eax, 0x36
push eax
call fcn.00408550
add esp, 4
movzx ecx, word [esi]
mov ebx, eax
test cx, cx
je 0x416f11
add esi, 2
mov ebx, eax
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x416f00
mov dword [esp + 0x64], eax
mov word [ebx], 0
movzx ecx, word [esp + 0x84]
test cx, cx
je 0x416f41
lea edx, [esp + 0x86]
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x416f30
mov word [ebx], 0
movzx ecx, word [edi]
test cx, cx
je 0x416f71
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x416f60
mov word [ebx], 0
mov dword [esp + 0x10], 0xdb17d9ef
mov dword [esp + 0x14], 0xe71ae51c
mov dword [esp + 0x18], 0xe314e10d
mov dword [esp + 0x1c], 0xef07ed1f
mov dword [esp + 0x20], 0xeb1ce91f
mov dword [esp + 0x24], 0xf7c1f507
lea eax, [esp + 0x28]
mov word [esp + 0x28], 0xf1f0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov dword [esp + 0x32], 0
mov dword [esp + 0x36], 0
mov dword [esp + 0x39], 0
mov dword [esp + 0x68], 0
mov ecx, dword [esp + 0x68]
cmp ecx, 0x2c
ja 0x417020
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x68]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx + 0x1c]
and esi, edx
add ecx, edx
add esi, esi
sub ecx, esi
add cl, 0x58
mov edx, dword [esp + 0x68]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
cmp ecx, 0x2d
jb 0x416ff0
lea edi, [esp + 0x68]
lea edx, [esp + 0x10]
mov ecx, 6
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x80]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx]
mov eax, 0xfffffffe
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x417050
mov ebx, dword [ecx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x417070
mov edx, dword [ebp + 0x10]
mov edi, dword [edx + 4]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x417090
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x4170b4
mov eax, 0xffffffff
jmp 0x4170bc
add ecx, edx
lea eax, [ecx + ecx]
add eax, 0x1c
push eax
call fcn.00408550
add esp, 4
movzx edx, word [esi]
mov ecx, eax
test dx, dx
je 0x4170f1
add esi, 2
mov ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [esi]
add esi, 2
test dx, dx
jne 0x4170e0
mov word [ecx], 0x2f
add ecx, 2
movzx edx, word [ebx]
test dx, dx
je 0x417121
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [ebx]
add ebx, 2
test dx, dx
jne 0x417110
mov word [ecx], 0
movzx edx, word [esp + 0x68]
test dx, dx
je 0x417153
lea esi, [esp + 0x6a]
lea ebx, [esp + 0x10]
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [esi]
add esi, 2
test dx, dx
jne 0x417140
jmp 0x417157
lea ebx, [esp + 0x10]
mov word [ecx], 0
movzx edx, word [edi]
test dx, dx
je 0x417181
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [edi]
add edi, 2
test dx, dx
jne 0x417170
mov word [ecx], 0
mov dword [esp + 0x23], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x3332316a
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
cmp ecx, 0x16
ja 0x417207
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx + 0x1516c7a8]
mov edi, edx
not edi
or edi, esi
and esi, edx
add esi, edi
sub ecx, esi
add cl, 0xf
mov edx, dword [esp + 0xc]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
cmp ecx, 0x17
jb 0x4171d0
push 0
push 0xc00000
push ebx
push dword [esp + 0x70]
push eax
push dword [ebp + 8]
call fcn.00417d70
add esp, 0x18
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret