Function at 0x10033eaa
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
movaps xmmword [rsp + 0x110], xmm6
mov qword [rcx], 8
xorps xmm6, xmm6
mov qword [rsp + 0x60], rcx
movups xmmword [rcx + 8], xmm6
lea rax, [rsp + 0x78]
and qword [rax], 0
lea rax, [rsp + 0x74]
and dword [rax], 0
lea rax, [rsp + 0x84]
and dword [rax], 0
lea rax, [rsp + 0x88]
and dword [rax], 0
lea rbx, [rsp + 0x90]
lea rdi, [rsp + 0xb0]
lea rsi, [rsp + 0xc8]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x84]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
or dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rsp + 0x78]
call sub.netapi32.dll_NetUserEnum
mov dword [rsp + 0x70], eax
cmp eax, 0xea
je 0x10033f6a
cmp dword [rsp + 0x70], 0
jne 0x10034128
mov r12, qword [rsp + 0x78]
mov eax, dword [rsp + 0x74]
lea rax, [r12 + rax*8]
mov qword [rsp + 0xa8], rax
cmp r12, qword [rsp + 0xa8]
je 0x10034128
mov r15, r12
add r12, 8
mov rdx, qword [r15]
test rdx, rdx
je 0x10033f7f
and qword [rsp + 0xb0], 0
and dword [rsp + 0x68], 0
and dword [rsp + 0x90], 0
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rdi
or dword [rsp + 0x28], 0xffffffff
lea rcx, [0x10119208]
xor r8d, r8d
mov r9d, 1
call sub.netapi32.dll_NetUserGetLocalGroups
test eax, eax
je 0x10034010
lea rax, [rsp + 0x50]
movups xmmword [rax], xmm6
mov qword [rsp + 0x48], 8
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x100340a3
call sub.netapi32.dll_NetApiBufferFree
jmp 0x100340a3
mov ecx, dword [rsp + 0x68]
xor edx, edx
call fcn.10023199
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rdx
and qword [rsp + 0x58], 0
cmp qword [rsp + 0xb0], 0
je 0x100340a3
mov r13d, dword [rsp + 0x68]
xor r14d, r14d
cmp r13, r14
je 0x10033ff5
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x100340a3
mov rdx, qword [rax + r14*8]
mov rcx, rsi
call fcn.1002941b
mov rdx, qword [rsp + 0x58]
cmp rdx, qword [rsp + 0x50]
jne 0x10034077
lea rcx, [rsp + 0x48]
call fcn.10023eaf
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x48]
imul rcx, rdx, 0x18
movups xmm0, xmmword [rsp + 0xc8]
mov rdx, qword [rsp + 0xd8]
mov qword [rax + rcx + 0x10], rdx
movups xmmword [rax + rcx], xmm0
inc qword [rsp + 0x58]
inc r14
jmp 0x1003403e
mov rdx, qword [r15]
mov rcx, rbx
call fcn.1002941b
mov rcx, rdi
mov rdx, rbx
call fcn.100dde00
mov rcx, rdi
call fcn.10033e4f
mov rbp, rdi
mov rdi, rbx
mov rcx, qword [rsp + 0xa0]
lea rbx, [rsp + 0xd8]
mov qword [rbx + 0x10], rcx
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rbx], xmm0
mov rcx, qword [rsp + 0x58]
mov qword [rbx + 0x28], rcx
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx + 0x18], xmm0
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rdx
and dword [rsp + 0x108], 0
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
call fcn.10033dc8
mov rbx, rdi
mov rdi, rbp
jmp 0x10033f7f
mov rcx, qword [rsp + 0x78]
test rcx, rcx
mov ebp, dword [rsp + 0x70]
je 0x10034141
call sub.netapi32.dll_NetApiBufferFree
and qword [rsp + 0x78], 0
cmp ebp, 0xea
je 0x10033f17
lea rcx, [rsp + 0x8c]
and dword [rcx], 0
lea rdx, [rsp + 0x68]
and qword [rdx], 0
call sub.secur32.dll_LsaEnumerateLogonSessions
test eax, eax
je 0x1003418b
mov rax, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edi, dword [rsp + 0x8c]
xor r13d, r13d
lea rbp, [rsp + 0x48]
lea r14, [rsp + 0x90]
lea r15, [rsp + 0xb0]
xorps xmm6, xmm6
cmp r13, rdi
je 0x1003416a
lea rcx, [r13*8]
add rcx, qword [rsp + 0x68]
and qword [rsp + 0x48], 0
mov rdx, rbp
call sub.secur32.dll_LsaGetLogonSessionData
inc r13
test eax, eax
je 0x100341e5
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x100341ad
call sub.secur32.dll_LsaFreeReturnBuffer
jmp 0x100341ad
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x100341ad
cmp dword [rax + 0x40], 3
je 0x100341ad
mov rdx, qword [rax + 0x18]
mov rcx, r14
call fcn.1002941b
mov rax, qword [rsp + 0x60]
mov rsi, qword [rax]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa0]
imul r12, qword [rax + 0x10], 0x48
test r12, r12
je 0x10034254
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov r9, rbx
call fcn.1003a3f1
add rsi, 0x48
add r12, 0xffffffffffffffb8
test al, al
je 0x1003421e
mov rcx, r14
call fcn.1003377c
lea rbp, [rsp + 0x48]
jmp 0x100341ad
mov rcx, r15
mov rdx, r14
call fcn.100dde00
mov rcx, r15
call fcn.10033e4f
mov rcx, qword [rsp + 0xa0]
lea rbp, [rsp + 0xd8]
mov qword [rbp + 0x10], rcx
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rbp], xmm0
lea rcx, [rsp + 0xf8]
movups xmmword [rcx], xmm6
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rdx
and dword [rsp + 0x108], 0
mov qword [rsp + 0xf0], 8
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0xc8]
call fcn.10033dc8
lea rbp, [rsp + 0x48]
jmp 0x100341d4