Function at 0x1400347d0
Capabilities:
Check for debugger via api
Check processdebugflags
Check processdebugport
Enumerate processes

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 - 0x640]
sub rsp, 0x740
mov rax, qword [0x140174540]
xor rax, rsp
mov qword [rbp + 0x630], rax
mov r15, rcx
xor ebx, ebx
mov esi, ebx
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r8d, 8
lea rdx, str.debug_log.txt
lea rcx, [rsp + 0x40]
call fcn.140034c30
nop
cmp qword [sym.imp.ntdll.dll_NtQueryInformationProcess], rbx
je 0x140034847
cmp qword [sym.imp.ntdll.dll_NtQuerySystemInformation], rbx
jne 0x14003485d
lea rdx, str.Failed_to_get_function_addresses_for_NtQueryInformationProcess_or_NtQuerySystemInformation_n
lea rcx, [rsp + 0x40]
call fcn.140004790
mov esi, 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14003487d
lea rdx, str.Debugger_detected_via_IsDebuggerPresent___n
lea rcx, [rsp + 0x40]
call fcn.140004790
mov esi, 1
call fcn.140034620
test eax, eax
je 0x14003489c
lea rdx, str.Debugger_detected_via_PEB_BeingDebugged_flag_n
lea rcx, [rsp + 0x40]
call fcn.140004790
mov esi, 1
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov qword [rsp + 0x20], rbx
mov r9d, 4
lea r8, [rsp + 0x30]
mov edx, 7
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jne 0x1400348e4
cmp dword [rsp + 0x30], eax
je 0x1400348e4
lea rdx, str.Debugger_detected_via_NtQueryInformationProcess_ProcessDebugPort_n
lea rcx, [rsp + 0x40]
call fcn.140004790
mov esi, 1
mov dword [rsp + 0x34], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov qword [rsp + 0x20], rbx
mov r9d, 4
lea r8, [rsp + 0x34]
mov edx, 0x1f
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jne 0x14003492c
cmp dword [rsp + 0x34], eax
jne 0x14003492c
lea rdx, str.Debugger_detected_via_NtQueryInformationProcess_ProcessDebugFlags_n
lea rcx, [rsp + 0x40]
call fcn.140004790
mov esi, 1
mov dword [rsp + 0x38], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
je 0x140034965
cmp dword [rsp + 0x38], 0
je 0x140034965
lea rdx, str.Debugger_detected_via_CheckRemoteDebuggerPresent_n
lea rcx, [rsp + 0x40]
call fcn.140004790
mov esi, 1
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp + 0x160]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x190], 0x100010
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea rdx, [rbp + 0x160]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400349db
cmp qword [rbp + 0x1a8], 0
jne 0x1400349c5
cmp qword [rbp + 0x1b0], 0
jne 0x1400349c5
cmp qword [rbp + 0x1b8], 0
jne 0x1400349c5
cmp qword [rbp + 0x1c0], 0
je 0x1400349db
lea rdx, str.Debugger_detected_via_hardware_breakpoints_n
lea rcx, [rsp + 0x40]
call fcn.140004790
mov esi, 1
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov r8d, 8
lea rdx, str.debug_log.txt
lea rcx, [rbp + 0x50]
call fcn.140034c30
nop
mov rbx, qword [0x1401b2030]
mov r14, qword [0x1401b2038]
cmp rbx, r14
je 0x140034a9c
nop word [rax + rax]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140034a93
mov dword [rbp + 0x160], 0x238
lea rdx, [rbp + 0x160]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140034a8a
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140034a61
mov rdx, qword [rbx]
lea rcx, [rbp + 0x18c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rdi
test eax, eax
je 0x140034b83
lea rdx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140034a54
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 0x20
cmp rbx, r14
jne 0x140034a20
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x50], rbx
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x4c], edx
lea rcx, [rbp + 0x58]
call fcn.1400185e0
lea rcx, [rbp + 0x60]
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 + 0xf8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x48]
call fcn.1400189a0
test rax, rax
jne 0x140034b10
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
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 [r15], esi
mov rcx, qword [rsp + 0x40]
movsxd rdx, dword [rcx + 4]
mov qword [rsp + rdx + 0x40], rbx
mov rcx, qword [rsp + 0x40]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xa8]
mov dword [rsp + rdx + 0x3c], r8d
lea rcx, [rsp + 0x48]
call fcn.1400185e0
lea rcx, [rsp + 0x50]
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 - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, esi
mov rcx, qword [rbp + 0x630]
xor rcx, rsp
call fcn.1400eecb0
lea r11, [rsp + 0x740]
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
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov edi, dword [rbp + 0x168]
test edi, edi
je 0x140034a93
lea rdx, str.Possible_memory_dumping_detected._PID:
lea rcx, [rbp + 0x50]
call fcn.140004790
mov edx, edi
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140149750]
call fcn.140004790
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x50], rbx
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x4c], edx
lea rcx, [rbp + 0x58]
call fcn.1400185e0
lea rcx, [rbp + 0x60]
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 + 0xf8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rdx, str.Possible_memory_dumping_detected_via_handle_enumeration_n
lea rcx, [rsp + 0x40]
call fcn.140004790
mov esi, 1
jmp 0x140034ae2