Function at 0x140114e24
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 [0x1401cd010]
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 0x140114ea7
mov rcx, qword [0x1401cd740]
mov edx, 0x15b3c8
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140114ea0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14011501c
cmp dword [0x1401d3d50], 0
je 0x140114ec2
mov eax, dword [reloc.AppVIsvSubsystems64.dll_Ordinal_1]
mov dword [rsi], eax
mov eax, 1
jmp 0x14011501c
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 0x140114f01
mov edx, 0x15b3c9
mov rcx, qword [0x1401cd740]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
xor ebx, ebx
jmp 0x140115006
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 0x140114f2b
mov edx, 0x15b3ca
jmp 0x140114ee6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140114f3d
mov edx, 0x15b3cb
jmp 0x140114ee6
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 0x140114f55
mov edx, 0x15b3cc
jmp 0x140114ee6
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 0x140114f92
mov edx, 0x15b3cd
mov rcx, qword [0x1401cd740]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400ee2b6.0]
xor ebx, ebx
jmp 0x140114ffd
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 0x140114fb0
mov edx, 0x15b3ce
jmp 0x140114f7a
xor r14d, r14d
lea ebx, [r14 + 1]
cmp r14d, dword [rdi]
jae 0x140114fef
mov r15d, r14d
add r15, r15
mov rcx, qword [rdi + r15*8 + 8]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140114fe4
mov rdx, qword [rdi + r15*8 + 8]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140114fe9
add r14d, ebx
jmp 0x140114fb7
mov dword [rsi], ebx
mov eax, ebx
jmp 0x140114ff1
mov eax, dword [rsi]
mov dword [0x1401d3d50], 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 0x14011501a
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.14012aa20
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