Function at 0x140035bf0
Capabilities:
Check for debugger via api
Check processdebugflags
Check processdebugport

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x140175540]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov r14, rcx
xor r15d, r15d
mov edi, r15d
mov dword [rsp + 0x30], r15d
mov esi, r15d
lea rcx, [rsp + 0x60]
call fcn.1400c39f0
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400c38a0
nop
mov r8d, 0xe
lea rdx, str._debug_log.txt
mov rcx, rax
call fcn.1400269e0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], r15b
or edi, 1
lea rcx, [rsp + 0x40]
call fcn.140004030
nop
lea rcx, [rsp + 0x60]
call fcn.1400041a0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rbx, qword [rbp - 0x70]
lea rax, [0x1401418f0]
mov qword [rbp - 0x50], rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or edi, 2
mov dword [rsp + 0x30], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rdi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x48], rax
mov byte [rbp + 0x34], r15b
mov byte [rbp + 0x29], r15b
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x38], r15
mov rax, qword [0x1401b2d20]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], r15
mov r8d, 0xa
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.140026a70
test rax, rax
jne 0x140035d8e
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], rdi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
cmp qword [sym.imp.ntdll.dll_NtQueryInformationProcess], 0
je 0x140035dc1
cmp qword [sym.imp.ntdll.dll_NtQuerySystemInformation], 0
jne 0x140035dd6
lea rdx, str.Failed_to_get_function_addresses_for_NtQueryInformationProcess_or_NtQuerySystemInformation_n
lea rcx, [rbp - 0x50]
call fcn.140004930
mov esi, 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140035df5
lea rdx, str.Debugger_detected_via_IsDebuggerPresent___n
lea rcx, [rbp - 0x50]
call fcn.140004930
mov esi, 1
call fcn.140035730
test eax, eax
je 0x140035e13
lea rdx, str.Debugger_detected_via_PEB_BeingDebugged_flag_n
lea rcx, [rbp - 0x50]
call fcn.140004930
mov esi, 1
mov dword [rbp - 0x80], r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov qword [rsp + 0x20], r15
mov r9d, 4
lea r8, [rbp - 0x80]
mov edx, 7
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jne 0x140035e58
cmp dword [rbp - 0x80], eax
je 0x140035e58
lea rdx, str.Debugger_detected_via_NtQueryInformationProcess_ProcessDebugPort_n
lea rcx, [rbp - 0x50]
call fcn.140004930
mov esi, 1
mov dword [rbp - 0x7c], r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov qword [rsp + 0x20], r15
mov r9d, 4
lea r8, [rbp - 0x7c]
mov edx, 0x1f
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jne 0x140035e9d
cmp dword [rbp - 0x7c], eax
jne 0x140035e9d
lea rdx, str.Debugger_detected_via_NtQueryInformationProcess_ProcessDebugFlags_n
lea rcx, [rbp - 0x50]
call fcn.140004930
mov esi, 1
mov dword [rbp - 0x78], r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
je 0x140035ed3
cmp dword [rbp - 0x78], 0
je 0x140035ed3
lea rdx, str.Debugger_detected_via_CheckRemoteDebuggerPresent_n
lea rcx, [rbp - 0x50]
call fcn.140004930
mov esi, 1
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp + 0xc0]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xf0], 0x100010
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea rdx, [rbp + 0xc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140035f48
cmp qword [rbp + 0x108], 0
jne 0x140035f33
cmp qword [rbp + 0x110], 0
jne 0x140035f33
cmp qword [rbp + 0x118], 0
jne 0x140035f33
cmp qword [rbp + 0x120], 0
je 0x140035f48
lea rdx, str.Debugger_detected_via_hardware_breakpoints_n
lea rcx, [rbp - 0x50]
call fcn.140004930
mov esi, 1
call fcn.1400358e0
test eax, eax
je 0x140035f66
lea rdx, str.Possible_memory_dumping_detected_via_handle_enumeration_n
lea rcx, [rbp - 0x50]
call fcn.140004930
mov esi, 1
lea rcx, [rbp - 0x48]
call fcn.1400191d0
test rax, rax
jne 0x140035f91
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov dword [r14], esi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], rdi
mov rcx, qword [rbp - 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xa8]
mov dword [rbp + rdx - 0x54], r8d
lea rcx, [rbp - 0x48]
call fcn.140018e10
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x70]
call fcn.140004030
mov eax, esi
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.1400ef390
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret