Function at 0x1401d51c0
Capabilities:
Check for debugger via api
Enumerate processes
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x790
mov rax, qword [0x1401ee040]
xor rax, rsp
mov qword [rsp + 0x780], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x1401d5400
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
mov rdi, rax
test rax, rax
je 0x1401d5269
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1401d5260
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov qword [rsp + 0x20], rsi
mov rcx, rax
lea r8, [rsp + 0x30]
mov edx, 7
call rbx
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x1401d5269
cmp dword [rsp + 0x30], esi
jne 0x1401d5400
jmp 0x1401d5269
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [0x1401eefc8]
mov rbx, qword [0x1401eefc0]
cmp rbx, rdi
je 0x1401d5291
nop dword [rax]
mov rcx, rbx
call fcn.1401d4de0
add rbx, 0x20
cmp rbx, rdi
jne 0x1401d5280
xor edx, edx
lea rcx, [rsp + 0x2b0]
mov r8d, 0x4d0
call fcn.1401e330a
mov dword [rsp + 0x2e0], 0x100010
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea rdx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1401d5304
cmp qword [rsp + 0x2f8], rsi
jne 0x1401d53fa
cmp qword [rsp + 0x300], rsi
jne 0x1401d53fa
cmp qword [rsp + 0x308], rsi
jne 0x1401d53fa
cmp qword [rsp + 0x310], rsi
jne 0x1401d53fa
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x1401d53fa
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rsp + 0x30], esi
jne 0x1401d53fa
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rsp + 0x30], esi
jne 0x1401d53fa
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x58], 1
jbe 0x1401d53fa
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401d53d5
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1401d53cc
nop dword [rax]
lea rdx, str.idaq
lea rcx, [rsp + 0x9c]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x1401d53fa
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1401d53a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x780]
xor rcx, rsp
call fcn.1401e23f0
lea r11, [rsp + 0x790]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.1401d51a0
int3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Debugger_detected__Terminating_process.
call fcn.1401d8930
lea rdx, [0x1401d8b10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call fcn.1401d51a0
int3