Function at 0x1400a6650
Capabilities:
Allocate or change rwx memory
Check for debugger via api
Check for outputdebugstring error
Check for software breakpoints
Check for time delay via gettickcount
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x490]
sub rsp, 0x590
mov rax, qword [0x1400de040]
xor rax, rsp
mov qword [rbp + 0x480], rax
xor esi, esi
mov dword [rbp - 0x70], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rbp - 0x70], esi
je 0x1400a66a9
lea rdx, str.Debugger_detected:_IsDebuggerPresentCustom
jmp 0x1400a6957
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x20], 0x100010
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400a66fc
cmp qword [rbp - 8], rsi
jne 0x1400a66f0
cmp qword [rbp], rsi
jne 0x1400a66f0
cmp qword [rbp + 8], rsi
jne 0x1400a66f0
cmp qword [rbp + 0x10], rsi
je 0x1400a66fc
lea rdx, str.Debugger_detected:_CheckHardwareBreakpoints
jmp 0x1400a6957
call fcn.1400a5e20
test al, al
je 0x1400a6711
lea rdx, str.Debugger_detected:_IsDebuggingWindowPresent
jmp 0x1400a6957
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str.Anti_debugging_test
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400a673c
lea rdx, str.Debugger_detected:_CheckOutputDebugString
jmp 0x1400a6957
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x3e8
jae 0x1400a676a
lea rdx, str.Debugger_detected:_CheckTimingDiscrepancies
jmp 0x1400a6957
mov edx, 0x1000
mov r9d, 0x40
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rsi
cmp byte [rcx + rax], 0xcc
je 0x1400a6950
inc rcx
cmp rcx, 0x1000
jb 0x1400a6783
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [0x1400c9cb8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x1400a67dd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Debugger_detected:_CheckCheatEngineDriver
jmp 0x1400a6957
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [0x1400c9ca8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x1400a6821
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Debugger_detected:_Checkx64dbgDriver
jmp 0x1400a6957
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rax
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x60], xmm1
mov r8d, 0xe
lea rdx, str..CEDRIVER72
lea rcx, [rsp + 0x50]
call fcn.14000e710
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x80], xmm1
mov r8d, 0xa
lea rdx, str..x64dbg
lea rcx, [rsp + 0x70]
call fcn.14000e710
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.1400a7500
nop
lea r9, [fcn.140003a20]
mov edx, 0x20
mov r8d, 2
lea rcx, [rsp + 0x50]
call fcn.1400b5f18
mov rbx, qword [rbp - 0x68]
mov rdi, qword [rbp - 0x60]
cmp rbx, rdi
je 0x1400a6910
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400a68df
mov rcx, qword [rbx]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400a6920
add rbx, 0x20
cmp rbx, rdi
jne 0x1400a68d2
xor bl, bl
lea rcx, [rbp - 0x68]
call fcn.1400a7640
movzx eax, bl
jmp 0x1400a6975
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Debugger_detected:_CheckProgramDriver
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140099390
lea rdx, [0x140099570]
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]
mov bl, 1
jmp 0x1400a6912
lea rdx, str.Debugger_detected:_CheckSoftwareBreakpoints
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140099390
lea rdx, [0x140099570]
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]
mov al, 1
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.1400b5c20
lea r11, [rsp + 0x590]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret