Function at 0x140008e90
Capabilities:
Add user account to group

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x140084060]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rcx
mov qword [rbp - 0x19], rdx
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x19]
mov r8d, 3
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_NetLocalGroupAddMembers]
mov esi, eax
cmp eax, 0x562
jne 0x140008fb3
xor ebx, ebx
mov qword [rbp - 0x79], rbx
mov qword [rbp - 0x69], rbx
mov qword [rbp - 0x61], 7
mov word [rbp - 0x79], bx
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], bx
jne 0x140008f00
mov rdx, rdi
lea rcx, [rbp - 0x79]
call fcn.1400023b0
nop
lea r8, [rbp - 0x79]
lea rdx, str.User_already_member_of_group_:
lea rcx, [rbp - 0x11]
call fcn.140006570
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 8
jb 0x140008f6c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008f67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009247
call fcn.14003ba0c
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x140008fac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008fa7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009241
call fcn.14003ba0c
xor eax, eax
jmp 0x140009222
test esi, esi
je 0x140009220
lea r9, [rbp + 0x39]
mov r8d, esi
nop dword [rax]
nop word [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140008fd0
xor ebx, ebx
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x49], rbx
mov qword [rbp - 0x41], 7
mov word [rbp - 0x59], bx
lea rax, [rbp + 0x39]
cmp r9, rax
je 0x140009036
lea r8, [rbp + 0x39]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rbp - 0x59]
call fcn.1400023b0
nop
mov qword [rbp - 0x79], rbx
mov qword [rbp - 0x69], rbx
mov qword [rbp - 0x61], 7
mov word [rbp - 0x79], bx
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], 0
jne 0x140009051
mov rdx, rdi
lea rcx, [rbp - 0x79]
call fcn.1400023b0
nop
lea r8, [rbp - 0x79]
lea rdx, str.error_adding_user_to_group_:
lea rcx, [rbp - 0x39]
call fcn.140006570
nop
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.___error_code_:
mov rcx, rax
call fcn.140006a70
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 1], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x11]
lea rcx, [rbp + 0xf]
call fcn.140006860
nop
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x140009104
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400090fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000924d
call fcn.14003ba0c
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140009144
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000913f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009253
call fcn.14003ba0c
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], bx
mov rdx, qword [rbp - 0x61]
cmp rdx, 8
jb 0x140009194
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000918f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009259
call fcn.14003ba0c
mov qword [rbp - 0x69], rbx
mov qword [rbp - 0x61], 7
mov word [rbp - 0x79], bx
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x1400091e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400091df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000925f
call fcn.14003ba0c
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x140009220
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000921b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009241
call fcn.14003ba0c
mov eax, esi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14003b9b0
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
call fcn.140042fc0
int3
call fcn.140042fc0
nop
call fcn.140042fc0
nop
call fcn.140042fc0
nop
call fcn.140042fc0
nop
call fcn.140042fc0
int3