Function at 0x418fd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov ebx, dword [ebp + 0xc]
mov dword [esp + 8], 0x632e611c
mov dword [esp + 0xc], 0x6705650b
mov dword [esp + 0x10], 0x6b066909
mov dword [esp + 0x14], 0x6f2b6d4c
mov dword [esp + 0x18], 0x93069108
mov dword [esp + 0x1c], 0x97f895f1
mov dword [esp + 0x20], 0x9bf3990b
mov dword [esp + 0x24], 0x9ff09df3
mov dword [esp + 0x28], 0x83f181a0
mov dword [esp + 0x2c], 0x871285e1
mov dword [esp + 0x30], 0x8be3891c
mov dword [esp + 0x34], 0x8fe98de2
mov dword [esp + 0x38], 0xb3ceb123
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0xb5b4
mov ecx, 0x52805971
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx - 0x52805969]
lea esi, [ecx - 1]
and esi, edx
add esi, esi
sub edx, esi
add edx, ecx
dec edx
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x64]
add dl, 0xf0
mov byte [esp + ecx - 0x52805969], dl
movzx edx, byte [esp + ecx - 0x52805968]
mov esi, ecx
and esi, edx
add esi, esi
sub edx, esi
add edx, ecx
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x64]
add dl, 0xf0
mov byte [esp + ecx - 0x52805968], dl
add ecx, 2
cmp ecx, 0x528059a9
jne 0x419060
lea edi, [esp + 0x64]
lea edx, [esp + 8]
mov ecx, 0xd
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x98]
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
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4190f0
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x419110
sar eax, 1
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x419130
mov eax, 0xffffffff
jmp 0x419137
add eax, ecx
add eax, eax
add eax, 0x36
push eax
call fcn.00408d80
add esp, 4
movzx ecx, word [esi]
mov dword [esp + 0x40], eax
test cx, cx
je 0x419171
add esi, 2
mov eax, dword [esp + 0x40]
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 0x419160
mov word [eax], 0
movzx ecx, word [esp + 0x64]
test cx, cx
je 0x4191a1
lea edx, [esp + 0x66]
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 0x419190
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x4191d1
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 0x4191c0
mov word [eax], 0
mov dword [esp + 8], 0xab6fa557
mov dword [esp + 0xc], 0xaf1ca912
mov dword [esp + 0x10], 0xb31ead05
mov dword [esp + 0x14], 0xb71fb107
mov dword [esp + 0x18], 0xbb06b507
mov dword [esp + 0x1c], 0xbf49b90f
lea eax, [esp + 0x20]
mov word [esp + 0x20], 0xbdbe
mov dword [esp + 0x22], 0
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov word [esp + 0x2e], 0
mov ecx, 0x6c38ecc6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx - 0x6c38ecbe]
lea esi, [ecx - 1]
and esi, edx
add esi, esi
sub edx, esi
add edx, ecx
dec edx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x48]
add dl, 0x9d
mov byte [esp + ecx - 0x6c38ecbe], dl
movzx edx, byte [esp + ecx - 0x6c38ecbd]
mov esi, ecx
and esi, edx
add esi, esi
sub edx, esi
add edx, ecx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x48]
add dl, 0x9d
mov byte [esp + ecx - 0x6c38ecbd], dl
add ecx, 2
cmp ecx, 0x6c38ecee
jne 0x419240
lea edi, [esp + 0x48]
lea edx, [esp + 8]
mov ecx, 6
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x60]
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
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4192c0
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 0x4192e0
sar eax, 1
sar ecx, 1
lea ebx, [eax + ecx]
lea edx, [eax + ecx]
inc edx
lea ecx, [ebx + ebx]
add ecx, 2
xor edx, 0xd
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x419310
and ecx, 0x1a
add ecx, edx
sar eax, 1
add eax, ecx
jns 0x41932d
mov eax, 0xffffffff
jmp 0x41932f
add eax, eax
push eax
call fcn.00408d80
add esp, 4
movzx ecx, word [edi]
mov dword [esp + 0x44], eax
test cx, cx
je 0x419361
add edi, 2
mov eax, dword [esp + 0x44]
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x419350
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [esi]
test cx, cx
je 0x419391
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 0x419380
mov word [eax], 0
movzx ecx, word [esp + 0x48]
test cx, cx
je 0x4193c3
lea edx, [esp + 0x4a]
mov esi, dword [esp + 0x40]
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 0x4193b0
jmp 0x4193c7
mov esi, dword [esp + 0x40]
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x4193f1
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 0x4193e0
mov word [eax], 0
mov dword [esp + 8], 0xa3a0a1fc
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
mov dword [esp + 4], 0x6982f967
mov eax, dword [esp + 4]
add al, 0xc3
mov byte [esp + 8], al
movzx eax, byte [esp + 9]
lea ecx, [eax + eax]
and ecx, 0x138
neg ecx
add eax, ecx
add eax, 0x6982f99c
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xc3
mov byte [esp + 9], al
movzx eax, byte [esp + 0xa]
lea ecx, [eax + eax]
and ecx, 0x13a
neg ecx
add eax, ecx
add eax, 0x6982f99d
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xc3
mov byte [esp + 0xa], al
movzx eax, byte [esp + 0xb]
lea ecx, [eax + eax]
and ecx, 0x13c
neg ecx
add eax, ecx
add eax, 0x6982f99e
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xc3
mov byte [esp + 0xb], al
movzx eax, byte [esp + 0xc]
lea ecx, [eax + eax]
and ecx, 0x13e
neg ecx
add eax, ecx
add eax, 0x6982f99f
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xc3
mov byte [esp + 0xc], al
movzx eax, byte [esp + 0xd]
lea ecx, [eax + eax]
and ecx, 0x140
neg ecx
add eax, ecx
add eax, 0x6982f9a0
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xc3
mov byte [esp + 0xd], al
movzx eax, byte [esp + 0xe]
lea ecx, [eax + eax]
and ecx, 0x142
neg ecx
add eax, ecx
add eax, 0x6982f9a1
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xc3
mov byte [esp + 0xe], al
movzx eax, byte [esp + 0xf]
lea ecx, [eax + eax]
and ecx, 0x144
neg ecx
add eax, ecx
add eax, 0x6982f9a2
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xc3
mov byte [esp + 0xf], al
movzx eax, byte [esp + 0x10]
lea ecx, [eax + eax]
and ecx, 0x146
neg ecx
add eax, ecx
add eax, 0x6982f9a3
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xc3
mov byte [esp + 0x10], al
push 0
push 0
push 0
push 0xc00000
lea eax, [esp + 0x18]
push eax
push esi
push dword [esp + 0x5c]
push dword [ebp + 8]
call fcn.0041bc70
add esp, 0x20
mov ebx, eax
jmp dword [0x4463c8]