Function at 0x1400023f0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x14000d038]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14, rcx
mov byte [rcx], 0
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x1f]
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000245e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, ebx
lea rdx, str.OpenProcessToken_failed:__u___x_
mov r8d, eax
lea ecx, [rdi + 1]
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
jmp 0x140002740
lea rax, [rbp + 0x27]
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x2f]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
mov r8d, 0x20
mov dword [rsp + 0x38], edi
mov dl, 2
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0xc0], r15
mov r15d, edi
mov dword [rsp + 0x20], edi
mov dword [rbp + 0x2f], edi
mov word [rbp + 0x33], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400026ea
mov rcx, qword [rbp + 0x1f]
lea rax, [rbp + 0x17]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 2]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14000259d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000259d
mov ecx, dword [rbp + 0x17]
lea rdx, [0x140007790]
call qword [sym.imp.VBoxRT.dll_RTMemAllocZTag]
mov r9d, dword [rbp + 0x17]
mov edx, 2
mov rcx, qword [rbp + 0x1f]
mov rsi, rax
lea rax, [rbp + 0x17]
mov r8, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14000256a
mov ebx, edi
cmp dword [rsi], edi
jbe 0x140002592
nop dword [rax + rax]
mov rcx, qword [rbp + 0x27]
mov edx, ebx
add rdx, rdx
mov rdx, qword [rsi + rdx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140002559
inc ebx
cmp ebx, dword [rsi]
jb 0x140002530
mov rcx, rsi
call qword [sym.imp.VBoxRT.dll_RTMemFree]
jmp 0x1400025c5
mov rcx, rsi
mov r15d, 1
call qword [sym.imp.VBoxRT.dll_RTMemFree]
jmp 0x1400025c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, ebx
lea rdx, str.GetTokenInformation_TokenGroups_cb__failed:__u___x_
mov r8d, eax
mov ecx, 1
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.VBoxRT.dll_RTMemFree]
jmp 0x1400025c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, ebx
lea rdx, str.GetTokenInformation_TokenGroups_0__failed:__u___x_
mov r8d, eax
mov ecx, 1
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
mov edi, eax
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test r15d, r15d
je 0x140002710
mov rcx, qword [rbp + 0x1f]
lea rax, [rbp + 0x17]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 0x19]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400026a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400026a6
mov ecx, dword [rbp + 0x17]
lea rdx, [0x140007790]
call qword [sym.imp.VBoxRT.dll_RTMemAllocTag]
mov r9d, dword [rbp + 0x17]
mov edx, 0x19
mov rcx, qword [rbp + 0x1f]
mov rsi, rax
lea rax, [rbp + 0x17]
mov r8, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140002673
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov rcx, qword [rsi]
movzx edx, byte [rax]
dec edx
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
cmp dword [rax], 0x3000
jb 0x14000269b
mov rcx, rsi
mov byte [r14], 1
call qword [sym.imp.VBoxRT.dll_RTMemFree]
jmp 0x140002724
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, ebx
lea rdx, str.GetTokenInformation_failed:__u___x_
mov r8d, eax
mov ecx, 1
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.VBoxRT.dll_RTMemFree]
jmp 0x140002724
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x1400026e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
je 0x1400026e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, ebx
lea rdx, str.GetTokenInformation_failed:__u___x_
mov r8d, eax
mov ecx, 1
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
jmp 0x140002722
mov byte [r14], 1
jmp 0x140002724
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, ebx
lea rdx, str.AllocateAndInitializeSid_failed:__u___x_
mov r8d, eax
mov ecx, 1
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
lea rdx, str.Membership_in_the_Administrators_group_is_required_to_perform_this_action
mov ecx, 1
call qword [sym.imp.VBoxRT.dll_RTMsgErrorExit]
mov edi, eax
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0xc0]
mov eax, edi
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140005e60
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r14
pop rdi
pop rbp
ret