Function at 0x1401d3870
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 [0x1401eb040]
xor rax, rsp
mov qword [rsp + 0x780], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x1401d3ab0
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
mov rdi, rax
test rax, rax
je 0x1401d3919
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1401d3910
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 0x1401d3919
cmp dword [rsp + 0x30], esi
jne 0x1401d3ab0
jmp 0x1401d3919
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [0x1401ebd78]
mov rbx, qword [0x1401ebd70]
cmp rbx, rdi
je 0x1401d3941
nop dword [rax]
mov rcx, rbx
call fcn.1401d3490
add rbx, 0x20
cmp rbx, rdi
jne 0x1401d3930
xor edx, edx
lea rcx, [rsp + 0x2b0]
mov r8d, 0x4d0
call fcn.1401e162a
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 0x1401d39b4
cmp qword [rsp + 0x2f8], rsi
jne 0x1401d3aaa
cmp qword [rsp + 0x300], rsi
jne 0x1401d3aaa
cmp qword [rsp + 0x308], rsi
jne 0x1401d3aaa
cmp qword [rsp + 0x310], rsi
jne 0x1401d3aaa
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x1401d3aaa
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 0x1401d3aaa
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 0x1401d3aaa
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x58], 1
jbe 0x1401d3aaa
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401d3a85
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1401d3a7c
nop dword [rax]
lea rdx, str.idaq
lea rcx, [rsp + 0x9c]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x1401d3aaa
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1401d3a50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x780]
xor rcx, rsp
call fcn.1401e0720
lea r11, [rsp + 0x790]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.1401d3850
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.1401d7120
lea rdx, [0x1401d7300]
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.1401d3850
int3