Function at 0x140006c0c
Capabilities:
Add user account group
Add user account to group

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x140031020]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rsi, str.Remote_Taef_Users
mov qword [rbp + 0x2f], rsi
lea rax, str.Remote_Test_Authoring_and_Execution_Framework_Users
mov qword [rbp + 0x37], rax
xor r9d, r9d
lea r8, [rbp + 0x2f]
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.samcli.dll_NetLocalGroupAdd]
cmp eax, 0x563
je 0x140006c7f
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006df8
or qword [rbp + 0x3f], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rbp + 0x3f]
xor r8d, r8d
lea edx, [r8 + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140006cb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x140006e3e
mov rbx, qword [rbp + 0x3f]
lea rax, [rbx + 1]
test rax, 0xfffffffffffffffe
jne 0x140006d17
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rax
mov edx, 8
lea rcx, [rbp - 0x49]
call qword [sym.imp.Wex.Common.dll_class_TAEF::Common::AutoHandle_class_TAEF::Common::HandlePolicy____cdecl_TAEF::Common::ProcessInformation::GetProcessToken_unsigned_long_int__void____ptr64_]
mov rbx, qword [rax]
or qword [rax], 0xffffffffffffffff
mov rcx, qword [rbp + 0x3f]
cmp rcx, rbx
je 0x140006cfb
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006cfb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x3f], rbx
mov rcx, qword [rbp - 0x49]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006d17
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbp + 0x3f]
and qword [rbp + 0x47], 0
mov rdx, rbx
lea rcx, [rbp + 0x47]
call fcn.140006b08
nop
mov rax, qword [rbp + 0x47]
mov rcx, qword [rax]
mov qword [rbp + 0x27], rcx
mov dword [rsp + 0x20], 1
lea r9, [rbp + 0x27]
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.samcli.dll_NetLocalGroupAddMembers]
cmp eax, 0x528
je 0x140006d6e
cmp eax, 0x562
je 0x140006d6e
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140006db2
mov rcx, qword [rbp + 0x47]
test rcx, rcx
je 0x140006d7d
call fcn.140018410
nop
mov rcx, qword [rbp + 0x3f]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006d91
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140018430
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
lfence
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
lea rcx, [rbp - 0x19]
call fcn.1400015a4
nop
mov r9, rsi
lea r8, str.Failed_to_add_the_current_user_to_the__s_group.
lea rdx, [rbp + 0x17]
mov rcx, rax
call fcn.140001cc0
mov rdx, rax
mov r9d, 0x33
lea r8, str.E:BA163_s_srcWex.ServicesTeRemoteUserGroup.cpp
mov ecx, ebx
call fcn.140001a0c
nop
lfence
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0x39]
call fcn.1400015a4
nop
mov r9, rsi
lea r8, str.Failed_to_create_the__s_group.
lea rdx, [rbp + 7]
mov rcx, rax
call fcn.140001cc0
mov rdx, rax
mov r9d, 0x20
lea r8, str.E:BA163_s_srcWex.ServicesTeRemoteUserGroup.cpp
mov ecx, ebx
call fcn.140001a0c
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140007054
int3