Function at 0x14003aca8
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x1401d3050]
xor rax, rsp
mov qword [rbp + 0x37], rax
and qword [rbp - 0x31], 0
mov rsi, rcx
and dword [rbp - 0x39], 0
lea rcx, [rbp - 0x19]
mov ebx, 0x44
xor edx, edx
mov r8d, ebx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x29], ebx
test rsi, rsi
jne 0x14003ad2f
mov rax, qword [0x1401d3d78]
lea rcx, [0x1401d3d78]
mov edx, 0x15b3c8
mov rax, qword [rax + 8]
call qword [case.0x140007d11.0]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14003ad28
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14003aeac
cmp dword [0x1401e2064], 0
je 0x14003ad4a
mov eax, dword [reloc.AppVIsvSubsystems64.dll_Ordinal_1]
mov dword [rsi], eax
mov eax, 1
jmp 0x14003aeac
and dword [rsi], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x31]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14003ad8d
mov edx, 0x15b3c9
mov rax, qword [0x1401d3d78]
lea rcx, [0x1401d3d78]
mov rax, qword [rax + 8]
call qword [case.0x140007d11.0]
xor ebx, ebx
jmp 0x14003ae96
mov rcx, qword [rbp - 0x31]
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea ebx, [r9 + 2]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14003adb7
mov edx, 0x15b3ca
jmp 0x14003ad6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14003adc9
mov edx, 0x15b3cb
jmp 0x14003ad6e
mov ecx, dword [rbp - 0x39]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14003ade1
mov edx, 0x15b3cc
jmp 0x14003ad6e
mov r9d, dword [rbp - 0x39]
lea rax, [rbp - 0x39]
mov rcx, qword [rbp - 0x31]
mov r8, rdi
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14003ae22
mov edx, 0x15b3cd
mov rax, qword [0x1401d3d78]
lea rcx, [0x1401d3d78]
mov rax, qword [rax + 8]
call qword [case.0x140007d11.0]
xor ebx, ebx
jmp 0x14003ae8d
xor edx, edx
lea r9, [rbp - 0x29]
lea r8, [rbp - 0x19]
lea ecx, [rdx + 0xb]
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x14003ae40
mov edx, 0x15b3ce
jmp 0x14003ae06
xor r14d, r14d
lea ebx, [r14 + 1]
cmp r14d, dword [rdi]
jae 0x14003ae7f
mov r15d, r14d
add r15, r15
mov rcx, qword [rdi + r15*8 + 8]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14003ae74
mov rdx, qword [rdi + r15*8 + 8]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14003ae79
add r14d, ebx
jmp 0x14003ae47
mov dword [rsi], ebx
mov eax, ebx
jmp 0x14003ae81
mov eax, dword [rsi]
mov dword [0x1401e2064], ebx
mov dword [reloc.AppVIsvSubsystems64.dll_Ordinal_1], eax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14003aeaa
and qword [rbp - 0x31], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140118d00
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret