Function at 0x1800387c0
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x180284030]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x98], 0
mov byte [rsp + 0x88], 0
mov byte [rsp + 0x89], 0
mov byte [rsp + 0x8a], 0
mov byte [rsp + 0x8b], 0
mov byte [rsp + 0x8c], 0
mov byte [rsp + 0x8d], 5
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x7c], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1800388ac
xor eax, eax
jmp 0x180038aa5
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x68]
mov r8d, 1
mov edx, 0x2000a
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x180038907
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 0x2000a
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x180038907
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x60], 0
xor eax, eax
jmp 0x180038aa5
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x90]
mov edx, 2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
mov edx, 1
mov ecx, eax
call fcn.1800dd550
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x180038988
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], 0
xor eax, eax
jmp 0x180038aa5
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x90]
mov edx, 2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0xa0], 0
jmp 0x1800389dd
mov rax, qword [rsp + 0xa0]
inc rax
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
cmp qword [rsp + 0xa0], rax
jae 0x180038a5d
mov rax, qword [rsp + 0xa0]
imul rax, rax, 0x10
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + rax + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x180038a58
mov rax, qword [rsp + 0xa0]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + rax + 0x10]
and eax, 4
test eax, eax
jne 0x180038a4b
mov rax, qword [rsp + 0xa0]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + rax + 0x10]
and eax, 2
test eax, eax
je 0x180038a58
mov dword [rsp + 0x98], 1
jmp 0x180038a5d
jmp 0x1800389ca
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x90]
call fcn.1800dd530
mov qword [rsp + 0x90], 0
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1800d65d0
add rsp, 0xb8
ret