Function at 0x140001a8c
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rbp + 0x390], rax
xor r14d, r14d
mov word [rsp + 0x7c], 0x500
lea r8, [rsp + 0x70]
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x78], r14d
lea edx, [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001b01
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenProcessToken_Error__u_n
mov edx, eax
call fcn.140001478
xor eax, eax
jmp 0x140001cc1
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edi, [r8 + 2]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140001b3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140001b3c
lea rcx, str.GetTokenInformation_Error__u_n
jmp 0x140001af3
mov edx, dword [rsp + 0x60]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r9d, dword [rsp + 0x60]
mov edx, edi
mov rcx, qword [rsp + 0x70]
mov rbx, rax
lea rax, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140001b79
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001b33
lea rax, [rsp + 0x68]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x48], r14d
mov r8d, 0x20
mov dword [rsp + 0x40], r14d
mov dl, dil
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140001bd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.AllocateAndInitializeSid_Error__u_n
jmp 0x140001af3
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x140001ca3
mov rcx, qword [rsp + 0x68]
mov esi, edi
add rsi, rsi
mov rdx, qword [rbx + rsi*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140001c99
lea rax, [rbp - 0x80]
mov dword [rsp + 0x60], 0x100
mov rdx, qword [rbx + rsi*8 + 8]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x70]
lea rax, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x140001c58
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x534
jne 0x140001ce8
lea rcx, str.NONE_MAPPED_n
call fcn.140001478
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x190]
lea rcx, str.Current_user_is_a_member_of_the__ws_ws_group_n
call fcn.140001478
test byte [rbx + rsi*8 + 0x10], 4
je 0x140001c7f
lea rcx, str.The_group_SID_is_enabled._n
jmp 0x140001c94
test byte [rbx + rsi*8 + 0x10], 0x10
lea rcx, str.The_group_SID_is_a_deny_only_SID._n
jne 0x140001c94
lea rcx, str.The_group_SID_is_not_enabled._n
call fcn.140001478
inc edi
cmp edi, dword [rbx]
jb 0x140001bdd
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140001cb3
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400022c0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.LookupAccountSid_Error__u_n
jmp 0x140001af3