Function at 0x140057780
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 [0x140083010]
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 0x140057807
mov rax, qword [0x140083518]
lea rcx, [0x140083518]
mov edx, 0x15b3c8
mov rax, qword [rax + 8]
call qword [case.0x140015ba5.0]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140057800
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140057984
cmp dword [0x1400862d0], 0
je 0x140057822
mov eax, dword [reloc.AppVIsvSubsystems64.dll_Ordinal_1]
mov dword [rsi], eax
mov eax, 1
jmp 0x140057984
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 0x140057865
mov edx, 0x15b3c9
mov rax, qword [0x140083518]
lea rcx, [0x140083518]
mov rax, qword [rax + 8]
call qword [case.0x140015ba5.0]
xor ebx, ebx
jmp 0x14005796e
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 0x14005788f
mov edx, 0x15b3ca
jmp 0x140057846
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400578a1
mov edx, 0x15b3cb
jmp 0x140057846
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 0x1400578b9
mov edx, 0x15b3cc
jmp 0x140057846
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 0x1400578fa
mov edx, 0x15b3cd
mov rax, qword [0x140083518]
lea rcx, [0x140083518]
mov rax, qword [rax + 8]
call qword [case.0x140015ba5.0]
xor ebx, ebx
jmp 0x140057965
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 0x140057918
mov edx, 0x15b3ce
jmp 0x1400578de
xor r14d, r14d
lea ebx, [r14 + 1]
cmp r14d, dword [rdi]
jae 0x140057957
mov r15d, r14d
add r15, r15
mov rcx, qword [rdi + r15*8 + 8]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14005794c
mov rdx, qword [rdi + r15*8 + 8]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140057951
add r14d, ebx
jmp 0x14005791f
mov dword [rsi], ebx
mov eax, ebx
jmp 0x140057959
mov eax, dword [rsi]
mov dword [0x1400862d0], 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 0x140057982
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.14005ccf0
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