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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp byte [rdx + 4], 0
je 0x1400abf77
mov rcx, rsi
call fcn.1400af506
cmp byte [rdi + 0xb], 2
je 0x1400abf8f
mov r8b, byte [rdi + 0xc]
and r8b, 1
mov rcx, rsi
xor edx, edx
call fcn.1400af093
cmp byte [rdi + 6], 0
je 0x1400abf9f
mov rcx, rsi
call fcn.1400af5eb
jmp 0x1400abfad
cmp byte [rdi + 5], 0
je 0x1400abfad
mov rcx, rsi
call fcn.1400ac020
cmp byte [rdi + 1], 0
je 0x1400abfbe
lea rcx, [rsi + 0x70]
call fcn.1400ad8eb
jmp 0x1400abfcc
cmp byte [rdi], 0
je 0x1400abfcc
lea rcx, [rsi + 0x70]
call fcn.1400ae322
movzx edx, word [rdi + 8]
cmp dl, 2
je 0x1400abfe6
movzx eax, byte [rdi + 0xa]
shl eax, 0x10
or edx, eax
mov rcx, rsi
call fcn.1400afa03
cmp byte [rdi + 2], 0
je 0x1400abff6
mov rcx, rsi
call fcn.1400b1103
jmp 0x1400ac004
cmp byte [rdi + 3], 0
je 0x1400ac004
mov rcx, rsi
call fcn.1400ac056
cmp byte [rdi + 7], 0
je 0x1400ac018
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x1400b1191
nop
add rsp, 0x28
pop rdi
pop rsi
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1d8
movaps xmmword [rsp + 0x1c0], xmm6
mov qword [rsp + 0x1b8], rcx
lea rax, [rsp + 0x120]
mov qword [rax], 8
xorps xmm6, xmm6
lea rcx, [rsp + 0xa4]
and dword [rcx], 0
movups xmmword [rax + 8], xmm6
lea rdi, [rsp + 0xe8]
lea rbx, [rsp + 0x50]
lea r14, [rsp + 0x90]
lea r12, [rsp + 0xd0]
lea rsi, [rsp + 0x98]
and qword [rsp + 0x50], 0
and dword [rsp + 0x5c], 0
and dword [rsp + 0xa8], 0
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
or dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
mov r9, rbx
call sub.netapi32.dll_NetUserEnum
mov ebx, eax
cmp eax, 0xea
je 0x1400b1259
test ebx, ebx
jne 0x1400b14de
mov r13, qword [rsp + 0x50]
mov ebp, dword [rsp + 0x5c]
shl rbp, 3
xor r15d, r15d
cmp rbp, r15
je 0x1400b14c4
cmp qword [r13 + r15], 0
je 0x1400b14bb
and qword [rsp + 0x90], 0
mov rdx, qword [r13 + r15]
xor ecx, ecx
mov r8d, 0x17
mov r9, r14
call sub.netapi32.dll_NetUserGetInfo
test eax, eax
jne 0x1400b14b3
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x20]
lea rcx, [rsp + 0x138]
call fcn.1400aeb1a
cmp qword [rsp + 0x138], 0
je 0x1400b14b3
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x1a0], rax
movups xmm0, xmmword [rsp + 0x138]
movaps xmmword [rsp + 0x190], xmm0
mov rcx, r12
lea rdx, [rsp + 0x190]
call fcn.1400aec25
cmp qword [rsp + 0xd0], 0
je 0x1400b1329
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xc0], rax
movups xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0xb0], xmm0
jmp 0x1400b133b
mov rdx, qword [r13 + r15]
lea rcx, [rsp + 0xb0]
call fcn.1400b20d7
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x160], rax
movups xmm0, xmmword [rsp + 0x138]
movaps xmmword [rsp + 0x150], xmm0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x180], rax
movaps xmm0, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0x170], xmm0
mov rdx, qword [r13 + r15]
and qword [rsp + 0x98], 0
and dword [rsp + 0x4c], 0
and dword [rsp + 0xac], 0
lea rax, [rsp + 0xac]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rsi
or dword [rsp + 0x28], 0xffffffff
lea rcx, [0x140139978]
xor r8d, r8d
mov r9d, 1
call sub.netapi32.dll_NetUserGetLocalGroups
test eax, eax
je 0x1400b13e6
lea rax, [rsp + 0x80]
movups xmmword [rax], xmm6
mov qword [rsp + 0x78], 8
jmp 0x1400b1426
mov ecx, dword [rsp + 0x4c]
xor edx, edx
call fcn.1400a7a38
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rdx
and qword [rsp + 0x88], 0
mov rdx, qword [rsp + 0x98]
test rdx, rdx
je 0x1400b1426
mov eax, dword [rsp + 0x4c]
lea r8, [rdx + rax*8]
lea rcx, [rsp + 0x78]
call fcn.1400a744f
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x68], rax
mov rcx, rsi
call fcn.1400b20bd
movups xmm0, xmmword [rsp + 0x138]
movaps xmmword [rsp + 0xd0], xmm0
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0xe0], rax
and dword [rsp + 0x118], 0
mov rax, qword [rsp + 0xc0]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [rsp + 0xb0]
movups xmmword [rdi], xmm0
mov rax, qword [rsp + 0x70]
mov qword [rdi + 0x28], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rdi + 0x18], xmm0
lea rcx, [rsp + 0x120]
mov rdx, r12
call fcn.1400a75bd
mov rcx, r14
call fcn.1400b20bd
add r15, 8
jmp 0x1400b1269
cmp ebx, 0xea
jne 0x1400b14de
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400b20bd
jmp 0x1400b11fa
lea rcx, [rsp + 0x50]
call fcn.1400b20bd
lea rcx, [rsp + 0x190]
and dword [rcx], 0
lea rdx, [rsp + 0xb0]
and qword [rdx], 0
call sub.secur32.dll_LsaEnumerateLogonSessions
test eax, eax
je 0x1400b157f
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0xe0], rax
movups xmm0, xmmword [rsp + 0x120]
movaps xmmword [rsp + 0xd0], xmm0
lea rcx, [rsp + 0xb0]
call fcn.1400b20ca
mov rdi, qword [rsp + 0x1b8]
add rdi, 0xf8
mov rcx, rdi
call fcn.1400a6900
mov rax, qword [rsp + 0xe0]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [rsp + 0xd0]
movups xmmword [rdi], xmm0
movaps xmm6, xmmword [rsp + 0x1c0]
add rsp, 0x1d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, qword [rsp + 0xb0]
mov eax, dword [rsp + 0x190]
lea r15, [rsi + rax*8]
lea rdi, [rsp + 0x150]
lea rbx, [rsp + 0xd0]
xorps xmm6, xmm6
cmp rsi, r15
je 0x1400b1508
and qword [rsp + 0x150], 0
mov rcx, rsi
mov rdx, rdi
call sub.secur32.dll_LsaGetLogonSessionData
add rsi, 8
test eax, eax
je 0x1400b15d4
mov rcx, rdi
call fcn.1400b20ca
jmp 0x1400b15a5
mov rax, qword [rsp + 0x150]
test rax, rax
je 0x1400b15ca
cmp dword [rax + 0x40], 3
je 0x1400b167b
movzx r13d, word [rax + 0x10]
mov r14, qword [rax + 0x18]
mov rdx, qword [rax + 0x48]
mov rcx, rbx
call fcn.1400aeb1a
cmp qword [rsp + 0xd0], 0
je 0x1400b167b
mov qword [rsp + 0x1b0], r14
mov r14, qword [rsp + 0xe0]
mov qword [rsp + 0x70], r14
movups xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x60], xmm0
mov rdx, qword [rsp + 0x120]
mov r12, qword [rsp + 0x60]
imul rbx, qword [rsp + 0x130], 0x50
test rbx, rbx
je 0x1400b1688
lea rbp, [rdx + 0x50]
mov rcx, qword [rdx]
mov rdx, qword [rdx + 0x10]
mov r8, r12
mov r9, r14
call fcn.1400a9353
add rbx, 0xffffffffffffffb0
mov rdx, rbp
test al, al
je 0x1400b1643
lea rcx, [rsp + 0x60]
call fcn.14002e741
lea rbx, [rsp + 0xd0]
mov rcx, rdi
call fcn.1400b20ca
jmp 0x1400b15a5
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0x60]
call fcn.1400aec25
lea rbx, [rsp + 0xd0]
mov rax, qword [rsp + 0x78]
test rax, rax
mov rdx, qword [rsp + 0x1b0]
je 0x1400b16bb
lea rcx, [rsp + 0x80]
jmp 0x1400b16de
shr r13, 1
mov rcx, rbx
mov r8, r13
call fcn.140004a10
mov rax, qword [rsp + 0xd0]
test rax, rax
je 0x1400b1748
lea rcx, [rsp + 0xd8]
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x170], xmm0
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0xe0], rcx
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xd0], xmm0
movaps xmm0, xmmword [rsp + 0x170]
lea rcx, [rsp + 0xd8]
movups xmmword [rcx + 0x18], xmm0
and dword [rcx + 0x40], 0
movups xmmword [rcx + 0x30], xmm6
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x100], 8
lea rcx, [rsp + 0x120]
mov rdx, rbx
call fcn.1400a75bd
jmp 0x1400b15ca
movaps xmmword [rsp + 0x170], xmm6
mov eax, 1
jmp 0x1400b16e9