Function at 0x40d44a
Capabilities:
Encrypt data using rc4 ksa
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x6d9d44]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 4
mov dword [esp + 0x10], eax
mov edi, ecx
pop eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], esi
cmp edx, eax
jge 0x40d486
xor eax, eax
jmp 0x40db85
push edx
push str.KVM__SLAVE_:_Handle_Input__Len___d_
push eax
push 0x200
push dword [0x769ea0]
call fcn.004920d4
add esp, 0x14
mov edx, esi
xor ecx, ecx
push dword [esp + 0xc]
call fcn.0040d226
movzx eax, word [edi]
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
movzx eax, word [edi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 8], eax
movzx eax, ax
push eax
push esi
push dword [esp + 0x20]
mov dword [esp + 0x20], eax
push str.KVM__SLAVE_:_Handle_Input__Len___d__type___u__size___u_
push 4
push 0x200
push dword [0x769ea0]
call fcn.004920d4
mov eax, dword [esp + 0x30]
add esp, 0x1c
cmp eax, dword [esp + 0x18]
jg 0x40d47f
cmp esi, 0x55
ja 0x40db0b
je 0x40dadf
cmp esi, 0xb
ja 0x40d8b5
je 0x40d8a3
sub esi, 1
je 0x40d884
sub esi, 1
je 0x40d708
sub esi, 3
je 0x40d692
sub esi, 1
jne 0x40db81
mov esi, dword [esp + 8]
push 4
pop eax
cmp si, ax
jne 0x40db81
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 7
call esi
push 8
mov word [esp + 0x24], ax
call esi
mov word [esp + 0x22], ax
movzx eax, word [0x769eb0]
push eax
call esi
mov word [esp + 0x24], ax
movzx eax, word [0x769ef4]
push eax
call esi
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
push edi
mov word [esp + 0x2a], ax
lea eax, [esp + 0x24]
push 8
push eax
call esi
add esp, 0xc
mov edx, edi
mov ecx, esi
call fcn.0040d075
mov ecx, dword [0x769ecc]
test ecx, ecx
jne 0x40d651
mov eax, dword [0x769ee8]
mov edi, 0x21f
push edi
push 0x6dffe0
shl eax, 2
push 1
push eax
call fcn.005f5ba0
mov ecx, eax
add esp, 0x10
mov dword [0x769ecc], ecx
test ecx, ecx
je 0x40db96
mov edx, dword [0x769ee8]
xor esi, esi
test edx, edx
jle 0x40db81
inc edi
mov eax, dword [0x769ef0]
push edi
push 0x6e0064
shl eax, 3
push 1
push eax
call fcn.005f5ba0
mov ecx, dword [0x769ecc]
add esp, 0x10
mov dword [ecx + esi*4], eax
test eax, eax
je 0x40d624
mov edx, dword [0x769ee8]
inc esi
cmp esi, edx
jl 0x40d5f1
jmp 0x40d657
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x6e0084
push esi
push edi
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x6e00a4
push 0x6e00c4
jmp 0x40dbbe
mov edx, dword [0x769ee8]
test edx, edx
jle 0x40db81
mov edi, dword [0x769ef0]
push 4
pop eax
xor esi, esi
test edi, edi
jle 0x40d686
mov eax, dword [ecx]
mov dword [eax + esi*8], 0xff
mov eax, dword [ecx]
mov byte [eax + esi*8 + 4], 0
inc esi
cmp esi, edi
jl 0x40d66e
push 4
pop eax
add ecx, eax
sub edx, 1
jne 0x40d668
jmp 0x40db81
mov esi, dword [esp + 8]
cmp si, 0xa
jb 0x40d6c1
movzx eax, word [edi + 8]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [0x769ed0]
movzx edx, ax
lea eax, [edx - 0x14]
cmp eax, 0x1374
cmovbe ecx, edx
mov dword [0x769ed0], ecx
cmp si, 8
jb 0x40d6ec
movzx eax, word [edi + 6]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [0x6e0540]
movzx edx, ax
lea eax, [edx - 0x40]
cmp eax, 0xfc0
cmovbe ecx, edx
mov dword [0x6e0540], ecx
cmp si, 6
jb 0x40db81
movsx edx, byte [edi + 5]
movsx ecx, byte [edi + 4]
call fcn.0040fe90
jmp 0x40db81
mov esi, dword [esp + 8]
push 0xc
pop eax
cmp si, 0xa
je 0x40d71e
cmp si, ax
jne 0x40db81
movzx eax, word [edi + 6]
push eax
mov dword [0x769e94], 1
call dword [sym.imp.WS2_32.dll_ntohs]
movd xmm0, dword [0x6e0544]
movzx eax, ax
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movzx eax, word [edi + 8]
push eax
mulsd xmm1, qword [0x6c84b0]
divsd xmm1, xmm0
movsd qword [esp + 0x24], xmm1
call dword [sym.imp.WS2_32.dll_ntohs]
movd xmm0, dword [0x6e0544]
mov edx, dword [0x769edc]
movzx eax, ax
cvtdq2pd xmm0, xmm0
push 0xc
movd xmm4, eax
cvtdq2pd xmm4, xmm4
mov eax, dword [0x769ed8]
sub eax, dword [0x769e98]
movd xmm1, edx
mulsd xmm4, qword [0x6c84b0]
cvtdq2pd xmm1, xmm1
divsd xmm4, xmm0
movd xmm0, dword [0x769ec4]
cvtdq2pd xmm0, xmm0
movd xmm5, eax
divsd xmm1, xmm0
mov eax, dword [0x769ec8]
sub eax, dword [0x769ef8]
movd xmm0, dword [0x769eb4]
cvtdq2pd xmm5, xmm5
cvtdq2pd xmm0, xmm0
andps xmm5, xmmword [0x6c8610]
addsd xmm5, qword [esp + 0x24]
movd xmm6, eax
cvtdq2pd xmm6, xmm6
pop eax
mulsd xmm5, xmm1
movd xmm1, dword [0x769ebc]
andps xmm6, xmmword [0x6c8610]
addsd xmm6, xmm4
mulsd xmm5, qword [0x6c84d0]
cvtdq2pd xmm1, xmm1
movsd qword [esp + 0x20], xmm5
divsd xmm1, xmm0
mulsd xmm6, xmm1
mulsd xmm6, qword [0x6c84d0]
movsd qword [esp + 0x18], xmm6
cmp si, ax
jne 0x40d850
movzx eax, word [edi + 0xa]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [0x769edc]
movsd xmm5, qword [esp + 0x20]
movsd xmm6, qword [esp + 0x18]
movzx eax, ax
jmp 0x40d852
xor eax, eax
movd xmm2, dword [0x769ebc]
cvtdq2pd xmm2, xmm2
movzx ecx, byte [edi + 5]
divsd xmm6, xmm2
movd xmm2, edx
mov edx, eax
cvtdq2pd xmm2, xmm2
movaps xmm1, xmm6
divsd xmm5, xmm2
movaps xmm0, xmm5
call fcn.0040c958
jmp 0x40db81
mov esi, dword [esp + 8]
cmp si, 6
jne 0x40db81
movsx edx, byte [edi + 4]
mov cl, byte [edi + 5]
call fcn.0040c9c0
jmp 0x40db81
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
call fcn.0040d075
jmp 0x40db81
sub esi, 0xc
je 0x40daaf
sub esi, 1
je 0x40da88
sub esi, 1
je 0x40da51
sub esi, 1
jne 0x40db81
mov al, byte [edi + 4]
cmp al, 1
jne 0x40da02
push dword [edi + 6]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 8], eax
movzx eax, word [edi + 0xa]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, word [0x6e0544]
movzx edi, ax
mov eax, dword [esp + 0x20]
shl edi, 0xa
movzx eax, word [eax + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
shl eax, 0xa
mov dword [esp + 0x18], eax
mov eax, dword [0x769ed8]
sub eax, dword [0x769e98]
movd xmm1, dword [0x769edc]
cvtdq2pd xmm1, xmm1
movd xmm0, eax
mov eax, edi
cvtdq2pd xmm0, xmm0
div esi
andps xmm0, xmmword [0x6c8610]
xor edx, edx
cvttsd2si ecx, xmm0
movd xmm0, dword [0x769ec4]
cvtdq2pd xmm0, xmm0
add cx, ax
movzx eax, cx
movzx ecx, word [0x6e0544]
movd xmm2, eax
divsd xmm1, xmm0
cvtdq2pd xmm2, xmm2
mulsd xmm2, xmm1
movd xmm1, dword [0x769ebc]
cvtdq2pd xmm1, xmm1
mulsd xmm2, qword [0x6c84d0]
cvttsd2si eax, xmm2
movzx edi, ax
mov eax, dword [0x769ec8]
sub eax, dword [0x769ef8]
movd xmm0, eax
mov eax, dword [esp + 0x18]
cvtdq2pd xmm0, xmm0
div ecx
andps xmm0, xmmword [0x6c8610]
cvttsd2si esi, xmm0
mov edx, dword [esp + 8]
movd xmm0, dword [0x769eb4]
cvtdq2pd xmm0, xmm0
add si, ax
movzx eax, si
movd xmm2, eax
divsd xmm1, xmm0
cvtdq2pd xmm2, xmm2
mulsd xmm2, xmm1
mulsd xmm2, qword [0x6c84d0]
cvttsd2si eax, xmm2
movzx eax, ax
push eax
mov eax, dword [esp + 0x24]
push edi
mov cl, byte [eax + 5]
call fcn.0040cb93
pop ecx
jmp 0x40da1f
cmp al, 2
jne 0x40db81
mov edx, dword [esp + 0x14]
lea ecx, [edi + 5]
push dword [0x6e0544]
lea edx, [edx - 5]
call fcn.0040cc25
pop ecx
cmp eax, 1
jne 0x40db81
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0xf
call esi
push 4
pop edi
push edi
mov word [esp + 0x24], ax
call esi
push dword [esp + 0xc]
mov word [esp + 0x26], ax
lea eax, [esp + 0x24]
push edi
jmp 0x40db77
call fcn.0040ca99
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0xe
movzx edi, ax
call esi
push 6
mov word [esp + 0x24], ax
call esi
push edi
mov word [esp + 0x26], ax
call esi
push dword [esp + 0xc]
mov word [esp + 0x28], ax
lea eax, [esp + 0x24]
push 6
jmp 0x40db77
movzx eax, word [edi + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
lea eax, [ecx - 0x14]
cmp eax, 0x1374
ja 0x40db81
mov dword [0x769ed0], ecx
jmp 0x40db81
mov esi, dword [esp + 8]
cmp si, 6
jb 0x40db81
movzx eax, word [edi + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor ecx, ecx
cmp eax, 0xffff
cmove eax, ecx
mov dword [0x769e9c], eax
jmp 0x40db81
mov esi, dword [esp + 8]
cmp si, 7
jne 0x40db81
movzx ecx, byte [edi + 5]
mov eax, 0x100
movsx edx, byte [edi + 4]
imul ecx, eax
movzx eax, byte [edi + 6]
add cx, ax
call fcn.0040ca3b
jmp 0x40db81
cmp esi, 0x57
jne 0x40db81
mov esi, dword [esp + 8]
push 5
pop eax
cmp si, ax
jne 0x40db81
movsx ecx, byte [edi + 4]
sub ecx, 0
je 0x40db3c
sub ecx, 1
je 0x40db31
sub ecx, 1
je 0x40db4b
jmp 0x40db85
mov byte [0x769e6f], 1
push 1
jmp 0x40db45
mov byte [0x769e6f], 0
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0x57
call esi
push 5
mov word [esp + 0x24], ax
call esi
push dword [esp + 0xc]
mov cl, byte [0x769e6f]
mov word [esp + 0x26], ax
lea eax, [esp + 0x24]
mov byte [esp + 0x28], cl
push 5
mov esi, dword [esp + 0x18]
push eax
call esi
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.005c0db0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x6e0000
push esi
push edi
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x6e0020
push 0x6e0040
call fcn.00401109
add esp, 0xc
push esi
call fcn.005d0820
int3