Function at 0x1800037f4
Capabilities:
Check os version
Compare security identifiers

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x1c0
mov rax, qword [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xor r14d, r14d
mov r13, rdx
mov ebx, ecx
mov qword [rsp + 0x70], r14
mov edi, r14d
mov qword [rsp + 0x78], r14
cmp ecx, 0xffffffff
je 0x180003855
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, ebx
je 0x180003855
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x18000385b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rsi, rax
cmp rax, r14
je 0x180003a55
mov ebp, 8
lea r8, [rsp + 0x70]
mov rcx, rax
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, r14d
je 0x180003a55
lea rcx, [rsp + 0x94]
xor edx, edx
mov r8d, VarUI4FromDisp
mov dword [rsp + 0x90], VarUI4FromDisp
call fcn.180059db0
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x94], 6
jb 0x180003913
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
lea r9d, [rbp - 4]
lea r8, [rsp + 0x64]
lea edx, [rbp + 0xc]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x64], r14d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, r14d
je 0x180003a55
cmp dword [rsp + 0x68], 4
lea edi, [rbp - 7]
jne 0x180003a55
cmp dword [rsp + 0x64], r14d
mov eax, r14d
setne al
mov dword [r13], eax
jmp 0x180003a55
lea rax, [rsp + 0x78]
mov r8d, 0x20
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
lea r12d, [r8 - 0x1e]
mov dword [rsp + 0x30], r14d
mov r9d, 0x220
mov dl, r12b
mov dword [rsp + 0x28], r14d
mov byte [rsp + 0x80], r14b
mov byte [rsp + 0x81], r14b
mov byte [rsp + 0x82], r14b
mov dword [rsp + 0x20], r14d
mov byte [rsp + 0x83], r14b
mov byte [rsp + 0x84], r14b
mov byte [rsp + 0x85], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, r14d
je 0x180003a55
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180003a55
mov ebx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, r14
je 0x180003a55
mov r9d, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov r8, rbx
mov edx, r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, r14d
je 0x180003a41
lea edi, [r12 - 1]
mov ebp, r14d
cmp dword [rbx], r14d
jbe 0x180003a41
lea r12, [rbx + 8]
mov rdx, qword [r12]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, r14d
jne 0x180003a3d
add ebp, edi
add r12, 0x10
cmp ebp, dword [rbx]
jb 0x180003a1d
jmp 0x180003a41
mov dword [r13], edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x78]
cmp rcx, r14
je 0x180003a65
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
cmp rcx, r14
je 0x180003a75
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, r14
je 0x180003a83
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.180059760
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret