Function at 0x14000de80
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, 0x178
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], 0xfffffffffffffffe
mov qword [rbp - 0x40], rcx
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x68], 8
mov qword [rbp + 0x70], 0
mov dword [rbp - 0x30], 0
lea rbx, [rbp + 0xc8]
mov qword [rbp + 0x58], 0
mov dword [rbp + 0x54], 0
mov dword [rbp - 0x34], 0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x34]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x54]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
xor ecx, ecx
xor edx, edx
mov r8d, 2
lea r9, [rbp + 0x58]
call sub.netapi32.dll_NetUserEnum
mov r13d, eax
test eax, eax
je 0x14000df30
cmp r13d, 0xea
jne 0x14000e447
mov r15, qword [rbp + 0x58]
mov eax, dword [rbp + 0x54]
lea r12, [r15 + rax*8]
mov dword [rbp - 0x2c], r13d
nop
cmp r15, r12
je 0x14000e420
mov rsi, qword [r15]
add r15, 8
test rsi, rsi
je 0x14000df40
mov qword [rbp + 0xc8], 0
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x17
mov r9, rbx
call sub.netapi32.dll_NetUserGetInfo
mov rcx, qword [rbp + 0xc8]
test eax, eax
je 0x14000df90
test rcx, rcx
jne 0x14000e410
jmp 0x14000df40
mov rdi, qword [rcx + 0x20]
test rdi, rdi
je 0x14000e400
mov rcx, rdi
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x14000e400
mov rcx, rdi
call sub.advapi32.dll_GetLengthSid
mov r14d, eax
mov dword [rbp + 0xe0], eax
test eax, eax
mov qword [rbp + 0xd8], r14
je 0x14000dfe0
mov edx, 1
mov rcx, r14
call fcn.140002d50
test rax, rax
jne 0x14000dfe5
jmp 0x14000e749
mov eax, 1
mov ecx, dword [rbp + 0xe0]
mov qword [rbp + 0x78], rax
mov rdx, rax
mov r8, rdi
call sub.advapi32.dll_CopySid
test eax, eax
je 0x14000e0c8
cmp dword [rbp + 0xe0], 0
mov rax, qword [rbp + 0xd8]
je 0x14000e799
mov rdx, qword [rbp + 0x78]
cmp byte [rdx], 1
jne 0x14000e758
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rax
mov byte [rbp + 0xee], 1
lea rcx, [rbp + 0x80]
lea rdx, [rbp - 0x28]
call fcn.140011670
mov rcx, qword [rbp + 0x80]
movabs rax, 0x8000000000000000
cmp rcx, rax
jne 0x14000e0f0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rsi + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x14000e070
mov byte [rbp + 0xee], 1
mov rcx, rbp
mov rdx, rsi
call fcn.1400337e0
mov rdx, qword [rbp]
movabs rax, 0x8000000000000000
cmp rdx, rax
mov r14, qword [rbp + 0x10]
mov eax, 0
cmove r14, rax
mov r8, qword [rbp + 8]
mov ecx, 1
cmove r8, rcx
mov qword [rbp - 8], r8
cmove rdx, rax
mov qword [rbp - 0x10], rdx
jmp 0x14000e106
cmp dword [rbp + 0xe0], 0
mov rdx, qword [rbp + 0xd8]
je 0x14000e400
mov r8d, 1
mov rcx, qword [rbp + 0x78]
call fcn.140002d30
jmp 0x14000e400
mov qword [rbp - 0x10], rcx
mov rax, qword [rbp + 0x88]
mov qword [rbp - 8], rax
mov r14, qword [rbp + 0x90]
mov qword [rbp + 0xd0], 0
mov dword [rbp + 0xc4], 0
mov dword [rbp - 0x38], 0
mov byte [rbp + 0xed], 0
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xc4]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
lea rcx, [0x140040578]
mov rdx, rsi
xor r8d, r8d
mov r9d, 1
call sub.netapi32.dll_NetUserGetLocalGroups
test eax, eax
je 0x14000e192
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0xa8], 8
xor eax, eax
mov qword [rbp + 0xe0], rax
jmp 0x14000e312
mov r13d, dword [rbp + 0xc4]
test r13, r13
je 0x14000e1cc
lea rax, [r13*8]
lea rdi, [rax + rax*2]
movzx eax, byte [0x140054181]
mov edx, 8
mov rcx, rdi
call fcn.140002d20
test rax, rax
je 0x14000e7ab
mov rsi, rax
jmp 0x14000e1d1
mov esi, 8
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0xa8], rsi
mov qword [rbp + 0xb0], 0
mov rbx, qword [rbp + 0xd0]
test rbx, rbx
je 0x14000e229
mov edi, dword [rbp + 0xc4]
cmp r13d, edi
jae 0x14000e258
mov byte [rbp + 0xed], 1
lea rcx, [rbp + 0xa0]
xor edx, edx
mov r8, rdi
call fcn.140039540
mov rsi, qword [rbp + 0xa8]
mov rax, qword [rbp + 0xb0]
jmp 0x14000e271
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x88], rax
jmp 0x14000e34d
mov eax, 0
mov qword [rbp + 0xe0], rax
mov eax, 0
test edi, edi
je 0x14000e312
mov qword [rbp + 0xe0], rax
xor r13d, r13d
nop dword [rax + rax]
mov rdx, qword [rbx + r13*8]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + r8*2 + 2], 0
lea r8, [r8 + 1]
jne 0x14000e290
lea rcx, [rbp + 0x80]
call fcn.1400337e0
mov rax, qword [rbp + 0x80]
movabs rcx, 0x8000000000000000
cmp rax, rcx
mov rcx, qword [rbp + 0x90]
mov r8d, 0
cmove rcx, r8
mov rdx, qword [rbp + 0x88]
mov r9d, 1
cmove rdx, r9
cmove rax, r8
mov r9, qword [rbp + 0xe0]
lea r8, [r9 + r9*2]
mov qword [rsi + r8*8], rax
mov qword [rsi + r8*8 + 8], rdx
mov qword [rsi + r8*8 + 0x10], rcx
inc r9
mov qword [rbp + 0xe0], r9
inc r13
cmp r13, rdi
jne 0x14000e280
mov rcx, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0x90], rax
test rcx, rcx
je 0x14000e34d
call sub.netapi32.dll_NetApiBufferFree
mov rax, qword [rbp + 0xd8]
mov qword [rbp], rax
mov rcx, qword [rbp + 0x78]
mov qword [rbp + 8], rcx
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x48], 0
mov rax, qword [rbp - 0x10]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp - 8]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], r14
mov rax, qword [rbp + 0x90]
lea rcx, [rbp + 0x30]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 0x80]
mov qword [rcx], rax
mov rax, qword [rbp + 0x88]
mov qword [rcx + 8], rax
mov rsi, qword [rbp + 0x70]
cmp rsi, qword [rbp + 0x60]
mov r13d, dword [rbp - 0x2c]
jne 0x14000e3ba
lea rcx, [rbp + 0x60]
call fcn.14000ffe0
mov rax, qword [rbp + 0x68]
lea rcx, [rsi + rsi*4]
shl rcx, 4
movups xmm0, xmmword [rbp + 0x40]
movups xmmword [rax + rcx + 0x40], xmm0
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rbp + 0x10]
movups xmm2, xmmword [rbp + 0x20]
movups xmm3, xmmword [rbp + 0x30]
movups xmmword [rax + rcx + 0x30], xmm3
movups xmmword [rax + rcx + 0x20], xmm2
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc rsi
mov qword [rbp + 0x70], rsi
lea rbx, [rbp + 0xc8]
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x14000df40
call sub.netapi32.dll_NetApiBufferFree
jmp 0x14000df40
mov rcx, qword [rbp + 0x58]
cmp r13d, 0xea
jne 0x14000e44b
test rcx, rcx
je 0x14000ded0
mov byte [rbp + 0xef], 1
call sub.netapi32.dll_NetApiBufferFree
jmp 0x14000ded0
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x14000e45c
mov byte [rbp + 0xef], 1
call sub.netapi32.dll_NetApiBufferFree
mov dword [rbp + 0xc8], 0
mov qword [rbp + 0xd0], 0
lea rcx, [rbp + 0xc8]
lea rdx, [rbp + 0xd0]
call sub.secur32.dll_LsaEnumerateLogonSessions
mov rsi, qword [rbp + 0xd0]
test eax, eax
jne 0x14000e70a
mov eax, dword [rbp + 0xc8]
lea rdi, [rsi + rax*8]
lea rbx, [rbp - 0x28]
mov r14, rbp
mov qword [rbp + 0xd8], rdi
jmp 0x14000e4bb
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x14000e4bb
call sub.secur32.dll_LsaFreeReturnBuffer
cmp rsi, rdi
je 0x14000e703
mov qword [rbp - 0x28], 0
mov rcx, rsi
mov rdx, rbx
call sub.secur32.dll_LsaGetLogonSessionData
add rsi, 8
mov rcx, qword [rbp - 0x28]
test eax, eax
jne 0x14000e6f0
test rcx, rcx
je 0x14000e6f0
cmp dword [rcx + 0x40], 3
je 0x14000e4b6
movzx r13d, word [rcx + 0x10]
mov r12, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x48]
mov rcx, r14
call fcn.1400114f0
movabs rax, 0x8000000000000000
cmp qword [rbp], rax
je 0x14000e4ad
mov r14, qword [rbp + 0x10]
mov qword [rbp + 0xb0], r14
movups xmm0, xmmword [rbp]
movaps xmmword [rbp + 0xa0], xmm0
mov rax, qword [rbp + 0x70]
mov rcx, qword [rbp + 0xa8]
mov qword [rbp + 0xe0], rcx
test rax, rax
je 0x14000e5bd
mov rbx, qword [rbp + 0x68]
shl rax, 4
lea rdi, [rax + rax*4]
xor r15d, r15d
jmp 0x14000e569
add r15, 0x50
cmp rdi, r15
je 0x14000e5bd
cmp qword [rbx + r15 + 0x10], r14
jne 0x14000e560
mov rcx, qword [rbx + r15 + 8]
mov rdx, qword [rbp + 0xe0]
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000e560
mov rdx, qword [rbp + 0xa0]
test rdx, rdx
mov rdi, qword [rbp + 0xd8]
lea rbx, [rbp - 0x28]
mov r14, rbp
je 0x14000e4ad
mov r8d, 1
mov rcx, qword [rbp + 0xe0]
call fcn.140002d30
jmp 0x14000e4ad
mov byte [rbp + 0xec], 1
lea rcx, [rbp + 0x80]
lea rdx, [rbp + 0xa0]
call fcn.140011670
mov r14, rbp
mov rax, qword [rbp + 0x80]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x14000e63a
shr r13d, 1
mov byte [rbp + 0xec], 1
mov rcx, r14
mov rdx, r12
mov r8, r13
call fcn.1400337e0
mov rax, qword [rbp]
movabs rcx, 0x8000000000000000
cmp rax, rcx
mov r8d, 0
cmove rax, r8
mov rcx, qword [rbp + 8]
mov edx, 1
cmove rcx, rdx
mov rdx, qword [rbp + 0x10]
cmove rdx, r8
jmp 0x14000e648
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x90]
mov r8, qword [rbp + 0xb0]
mov qword [rbp + 0x10], r8
movaps xmm0, xmmword [rbp + 0xa0]
movaps xmmword [rbp], xmm0
mov dword [rbp + 0x48], 0
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 8
mov qword [rbp + 0x40], 0
mov rbx, qword [rbp + 0x70]
cmp rbx, qword [rbp + 0x60]
jne 0x14000e69c
lea rcx, [rbp + 0x60]
call fcn.14000ffe0
mov rax, qword [rbp + 0x68]
lea rcx, [rbx + rbx*4]
shl rcx, 4
movaps xmm0, xmmword [rbp + 0x40]
movups xmmword [rax + rcx + 0x40], xmm0
movaps xmm0, xmmword [rbp]
movaps xmm1, xmmword [rbp + 0x10]
movaps xmm2, xmmword [rbp + 0x20]
movaps xmm3, xmmword [rbp + 0x30]
movups xmmword [rax + rcx + 0x30], xmm3
movups xmmword [rax + rcx + 0x20], xmm2
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
inc rbx
mov qword [rbp + 0x70], rbx
mov rcx, qword [rbp - 0x28]
mov rdi, qword [rbp + 0xd8]
lea rbx, [rbp - 0x28]
nop word [rax + rax]
test rcx, rcx
je 0x14000e4bb
call sub.secur32.dll_LsaFreeReturnBuffer
jmp 0x14000e4bb
mov rsi, qword [rbp + 0xd0]
mov rax, qword [rbp + 0x70]
mov rcx, qword [rbp - 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp + 0x60]
movups xmmword [rcx], xmm0
test rsi, rsi
je 0x14000e731
mov byte [rbp + 0xef], 0
mov rcx, rsi
call sub.secur32.dll_LsaFreeReturnBuffer
mov rax, qword [rbp - 0x40]
add rsp, 0x178
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov ecx, 1
mov rdx, r14
call fcn.14003dc60
jmp 0x14000e7bf
lea rax, str.Expected_SID_revision_to_be_1
mov qword [rbp], rax
mov qword [rbp + 8], 1
mov qword [rbp + 0x10], 8
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
lea rax, [0x140040778]
mov qword [rsp + 0x20], rax
lea r8, [0x140040770]
mov r9, rbp
xor ecx, ecx
call fcn.14003bdd0
jmp 0x14000e7bf
lea r8, [0x140040728]
xor ecx, ecx
xor edx, edx
call fcn.14003dee0
jmp 0x14000e7bf
mov byte [rbp + 0xed], 0
mov ecx, 8
mov rdx, rdi
call fcn.14003dc60
ud2