Function at 0x1020054
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x01044480]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rcx, [0x0100d628]
call fcn.01011d38
xor edi, edi
mov byte [rsp + 0x85], 5
mov byte [rsp + 0x80], dil
mov byte [rsp + 0x81], dil
mov byte [rsp + 0x82], dil
mov byte [rsp + 0x83], dil
mov byte [rsp + 0x84], dil
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ebx, [rdi + 8]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rcx, rax
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp eax, edi
jne 0x1020109
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x1020102
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, edi
jne 0x1020109
xor eax, eax
jmp 0x1020298
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
lea rax, [rsp + 0x60]
lea esi, [r9 + 2]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, edi
jne 0x1020102
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1020102
mov ebx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, rdi
je 0x1020102
mov r9d, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov r8, rbx
mov edx, esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, edi
jne 0x1020195
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1020102
lea rax, [rsp + 0x70]
mov ebp, 0x20
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov r9d, 0x220
mov r8d, ebp
mov dl, sil
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, edi
je 0x102017c
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x80]
mov r9d, 0x223
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov r8d, ebp
mov dl, sil
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, edi
jne 0x102023e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x1020102
mov esi, edi
cmp dword [rbx], edi
jbe 0x102026c
lea rbp, [rbx + 8]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, edi
jne 0x1020267
inc esi
add rbp, 0x10
cmp esi, dword [rbx]
jb 0x1020248
jmp 0x102026c
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.01028cb0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret