Function at 0x401320
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406360
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x40b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x25c], 0
push str.winlogon.exe
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x258], 0
movups xmmword [ebp - 0x26c], xmm0
call fcn.00401a80
push 0
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x254], edi
cmp edi, 0xffffffff
je 0x401598
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40158c
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40158c
nop dword [eax + eax]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401400
mov eax, dword [ebp - 0x25c]
lea esi, [ebp - 0x26c]
sub ecx, edx
sar ecx, 1
cmp dword [ebp - 0x258], 7
cmova esi, dword [ebp - 0x26c]
cmp eax, ecx
jne 0x4014ae
mov edx, eax
lea eax, [ebp - 0x218]
test edx, edx
je 0x401452
mov ecx, eax
sub esi, ecx
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x4014ae
add eax, 2
sub edx, 1
jne 0x401441
mov edi, dword [ebp - 0x234]
cmp edi, 0xffffffff
je 0x401586
push dword [ebp - 0x254]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x258]
cmp eax, 7
jbe 0x4014d3
mov edx, dword [ebp - 0x26c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4014c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4014c9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4013f0
jmp 0x40158c
push ecx
push edx
call fcn.00405714
add esp, 8
push edi
push 0
push 0x440
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40159d
lea eax, [ebp - 0x240]
push eax
push 0x2000000
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4015a2
lea eax, [ebp - 0x244]
mov dword [ebp - 0x250], 0xc
push eax
push 2
push 2
lea eax, [ebp - 0x250]
mov dword [ebp - 0x24c], 0
push eax
push 0x2000000
push dword [ebp - 0x240]
mov dword [ebp - 0x248], 0
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4015aa
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push dword [ebp - 0x244]
test eax, eax
je 0x4015b7
call esi
push dword [ebp - 0x240]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004054cb
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x254]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00401fd0
call fcn.00401fd0
call fcn.00401fd0
push edi
call esi
call fcn.00401fd0
push dword [ebp - 0x240]
call esi
call fcn.00401fd0
call esi
push dword [ebp - 0x240]
call esi
call fcn.00401fd0
int3