Function at 0x40fe4a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd6db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x41001b
mov dword [ebp - 0x28], 0x440e
mov dword [ebp - 0x2c], 0xa9dd38
cmp dword [ebp - 0x28], 0x46ad
jle 0x40ff1d
and dword [ebp - 0x14], 0
jmp 0x40fea0
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x288a
jge 0x40ff1d
and dword [ebp - 0x18], 0
jmp 0x40feb6
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x53af
jge 0x40ff18
and dword [ebp - 0x1c], 0
jmp 0x40fecc
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4ed2
jge 0x40ff16
and dword [ebp - 0x20], 0
jmp 0x40fee2
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x1fe8
jge 0x40ff14
mov eax, dword [ebp - 0x14]
and eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sar edx, cl
xor eax, edx
cdq
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, 0xab2718
call fcn.0044d014
jmp 0x40fedb
jmp 0x40fec5
jmp 0x40feaf
jmp 0x40fe99
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x4233
jge 0x40ff3d
mov edx, dword [ebp - 0x2c]
mov ecx, 0xab2718
call fcn.0044e9ba
jmp 0x40ff59
or dword [ebp - 4], 0xffffffff
jmp 0x40ff63
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x410007
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x40fff0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x58]
mov edx, dword [edx]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
inc eax
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
mov dword [ecx + 0xc], eax
jmp 0x410005
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [eax], 0x83ffb38b
jmp 0x410019
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
push 0
push dword [ebp - 0x6c]
call fcn.004481bf
pop ecx
pop ecx
jmp 0x41004e
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x78], eax
push 0xbec
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
push eax
push 1
push 0x2216
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call fcn.00402c15
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret