Function at 0x140061c40
Capabilities:
Compare security identifiers
Get disk information
Get session user name
Get user security identifier

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x278]
sub rsp, 0x350
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140109010]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rbx, rdx
lea rcx, [rbp + 8]
call fcn.1400919d0
nop
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rbp - 0x68], xmm0
xor r12d, r12d
mov word [rbp - 0x78], r12w
lea r9d, [r12 + 1]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x78]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64
nop
lea r8d, [r12 + 2]
lea rdx, [0x1400c4844]
lea rcx, [rbp - 0x78]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x18], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 8], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140061d36
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140061d31
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140061d31
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
lea rcx, [rbp - 0x18]
cmp qword [rbp], 8
cmovae rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x140061d57
xor r15b, r15b
jmp 0x14006222e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r12
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r12w
lea rdx, [0x1400b6790]
lea rcx, [rbp - 0x78]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
nop
mov qword [rsp + 0x58], r12
mov edi, r12d
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x58]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
cmp eax, 1
jne 0x140061db4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov edi, eax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x68], 0x104
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x30]
mov ecx, 2
call qword [sym.imp.Secur32.dll_GetUserNameExW]
movzx esi, al
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140061e04
cmp edi, 1
jne 0x140061dfe
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x140061e1a
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [rbp - 0x48], xmm1
jmp 0x140061e7d
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r12w
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x58]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140061e7d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140061e78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140061e78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
movdqa xmm0, xmmword [0x1400cbd30]
mov word [rbp - 0x78], r12w
movdqu xmmword [rbp - 0x68], xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov word [rbp - 0x38], r12w
lea rdx, str.Authenticated_Users
lea rcx, [rbp - 0x38]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
nop
mov dword [rsp + 0x68], 0x104
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x60], 0x104
mov ecx, 0x104
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140061f29
mov ecx, dword [rsp + 0x68]
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
mov r8, r15
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [rsp + 0x68], 0x104
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x60], 0x104
mov ecx, 0x104
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140061fa8
mov ecx, dword [rsp + 0x68]
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
mov r8, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x58]
call fcn.140062300
mov r13, qword [rbp - 0x80]
mov r14, qword [rsp + 0x78]
cmp r13, r14
je 0x140061fd2
mov qword [r14], r15
add r14, 8
mov qword [rsp + 0x78], r14
jmp 0x140061fed
lea r8, [rsp + 0x40]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.14006acc0
mov r13, qword [rbp - 0x80]
mov r14, qword [rsp + 0x78]
cmp r13, r14
je 0x140061ffb
mov qword [r14], rsi
add r14, 8
jmp 0x140062016
lea r8, [rsp + 0x48]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.14006acc0
mov r13, qword [rbp - 0x80]
mov r14, qword [rsp + 0x78]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
xor r15b, r15b
cmp qword [rbx + 0x18], 8
jb 0x14006202d
mov rbx, qword [rbx]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
mov rsi, qword [rsp + 0x70]
test eax, eax
je 0x14006206b
mov r15b, 1
jmp 0x1400620ed
mov rcx, qword [rsp + 0x60]
xor edi, edi
cmp di, word [rcx + 4]
jae 0x1400620ea
nop dword [rax + rax]
lea r8, [rsp + 0x58]
mov edx, r12d
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x140062163
mov rbx, r14
sub rbx, rsi
sar rbx, 3
test rbx, rbx
je 0x140062161
nop dword [rax]
mov rdx, qword [rsp + 0x58]
add rdx, 8
mov rcx, qword [rsi + rdi*8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400620d4
inc rdi
cmp rdi, rbx
jb 0x1400620b0
jmp 0x140062161
mov rax, qword [rsp + 0x58]
movzx ecx, byte [rax]
cmp cl, 1
jne 0x14006214c
test byte [rax + 4], 2
je 0x140062161
xor r15b, r15b
xor r12d, r12d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400620fd
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14006210e
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140062182
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006217d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006217d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test cl, cl
jne 0x140062161
test byte [rax + 4], 2
movzx r15d, r15b
mov eax, 1
cmovne r15d, eax
xor edi, edi
inc r12d
mov rcx, qword [rsp + 0x60]
movzx eax, word [rcx + 4]
cmp r12d, eax
jge 0x1400620ea
jmp 0x140062080
call fcn.140093ce8
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rbp - 0x28], xmm0
mov word [rbp - 0x38], r12w
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x1400621d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400621d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400621d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r12w
test rsi, rsi
je 0x14006222e
sub r13, rsi
sar r13, 3
lea rdx, [r13*8]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140062225
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140062225
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140093ce8
nop
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x140062271
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006226c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006226c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r12w
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x1400622c1
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400622bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400622bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
movzx eax, r15b
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140093940
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret