Function at 0x40ee00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bd50
push 0x430678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffe88
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x446794]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
jmp 0x40ee62
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x44]
jge 0x40f055
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x20]
mov cl, byte [eax]
mov byte [ebp - 0x25], cl
mov edx, dword [ebp - 0x24]
imul edx, dword [ebp + 0x10]
imul eax, edx, 0x1c
add eax, 8
mov dword [ebp - 0x30], eax
mov ecx, dword [0x446794]
imul ecx, dword [ebp - 0x5c]
sub ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x60]
mov dword [ebp - 0x60], ecx
cmp dword [0x44677c], 0
jne 0x40eec2
imul ecx, dword [ebp - 0x20], 3
sub ecx, 1
mov eax, dword [ebp - 0x24]
cdq
idiv ecx
imul eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x30]
imul edx, eax, 6
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
movzx eax, byte [ebp - 0x25]
xor eax, dword [ebp - 0x30]
mov byte [ebp - 0x26], al
cvtsi2sd xmm0, dword [0x446794]
movsd qword [ebp - 0x50], xmm0
fld qword [ebp - 0x50]
sub esp, 8
fstp qword [esp]
call fcn.0042d8e0
add esp, 8
fstp qword [ebp - 0x58]
movsd xmm0, qword [ebp - 0x58]
movzx ecx, byte [ebp - 0x7c]
cvtsi2sd xmm1, ecx
mulsd xmm0, xmm1
call fcn.004304d1
mov dword [ebp - 0x34], eax
movzx eax, word [ebp - 0x38]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
movzx edx, byte [0x446794]
add eax, edx
sub eax, dword [0x44677c]
mov ecx, dword [ebp - 0x70]
sub ecx, eax
mov dword [ebp - 0x70], ecx
mov edx, 1
imul eax, edx, 0
mov cl, byte [ebp - 0x26]
mov byte [ebp + eax - 0x2c], cl
movzx edx, byte [ebp - 0x34]
mov eax, dword [ebp - 0x38]
sub eax, edx
je 0x40ef56
movzx ecx, byte [0x44679c]
mov edx, dword [ebp - 0x34]
sub edx, ecx
mov dword [0x446790], edx
wait
mov dword [ebp - 4], 0
mov eax, dword [0x4467a0]
add eax, dword [0x446790]
mov ecx, dword [0x44677c]
mov dword [ecx], eax
wait
mov dword [ebp - 4], 0xffffffff
jmp 0x40efbb
cmp dword [ebp + 0x10], 0
je 0x40efd7
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x20]
mov cl, byte [ebp + edx - 0x2c]
mov byte [eax], cl
jmp 0x40efeb
mov edx, 1
shl edx, 0
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x20]
mov cl, byte [ebp + edx - 0x2c]
mov byte [eax], cl
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [0x446778], 0
jne 0x40f01b
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0x1c]
shl eax, 6
mov ecx, dword [ebp - 0x20]
add ecx, 2
cdq
idiv ecx
add eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
sub edx, eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x1c]
jle 0x40f02c
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jge 0x40f050
imul ecx, dword [ebp - 0x24], 0x1e
mov edx, dword [ebp - 0x30]
imul edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x1c], edx
jmp 0x40ee59
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc