Function at 0x1400622cd
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 + 9], 0
je 0x14005d62d
mov rcx, rsi
call fcn.140060f01
cmp byte [rdi], 2
je 0x14005d644
mov r8b, byte [rdi + 1]
and r8b, 1
mov rcx, rsi
xor edx, edx
call fcn.140060af3
cmp byte [rdi + 0xb], 0
je 0x14005d654
mov rcx, rsi
call fcn.140060fe6
jmp 0x14005d662
cmp byte [rdi + 0xa], 0
je 0x14005d662
mov rcx, rsi
call fcn.14005d6d6
cmp byte [rdi + 6], 0
je 0x14005d673
lea rcx, [rsi + 0x70]
call fcn.14005ec87
jmp 0x14005d682
cmp byte [rdi + 5], 0
je 0x14005d682
lea rcx, [rsi + 0x70]
call fcn.14005f5b7
movzx edx, word [rdi + 2]
cmp dl, 2
je 0x14005d69c
movzx eax, byte [rdi + 4]
shl eax, 0x10
or edx, eax
mov rcx, rsi
call fcn.1400618dc
cmp byte [rdi + 7], 0
je 0x14005d6ac
mov rcx, rsi
call fcn.140062252
jmp 0x14005d6ba
cmp byte [rdi + 8], 0
je 0x14005d6ba
mov rcx, rsi
call fcn.14005d70c
cmp byte [rdi + 0xc], 0
je 0x14005d6ce
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x1400622cd
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, 0x158
lea rax, [rsp + 0x118]
and qword [rax], 0
mov qword [rax + 8], 8
and qword [rax + 0x10], 0
lea rax, [rsp + 0x9c]
and dword [rax], 0
mov qword [rsp + 0x138], rcx
lea rdi, [rsp + 0xd8]
lea rbx, [rsp + 0x58]
lea r14, [rsp + 0x60]
lea r12, [rsp + 0xc0]
lea rsi, [rsp + 0x48]
and qword [rsp + 0x58], 0
and dword [rsp + 0x54], 0
and dword [rsp + 0xa0], 0
lea rax, [rsp + 0x9c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
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 0x14006238a
test ebx, ebx
jne 0x14006259a
mov r13, qword [rsp + 0x58]
mov ebp, dword [rsp + 0x54]
shl rbp, 3
xor r15d, r15d
cmp rbp, r15
je 0x140062580
cmp qword [r13 + r15], 0
je 0x140062577
and qword [rsp + 0x60], 0
mov rdx, qword [r13 + r15]
xor ecx, ecx
mov r8d, 0x17
mov r9, r14
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
jne 0x14006256f
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x20]
lea rcx, [rsp + 0xa8]
call fcn.1400606cf
cmp qword [rsp + 0xb0], 0
je 0x14006256f
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x150], rax
movups xmm0, xmmword [rsp + 0xa8]
movaps xmmword [rsp + 0x140], xmm0
mov rcx, r12
lea rdx, [rsp + 0x140]
call fcn.1400607c4
cmp qword [rsp + 0xc8], 0
je 0x140062454
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rsp + 0xc0]
movaps xmmword [rsp + 0x80], xmm0
jmp 0x140062466
mov rdx, qword [r13 + r15]
lea rcx, [rsp + 0x80]
call fcn.1400629d5
mov rdx, qword [r13 + r15]
and qword [rsp + 0x48], 0
and dword [rsp + 0x44], 0
and dword [rsp + 0xa4], 0
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rsi
or dword [rsp + 0x28], 0xffffffff
lea rcx, [0x140097958]
xor r8d, r8d
mov r9d, 1
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
je 0x1400624cf
and qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 8
and qword [rsp + 0x78], 0
jmp 0x140062506
mov ecx, dword [rsp + 0x44]
xor edx, edx
call fcn.14005a3af
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rdx
and qword [rsp + 0x78], 0
mov r8, qword [rsp + 0x48]
test r8, r8
je 0x140062506
mov eax, dword [rsp + 0x44]
lea rdx, [r8 + rax*8]
lea rcx, [rsp + 0x68]
call fcn.140059e47
mov rcx, rsi
call fcn.140062963
movups xmm0, xmmword [rsp + 0xa8]
movaps xmmword [rsp + 0xc0], xmm0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xd0], rax
and dword [rsp + 0x108], 0
mov rax, qword [rsp + 0x90]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rdi], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x28], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rdi + 0x18], xmm0
lea rcx, [rsp + 0x118]
mov rdx, r12
call fcn.140059fe5
mov rcx, r14
call fcn.140062963
add r15, 8
jmp 0x14006239a
cmp ebx, 0xea
jne 0x14006259a
lea rbx, [rsp + 0x58]
mov rcx, rbx
call fcn.140062963
jmp 0x14006232b
lea rcx, [rsp + 0x58]
call fcn.140062963
lea rcx, [rsp + 0x60]
and dword [rcx], 0
lea rdx, [rsp + 0x48]
and qword [rdx], 0
call sub.Secur32.dll_LsaEnumerateLogonSessions
test eax, eax
je 0x140062619
lea rcx, [rsp + 0x48]
call fcn.140062970
mov rdi, qword [rsp + 0x138]
lea rsi, [rdi + 0x188]
mov rcx, rsi
call fcn.14005b647
mov rcx, rsi
call fcn.140034a39
mov rax, qword [rsp + 0x128]
mov qword [rdi + 0x198], rax
movups xmm0, xmmword [rsp + 0x118]
movups xmmword [rdi + 0x188], xmm0
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x48]
mov eax, dword [rsp + 0x60]
lea r15, [rcx + rax*8]
lea rsi, [rsp + 0xa8]
lea rdi, [rsp + 0xc0]
cmp rcx, r15
je 0x1400625be
lea r14, [rcx + 8]
and qword [rsp + 0xa8], 0
mov rdx, rsi
call sub.Secur32.dll_LsaGetLogonSessionData
test eax, eax
je 0x140062661
mov rcx, rsi
call fcn.140062970
mov rcx, r14
jmp 0x140062636
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x140062654
cmp dword [rax + 0x40], 3
je 0x140062654
movzx r12d, word [rax + 0x10]
mov rbx, qword [rax + 0x18]
mov rdx, qword [rax + 0x48]
mov rcx, rdi
call fcn.1400606cf
cmp qword [rsp + 0xc8], 0
je 0x140062654
mov qword [rsp + 0x130], rbx
mov rbp, qword [rsp + 0xd0]
mov qword [rsp + 0x90], rbp
movups xmm0, xmmword [rsp + 0xc0]
movaps xmmword [rsp + 0x80], xmm0
mov rdx, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x88]
imul rdi, qword [rsp + 0x128], 0x50
test rdi, rdi
je 0x140062716
lea r13, [rdx + 0x50]
mov rcx, qword [rdx + 8]
mov rdx, qword [rdx + 0x10]
mov r8, rbx
mov r9, rbp
call fcn.14000419f
add rdi, 0xffffffffffffffb0
mov rdx, r13
test al, al
je 0x1400626d5
lea rcx, [rsp + 0x80]
call fcn.1400041c4
lea rdi, [rsp + 0xc0]
jmp 0x140062654
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x80]
call fcn.1400607c4
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x140062746
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
lea rdi, [rsp + 0xc0]
jmp 0x140062791
shr r12, 1
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov rdx, qword [rsp + 0x130]
mov r8, r12
call fcn.140001b70
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
mov rdx, qword [rsp + 0xc0]
cmove rdx, rcx
mov rax, rcx
mov r8d, 1
cmove rax, r8
cmovne rcx, qword [rsp + 0xd0]
mov r8, qword [rsp + 0x90]
mov qword [rsp + 0xd0], r8
movaps xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0xc0], xmm0
and dword [rsp + 0x108], 0
mov qword [rsp + 0xd8], rdx
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rcx
and qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 8
and qword [rsp + 0x100], 0
lea rcx, [rsp + 0x118]
mov rdx, rdi
call fcn.140059fe5
jmp 0x140062654