Function at 0x1400cc030
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 - 0x10]
sub rsp, 0x110
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rbp], rax
mov r12, rcx
xor ebx, ebx
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
lea r8d, [rbx + 0x32]
lea rdx, str.Failed_check_of_user_administrative_rights__error
lea rcx, [rbp - 0x40]
call fcn.1400523d0
nop
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x78], ebx
mov word [rsp + 0x7c], 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 0x1400cc189
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.1400633c0
nop
mov r8, rax
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x60]
call fcn.140057da0
mov rdx, rax
mov rcx, r12
call fcn.140059ac0
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1400cc12f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc12a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cc12a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], bx
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400cc350
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc34b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cc34b
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 - 0x60], xmm0
mov rsi, rbx
mov qword [rbp - 0x50], rbx
mov r15, rbx
test r9d, r9d
je 0x1400cc22b
cmp r9, 0x1000
jb 0x1400cc1f9
lea rcx, [r9 + 0x27]
cmp rcx, r9
jbe 0x1400cc584
call fcn.1400e69ec
test rax, rax
je 0x1400cc54d
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x1400cc204
mov rcx, r14
call fcn.1400e69ec
mov r15, rax
mov rdi, r15
mov qword [rbp - 0x60], r15
lea rsi, [r15 + r14]
mov qword [rbp - 0x50], rsi
mov r8, r14
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x58], rsi
mov r9d, dword [rsp + 0x60]
jmp 0x1400cc22f
mov rdi, qword [rbp - 0x60]
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 0x1400cc3af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x20]
call fcn.1400633c0
nop
mov r8, rax
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140057da0
mov rdx, rax
mov rcx, r12
call fcn.140059ac0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400cc2c4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc2bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cc2bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], bx
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x1400cc318
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc312
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cc312
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 0x1400cc350
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x1400cc345
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cc54d
mov rdx, rsi
mov rcx, rdi
call fcn.1400e6a28
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400cc360
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
setne bl
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x1400cc559
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc554
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cc554
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rax, [rsp + 0x70]
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, [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1400cc4bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x20]
call fcn.1400633c0
nop
mov r8, rax
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140057da0
mov rdx, rax
mov rcx, r12
call fcn.140059ac0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400cc462
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc45d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cc45d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], bx
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x1400cc318
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cc312
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cc312
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r14d, ebx
nop
cmp r14d, dword [r15]
jae 0x1400cc4e4
mov edx, r14d
add rdx, rdx
mov rdx, qword [r15 + rdx*8 + 8]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov ebx, eax
inc r14d
test eax, eax
je 0x1400cc4c0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, r12
test ebx, ebx
je 0x1400cc505
mov r8d, 0x21
lea rdx, str.Current_user_is_an_administrator.
jmp 0x1400cc512
mov r8d, 0x25
lea rdx, str.Current_user_is_not_an_administrator.
call fcn.1400523d0
nop
test rdi, rdi
je 0x1400cc350
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x1400cc345
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400cc345
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400e6a28
movzx eax, bl
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400e6b50
lea r11, [rsp + 0x110]
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
nop
int3