Function at 0x4067d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 0x2c
push edi
mov edi, dword [eax + 4]
test edi, edi
jns 0x406806
cmp dword [eax], 0
jg 0x406806
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0xc]
lea eax, [ecx + eax*2]
push eax
push ecx
call fcn.00405310
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [eax], edx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 0x14]
push esi
push edx
mov dword [ebp - 0x2c], ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x24], 0
push eax
push ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
call fcn.00414ec0
mov dword [ebp - 0x24], eax
add esp, 0xc
mov eax, dword [ebp - 0x2c]
xor esi, esi
mov byte [ebp - 0x1c], 0
cmp eax, dword [ebp - 0x28]
je 0x4068a3
mov dword [ebp - 8], esi
cmp esi, edi
jne 0x406851
test edi, edi
jns 0x4068a3
mov edx, dword [ebp - 0x20]
mov ecx, 1
mov eax, 0x44a950
nop
cmp edx, dword [eax]
jb 0x406876
add eax, 4
xor ecx, 3
cmp eax, str.Use_PsKill_to_terminate_the_remotely_running_program._n
jne 0x406860
mov ecx, 1
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, esi
jl 0x406955
add esi, ecx
cmp esi, edi
jle 0x406893
test edi, edi
jns 0x40694d
lea ecx, [ebp - 0x2c]
call fcn.0040f1b0
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x28]
jne 0x406846
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 4], eax
mov al, byte [edx + 9]
test al, al
movzx edx, al
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], 1
cmove edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov edx, dword [eax]
mov dword [ebp - 8], edi
cmp esi, edx
jge 0x40690f
mov eax, dword [ebp - 0x10]
movzx eax, al
sub eax, 1
je 0x406970
sub eax, 1
je 0x406967
sub eax, 1
jne 0x40690f
mov eax, edx
sub eax, esi
cdq
sub eax, edx
mov edx, dword [ebp + 0x18]
sar eax, 1
mov dword [ebp - 4], eax
mov edi, dword [edx]
sub edi, eax
sub edi, esi
mov dword [ebp - 8], edi
mov esi, dword [ebp + 0x18]
lea eax, [esi + 0x10]
mov dword [ebp + 0x18], eax
movzx eax, byte [esi + 0xe]
mov esi, dword [ebp - 4]
test esi, esi
jle 0x406981
mov edi, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 4], eax
add eax, edi
mov dword [ebp - 0x10], eax
push ecx
push eax
push edi
call fcn.00405310
mov eax, dword [ebp - 0x10]
dec esi
add esp, 0xc
mov ecx, edx
test esi, esi
jg 0x406930
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
jmp 0x406984
mov esi, dword [ebp - 8]
jmp 0x4068a3
test edi, edi
jns 0x4068a3
mov esi, 0x7fffffff
jmp 0x4068a9
mov eax, edx
sub eax, esi
mov dword [ebp - 4], eax
jmp 0x40690f
mov edi, edx
mov edx, dword [ebp + 0x18]
sub edi, esi
lea eax, [edx + 0x10]
mov dword [ebp + 0x18], eax
movzx eax, byte [edx + 0xe]
lea esi, [eax + eax]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
sub eax, edx
sar eax, 1
push ecx
lea eax, [edx + eax*2]
push eax
push edx
call fcn.00405310
add esp, 0xc
test edi, edi
jle 0x4069b8
mov eax, dword [ebp + 0x18]
add esi, eax
push edx
push esi
push eax
call fcn.00405310
mov eax, dword [ebp + 0x18]
dec edi
add esp, 0xc
test edi, edi
jg 0x4069a5
mov eax, dword [ebp + 8]
pop esi
pop edi
mov dword [eax], edx
mov esp, ebp
pop ebp
ret