Function at 0x1400211c0
Capabilities:
Get logon sessions
List groups for user account
List user accounts

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 8
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x7c], 0
mov dword [rsp + 0xe8], 0
mov dword [rsp + 0xec], 0
mov r13d, 8
lea rbx, [rsp + 0x60]
xor r14d, r14d
jmp 0x14002124c
cmp edi, 0xea
jne 0x1400216f2
lea rax, [rsp + 0xec]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rsp + 0x98]
call sub.NETAPI32.dll_NetUserEnum
mov edi, eax
cmp eax, 0xea
je 0x1400212a0
test edi, edi
jne 0x1400216c0
mov rsi, qword [rsp + 0x98]
mov eax, dword [rsp + 0x7c]
test rax, rax
je 0x1400216d0
mov dword [rsp + 0x78], edi
lea rax, [rsi + rax*8]
mov qword [rsp + 0x118], rax
jmp 0x14002133e
mov r13, qword [rsp + 0x88]
lea rax, [r14 + r14*8]
mov rcx, qword [rsp + 0xe0]
mov qword [r13 + rax*8 + 0x40], rcx
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmm1, xmmword [rsp + 0xb0]
movaps xmm2, xmmword [rsp + 0xc0]
movaps xmm3, xmmword [rsp + 0xd0]
movups xmmword [r13 + rax*8 + 0x30], xmm3
movups xmmword [r13 + rax*8 + 0x20], xmm2
movups xmmword [r13 + rax*8 + 0x10], xmm1
movups xmmword [r13 + rax*8], xmm0
inc r14
mov qword [rsp + 0x90], r14
add rsi, 8
cmp rsi, qword [rsp + 0x118]
je 0x1400216c4
mov rdi, qword [rsi]
test rdi, rdi
je 0x14002132c
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x1400dcfe0]
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
je 0x1400213d0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 8
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140021520
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x140021520
mov ebx, dword [rsp + 0x5c]
test rbx, rbx
je 0x14002140a
lea rax, [rbx*8]
lea r14, [rax + rax*2]
mov rax, qword [0x140105118]
movzx eax, byte [rax]
mov edx, 8
mov rcx, r14
call fcn.14000b1e0
test rax, rax
je 0x140021a0d
mov r13, rax
jmp 0x140021410
mov r13d, 8
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140021520
mov eax, dword [rsp + 0x5c]
mov qword [rsp + 0x120], rax
test rax, rax
je 0x1400213c5
xor r12d, r12d
jmp 0x140021479
lea rax, [r12 + r12*2]
mov qword [r13 + rax*8], rbp
mov qword [r13 + rax*8 + 8], r14
mov qword [r13 + rax*8 + 0x10], r15
mov qword [rsp + 0x50], rbx
mov r12, rbx
cmp rbx, qword [rsp + 0x120]
je 0x1400213b7
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140021520
lea rbx, [r12 + 1]
mov rdx, qword [rax + r12*8]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x1400214a0
lea rcx, [rsp + 0xa0]
call fcn.1400b6000
mov rbp, qword [rsp + 0xa0]
movabs rax, 0x8000000000000000
cmp rbp, rax
mov eax, 0
cmove rbp, rax
mov r14, qword [rsp + 0xa8]
mov ecx, 1
cmove r14, rcx
mov r15, qword [rsp + 0xb0]
cmove r15, rax
cmp r12, qword [rsp + 0x40]
jne 0x140021450
lea rcx, [rsp + 0x40]
call fcn.140020a10
mov r13, qword [rsp + 0x48]
jmp 0x140021450
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xf8], rax
mov r8, 0xffffffffffffffff
nop
cmp word [rdi + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140021550
lea rcx, [rsp + 0xa0]
mov rdx, rdi
call fcn.1400b6000
lea rbx, [rsp + 0x60]
movabs rax, 0x8000000000000000
cmp qword [rsp + 0xa0], rax
jne 0x1400215b0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x70], 0
jmp 0x1400215ca
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400b7090
mov r13, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
cmp r13, rdi
jbe 0x140021620
test rdi, rdi
je 0x140021625
mov r8d, 1
mov rcx, rbp
mov rdx, r13
mov r9, rdi
call fcn.14000b200
mov r14, rax
test rax, rax
jne 0x140021640
jmp 0x1400219fe
mov r14, rbp
jmp 0x140021640
mov r14d, 1
mov r8d, 1
mov rcx, rbp
mov rdx, r13
call fcn.14000b1f0
nop dword [rax]
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xa0], xmm0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x100]
lea rcx, [rsp + 0xb8]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [rsp + 0xf0]
movups xmmword [rcx], xmm0
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xd8], rdi
mov dword [rsp + 0xe0], 0
mov r14, qword [rsp + 0x90]
cmp r14, qword [rsp + 0x80]
jne 0x1400212d0
lea rcx, [rsp + 0x80]
call fcn.1400207b0
jmp 0x1400212d0
mov dword [rsp + 0x78], edi
mov rsi, qword [rsp + 0x98]
mov edi, dword [rsp + 0x78]
test rsi, rsi
je 0x140021240
mov rcx, rsi
call sub.NETAPI32.dll_NetApiBufferFree
mov qword [rsp + 0x98], 0
jmp 0x140021240
mov dword [rsp + 0x58], 0
mov qword [rsp + 0xf0], 0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0xf0]
call sub.Secur32.dll_LsaEnumerateLogonSessions
test eax, eax
je 0x14002174f
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x110]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rax], xmm0
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edi, dword [rsp + 0x58]
test rdi, rdi
je 0x14002171c
xor esi, esi
lea rbx, [rsp + 0x60]
jmp 0x140021778
lea rbx, [rsp + 0x60]
nop word cs:[rax + rax]
inc rsi
cmp rsi, rdi
je 0x14002171c
lea rcx, [rsi*8]
add rcx, qword [rsp + 0xf0]
mov qword [rsp + 0x60], 0
mov rdx, rbx
call sub.Secur32.dll_LsaGetLogonSessionData
test eax, eax
setne al
mov rcx, qword [rsp + 0x60]
test rcx, rcx
sete dl
or dl, al
jne 0x1400219eb
cmp dword [rcx + 0x40], 3
je 0x140021770
mov rdx, qword [rcx + 0x18]
mov r8, 0xffffffffffffffff
nop word cs:[rax + rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x1400217d0
lea rcx, [rsp + 0xa0]
call fcn.1400b6000
movabs rax, 0x8000000000000000
cmp qword [rsp + 0xa0], rax
jne 0x140021829
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
mov r15d, 1
xor r12d, r12d
test r14, r14
jne 0x14002184d
jmp 0x1400218a5
movups xmm0, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x40], xmm0
mov r12, qword [rsp + 0xb0]
mov qword [rsp + 0x50], r12
mov r15, qword [rsp + 0x48]
test r14, r14
je 0x1400218a5
lea rax, [r14*8]
lea rbx, [rax + rax*8]
xor ebp, ebp
jmp 0x140021869
add rbp, 0x48
cmp rbx, rbp
je 0x1400218a5
cmp qword [r13 + rbp + 0x10], r12
jne 0x140021860
mov rcx, qword [r13 + rbp + 8]
mov rdx, r15
mov r8, r12
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140021860
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140021761
mov r8d, 1
mov rcx, r15
call fcn.14000b1f0
jmp 0x140021761
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.1400b7090
mov r15, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xb0]
cmp r15, r12
jbe 0x1400218fa
test r12, r12
je 0x1400218ff
mov r8d, 1
mov rcx, rbx
mov rdx, r15
mov r9, r12
call fcn.14000b200
mov rbp, rax
test rax, rax
jne 0x140021915
jmp 0x140021a1c
mov rbp, rbx
jmp 0x140021915
mov ebp, 1
mov r8d, 1
mov rcx, rbx
mov rdx, r15
call fcn.14000b1f0
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0xa0], xmm0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xd8], r12
mov dword [rsp + 0xe0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 8
mov qword [rsp + 0xc8], 0
cmp r14, qword [rsp + 0x80]
lea rbx, [rsp + 0x60]
jne 0x140021992
lea rcx, [rsp + 0x80]
call fcn.1400207b0
mov r13, qword [rsp + 0x88]
lea rax, [r14 + r14*8]
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmm1, xmmword [rsp + 0xb0]
movaps xmm2, xmmword [rsp + 0xc0]
movaps xmm3, xmmword [rsp + 0xd0]
mov rcx, qword [rsp + 0xe0]
mov qword [r13 + rax*8 + 0x40], rcx
movups xmmword [r13 + rax*8 + 0x30], xmm3
movups xmmword [r13 + rax*8 + 0x20], xmm2
movups xmmword [r13 + rax*8 + 0x10], xmm1
movups xmmword [r13 + rax*8], xmm0
inc r14
mov qword [rsp + 0x90], r14
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140021770
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x140021770
mov ecx, 1
mov rdx, rdi
call fcn.1400b3800
jmp 0x140021a29
mov ecx, 8
mov rdx, r14
call fcn.1400b3800
jmp 0x140021a29
mov ecx, 1
mov rdx, r12
call fcn.1400b3800
ud2