Function at 0x140001670
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 - 0x480]
sub rsp, 0x580
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x470], rax
xor esi, esi
mov dword [rbp - 0x68], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rbp - 0x68], esi
jne 0x1400017cd
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x30], 0x100010
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140001718
cmp qword [rbp - 0x18], rsi
jne 0x1400017cd
cmp qword [rbp - 0x10], rsi
jne 0x1400017cd
cmp qword [rbp - 8], rsi
jne 0x1400017cd
cmp qword [rbp], rsi
jne 0x1400017cd
call fcn.1400011c0
test al, al
jne 0x1400017cd
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str.Anti_debugging
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400017cd
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
jb 0x1400017cd
mov edx, 0x1000
xor ecx, ecx
mov r9d, 0x40
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rsi
cmp byte [rcx + rax], 0xcc
je 0x1400017cd
inc rcx
cmp rcx, 0x1000
jb 0x140001783
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, [0x140007820]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x14000181a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Debugger_detected
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400042a0
lea rdx, [0x140004480]
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 + 0x470]
xor rcx, rsp
call fcn.140005680
lea r11, [rsp + 0x580]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
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, [0x140007830]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x1400017c4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
lea rdx, str..CEDRIVER72
lea rcx, [rsp + 0x40]
call fcn.140003f70
nop
lea rdx, str..x64dbg
lea rcx, [rsp + 0x60]
call fcn.140003f70
nop
lea rdi, [rsp + 0x40]
lea rbx, [rbp - 0x80]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rsi
mov ecx, 0x40
call fcn.1400056a0
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
lea r8, [rax + 0x40]
mov qword [rbp - 0x70], r8
lea r8, [rbp - 0x80]
mov qword [rbp - 0x68], r8
lea r9, [rbp - 0x80]
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call fcn.140005480
mov qword [rbp - 0x78], rax
lea r9, [0x140003f00]
mov edx, 0x20
mov r8d, 2
lea rcx, [rsp + 0x40]
call fcn.1400056dc
mov rbx, qword [rbp - 0x80]
mov rdi, qword [rbp - 0x78]
cmp rbx, rdi
je 0x140001936
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140001901
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 0x140001981
add rbx, 0x20
cmp rbx, rdi
jne 0x1400018f4
mov rbx, qword [rbp - 0x80]
xor dil, dil
test rbx, rbx
je 0x1400019bb
mov rdx, qword [rbp - 0x78]
mov rcx, rbx
call fcn.140004980
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x80]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Debugger_detected
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400042a0
mov rcx, rax
lea rdx, [0x140004480]
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 dil, 1
mov rbx, qword [rbp - 0x80]
jmp 0x140001939
call fcn.1400057ac
movzx eax, dil
jmp 0x1400017f2