Function at 0x140002a50
Capabilities:
Add user account to group
Delete user account from group
Get session user name
Shutdown system

Disassembly:
push rbp
push rbx
sub rsp, 0x298
lea rbp, [rsp + 0x80]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
lea rdx, [rbp + 0x208]
mov r8, rdx
mov edx, 0x28
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call rax
test eax, eax
sete al
test al, al
je 0x140002abe
lea rax, str.Failed_to_open_process_token.
mov rdx, rax
mov rax, qword [0x1400c36f0]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x140002d13
mov dword [rbp - 4], 0x101
lea rdx, [rbp - 4]
mov rax, rbp
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameW]
call rax
mov rax, rbp
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x30]
mov rcx, rax
call method.Admin.getUsersGroupName_abi:cxx11___
lea rax, [rbp - 0x30]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
lea rdx, [rbp - 0x10]
mov dword [rsp + 0x20], 1
mov r9, rdx
mov r8d, 3
mov rdx, rax
mov ecx, 0
call sym.NetLocalGroupAddMembers
test eax, eax
sete al
test al, al
je 0x140002b4f
lea rax, str.User_added_to_Users_group_successfully.
mov rdx, rax
mov rax, qword [0x1400c3710]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x140002b7a
lea rax, str.Failed_to_add_user_to_Users_group.
mov rdx, rax
mov rax, qword [0x1400c36f0]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
lea rax, [rbp - 0x50]
mov rcx, rax
call method.Admin.getAdminGroupName_abi:cxx11___
lea rax, [rbp - 0x50]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
lea rdx, [rbp - 0x10]
mov dword [rsp + 0x20], 1
mov r9, rdx
mov r8d, 3
mov rdx, rax
mov ecx, 0
call sym.NetLocalGroupDelMembers
test eax, eax
sete al
test al, al
je 0x140002bea
lea rax, str.User_removed_from_Administrators_group_successfully.
mov rdx, rax
mov rax, qword [0x1400c3710]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x140002c15
lea rax, str.Failed_to_remove_user_from_Administrators_group.
mov rdx, rax
mov rax, qword [0x1400c36f0]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov edx, 0x80000000
mov ecx, 4
mov rax, qword [sym.imp.USER32.dll_ExitWindowsEx]
call rax
test eax, eax
sete al
test al, al
je 0x140002c76
lea rax, str.Failed_to_log_off_user.
mov rdx, rax
mov rax, qword [0x1400c36f0]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x208]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ebx, 0
jmp 0x140002cb9
mov rax, qword [rbp + 0x208]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, str.User_logged_off_successfully.
mov rdx, rax
mov rax, qword [0x1400c3710]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov ebx, 1
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
cmp ebx, 1
jne 0x140002cd1
mov ebx, 1
jmp 0x140002cd6
mov ebx, 0
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
cmp ebx, 1
jmp 0x140002d13
add rsp, 0x298
pop rbx
pop rbp
ret