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 [0x6dad44]
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 [0x76aea0]
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 [0x76aea0]
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 [0x76aeb0]
push eax
call esi
mov word [esp + 0x24], ax
movzx eax, word [0x76aef4]
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 [0x76aecc]
test ecx, ecx
jne 0x40d651
mov eax, dword [0x76aee8]
mov edi, 0x21f
push edi
push 0x6e0fe0
shl eax, 2
push 1
push eax
call fcn.005f5c60
mov ecx, eax
add esp, 0x10
mov dword [0x76aecc], ecx
test ecx, ecx
je 0x40db96
mov edx, dword [0x76aee8]
xor esi, esi
test edx, edx
jle 0x40db81
inc edi
mov eax, dword [0x76aef0]
push edi
push 0x6e1064
shl eax, 3
push 1
push eax
call fcn.005f5c60
mov ecx, dword [0x76aecc]
add esp, 0x10
mov dword [ecx + esi*4], eax
test eax, eax
je 0x40d624
mov edx, dword [0x76aee8]
inc esi
cmp esi, edx
jl 0x40d5f1
jmp 0x40d657
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x6e1084
push esi
push edi
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x6e10a4
push 0x6e10c4
jmp 0x40dbbe
mov edx, dword [0x76aee8]
test edx, edx
jle 0x40db81
mov edi, dword [0x76aef0]
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 [0x76aed0]
movzx edx, ax
lea eax, [edx - 0x14]
cmp eax, 0x1374
cmovbe ecx, edx
mov dword [0x76aed0], ecx
cmp si, 8
jb 0x40d6ec
movzx eax, word [edi + 6]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [0x6e1540]
movzx edx, ax
lea eax, [edx - 0x40]
cmp eax, 0xfc0
cmovbe ecx, edx
mov dword [0x6e1540], 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 [0x76ae94], 1
call dword [sym.imp.WS2_32.dll_ntohs]
movd xmm0, dword [0x6e1544]
movzx eax, ax
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movzx eax, word [edi + 8]
push eax
mulsd xmm1, qword [0x6c94b0]
divsd xmm1, xmm0
movsd qword [esp + 0x24], xmm1
call dword [sym.imp.WS2_32.dll_ntohs]
movd xmm0, dword [0x6e1544]
mov edx, dword [0x76aedc]
movzx eax, ax
cvtdq2pd xmm0, xmm0
push 0xc
movd xmm4, eax
cvtdq2pd xmm4, xmm4
mov eax, dword [0x76aed8]
sub eax, dword [0x76ae98]
movd xmm1, edx
mulsd xmm4, qword [0x6c94b0]
cvtdq2pd xmm1, xmm1
divsd xmm4, xmm0
movd xmm0, dword [0x76aec4]
cvtdq2pd xmm0, xmm0
movd xmm5, eax
divsd xmm1, xmm0
mov eax, dword [0x76aec8]
sub eax, dword [0x76aef8]
movd xmm0, dword [0x76aeb4]
cvtdq2pd xmm5, xmm5
cvtdq2pd xmm0, xmm0
andps xmm5, xmmword [0x6c9610]
addsd xmm5, qword [esp + 0x24]
movd xmm6, eax
cvtdq2pd xmm6, xmm6
pop eax
mulsd xmm5, xmm1
movd xmm1, dword [0x76aebc]
andps xmm6, xmmword [0x6c9610]
addsd xmm6, xmm4
mulsd xmm5, qword [0x6c94d0]
cvtdq2pd xmm1, xmm1
movsd qword [esp + 0x20], xmm5
divsd xmm1, xmm0
mulsd xmm6, xmm1
mulsd xmm6, qword [0x6c94d0]
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 [0x76aedc]
movsd xmm5, qword [esp + 0x20]
movsd xmm6, qword [esp + 0x18]
movzx eax, ax
jmp 0x40d852
xor eax, eax
movd xmm2, dword [0x76aebc]
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 [0x6e1544]
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 [0x76aed8]
sub eax, dword [0x76ae98]
movd xmm1, dword [0x76aedc]
cvtdq2pd xmm1, xmm1
movd xmm0, eax
mov eax, edi
cvtdq2pd xmm0, xmm0
div esi
andps xmm0, xmmword [0x6c9610]
xor edx, edx
cvttsd2si ecx, xmm0
movd xmm0, dword [0x76aec4]
cvtdq2pd xmm0, xmm0
add cx, ax
movzx eax, cx
movzx ecx, word [0x6e1544]
movd xmm2, eax
divsd xmm1, xmm0
cvtdq2pd xmm2, xmm2
mulsd xmm2, xmm1
movd xmm1, dword [0x76aebc]
cvtdq2pd xmm1, xmm1
mulsd xmm2, qword [0x6c94d0]
cvttsd2si eax, xmm2
movzx edi, ax
mov eax, dword [0x76aec8]
sub eax, dword [0x76aef8]
movd xmm0, eax
mov eax, dword [esp + 0x18]
cvtdq2pd xmm0, xmm0
div ecx
andps xmm0, xmmword [0x6c9610]
cvttsd2si esi, xmm0
mov edx, dword [esp + 8]
movd xmm0, dword [0x76aeb4]
cvtdq2pd xmm0, xmm0
add si, ax
movzx eax, si
movd xmm2, eax
divsd xmm1, xmm0
cvtdq2pd xmm2, xmm2
mulsd xmm2, xmm1
mulsd xmm2, qword [0x6c94d0]
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 [0x6e1544]
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 [0x76aed0], 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 [0x76ae9c], 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 [0x76ae6f], 1
push 1
jmp 0x40db45
mov byte [0x76ae6f], 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 [0x76ae6f]
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.005c0e20
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x6e1000
push esi
push edi
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x6e1020
push 0x6e1040
call fcn.00401109
add esp, 0xc
push esi
call fcn.005d08b0
int3