Function at 0x42af40
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 0x42afbf
add esi, 0x1c
jmp 0x42af76
add esi, 0x2c
dec edi
je 0x42afbf
mov eax, dword [esi - 0x1c]
test eax, eax
je 0x42af8b
push 1
push eax
push dword [esi - 0x18]
call main
add esp, 0xc
mov eax, dword [esi - 0x10]
test eax, eax
je 0x42afa0
push 1
push eax
push dword [esi - 0xc]
call main
add esp, 0xc
mov eax, dword [esi - 4]
cmp eax, 0x80000000
je 0x42af70
test eax, eax
je 0x42af70
add eax, eax
push 2
push eax
push dword [esi]
call main
add esp, 0xc
jmp 0x42af70
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 0x42b01a
cmp eax, 0xea
jne 0x42b272
mov edi, dword [ebp - 0x78]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x88], eax
test edi, edi
je 0x42b253
shl edi, 2
jmp 0x42b096
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 0x42b08a
push eax
call sub.netapi32.dll_NetApiBufferFree
add esi, 4
add edi, 0xfffffffc
je 0x42b250
mov ebx, dword [esi]
test ebx, ebx
je 0x42b08a
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 0x42b0c0
test eax, eax
jne 0x42b084
jmp 0x42b08a
push dword [eax + 0x10]
lea eax, [ebp - 0x74]
push eax
call fcn.00413bd0
add esp, 8
cmp dword [ebp - 0x74], 0x80000000
je 0x42b07d
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 fcn.00413d30
add esp, 8
mov eax, dword [ebp - 0x84]
cmp eax, 0x80000000
jne 0x42b150
mov eax, dword [esi]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x42b161
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0044d520
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 0x42b171
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 0x42b174
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 fcn.0044d500
add esp, 4
mov ecx, eax
mov ebx, edx
test edx, edx
je 0x42b1de
cmp ebx, 0x3fffffff
mov dword [ebp - 0x8c], ecx
ja 0x42b4bc
mov eax, dword [0x593ab0]
lea ecx, [ebx + ebx]
movzx eax, byte [eax]
push 2
mov dword [ebp - 0x34], ecx
push ecx
call fcn.00409a80
add esp, 8
test eax, eax
je 0x42b4b5
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x34]
jmp 0x42b1e5
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 0x42b033
push eax
call fcn.00422d60
mov eax, dword [ebp + 8]
add esp, 4
jmp 0x42b033
mov esi, dword [ebp - 0x24]
cmp dword [ebp - 0x88], 0xea
jne 0x42b275
test esi, esi
je 0x42afd0
push esi
call sub.netapi32.dll_NetApiBufferFree
jmp 0x42afd0
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x42b27f
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 0x42b4a0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42b4a0
lea edi, [esi + eax*8]
mov dword [ebp - 0x18], edi
jmp 0x42b2d0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x42b2c5
push eax
call sub.secur32.dll_LsaFreeReturnBuffer
add esi, 8
cmp esi, edi
je 0x42b49d
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 0x42b490
test eax, eax
je 0x42b490
cmp dword [eax + 0x24], 3
je 0x42b2bf
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 fcn.00413bd0
add esp, 8
cmp dword [ebp - 0x68], 0x80000000
je 0x42b2b8
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 0x42b393
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 0x42b358
add ebx, 0x2c
add esi, 0xffffffd4
je 0x42b393
cmp dword [ebx], edi
jne 0x42b350
push edi
push dword [ebp - 0x1c]
push dword [ebx - 4]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x42b350
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x42b2b8
push 1
push eax
push dword [ebp - 0x1c]
call main
add esp, 0xc
jmp 0x42b2b8
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00413d30
add esp, 8
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x38]
cmp eax, 0x80000000
jne 0x42b3eb
shr ecx, 1
push ecx
push dword [ebp - 0x3c]
lea eax, [ebp - 0x68]
push eax
call fcn.004d0140
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 0x42b3f1
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 0x42b43d
push edi
call fcn.00422d60
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 0x42b2c5
jmp 0x42b2bf
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x42b4aa
push esi
call sub.secur32.dll_LsaFreeReturnBuffer
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 2
jmp 0x42b4be
xor eax, eax
push dword [ebp - 0x34]
push eax
call fcn.004ce340
add esp, 8
ud2