IsDebuggerPresent is a WinAPI that checks if the calling process is being observed by a debugger.
https://anti-debug.checkpoint.com/techniques/debug-flags.html
https://learn.microsoft.com/en-us/windows/win32/api/debugapi/nf-debugapi-isdebuggerpresent