Function at 0x101776a0
Capabilities:
Get logon sessions
List groups for user account
List user accounts
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
xor edi, edi
lea esi, [esp + 8]
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xa8], 0
mov dword [esp], 4
nop
mov dword [esp + 0x30], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0xac], 0
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x9c]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x40]
push eax
push 2
push 0
push 0
call sub.netapi32.dll_NetUserEnum
mov ebx, eax
cmp eax, 0xea
je 0x10177739
test ebx, ebx
jne 0x10177c5f
mov eax, dword [esp + 0x94]
test eax, eax
je 0x10177c40
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x70], ebx
lea eax, [ecx + eax*4]
mov dword [esp + 0x28], eax
jmp 0x10177771
mov ecx, dword [esp + 0x18]
add ecx, 4
cmp ecx, dword [esp + 0x28]
je 0x10177c40
cmp dword [ecx], 0
mov dword [esp + 0x18], ecx
je 0x10177760
mov dword [esp + 8], 0
push esi
push 0x17
push dword [ecx]
push 0
call sub.netapi32.dll_NetUserGetInfo
test eax, eax
jne 0x10177a7d
mov eax, dword [esp + 8]
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x98]
call fcn.10174680
mov edx, dword [esp + 0x98]
test edx, edx
je 0x10177a7d
movq xmm0, qword [esp + 0x9c]
movdqa xmmword [esp + 0xb0], xmm0
lea ecx, [esp + 0xc]
mov dword [esp + 0x78], edx
call fcn.101747a0
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x7c], eax
je 0x101777f8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x74], eax
mov dword [esp + 0x90], ecx
jmp 0x10177855
mov eax, dword [esp + 0x18]
mov ecx, 0xffffffff
mov eax, dword [eax]
nop word cs:[eax + eax]
nop dword [eax]
cmp word [eax + ecx*2 + 2], 0
lea ecx, [ecx + 1]
jne 0x10177810
push ecx
push eax
lea eax, [esp + 0x50]
push eax
call fcn.1001b610
add esp, 0xc
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov edx, 1
test ecx, ecx
cmove eax, ecx
cmove esi, ecx
cmove ecx, edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x40], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x90]
push ecx
push 0xffffffffffffffff
lea ecx, [esp + 0x4c]
push ecx
push 1
push 0
push eax
push 0x1034db14
call sub.netapi32.dll_NetUserGetLocalGroups
test eax, eax
je 0x101778e6
mov dword [esp + 0x1c], 4
mov dword [esp + 0x20], 0
mov dword [esp], 0
mov eax, dword [esp + 0x40]
movq xmm0, qword [esp + 0x1c]
mov ecx, dword [esp]
test eax, eax
movq qword [esp + 0xc], xmm0
mov dword [esp + 0x14], ecx
je 0x101779c5
push eax
call sub.netapi32.dll_NetApiBufferFree
mov ebx, dword [esp + 0x70]
lea esi, [esp + 8]
jmp 0x101779cd
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x10177955
xor ebx, ebx
cmp esi, 0xaaaaaab
setb al
jae 0x10177fb3
lea ecx, [esi*4]
mov bl, al
lea edi, [ecx + ecx*2]
shl ebx, 2
test edi, edi
js 0x10177fb3
je 0x1017795c
mov eax, dword [0x103564a0]
movzx eax, byte [eax]
mov eax, dword [0x1035648c]
mov eax, dword [eax]
test eax, eax
jne 0x10177943
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10177fa7
mov ecx, dword [0x1035648c]
mov dword [ecx], eax
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
jne 0x10177966
jmp 0x10177fa7
mov eax, 4
jmp 0x10177966
mov eax, ebx
test eax, eax
je 0x10177fa7
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0
test ecx, ecx
mov dword [esp + 0x84], ecx
je 0x101779b1
mov edi, dword [esp + 0x8c]
cmp esi, edi
jae 0x10177a94
lea ecx, [esp + 0x1c]
mov edx, edi
call fcn.1016db00
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp], eax
mov eax, ecx
jmp 0x10177aa3
mov eax, dword [esp + 0x24]
movq xmm0, qword [esp + 0x1c]
mov dword [esp + 0x14], eax
movq qword [esp + 0xc], xmm0
mov ebx, dword [esp + 0x70]
lea esi, [esp + 8]
mov eax, dword [esp + 0x78]
movaps xmm0, xmmword [esp + 0xb0]
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x48], eax
movlps qword [esp + 0x4c], xmm0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x58], edx
cmp edi, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
movq xmm0, qword [esp + 0xc]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x60]
mov dword [ecx + 8], edx
movq qword [ecx], xmm0
jne 0x10177a33
lea ecx, [esp + 0x34]
mov edx, edi
call fcn.1016d7c0
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
movsd xmm0, qword [esp + 0x68]
lea eax, [edi + edi*4]
inc edi
movsd qword [ecx + eax*8 + 0x20], xmm0
mov dword [esp], ecx
movsd xmm0, qword [esp + 0x60]
movsd qword [ecx + eax*8 + 0x18], xmm0
movsd xmm0, qword [esp + 0x58]
movsd qword [ecx + eax*8 + 0x10], xmm0
movq xmm0, qword [esp + 0x48]
movq xmm1, qword [esp + 0x50]
movq qword [ecx + eax*8 + 8], xmm1
movq qword [ecx + eax*8], xmm0
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 8]
test eax, eax
je 0x10177760
push eax
call sub.netapi32.dll_NetApiBufferFree
jmp 0x10177760
test edi, edi
mov dword [esp], 0
je 0x101778b4
xor ecx, ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0xa4], edi
jmp 0x10177b17
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp]
mov ebx, dword [esp + 0x80]
test eax, eax
mov esi, 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x88], edx
cmove ecx, eax
cmove edx, eax
cmove eax, esi
lea esi, [edi + edi*2]
inc edi
mov dword [ebx + esi*4], eax
mov dword [ebx + esi*4 + 4], edx
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [esp + 4]
mov dword [esp], edi
mov edi, dword [esp + 0xa4]
inc ecx
cmp ecx, edi
je 0x101778b4
mov eax, dword [esp + 0x84]
mov edi, 0xffffffff
mov dword [esp + 4], ecx
mov ebx, dword [eax + ecx*4]
lea esi, [ebx - 2]
nop dword [eax]
inc edi
cmp word [esi + 2], 0
lea esi, [esi + 2]
jne 0x10177b30
test edi, edi
je 0x10177b80
js 0x10177fa0
mov eax, dword [0x103564a0]
movzx eax, byte [eax]
mov eax, dword [0x1035648c]
mov eax, dword [eax]
test eax, eax
jne 0x10177b6d
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10177f93
mov ecx, dword [0x1035648c]
mov dword [ecx], eax
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
jne 0x10177b85
jmp 0x10177f93
mov eax, 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 0
jmp 0x10177bad
mov ebx, eax
lea ecx, [esp + 0xc]
mov edx, edi
call fcn.1001b740
cmp esi, ebx
je 0x10177ac0
movzx edi, word [ebx]
lea eax, [ebx + 2]
lea ecx, [edi + 0x2000]
movzx ecx, cx
cmp ecx, 0xf800
jb 0x10177ba0
cmp edi, 0xdbff
ja 0x10177c10
cmp esi, eax
je 0x10177c10
movzx eax, word [eax]
lea ecx, [eax + 0x2000]
movzx ecx, cx
cmp ecx, 0xfc00
jb 0x10177c10
and edi, 0x3ff
and eax, 0x3ff
add ebx, 4
shl edi, 0xa
lea edi, [edi + eax + 0x10000]
jmp 0x10177ba2
cmp dword [esp + 0x10], 0
je 0x10177c29
push dword [esp + 0xc]
push 0
mov eax, dword [0x1035648c]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x2c]
xor eax, eax
jmp 0x10177acc
cmp ebx, 0xea
jne 0x10177c5f
mov eax, dword [esp + 0x30]
test eax, eax
je 0x101776e0
push eax
call sub.netapi32.dll_NetApiBufferFree
jmp 0x101776e0
mov eax, dword [esp + 0x30]
mov esi, dword [esp]
test eax, eax
je 0x10177c70
push eax
call sub.netapi32.dll_NetApiBufferFree
mov dword [esp + 0x44], 0
mov dword [esp + 0x98], 0
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x48]
push eax
call sub.Secur32.dll_LsaEnumerateLogonSessions
test eax, eax
je 0x10177d27
mov ebx, dword [esp + 0x98]
mov eax, dword [esp + 0x3c]
movq xmm0, qword [esp + 0x34]
test ebx, ebx
mov dword [esp + 0x50], eax
movq qword [esp + 0x48], xmm0
je 0x10177cc2
push ebx
call sub.Secur32.dll_LsaFreeReturnBuffer
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x100]
mov edi, dword [eax + 0xf8]
test ebx, ebx
je 0x10177ced
mov esi, edi
nop word [eax + eax]
mov ecx, esi
call fcn.1016acd0
add esi, 0x28
dec ebx
jne 0x10177ce0
mov eax, dword [ebp + 8]
cmp dword [eax + 0xfc], 0
lea esi, [eax + 0xf8]
je 0x10177d0e
push edi
push 0
mov eax, dword [0x1035648c]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esp + 0x50]
movsd xmm0, qword [esp + 0x48]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x98]
test eax, eax
je 0x10177ca4
lea eax, [ebx + eax*8]
mov dword [esp + 0x88], eax
jmp 0x10177d60
add ebx, 8
cmp ebx, dword [esp + 0x88]
je 0x10177c9d
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push ebx
call sub.Secur32.dll_LsaGetLogonSessionData
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x10177f80
test eax, eax
je 0x10177f80
cmp dword [eax + 0x24], 3
je 0x10177e40
movzx ecx, word [eax + 0xc]
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x84], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x80], ecx
lea ecx, [esp + 0x48]
call fcn.10174680
mov eax, dword [esp + 0x48]
test eax, eax
mov dword [esp + 4], eax
je 0x10177e40
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
test edi, edi
mov dword [esp + 0x28], ebx
mov dword [esp], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ecx
je 0x10177e57
mov eax, dword [esp]
lea esi, [eax + 8]
lea eax, [edi*8]
lea ebx, [eax + eax*4]
jmp 0x10177df8
add esi, 0x28
add ebx, 0xffffffd8
je 0x10177e57
mov eax, dword [esp + 0x18]
cmp eax, dword [esi]
jne 0x10177df0
push eax
push dword [esp + 8]
push dword [esi - 8]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10177df0
cmp dword [esp + 0x2c], 0
mov esi, dword [esp]
mov ebx, dword [esp + 0x28]
je 0x10177e40
push dword [esp + 4]
push 0
mov eax, dword [0x1035648c]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
nop word cs:[eax + eax]
nop
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10177d50
push eax
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x10177d50
mov edx, dword [esp + 4]
lea ecx, [esp + 0xc]
call fcn.101747a0
mov esi, dword [esp]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10177e7b
movq xmm0, qword [esp + 0x10]
jmp 0x10177ec9
mov eax, dword [esp + 0x84]
shr eax, 1
push eax
push dword [esp + 0x84]
lea eax, [esp + 0x50]
push eax
call fcn.1001b610
add esp, 0xc
mov eax, dword [esp + 0x48]
xor ecx, ecx
movq xmm1, qword [esp + 0x4c]
mov edx, 1
test eax, eax
sete cl
cmove eax, edx
movd xmm0, ecx
pshufd xmm0, xmm0, 0x50
pslld xmm0, 0x1f
psrad xmm0, 0x1f
pandn xmm0, xmm1
mov ecx, dword [esp + 4]
cmp edi, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x54], eax
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x60], 4
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
jne 0x10177f26
lea ecx, [esp + 0x34]
mov edx, edi
call fcn.1016d7c0
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
jmp 0x10177f2a
mov ebx, dword [esp + 0x28]
movsd xmm0, qword [esp + 0x68]
lea eax, [edi + edi*4]
inc edi
movsd qword [esi + eax*8 + 0x20], xmm0
movsd xmm0, qword [esp + 0x60]
movsd qword [esi + eax*8 + 0x18], xmm0
movsd xmm0, qword [esp + 0x58]
movsd qword [esi + eax*8 + 0x10], xmm0
movq xmm0, qword [esp + 0x48]
movq xmm1, qword [esp + 0x50]
movq qword [esi + eax*8 + 8], xmm1
movq qword [esi + eax*8], xmm0
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x1c]
nop word cs:[eax + eax]
nop dword [eax + eax]
test eax, eax
je 0x10177d50
push eax
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x10177d50
push edi
push 1
call fcn.1001a7e0
add esp, 8
jmp 0x10177fb8
call fcn.1001a7a0
jmp 0x10177fb8
push edi
push ebx
call fcn.1001a7e0
add esp, 8
jmp 0x10177fb8
call fcn.1001a7a0
ud2