Function at 0x40dac0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44aea6
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x463074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2d8], edi
mov esi, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 0
push dword [esi + 4]
call fcn.00409d90
mov eax, dword [edi]
push str.RtlGetNtVersionNumbers
push str.ntdll
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 4], esi
mov eax, dword [edi]
mov byte [ebp - 0x2b9], 0
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
lea ecx, [ebp - 0x2e8]
push ecx
lea ecx, [ebp - 0x2f0]
push ecx
lea ecx, [ebp - 0x2ec]
push ecx
call eax
cmp dword [ebp - 0x2ec], 6
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
ja 0x40db7e
jne 0x40e1d7
cmp dword [ebp - 0x2f0], 1
jne 0x40e1d7
push str.WtsApi32.dll
mov byte [ebp - 0x2b9], 1
call ecx
mov dword [ebp - 0x2e4], eax
test eax, eax
je 0x40e1a1
push str.WTSEnumerateProcessesExA
push eax
call esi
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x2dc], 1
push ecx
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2d0], 0
push ecx
push 0xfffffffffffffffe
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x2c8], 0
push ecx
push 0
call eax
test al, al
je 0x40e1a1
xor edi, edi
mov dword [ebp - 0x2b8], 0
xor esi, esi
mov dword [ebp - 0x2b4], edi
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x2cc], esi
cmp dword [ebp - 0x2d0], esi
jbe 0x40e170
mov eax, dword [ebp - 0x2c8]
add eax, 0x24
mov dword [ebp - 0x2c0], eax
push dword [eax - 0x20]
lea eax, [ebp - 0x5b]
push eax
call fcn.004085e0
lea ecx, [ebp - 0x5b]
mov dword [ebp - 0x18], 0
add esp, 8
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, ecx
je 0x40dc59
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403200
mov byte [ebp - 4], 2
cmp esi, edi
je 0x40dc94
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x10], 0
mov edx, 0xf
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov byte [ebp - 0x28], 0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
add edi, 0x18
mov dword [ebp - 0x2b4], edi
jmp 0x40dcb3
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x2b8]
call fcn.00405fe0
mov edi, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2b0]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40dce8
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dcde
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e614
push edx
push ecx
call fcn.0042730e
add esp, 8
mov eax, dword [ebp - 0x2c0]
push dword [eax - 4]
lea eax, [ebp - 0x5b]
push eax
call fcn.004085e0
lea ecx, [ebp - 0x5b]
mov dword [ebp - 0x18], 0
add esp, 8
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, ecx
je 0x40dd22
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403200
mov byte [ebp - 4], 3
cmp esi, edi
je 0x40dd5d
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x10], 0
mov edx, 0xf
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov byte [ebp - 0x28], 0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
add edi, 0x18
mov dword [ebp - 0x2b4], edi
jmp 0x40dd7c
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x2b8]
call fcn.00405fe0
mov edi, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2b0]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40ddb1
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dda7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e614
push edx
push ecx
call fcn.0042730e
add esp, 8
mov eax, dword [ebp - 0x2c0]
push dword [eax]
lea eax, [ebp - 0x5b]
push eax
call fcn.004085e0
lea ecx, [ebp - 0x5b]
mov dword [ebp - 0x18], 0
add esp, 8
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, ecx
je 0x40ddea
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403200
mov byte [ebp - 4], 4
cmp esi, edi
je 0x40de25
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x10], 0
mov edx, 0xf
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov byte [ebp - 0x28], 0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
add edi, 0x18
mov dword [ebp - 0x2b4], edi
jmp 0x40de44
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x2b8]
call fcn.00405fe0
mov edi, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2b0]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40de79
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40de6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e614
push edx
push ecx
call fcn.0042730e
add esp, 8
mov eax, dword [ebp - 0x2c0]
push dword [eax - 0xc]
lea eax, [ebp - 0x5b]
push eax
call fcn.004085e0
lea ecx, [ebp - 0x5b]
mov dword [ebp - 0x18], 0
add esp, 8
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, ecx
je 0x40deb3
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403200
mov byte [ebp - 4], 5
cmp esi, edi
je 0x40deee
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x10], 0
mov edx, 0xf
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov byte [ebp - 0x28], 0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
add edi, 0x18
mov dword [ebp - 0x2b4], edi
jmp 0x40df0d
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x2b8]
call fcn.00405fe0
mov edi, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2b0]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40df42
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40df38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e614
push edx
push ecx
call fcn.0042730e
add esp, 8
mov eax, dword [ebp - 0x2c0]
push dword [eax - 8]
lea eax, [ebp - 0x5b]
push eax
call fcn.004085e0
lea ecx, [ebp - 0x5b]
mov dword [ebp - 0x18], 0
add esp, 8
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, ecx
je 0x40df7c
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403200
mov byte [ebp - 4], 6
cmp esi, edi
je 0x40dfb7
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x10], 0
mov edx, 0xf
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov byte [ebp - 0x28], 0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
add edi, 0x18
mov dword [ebp - 0x2b4], edi
jmp 0x40dfd0
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x2b8]
call fcn.00405fe0
mov edi, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40e005
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dffb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e614
push edx
push ecx
call fcn.0042730e
add esp, 8
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov edx, dword [eax - 0x1c]
mov ecx, edx
xor eax, eax
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e027
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004032f0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c1]
cmovae ecx, dword [ebp - 0x40]
push edx
mov byte [ebp - 4], 7
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.00405350
mov esi, dword [ebp - 0x2b0]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 8
push eax
cmp esi, edi
je 0x40e091
mov ecx, edi
call fcn.00401bf0
add edi, 0x18
mov dword [ebp - 0x2b4], edi
jmp 0x40e0a9
push edi
lea ecx, [ebp - 0x2b8]
call fcn.00405e80
mov edi, dword [ebp - 0x2b4]
mov esi, dword [ebp - 0x2b0]
mov eax, dword [ebp - 0x2c0]
mov ecx, dword [ebp - 0x2d8]
mov eax, dword [eax - 0x20]
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2e0]
push eax
call fcn.004092b0
lea ecx, [ebp - 0x2b8]
cmp eax, ecx
je 0x40e0e8
push dword [ebp - 0x2e8]
mov ecx, eax
push edi
push dword [ebp - 0x2b8]
call fcn.004054a0
lea eax, [ebp - 0x2b8]
push eax
push edi
mov edi, dword [ebp - 0x2b8]
push edi
call fcn.00405be0
add dword [ebp - 0x2c0], 0x38
add esp, 0xc
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x2b4], edi
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x40e144
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e13a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e614
push edx
push ecx
call fcn.0042730e
add esp, 8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00402090
mov eax, dword [ebp - 0x2cc]
inc eax
mov dword [ebp - 0x2cc], eax
cmp eax, dword [ebp - 0x2d0]
jae 0x40e170
mov eax, dword [ebp - 0x2c0]
jmp 0x40dc25
mov esi, dword [ebp - 0x2e4]
push str.WTSFreeMemoryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x2d0]
push dword [ebp - 0x2c8]
push 1
call eax
test al, al
jne 0x40e1a8
lea ecx, [ebp - 0x2b8]
call fcn.0040a1e0
xor al, al
jmp 0x40e5f7
push esi
mov dword [ebp - 0x2c8], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.psapi.dll
call ecx
mov dword [ebp - 0x2c8], eax
test eax, eax
je 0x40e1a1
push str.GetProcessMemoryInfo
push eax
call esi
push 0
push 2
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2ac], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x2cc], esi
cmp esi, 0xffffffff
je 0x40e1a1
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
lea eax, [ebp - 0x2ac]
mov dword [ebp - 4], 9
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40e5db
nop word [eax + eax]
cmp byte [ebp - 0x2b9], 0
je 0x40e3c4
mov eax, dword [ebp - 0x2d8]
mov edx, dword [eax]
mov edi, edx
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x40e2a3
mov ecx, dword [ebp - 0x2a4]
cmp dword [eax + 0x10], ecx
jae 0x40e290
mov eax, dword [eax + 8]
jmp 0x40e294
mov edi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x40e286
cmp edi, edx
je 0x40e2a3
cmp ecx, dword [edi + 0x10]
jae 0x40e2a5
mov edi, edx
cmp edi, edx
je 0x40e3ac
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e2d0
sub ecx, edx
lea eax, [ebp - 0x288]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004032f0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c1]
cmovae ecx, dword [ebp - 0x40]
push edx
mov byte [ebp - 4], 0xa
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.00405350
mov esi, dword [edi + 0x18]
mov byte [ebp - 4], 0xb
mov ecx, dword [esi - 4]
cmp ecx, 0x10
jb 0x40e357
mov eax, dword [esi - 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x40e34d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e614
mov eax, edx
push ecx
push eax
call fcn.0042730e
add esp, 8
mov dword [esi - 8], 0
mov dword [esi - 4], 0xf
mov byte [esi - 0x18], 0
add dword [edi + 0x18], 0xffffffe8
mov eax, dword [edi + 0x18]
cmp dword [edi + 0x1c], eax
lea eax, [ebp - 0x58]
push eax
je 0x40e387
mov ecx, dword [edi + 0x18]
call fcn.00401bf0
add dword [edi + 0x18], 0x18
jmp 0x40e392
push dword [edi + 0x18]
lea ecx, [edi + 0x14]
call fcn.00405e80
lea ecx, [ebp - 0x58]
call fcn.00402040
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.00402090
mov esi, dword [ebp - 0x2cc]
lea eax, [ebp - 0x2ac]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e5d3
push dword [ebp - 0x2a4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2dc], eax
test eax, eax
je 0x40e5c6
push 0x28
lea ecx, [ebp - 0x80]
push ecx
push eax
call dword [ebp - 0x2e4]
test al, al
je 0x40e5be
push dword [ebp - 0x2a4]
lea eax, [ebp - 0x28]
push eax
call fcn.0040fa00
add esp, 8
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0xc
call fcn.00408860
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00402040
push dword [ebp - 0x74]
lea eax, [ebp - 0x28]
push eax
call fcn.0040fa00
add esp, 8
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0xd
call fcn.00408860
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00402040
push dword [ebp - 0x78]
lea eax, [ebp - 0x28]
push eax
call fcn.0040fa00
add esp, 8
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0xe
call fcn.00408860
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00402040
push dword [ebp - 0x60]
lea eax, [ebp - 0x28]
push eax
call fcn.0040fa00
add esp, 8
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0xf
call fcn.00408860
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00402040
push dword [ebp - 0x5c]
lea eax, [ebp - 0x28]
push eax
call fcn.0040fa00
add esp, 8
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0x10
call fcn.00408860
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00402040
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401d50
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2d1]
cmovae ecx, dword [ebp - 0x40]
push edx
mov byte [ebp - 4], 0x11
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.00405350
mov esi, dword [ebp - 0x2b4]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x12
push eax
cmp dword [ebp - 0x2b0], esi
je 0x40e538
mov ecx, esi
call fcn.00401bf0
add esi, 0x18
mov dword [ebp - 0x2b4], esi
jmp 0x40e54a
push esi
lea ecx, [ebp - 0x2b8]
call fcn.00405e80
mov esi, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0x2d8]
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2e0]
push eax
call fcn.004092b0
mov edi, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b8]
cmp eax, ecx
je 0x40e587
push dword [ebp - 0x2e8]
mov ecx, eax
push esi
push edi
call fcn.004054a0
lea eax, [ebp - 0x2b8]
push eax
push esi
push edi
call fcn.00405be0
add esp, 0xc
mov dword [ebp - 0x2b4], edi
lea ecx, [ebp - 0x58]
call fcn.00402040
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.00402090
mov esi, dword [ebp - 0x2cc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2dc]
call edi
lea eax, [ebp - 0x2ac]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40e260
push esi
call edi
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x2b8]
call fcn.0040a1e0
mov al, 1
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.0042784a
mov esp, ebp
pop ebp
ret 4
call fcn.0042c719
int3