Function at 0x401410
Capabilities:
Check for debugger via api
Check for peb beingdebugged flag
Check for peb ntglobalflag flag
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Enumerate processes
Execute anti-debugging instructions
Hide thread from debugger
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x598
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xc]
push esi
push edi
mov dword [ebp - 0x244], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x401465
mov edx, str.Caught_by_IsDebuggerPresent_
mov ecx, 0x1002
call fcn.004010b0
push 0x1002
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x23c], 0
xor eax, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 2]
and eax, 0xff
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x4014a8
mov edx, str.Caught_by_BeingDebugged_PEB_check_
mov ecx, 0x1000
call fcn.004010b0
push 0x1000
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x23c], 0
xor eax, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x68]
and eax, 0x70
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x4014e9
mov edx, str.Caught_by_NtGlobalFlag_PEB_check_
mov ecx, 0x1003
call fcn.004010b0
push 0x1003
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x23c], 0
call esi
lea ecx, [ebp - 0x23c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [ebp - 0x23c], 0
je 0x40152c
mov edx, str.Caught_by_CheckRemoteDebuggerPresent_
mov ecx, 0x1001
call fcn.004010b0
push 0x1001
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
xorps xmm0, xmm0
mov dword [ebp - 0x24c], 0
push str.ntdll.dll
movaps xmmword [ebp - 0x590], xmm0
movq qword [ebp - 0x580], xmm0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, 0xffffffff
je 0x4015b3
test eax, eax
je 0x4015b3
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4015b3
call esi
lea ecx, [ebp - 0x24c]
push ecx
push 0x18
lea ecx, [ebp - 0x590]
push ecx
push 0
push eax
call edi
test eax, eax
js 0x4015b3
mov eax, dword [ebp - 0x58c]
test eax, eax
je 0x4015b3
cmp byte [eax + 2], 0
je 0x4015b3
mov edx, str.Caught_by_NtQueryInformationProcess__ProcessDebugPort__
mov ecx, 0x1004
call fcn.004010b0
push 0x1004
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
xor edi, edi
push edi
push str.OLLYDBG
call esi
test eax, eax
mov ecx, 1
push 0
push 0x403344
cmovne edi, ecx
call esi
test eax, eax
jne 0x401b32
test edi, edi
jne 0x401b32
push str.OllyDbg____CPU_
push edi
call esi
test eax, eax
mov eax, 1
push str.Immunity_Debugger____CPU_
push 0
cmovne edi, eax
call esi
test eax, eax
jne 0x401b18
test edi, edi
jne 0x401b18
push 0x228
lea eax, [ebp - 0x4c4]
mov dword [ebp - 0x590], str.cheatengine_x86_64.exe
push edi
push eax
mov dword [ebp - 0x58c], str.ollydbg.exe
mov dword [ebp - 0x588], str.ida.exe
mov dword [ebp - 0x584], str.ida64.exe
mov dword [ebp - 0x580], str.radare2.exe
mov dword [ebp - 0x57c], str.x64dbg.exe
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x234]
push edi
push eax
mov dword [ebp - 0x238], 0x22c
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4c8]
mov ecx, 0x8b
lea esi, [ebp - 0x238]
lea edi, [ebp - 0x4c8]
rep movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4016c9
push str._Warning__It_is_impossible_to_check_process_list.
call fcn.00401040
add esp, 4
jmp 0x401710
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
nop
lea esi, [ebp - 0x590]
lea eax, [ebp - 0x4a4]
push eax
push dword [esi]
call edi
add esp, 8
test eax, eax
je 0x401afe
add esi, 4
lea eax, [ebp - 0x578]
cmp esi, eax
jne 0x4016d6
lea eax, [ebp - 0x4c8]
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4016d0
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp eax, 0xffffffff
je 0x401753
test eax, eax
je 0x401753
push str.NtSetInformationThread
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401753
push 0
push 0
push 0x11
call edi
push eax
call esi
mov esi, dword [ebp - 0x244]
xorps xmm0, xmm0
push str.antidbg
push 0
push 0
mov esi, dword [esi + 4]
movlpd qword [ebp - 0x294], xmm0
movlpd qword [ebp - 0x28c], xmm0
movlpd qword [ebp - 0x284], xmm0
movlpd qword [ebp - 0x27c], xmm0
movlpd qword [ebp - 0x274], xmm0
movlpd qword [ebp - 0x26c], xmm0
movlpd qword [ebp - 0x264], xmm0
movlpd qword [ebp - 0x25c], xmm0
movaps xmmword [ebp - 0x590], xmm0
mov dword [ebp - 0x298], 0x44
mov dword [ebp - 0x23c], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4017f7
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
test eax, eax
jne 0x4018d4
push 0x22b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
lea eax, [ebp - 0x4a8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp - 0x4a8]
push eax
push str._ws__d
lea eax, [ebp - 0x118]
push 0x109
push eax
call fcn.00401070
add esp, 0x14
lea eax, [ebp - 0x590]
push eax
lea eax, [ebp - 0x298]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0xffffffffffffffff
push dword [ebp - 0x590]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x590]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x23c], 0x22b
mov ecx, 1
push dword [ebp - 0x590]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0
cmove eax, ecx
mov dword [ebp - 0x244], eax
call esi
push dword [ebp - 0x58c]
call esi
cmp dword [ebp - 0x244], 0
je 0x4018d4
mov edx, str.Caught_by_DebugActiveProcess_
mov ecx, 0x1008
call fcn.004010b0
push 0x1008
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0x2c8
lea eax, [ebp - 0x564]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call edi
lea ecx, [ebp - 0x568]
mov dword [ebp - 0x568], 0x10010
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x401958
cmp dword [ebp - 0x564], 0
jne 0x40193e
cmp dword [ebp - 0x560], 0
jne 0x40193e
cmp dword [ebp - 0x55c], 0
jne 0x40193e
cmp dword [ebp - 0x558], 0
jne 0x40193e
cmp dword [ebp - 0x554], 0
jne 0x40193e
cmp dword [ebp - 0x550], 0
je 0x401958
mov edx, str.Caught_by_a_Hardware_Debug_Register_Check_
mov ecx, 0x2000
call fcn.004010b0
push 0x2000
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x23c], 0
push ss
pop ss
pushfd
test byte [esp + 1], 1
jne 0x40196e
jmp 0x401978
mov dword [ebp - 0x23c], 1
nop
cmp dword [ebp - 0x23c], 0
je 0x40199c
mov edx, str.Caught_by_a_MOV_SS_Single_Step_Check_
mov ecx, 0x2001
call fcn.004010b0
push 0x2001
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x57c], 0
mov dword [ebp - 0x23c], 0
rdtsc
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x24c], eax
xor eax, eax
mov eax, 5
shr eax, 2
sub eax, ebx
cmp eax, ecx
rdtsc
mov dword [ebp - 0x57c], edx
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
sub eax, dword [ebp - 0x24c]
cmp eax, 0x10000
jle 0x401a1b
mov edx, str.Caught_by_RDTSC_
mov ecx, 0x3000
call fcn.004010b0
push 0x3000
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x248]
push eax
call esi
xor eax, eax
push eax
push ecx
pop eax
pop ecx
sub ecx, eax
shl ecx, 4
lea eax, [ebp - 0x580]
push eax
call esi
mov ecx, dword [ebp - 0x580]
sub ecx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x57c]
sbb eax, dword [ebp - 0x244]
mov dword [ebp - 0x24c], eax
js 0x401a7f
jg 0x401a65
cmp ecx, 0x1e
jbe 0x401a7f
mov edx, str.Caught_by_QueryPerformanceCounter_
mov ecx, 0x3001
call fcn.004010b0
push 0x3001
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
xor eax, eax
push eax
push ecx
pop eax
pop ecx
sub ecx, eax
shl ecx, 4
call esi
sub eax, edi
cmp eax, 0x1e
jbe 0x401ab7
mov edx, str.Caught_by_GetTickCount_
mov ecx, 0x3002
call fcn.004010b0
push 0x3002
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call fcn.004010e0
call fcn.00401170
call fcn.00401200
call fcn.00401320
call fcn.00401290
call fcn.004013a0
push 0
push str.You_Win_
push str.Congratulations__You_made_it_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00401b68
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edx, str.Caught_by_ProcessFileName_
mov ecx, 0x1009
call fcn.004010b0
push 0x1009
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov edx, str.Caught_by_FindWindow__WindowName__
mov ecx, 0x1005
call fcn.004010b0
push 0x1005
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov edx, str.Caught_by_FindWindow__ClassName__
jmp 0x401b1d