Function at 0x140005af0
Capabilities:
Check for debugger via api
Check for outputdebugstring error
Encode data using xor
Hide thread from debugger
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400bb088]
xor rax, rsp
mov qword [rbp - 0x10], rax
movdqa xmm0, xmmword [0x1400ad0f0]
movdqu xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x1400accb0]
movdqu xmmword [rbp - 0x30], xmm1
mov dword [rbp - 0x20], 0x696b6f76
mov word [rbp - 0x1c], 0x100
xor ecx, ecx
nop word [rax + rax]
lea eax, [rcx - 0x1e]
xor byte [rbp + rcx - 0x40], al
inc rcx
cmp rcx, 0x24
jb 0x140005b40
mov byte [rbp - 0x1b], 0
lea rcx, [rbp - 0x40]
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBeginUltra]
call fcn.140003490
test al, al
jne 0x140005cb3
call fcn.1400057a0
call fcn.140005780
call fcn.140005750
call fcn.140005400
call fcn.140005640
mov dword [rbp - 0x18], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rbp - 0x18], 0
jne 0x140005cf7
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140005d2b
call fcn.140010100
call fcn.1400032d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str.ReFo_Security
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.140004550
call fcn.1400053b0
call fcn.140005130
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140005d5f
call fcn.140005300
test al, al
jne 0x140005d96
lea rcx, [0x140096928]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtSetInformationThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x11]
call rbx
test eax, eax
jne 0x140005dd0
call fcn.140004490
test eax, eax
jne 0x140005c7f
mov qword [rbp - 0x18], 0x7d0
lea rcx, [rbp - 0x18]
call fcn.14000d480
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140080f30
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
movdqa xmm0, xmmword [0x1400ad0a0]
movdqu xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], 0x1009797
lea rcx, [rbp - 0x60]
call fcn.1400053d0
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140003560
nop
lea rcx, [rbp - 0x40]
call fcn.1400043f0
nop
movdqa xmm0, xmmword [0x1400ad050]
movdqu xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x1400acc30]
movdqu xmmword [rbp - 0x30], xmm1
mov word [rbp - 0x20], reloc.WLDAP32.dll_Ordinal_35
mov byte [rbp - 0x1e], 1
lea rcx, [rbp - 0x40]
call fcn.140005610
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140003560
nop
lea rcx, [rbp - 0x60]
call fcn.1400043f0
nop
movdqa xmm0, xmmword [0x1400ad0a0]
movdqu xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], 0x1009797
lea rcx, [rbp - 0x60]
call fcn.1400053d0
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140003560
nop
lea rcx, [rbp - 0x40]
call fcn.1400043f0
nop
movdqa xmm0, xmmword [0x1400ad0a0]
movdqu xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], 0x1009797
lea rcx, [rbp - 0x60]
call fcn.1400053d0
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140003560
nop
lea rcx, [rbp - 0x40]
call fcn.1400043f0
nop
movdqa xmm0, xmmword [0x1400ad120]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x50], __WSAFDIsSet
mov byte [rbp - 0x4e], 1
lea rcx, [rbp - 0x60]
call fcn.1400050d0
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140003560
nop
lea rcx, [rbp - 0x40]
call fcn.1400043f0
nop
movdqa xmm0, xmmword [0x1400ad140]
movdqu xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], 0x9b91839d
mov word [rbp - 0x4c], 0x100
lea rcx, [rbp - 0x60]
call fcn.140005ac0
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140003560
nop
lea rcx, [rbp - 0x40]
call fcn.1400043f0
nop
movdqa xmm0, xmmword [0x1400ad0a0]
movdqu xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], 0x1009797
lea rcx, [rbp - 0x60]
call fcn.1400053d0
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140003560
nop
lea rcx, [rbp - 0x40]
call fcn.1400043f0
int3