Function at 0x14005eb80
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r12, rcx
mov qword [rbp - 0x80], rcx
xor ebx, ebx
mov dword [rsp + 0x70], ebx
mov qword [rcx], rbx
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], 7
mov word [rcx], bx
mov dword [rsp + 0x70], 1
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], bx
lea r8d, [rbx + 0x32]
lea rdx, str.Failed_check_of_user_administrative_rights__error
lea rcx, [rbp - 0x30]
call fcn.1400523d0
nop
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x60], ebx
mov dword [rbp - 0x78], ebx
mov word [rbp - 0x74], 0x500
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
mov edx, 0x20008
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14005ecf9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.1400633c0
nop
mov r8, rax
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.140057da0
mov rdx, rax
mov rcx, r12
call fcn.140059ac0
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14005ec9f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ec9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005ec9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], bx
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14005eec0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005eebb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005eebb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rsp + 0x60]
mov r14d, r9d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov rsi, rbx
mov qword [rbp - 0x40], rbx
mov r15, rbx
test r9d, r9d
je 0x14005ed9b
cmp r9, 0x1000
jb 0x14005ed69
lea rcx, [r9 + 0x27]
cmp rcx, r9
jbe 0x14005f0f4
call fcn.1400e69ec
test rax, rax
je 0x14005f0bd
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x14005ed74
mov rcx, r14
call fcn.1400e69ec
mov r15, rax
mov rdi, r15
mov qword [rbp - 0x50], r15
lea rsi, [r15 + r14]
mov qword [rbp - 0x40], rsi
mov r8, r14
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x48], rsi
mov r9d, dword [rsp + 0x60]
jmp 0x14005ed9f
mov rdi, qword [rbp - 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r8, r15
mov edx, 2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14005ef1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x10]
call fcn.1400633c0
nop
mov r8, rax
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.140057da0
mov rdx, rax
mov rcx, r12
call fcn.140059ac0
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14005ee34
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ee2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005ee2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], bx
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x14005ee88
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ee82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005ee82
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
nop
test rdi, rdi
je 0x14005eec0
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x14005eeb5
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005f0bd
mov rdx, rsi
mov rcx, rdi
call fcn.1400e6a28
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005eed1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14005f0c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f0c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005f0c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
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
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14005f027
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x10]
call fcn.1400633c0
nop
mov r8, rax
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.140057da0
mov rdx, rax
mov rcx, r12
call fcn.140059ac0
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14005efcd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005efc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005efc8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], bx
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x14005ee88
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ee82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005ee82
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r14d, ebx
nop word [rax + rax]
cmp r14d, dword [r15]
jae 0x14005f054
mov edx, r14d
add rdx, rdx
mov rdx, qword [r15 + rdx*8 + 8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov ebx, eax
inc r14d
test eax, eax
je 0x14005f030
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, r12
test ebx, ebx
je 0x14005f075
mov r8d, 0x21
lea rdx, str.Current_user_is_an_administrator.
jmp 0x14005f082
mov r8d, 0x25
lea rdx, str.Current_user_is_not_an_administrator.
call fcn.1400523d0
nop
test rdi, rdi
je 0x14005eec0
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x14005eeb5
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005eeb5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400e6a28
mov rax, r12
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400e6b50
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140052100
int3