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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], 0xfffffffffffffffe
mov qword [rbp - 0x38], rcx
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 8
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x38], 0
mov dword [rbp + 0x40], 0
mov dword [rbp - 0x14], 0
mov dword [rbp - 0x18], 0
xor r14d, r14d
lea rbx, [rbp + 0x70]
jmp 0x1401148ac
cmp esi, 0xea
jne 0x140114ce2
lea rax, [rbp - 0x18]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x14]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rbp + 0x38]
call sub.netapi32.dll_NetUserEnum
mov dword [rbp + 0x44], eax
cmp eax, 0xea
je 0x1401148f6
cmp dword [rbp + 0x44], 0
jne 0x140114cc0
mov rsi, qword [rbp + 0x38]
mov eax, dword [rbp + 0x40]
lea rax, [rsi + rax*8]
mov qword [rbp - 0x40], rax
jmp 0x14011494b
mov rax, qword [rbp + 0x50]
lea rcx, [rdx + rdx*8]
mov r8, qword [rbp + 0x30]
mov qword [rax + rcx*8 + 0x40], r8
movaps xmm0, xmmword [rbp - 0x10]
movaps xmm1, xmmword [rbp]
movaps xmm2, xmmword [rbp + 0x10]
movaps xmm3, xmmword [rbp + 0x20]
movups xmmword [rax + rcx*8 + 0x30], xmm3
movups xmmword [rax + rcx*8 + 0x20], xmm2
movups xmmword [rax + rcx*8 + 0x10], xmm1
movups xmmword [rax + rcx*8], xmm0
inc rdx
mov qword [rbp + 0x58], rdx
cmp rsi, qword [rbp - 0x40]
je 0x140114cc0
mov rdi, qword [rsi]
add rsi, 8
test rdi, rdi
je 0x14011494b
mov qword [rbp + 0x70], 0
mov dword [rbp + 0x88], 0
mov dword [rbp + 0x8c], 0
mov byte [rbp + 0xaf], 0
lea rax, [rbp + 0x8c]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x88]
mov qword [rsp + 0x30], rax
mov r15, rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x1401ac2c0]
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call sub.netapi32.dll_NetUserGetLocalGroups
test eax, eax
je 0x140114a10
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x98], 8
mov qword [rbp + 0xa0], 0
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x140114b50
mov byte [rbp + 0xaf], 1
call sub.netapi32.dll_NetApiBufferFree
jmp 0x140114b50
mov ebx, dword [rbp + 0x88]
test rbx, rbx
je 0x140114a45
lea rax, [rbx*8]
lea r13, [rax + rax*2]
movzx eax, byte [0x140202701]
mov edx, 8
mov rcx, r13
call fcn.14001c710
test rax, rax
jne 0x140114a4a
jmp 0x140114fba
mov eax, 8
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rax
mov qword [rbp + 0xa0], 0
cmp qword [rbp + 0x70], 0
je 0x140114b50
xor r13d, r13d
mov ebx, dword [rbp + 0x88]
jmp 0x140114aa8
mov rax, qword [rbp + 0x98]
lea rcx, [rdx + rdx*2]
mov rdx, qword [rbp + 0x60]
mov qword [rax + rcx*8], rdx
mov rdx, qword [rbp + 0x68]
mov qword [rax + rcx*8 + 8], rdx
mov qword [rax + rcx*8 + 0x10], r12
inc qword [rbp + 0xa0]
cmp r13d, ebx
jae 0x1401149e9
mov rax, qword [rbp + 0x70]
test rax, rax
je 0x140114b50
mov ecx, r13d
inc r13d
mov rdx, qword [rax + rcx*8]
mov r8, 0xffffffffffffffff
nop
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140114ad0
mov byte [rbp + 0xaf], 1
lea rcx, [rbp - 0x10]
call fcn.14013ae70
mov rcx, qword [rbp - 0x10]
movabs rax, 0x8000000000000000
cmp rcx, rax
mov r12, qword [rbp]
cmove r12, r14
mov rdx, qword [rbp - 8]
mov eax, 1
cmove rdx, rax
mov qword [rbp + 0x68], rdx
cmove rcx, r14
mov qword [rbp + 0x60], rcx
mov rdx, qword [rbp + 0xa0]
cmp rdx, qword [rbp + 0x90]
jne 0x140114a80
lea rcx, [rbp + 0x90]
call fcn.140033ff0
mov rdx, qword [rbp + 0xa0]
jmp 0x140114a80
mov rax, qword [rbp + 0xa0]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x90]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0x98]
mov qword [rbp - 0x28], rax
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdi + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140114b80
mov byte [rbp + 0xad], 1
lea rcx, [rbp - 0x10]
mov rdx, rdi
call fcn.14013ae70
movabs rax, 0x8000000000000000
cmp qword [rbp - 0x10], rax
mov rbx, r15
jne 0x140114bd0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x78], 1
mov qword [rbp + 0x80], 0
jmp 0x140114be3
mov rax, qword [rbp]
mov qword [rbp + 0x80], rax
movups xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp + 0x70], xmm0
mov byte [rbp + 0xac], 0
mov byte [rbp + 0xab], 1
lea rcx, [rbp + 0x90]
mov rdx, rbx
call fcn.14013b110
mov r15, qword [rbp + 0x90]
mov r12, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
cmp r15, rdi
jbe 0x140114c40
test rdi, rdi
je 0x140114c45
mov r8d, 1
mov rcx, r12
mov rdx, r15
mov r9, rdi
call fcn.14001c730
mov r13, rax
test rax, rax
jne 0x140114c60
jmp 0x140114fa3
mov r13, r12
jmp 0x140114c60
mov r13d, 1
mov r8d, 1
mov rcx, r12
mov rdx, r15
call fcn.14001c720
nop dword [rax]
movaps xmm0, xmmword [rbp + 0x70]
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [rbp + 0x80]
mov qword [rbp], rax
mov rax, qword [rbp - 0x20]
lea rcx, [rbp + 8]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rcx], xmm0
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], rdi
mov dword [rbp + 0x30], 0
mov rdx, qword [rbp + 0x58]
cmp rdx, qword [rbp + 0x48]
jne 0x140114910
lea rcx, [rbp + 0x48]
call fcn.140113bf0
mov rdx, qword [rbp + 0x58]
jmp 0x140114910
mov rcx, qword [rbp + 0x38]
test rcx, rcx
mov esi, dword [rbp + 0x44]
je 0x1401148a0
call sub.netapi32.dll_NetApiBufferFree
mov qword [rbp + 0x38], 0
jmp 0x1401148a0
mov dword [rbp + 0x8c], 0
mov qword [rbp - 0x30], 0
lea rcx, [rbp + 0x8c]
lea rdx, [rbp - 0x30]
call sub.Secur32.dll_LsaEnumerateLogonSessions
test eax, eax
je 0x140114d2f
mov rcx, qword [rbp + 0x58]
mov rax, qword [rbp - 0x38]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp + 0x48]
movups xmmword [rax], xmm0
add rsp, 0x138
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
xor esi, esi
mov r14d, dword [rbp + 0x8c]
lea rdi, [rbp + 0x70]
nop dword [rax]
cmp esi, r14d
jae 0x140114d08
mov ecx, esi
shl rcx, 3
add rcx, qword [rbp - 0x30]
mov qword [rbp + 0x70], 0
mov rdx, rdi
call sub.Secur32.dll_LsaGetLogonSessionData
inc esi
mov rcx, qword [rbp + 0x70]
test eax, eax
jne 0x140114f60
test rcx, rcx
je 0x140114f60
cmp dword [rcx + 0x40], 3
je 0x140114d40
mov rdx, qword [rcx + 0x18]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x140114d90
lea rcx, [rbp - 0x10]
call fcn.14013ae70
movabs rax, 0x8000000000000000
cmp qword [rbp - 0x10], rax
jne 0x140114deb
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x98], 1
mov qword [rbp + 0xa0], 0
mov r15d, 1
xor r12d, r12d
mov rax, qword [rbp + 0x58]
test rax, rax
jne 0x140114e11
jmp 0x140114e59
movups xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp + 0x90], xmm0
mov r12, qword [rbp]
mov qword [rbp + 0xa0], r12
mov r15, qword [rbp + 0x98]
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x140114e59
mov rbx, qword [rbp + 0x50]
shl rax, 3
lea rdi, [rax + rax*8]
xor r13d, r13d
jmp 0x140114e39
add r13, 0x48
cmp rdi, r13
je 0x140114e59
cmp qword [rbx + r13 + 0x10], r12
jne 0x140114e30
mov rcx, qword [rbx + r13 + 8]
mov rdx, r15
mov r8, r12
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140114e30
jmp 0x140114f80
mov byte [rbp + 0xae], 1
lea rcx, [rbp - 0x10]
lea rdx, [rbp + 0x90]
call fcn.14013b110
mov rdi, qword [rbp - 0x10]
mov rbx, qword [rbp - 8]
mov r15, qword [rbp]
cmp rdi, r15
jbe 0x140114ea7
test r15, r15
je 0x140114eac
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
mov r9, r15
call fcn.14001c730
mov r12, rax
test rax, rax
jne 0x140114ec3
jmp 0x140114fd0
mov r12, rbx
jmp 0x140114ec3
mov r12d, 1
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call fcn.14001c720
movaps xmm0, xmmword [rbp + 0x90]
movaps xmmword [rbp - 0x10], xmm0
mov rax, qword [rbp + 0xa0]
mov qword [rbp], rax
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], r15
mov dword [rbp + 0x30], 0
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 8
mov qword [rbp + 0x18], 0
mov rdx, qword [rbp + 0x58]
cmp rdx, qword [rbp + 0x48]
jne 0x140114f1d
lea rcx, [rbp + 0x48]
call fcn.140113bf0
lea rdi, [rbp + 0x70]
mov rdx, qword [rbp + 0x58]
jmp 0x140114f21
lea rdi, [rbp + 0x70]
mov rax, qword [rbp + 0x50]
lea rcx, [rdx + rdx*8]
mov r8, qword [rbp + 0x30]
mov qword [rax + rcx*8 + 0x40], r8
movaps xmm0, xmmword [rbp - 0x10]
movaps xmm1, xmmword [rbp]
movaps xmm2, xmmword [rbp + 0x10]
movaps xmm3, xmmword [rbp + 0x20]
movups xmmword [rax + rcx*8 + 0x30], xmm3
movups xmmword [rax + rcx*8 + 0x20], xmm2
movups xmmword [rax + rcx*8 + 0x10], xmm1
movups xmmword [rax + rcx*8], xmm0
inc rdx
mov qword [rbp + 0x58], rdx
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x140114d40
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x140114d40
mov rdx, qword [rbp + 0x90]
test rdx, rdx
je 0x140114d38
mov r8d, 1
mov rcx, r15
call fcn.14001c720
jmp 0x140114d38
mov qword [rbp + 0x68], r12
mov qword [rbp + 0x60], r15
mov ecx, 1
mov rdx, rdi
call fcn.140155720
jmp 0x140114fe5
mov byte [rbp + 0xaf], 0
mov ecx, 8
mov rdx, r13
call fcn.140155720
jmp 0x140114fe5
mov qword [rbp + 0x68], rbx
mov qword [rbp + 0x60], rdi
mov ecx, 1
mov rdx, r15
call fcn.140155720
ud2