Function at 0x40e490
Capabilities:
Check for peb beingdebugged flag
Create thread
Hide thread from debugger

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413548
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x418040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword fs:[0x30]
cmp byte [eax + 2], 0
je 0x40e4d3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x40dd20
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40dc80
push 0
push 0
mov dword [ebp - 0x300], eax
call esi
push str.NtSetInformationThread
push str.ntdll.dll
mov dword [ebp - 0x304], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40e544
mov eax, dword [ebp - 0x300]
push 0
push 0
push 0x11
test eax, eax
jne 0x40e541
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call edi
jmp 0x40e54a
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push str.NtSetInformationThread
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40e57c
mov eax, dword [ebp - 0x304]
push 0
push 0
push 0x11
test eax, eax
jne 0x40e579
call esi
push eax
call edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Input_the_flag:
call fcn.0040f9c0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.0040fc10
push 0x2c8
lea eax, [ebp - 0x2f4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2f8], 0x10010
call esi
lea ecx, [ebp - 0x2f8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x40e628
cmp dword [ebp - 0x2f4], 0
jne 0x40e612
cmp dword [ebp - 0x2f0], 0
jne 0x40e612
cmp dword [ebp - 0x2ec], 0
jne 0x40e612
cmp dword [ebp - 0x2e8], 0
je 0x40e628
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.HWBP_Detected_
call fcn.0040f9c0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
mov ecx, dword [0x4186e4]
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0x24
jne 0x40e682
xorps xmm0, xmm0
mov dword [ebp - 0x308], 0
lea ecx, [ebp - 0x310]
movq qword [ebp - 0x310], xmm0
call fcn.0040e430
push 0x416be4
mov eax, ecx
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push ecx
call fcn.00401700
mov ecx, dword [0x4186e4]
add esp, 4
mov eax, dword [ecx]
call dword [eax]
mov eax, 0x40e682
ret
sub esp, 0x18
mov dword [ebp - 4], 0
mov eax, dword [0x4186e4]
mov esi, esp
mov dword [ebp - 0x304], esp
sub esp, 0x18
mov ecx, esp
lea edi, [eax + 0x1c]
add eax, 4
push eax
call fcn.0040efe0
mov ecx, esi
call fcn.00401b80
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
mov ecx, esp
push eax
call fcn.0040efe0
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 0
call fcn.0040d5a0
add esp, 0x30
mov edx, edi
cmp dword [edi + 0x14], 0xf
jbe 0x40e6dc
mov edx, dword [edi]
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x40e6e6
mov ecx, dword [eax]
mov esi, dword [eax + 0x10]
cmp esi, dword [edi + 0x10]
jne 0x40e74a
sub esi, 4
jb 0x40e704
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40e709
add ecx, 4
add edx, 4
sub esi, 4
jae 0x40e6f3
cmp esi, 0xfffffffc
je 0x40e73d
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40e736
cmp esi, 0xfffffffd
je 0x40e73d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40e736
cmp esi, 0xfffffffe
je 0x40e73d
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40e736
cmp esi, 0xffffffff
je 0x40e73d
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40e73d
sbb eax, eax
or eax, 1
jmp 0x40e73f
xor eax, eax
mov byte [ebp - 0x2f9], 1
test eax, eax
je 0x40e751
mov byte [ebp - 0x2f9], 0
mov ecx, dword [ebp - 0x314]
cmp ecx, 0xf
jbe 0x40e78d
mov edx, dword [ebp - 0x328]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e783
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e783
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00410f83
add esp, 8
cmp byte [ebp - 0x2f9], 0
je 0x40e7a9
push str.Congratuate_
call fcn.00401250
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Wrong...
call fcn.0040f9c0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3