Function at 0x10000f364
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push r12
sub rsp, 0xb0
mov rax, qword [0x100019110]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ebx, ebx
mov qword [r11 - 0x48], rbx
mov byte [r11 - 0x20], bl
mov byte [r11 - 0x1f], bl
mov byte [r11 - 0x1e], bl
mov byte [r11 - 0x1d], bl
mov byte [r11 - 0x1c], bl
mov byte [r11 - 0x1b], 5
mov rsi, rbx
mov qword [r11 - 0x38], rbx
mov qword [r11 - 0x40], rbx
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x70]
mov edx, 0x2000000
lea r8d, [rbx + 1]
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_OpenThreadToken]
cmp eax, ebx
je 0x10000f3eb
mov edi, ebx
mov r12d, 0x507
jmp 0x10000f3fe
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
mov edi, eax
mov r12d, 0x507
cmp eax, ebx
cmove edi, r12d
mov dword [rsp + 0x60], edi
cmp edi, 0x3f0
jne 0x10000f444
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x70]
mov edx, 0x2000000
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_OpenProcessToken]
cmp eax, ebx
je 0x10000f433
mov edi, ebx
jmp 0x10000f440
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
mov edi, eax
cmp eax, ebx
cmove edi, r12d
mov dword [rsp + 0x60], edi
cmp edi, ebx
je 0x10000f452
mov qword [rsp + 0x70], rbx
jmp 0x10000f525
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
mov rcx, qword [rsp + 0x70]
call fcn.10000f124
mov rsi, rax
mov qword [rsp + 0x80], rax
cmp rax, rbx
je 0x10000f478
mov edi, ebx
jmp 0x10000f485
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
mov edi, eax
cmp eax, ebx
cmove edi, r12d
mov dword [rsp + 0x60], edi
cmp edi, ebx
jne 0x10000f525
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
lea r11, [rsp + 0x78]
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8d, [r9 + 0x12]
mov dl, 1
lea rcx, [rsp + 0x98]
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_AllocateAndInitializeSid]
cmp eax, ebx
je 0x10000f4da
mov edi, ebx
jmp 0x10000f4e7
call sub.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError
mov edi, eax
cmp eax, ebx
cmove edi, r12d
mov dword [rsp + 0x60], edi
cmp edi, ebx
jne 0x10000f525
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_IsValidSid]
cmp eax, ebx
jne 0x10000f509
mov edi, 0xd
mov dword [rsp + 0x60], edi
jmp 0x10000f525
mov rdx, qword [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
mov ecx, 0x65b
cmp eax, ebx
cmove edi, ecx
mov dword [rsp + 0x60], edi
jmp 0x10000f546
mov rcx, qword [rsp + 0x78]
cmp rcx, rbx
je 0x10000f556
call qword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_FreeSid]
cmp rsi, rbx
je 0x10000f56d
mov r8, rsi
xor edx, edx
mov rcx, qword [0x100019848]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x70]
cmp rcx, rbx
je 0x10000f57d
call qword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
mov ecx, edi
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_SetLastError]
cmp edi, ebx
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.100014800
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret