Function at 0x100325e0
Capabilities:
Get logon sessions
List user accounts

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x8c
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
mov esi, dword [eax + 4]
mov dword [eax + 8], 0
test edi, edi
je 0x1003265f
add esi, 0x1c
jmp 0x10032616
add esi, 0x2c
dec edi
je 0x1003265f
mov eax, dword [esi - 0x1c]
test eax, eax
je 0x1003262b
push 1
push eax
push dword [esi - 0x18]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esi - 0x10]
test eax, eax
je 0x10032640
push 1
push eax
push dword [esi - 0xc]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esi - 4]
cmp eax, 0x80000000
je 0x10032610
test eax, eax
je 0x10032610
add eax, eax
push 2
push eax
push dword [esi]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x10032610
mov dword [ebp - 0x94], 0
nop dword [eax]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x98], 0
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x78]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
push eax
push 2
push 0
push 0
call sub.netapi32.dll_NetUserEnum
test eax, eax
je 0x100326ba
cmp eax, 0xea
jne 0x10032912
mov edi, dword [ebp - 0x78]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x88], eax
test edi, edi
je 0x100328f3
shl edi, 2
jmp 0x10032736
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x40]
imul ecx, ebx, 0x2c
inc ebx
mov dword [eax + ecx + 0x28], edx
movsd xmm0, qword [ebp - 0x48]
movsd qword [eax + ecx + 0x20], xmm0
movsd xmm0, qword [ebp - 0x50]
movsd qword [eax + ecx + 0x18], xmm0
movsd xmm0, qword [ebp - 0x58]
movsd qword [eax + ecx + 0x10], xmm0
movsd xmm0, qword [ebp - 0x68]
movsd xmm1, qword [ebp - 0x60]
movsd qword [eax + ecx + 8], xmm1
movsd qword [eax + ecx], xmm0
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1003272a
push eax
call sub.netapi32.dll_NetApiBufferFree
add esi, 4
add edi, 0xfffffffc
je 0x100328f0
mov ebx, dword [esi]
test ebx, ebx
je 0x1003272a
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x17
push ebx
push 0
call sub.netapi32.dll_NetUserGetInfo
test eax, eax
mov eax, dword [ebp - 0x14]
je 0x10032760
test eax, eax
jne 0x10032724
jmp 0x1003272a
push dword [eax + 0x10]
lea eax, [ebp - 0x74]
push eax
call sym.sysinfo::windows::sid::Sid::from_psid::h2de1706ce9504111
add esp, 8
cmp dword [ebp - 0x74], 0x80000000
je 0x1003271d
mov eax, dword [ebp - 0x6c]
movsd xmm0, qword [ebp - 0x74]
mov dword [ebp - 0x28], eax
movsd qword [ebp - 0x30], xmm0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x84]
push eax
call sym.sysinfo::windows::sid::Sid::account_name::hc9b553f00ad419cd
add esp, 8
mov eax, dword [ebp - 0x84]
cmp eax, 0x80000000
jne 0x100327f0
mov eax, dword [esi]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x10032801
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
call sym.windows_core::strings::pwstr::PWSTR::to_string::h02b7a03b6d9d64fb
add esp, 8
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x60]
mov ecx, 0
cmp edx, 0x80000000
cmove eax, ecx
mov ecx, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x64]
cmove eax, ecx
mov ecx, 0
cmove edx, ecx
mov dword [ebp - 0x10], eax
jmp 0x10032811
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
jmp 0x10032814
xor edx, edx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x68]
push eax
call sym.windows_core::strings::pwstr::PWSTR::as_wide::ha9a40bc52d7b05b1
add esp, 4
mov ecx, eax
mov ebx, edx
test edx, edx
je 0x1003287e
cmp ebx, 0x3fffffff
mov dword [ebp - 0x8c], ecx
ja 0x10032b5c
mov eax, dword [0x101918ac]
lea ecx, [ebx + ebx]
movzx eax, byte [eax]
push 2
mov dword [ebp - 0x34], ecx
push ecx
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x10032b55
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x34]
jmp 0x10032885
mov eax, 2
xor edx, edx
mov dword [ebp - 0x34], eax
push edx
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x40], 1
mov ebx, dword [eax + 8]
cmp ebx, dword [eax]
jne 0x100326d3
push eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h950311e9b452e1a5
mov eax, dword [ebp + 8]
add esp, 4
jmp 0x100326d3
mov esi, dword [ebp - 0x24]
cmp dword [ebp - 0x88], 0xea
jne 0x10032915
test esi, esi
je 0x10032670
push esi
call sub.netapi32.dll_NetApiBufferFree
jmp 0x10032670
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x1003291f
push esi
call sub.netapi32.dll_NetApiBufferFree
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.secur32.dll_LsaEnumerateLogonSessions
mov esi, dword [ebp - 0x20]
test eax, eax
js 0x10032b40
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10032b40
lea edi, [esi + eax*8]
mov dword [ebp - 0x18], edi
jmp 0x10032970
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x10032965
push eax
call sub.secur32.dll_LsaFreeReturnBuffer
add esi, 8
cmp esi, edi
je 0x10032b3d
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x74]
push eax
push esi
call sub.secur32.dll_LsaGetLogonSessionData
test eax, eax
mov eax, dword [ebp - 0x74]
js 0x10032b30
test eax, eax
je 0x10032b30
cmp dword [eax + 0x24], 3
je 0x1003295f
movzx ebx, word [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x3c], ecx
push dword [eax + 0x2c]
lea eax, [ebp - 0x68]
push eax
call sym.sysinfo::windows::sid::Sid::from_psid::h2de1706ce9504111
add esp, 8
cmp dword [ebp - 0x68], 0x80000000
je 0x10032958
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x60]
movsd xmm0, qword [ebp - 0x68]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x10], esi
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], edi
movsd qword [ebp - 0x30], xmm0
test eax, eax
je 0x10032a33
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
imul esi, eax, 0x2c
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x1c], edx
add ebx, 8
jmp 0x100329f8
add ebx, 0x2c
add esi, 0xffffffd4
je 0x10032a33
cmp dword [ebx], edi
jne 0x100329f0
push edi
push dword [ebp - 0x1c]
push dword [ebx - 4]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x100329f0
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x10032958
push 1
push eax
push dword [ebp - 0x1c]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x10032958
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x84]
push eax
call sym.sysinfo::windows::sid::Sid::account_name::hc9b553f00ad419cd
add esp, 8
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x38]
cmp eax, 0x80000000
jne 0x10032a8b
shr ecx, 1
push ecx
push dword [ebp - 0x3c]
lea eax, [ebp - 0x68]
push eax
call sym.alloc::string::String::from_utf16::hafbf8e8226bf84a8
add esp, 0xc
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
mov edx, 1
mov esi, 0
cmp eax, 0x80000000
cmove ecx, edx
mov edx, dword [ebp - 0x60]
cmove eax, esi
cmove edx, esi
jmp 0x10032a91
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x30]
mov dword [ebp - 0x60], esi
mov esi, dword [edi + 8]
movsd qword [ebp - 0x68], xmm0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], 0x80000000
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x40], 0
cmp esi, dword [edi]
jne 0x10032add
push edi
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h950311e9b452e1a5
add esp, 4
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x40]
imul ecx, esi, 0x2c
inc esi
mov dword [eax + ecx + 0x28], edx
movsd xmm0, qword [ebp - 0x48]
movsd qword [eax + ecx + 0x20], xmm0
movsd xmm0, qword [ebp - 0x50]
movsd qword [eax + ecx + 0x18], xmm0
movsd xmm0, qword [ebp - 0x58]
movsd qword [eax + ecx + 0x10], xmm0
movsd xmm0, qword [ebp - 0x68]
movsd xmm1, qword [ebp - 0x60]
movsd qword [eax + ecx + 8], xmm1
movsd qword [eax + ecx], xmm0
mov dword [edi + 8], esi
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x74]
nop dword [eax]
test eax, eax
je 0x10032965
jmp 0x1003295f
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x10032b4a
push esi
call sub.secur32.dll_LsaFreeReturnBuffer
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 2
jmp 0x10032b5e
xor eax, eax
push dword [ebp - 0x34]
push eax
call sym.alloc::raw_vec::handle_error::hfb8b40974975e9a6
add esp, 8
ud2