Function at 0x41b990
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4704f6
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x48e084]
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.00417d50
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 0x41ba4e
jne 0x41c0a7
cmp dword [ebp - 0x2f0], 1
jne 0x41c0a7
push str.WtsApi32.dll
mov byte [ebp - 0x2b9], 1
call ecx
mov dword [ebp - 0x2e4], eax
test eax, eax
je 0x41c071
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 0x41c071
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 0x41c040
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.00416750
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 0x41bb29
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a6b0
mov byte [ebp - 4], 2
cmp esi, edi
je 0x41bb64
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 0x41bb83
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x2b8]
call fcn.00414150
mov edi, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2b0]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x41bbb8
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41bbae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c4e4
push edx
push ecx
call fcn.00434483
add esp, 8
mov eax, dword [ebp - 0x2c0]
push dword [eax - 4]
lea eax, [ebp - 0x5b]
push eax
call fcn.00416750
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 0x41bbf2
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a6b0
mov byte [ebp - 4], 3
cmp esi, edi
je 0x41bc2d
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 0x41bc4c
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x2b8]
call fcn.00414150
mov edi, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2b0]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x41bc81
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41bc77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c4e4
push edx
push ecx
call fcn.00434483
add esp, 8
mov eax, dword [ebp - 0x2c0]
push dword [eax]
lea eax, [ebp - 0x5b]
push eax
call fcn.00416750
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 0x41bcba
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a6b0
mov byte [ebp - 4], 4
cmp esi, edi
je 0x41bcf5
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 0x41bd14
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x2b8]
call fcn.00414150
mov edi, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2b0]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x41bd49
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41bd3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c4e4
push edx
push ecx
call fcn.00434483
add esp, 8
mov eax, dword [ebp - 0x2c0]
push dword [eax - 0xc]
lea eax, [ebp - 0x5b]
push eax
call fcn.00416750
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 0x41bd83
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a6b0
mov byte [ebp - 4], 5
cmp esi, edi
je 0x41bdbe
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 0x41bddd
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x2b8]
call fcn.00414150
mov edi, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2b0]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x41be12
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41be08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c4e4
push edx
push ecx
call fcn.00434483
add esp, 8
mov eax, dword [ebp - 0x2c0]
push dword [eax - 8]
lea eax, [ebp - 0x5b]
push eax
call fcn.00416750
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 0x41be4c
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a6b0
mov byte [ebp - 4], 6
cmp esi, edi
je 0x41be87
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 0x41bea0
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x2b8]
call fcn.00414150
mov edi, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x41bed5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41becb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c4e4
push edx
push ecx
call fcn.00434483
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 0x41bef7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0040a7a0
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.00413530
mov esi, dword [ebp - 0x2b0]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 8
push eax
cmp esi, edi
je 0x41bf61
mov ecx, edi
call fcn.004032b0
add edi, 0x18
mov dword [ebp - 0x2b4], edi
jmp 0x41bf79
push edi
lea ecx, [ebp - 0x2b8]
call fcn.00413ff0
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.004172c0
lea ecx, [ebp - 0x2b8]
cmp eax, ecx
je 0x41bfb8
push dword [ebp - 0x2e8]
mov ecx, eax
push edi
push dword [ebp - 0x2b8]
call fcn.00413680
lea eax, [ebp - 0x2b8]
push eax
push edi
mov edi, dword [ebp - 0x2b8]
push edi
call fcn.00401b90
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 0x41c014
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41c00a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c4e4
push edx
push ecx
call fcn.00434483
add esp, 8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00404ba0
mov eax, dword [ebp - 0x2cc]
inc eax
mov dword [ebp - 0x2cc], eax
cmp eax, dword [ebp - 0x2d0]
jae 0x41c040
mov eax, dword [ebp - 0x2c0]
jmp 0x41baf5
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 0x41c078
lea ecx, [ebp - 0x2b8]
call fcn.00404e40
xor al, al
jmp 0x41c4c7
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.00404e40
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 0x41c071
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 0x41c071
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 0x41c4ab
nop word [eax + eax]
cmp byte [ebp - 0x2b9], 0
je 0x41c294
mov eax, dword [ebp - 0x2d8]
mov edx, dword [eax]
mov edi, edx
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x41c173
mov ecx, dword [ebp - 0x2a4]
cmp dword [eax + 0x10], ecx
jae 0x41c160
mov eax, dword [eax + 8]
jmp 0x41c164
mov edi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x41c156
cmp edi, edx
je 0x41c173
cmp ecx, dword [edi + 0x10]
jae 0x41c175
mov edi, edx
cmp edi, edx
je 0x41c27c
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 0x41c1a0
sub ecx, edx
lea eax, [ebp - 0x288]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040a7a0
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.00413530
mov esi, dword [edi + 0x18]
mov byte [ebp - 4], 0xb
mov ecx, dword [esi - 4]
cmp ecx, 0x10
jb 0x41c227
mov eax, dword [esi - 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x41c21d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c4e4
mov eax, edx
push ecx
push eax
call fcn.00434483
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 0x41c257
mov ecx, dword [edi + 0x18]
call fcn.004032b0
add dword [edi + 0x18], 0x18
jmp 0x41c262
push dword [edi + 0x18]
lea ecx, [edi + 0x14]
call fcn.00413ff0
lea ecx, [ebp - 0x58]
call fcn.00404b50
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.00404ba0
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 0x41c4a3
push dword [ebp - 0x2a4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2dc], eax
test eax, eax
je 0x41c496
push 0x28
lea ecx, [ebp - 0x80]
push ecx
push eax
call dword [ebp - 0x2e4]
test al, al
je 0x41c48e
push dword [ebp - 0x2a4]
lea eax, [ebp - 0x28]
push eax
call fcn.0041d8d0
add esp, 8
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0xc
call fcn.004169d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00404b50
push dword [ebp - 0x74]
lea eax, [ebp - 0x28]
push eax
call fcn.0041d8d0
add esp, 8
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0xd
call fcn.004169d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00404b50
push dword [ebp - 0x78]
lea eax, [ebp - 0x28]
push eax
call fcn.0041d8d0
add esp, 8
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0xe
call fcn.004169d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00404b50
push dword [ebp - 0x60]
lea eax, [ebp - 0x28]
push eax
call fcn.0041d8d0
add esp, 8
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0xf
call fcn.004169d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00404b50
push dword [ebp - 0x5c]
lea eax, [ebp - 0x28]
push eax
call fcn.0041d8d0
add esp, 8
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0x10
call fcn.004169d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00404b50
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403670
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.00413530
mov esi, dword [ebp - 0x2b4]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x12
push eax
cmp dword [ebp - 0x2b0], esi
je 0x41c408
mov ecx, esi
call fcn.004032b0
add esi, 0x18
mov dword [ebp - 0x2b4], esi
jmp 0x41c41a
push esi
lea ecx, [ebp - 0x2b8]
call fcn.00413ff0
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.004172c0
mov edi, dword [ebp - 0x2b8]
lea ecx, [ebp - 0x2b8]
cmp eax, ecx
je 0x41c457
push dword [ebp - 0x2e8]
mov ecx, eax
push esi
push edi
call fcn.00413680
lea eax, [ebp - 0x2b8]
push eax
push esi
push edi
call fcn.00401b90
add esp, 0xc
mov dword [ebp - 0x2b4], edi
lea ecx, [ebp - 0x58]
call fcn.00404b50
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.00404ba0
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 0x41c130
push esi
call edi
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x2b8]
call fcn.00404e40
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.004349bf
mov esp, ebp
pop ebp
ret 4
call fcn.0044f769
int3