Function at 0x1400194c0
Capabilities:
Get session user name
List user account groups
List user accounts for group

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x100c0
call sub.ntdll.dll___chkstk
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x100f0], rbx
mov qword [rsp + 0x10100], rbp
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x100b0], rax
mov r13, rdx
xor r14d, r14d
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x48], r14
mov word [rsp + 0xb0], r14w
xor edx, edx
mov r8d, 0xfffc
lea rcx, [rsp + 0xb2]
call sub.ntdll.dll_memset
mov dword [rsp + 0x54], 0xfffe
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x140019580
call fcn.140049470
mov r10, qword [rax]
lea r9d, [r14 + 0x7d]
lea r8, str.d:workmrpmrpmainperestartmodRegPrivilege.h
lea rdx, str._s__d_GetUserName_failed._n
mov rcx, rax
call qword [r10 + 0x10]
xor eax, eax
jmp 0x1400197dd
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, [rsp + 0x48]
xor edx, edx
xor ecx, ecx
call sub.NETAPI32.dll_NetLocalGroupEnum
mov ebx, eax
test eax, eax
je 0x14001969c
cmp eax, 5
je 0x14001964b
cmp eax, 0xea
je 0x140019626
cmp eax, 0x84b
je 0x140019601
cmp eax, 0x92f
jne 0x14001966e
call fcn.140049470
mov r10, qword [rax]
mov r9d, 0x93
lea r8, str.d:workmrpmrpmainperestartmodRegPrivilege.h
lea rdx, str._s__d_NERR_InvalidComputer_failed._n
mov rcx, rax
call qword [r10 + 0x10]
jmp 0x14001966e
call fcn.140049470
mov r10, qword [rax]
mov r9d, 0x98
lea r8, str.d:workmrpmrpmainperestartmodRegPrivilege.h
lea rdx, str._s__d_NERR_BufTooSmall_failed._n
mov rcx, rax
call qword [r10 + 0x10]
jmp 0x14001966e
call fcn.140049470
mov r10, qword [rax]
mov r9d, 0x8e
lea r8, str.d:workmrpmrpmainperestartmodRegPrivilege.h
lea rdx, str._s__d_ERROR_MORE_DATA_failed._n
mov rcx, rax
call qword [r10 + 0x10]
jmp 0x14001969c
call fcn.140049470
mov r10, qword [rax]
mov r9d, 0x89
lea r8, str.d:workmrpmrpmainperestartmodRegPrivilege.h
lea rdx, str._s__d_ERROR_ACCESS_DENIED_failed._n
mov rcx, rax
call qword [r10 + 0x10]
call fcn.140049470
mov r10, qword [rax]
mov dword [rsp + 0x20], ebx
mov r9d, 0xa0
lea r8, str.d:workmrpmrpmainperestartmodRegPrivilege.h
lea rdx, str._s__d_return_code:__ld_n
mov rcx, rax
call qword [r10 + 0x10]
xor eax, eax
jmp 0x1400197dd
mov ebp, r14d
cmp dword [rsp + 0x44], r14d
jbe 0x1400197ce
mov rsi, qword [rsp + 0x48]
nop
mov edx, 1
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1400197bd
mov r12d, r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x70], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
lea r9, [rsp + 0x60]
mov r8d, 1
mov rdx, qword [rsi]
xor ecx, ecx
call sub.NETAPI32.dll_NetLocalGroupGetMembers
test eax, eax
jne 0x1400197bd
mov edi, r14d
cmp dword [rsp + 0x40], r14d
jbe 0x14001977d
mov rbx, qword [rsp + 0x60]
add rbx, 0x10
nop
mov edx, 1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x140019768
mov rax, qword [rbx]
lea r8, [rsp + 0xb0]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140019764
add rax, 2
test ecx, ecx
jne 0x140019750
test edx, edx
je 0x140019777
add edi, 1
add rbx, 0x18
cmp edi, dword [rsp + 0x40]
jae 0x14001977d
jmp 0x140019730
mov r12d, 1
mov rcx, qword [rsp + 0x60]
call sub.NETAPI32.dll_NetApiBufferFree
test r12d, r12d
je 0x1400197bd
mov rdx, qword [rsi]
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rdx, [rsp + 0x80]
mov rcx, r13
call fcn.1400044f0
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
add ebp, 1
add rsi, 8
cmp ebp, dword [rsp + 0x44]
jb 0x1400196b0
mov rcx, qword [rsp + 0x48]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, 1
mov rcx, qword [rsp + 0x100b0]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x100c0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret