Function at 0x18005e010
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x90
mov rax, qword [0x180572380]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor esi, esi
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdi
mov edi, esi
mov qword [r11 - 0x30], rsi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x78], esi
mov qword [r11 - 0x28], rsi
mov word [rsp + 0x7c], 0x500
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x18005e0a9
lea rdx, str.OpenProcessToken_Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.18001e910
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x180023460]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x18005e1b6
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x18005e0e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x18005e0e1
lea rdx, str.GetTokenInformation_Error:
jmp 0x18005e074
mov edx, dword [rsp + 0x60]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x18005e104
lea rdx, str.GlobalAlloc_Error:
jmp 0x18005e074
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov r8, rdi
mov edx, 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x18005e136
lea rdx, str.GetTokenInformation_Error:
jmp 0x18005e074
lea rax, [rsp + 0x70]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x48], esi
mov r8d, reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0x40], esi
mov dl, 2
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x18005e181
lea rdx, str.AllocateAndInitializeSid_Error:
jmp 0x18005e074
mov ebx, esi
cmp dword [rdi], esi
jbe 0x18005e1b6
nop word [rax + rax]
mov rdx, qword [rsp + 0x70]
mov ecx, ebx
add rcx, rcx
mov rcx, qword [rdi + rcx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x18005e1b1
inc ebx
cmp ebx, dword [rdi]
jb 0x18005e190
jmp 0x18005e1b6
mov esi, 1
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xa0]
test rcx, rcx
je 0x18005e1ce
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test rdi, rdi
je 0x18005e1dc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0xa8]
test rcx, rcx
je 0x18005e1f4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800d1620
add rsp, 0x90
pop rsi
ret