Function at 0x1400357c0
Capabilities:
Check for debugger via api
Create thread
Get token membership

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1400eb0c0]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov rbx, rcx
mov edi, r9d
mov ecx, 8
call fcn.1400bbb28
lea rcx, [0x140006a30]
xor r14d, r14d
mov r9, rax
lea r8, [0x14004e530]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140035b12
cmp dword [rsp + 0x78], r14d
je 0x140035b06
movaps xmm0, xmmword [rsp + 0x70]
lea rcx, [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140035b06
xorps xmm0, xmm0
mov dword [rbp], r14d
movdqa xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rbp], r14d
jne 0x140035ac2
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140035ac2
call fcn.140017be0
test al, al
jne 0x140035ac2
call fcn.140017fb0
test al, al
jne 0x140035ac2
lea rax, [rsp + 0x70]
mov dword [rbp], r14d
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 4]
mov dword [rsp + 0x48], r14d
mov r9d, 0x220
mov dword [rsp + 0x40], r14d
mov r8d, reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0x38], r14d
mov dl, 2
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x70], r14
mov dword [rbp + 4], r14d
mov word [rbp + 8], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140035927
mov rdx, qword [rsp + 0x70]
lea r8, [rbp]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14003591c
mov dword [rbp], r14d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp], 1
mov rcx, qword [0x1400ecf40]
jne 0x140035ac9
mov qword [rsp + 0x148], rsi
test rcx, rcx
je 0x140035959
xor r9d, r9d
mov edx, 0x402
mov r8d, Ordinal_27
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, 0x64
lea r8, [0x1400ece70]
mov edx, 0x67
mov rcx, rbx
call qword [sym.imp.USER32.dll_LoadStringW]
lea rsi, [0x1400ecb40]
mov r9d, 0x64
mov r8, rsi
mov edx, WSAGetLastError
mov rcx, rbx
call qword [sym.imp.USER32.dll_LoadStringW]
lea rax, [0x140036500]
mov dword [rbp - 0x80], 0x50
mov edx, 0x7f00
mov qword [rbp - 0x78], rax
xor ecx, ecx
mov dword [rbp - 0x7c], 3
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], rbx
call qword [sym.imp.USER32.dll_LoadCursorW]
xor ecx, ecx
mov qword [rbp - 0x58], rax
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, 2
mov qword [rbp - 0x48], r14
mov rcx, rbx
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], rsi
call qword [sym.imp.USER32.dll_LoadIconW]
mov edx, WSAGetLastError
mov rcx, rbx
mov qword [rbp - 0x60], rax
call qword [sym.imp.USER32.dll_LoadIconW]
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x38], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov edx, edi
mov rcx, rbx
call fcn.140035b30
mov rsi, qword [rsp + 0x148]
test eax, eax
je 0x140035b02
mov edx, WSAGetLastError
mov rcx, rbx
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
lea rcx, [rbp + 0x10]
mov dword [rbp + 0x10], 8
mov rbx, rax
mov dword [rbp + 0x14], 1
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xor r9d, r9d
lea rcx, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140035a9f
nop
mov rcx, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
mov rdx, rbx
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x140035a89
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140035a60
mov eax, dword [rbp - 0x20]
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1400bbb00
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [0x1400ecf40]
test rcx, rcx
je 0x140035afa
xor r9d, r9d
mov r8d, 0x64
mov edx, 0x402
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1400ecf40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EndDialog]
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
jmp 0x140035aa2
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rsp + 0x78], r14d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3