Function at 0x40a590
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419463
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x498
push esi
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x18]
call fcn.0040f6c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0040f600
mov byte [ebp - 4], 1
mov byte [ebp - 0x1c], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x40a5f0
mov byte [ebp - 0x1c], 0
jmp 0x40a9ee
mov dword [ebp - 0x29c], 0x22c
lea eax, [ebp - 0x29c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40a9ee
lea edx, [ebp - 0x278]
push edx
lea ecx, [ebp - 0x58]
call fcn.0040f450
mov byte [ebp - 4], 2
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x18]
call fcn.00416110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040fa50
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00415ca0
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.00417540
cmp eax, 5
jae 0x40a675
lea ecx, [ebp - 0x18]
call fcn.004159b0
lea ecx, [ebp - 0x34]
call fcn.00415960
jmp 0x40a7e5
mov byte [ebp - 0x19], 0
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.00417540
sub eax, 1
push eax
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx edx, word [eax]
cmp edx, 0x65
jne 0x40a7cd
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.00417540
sub eax, 2
push eax
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx eax, word [eax]
cmp eax, 0x78
jne 0x40a7cd
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.00417540
sub eax, 3
push eax
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx ecx, word [eax]
cmp ecx, 0x65
jne 0x40a7cd
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.00417540
sub eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx edx, word [eax]
cmp edx, 0x2e
jne 0x40a7cd
push 0
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx eax, word [eax]
cmp eax, 0x74
je 0x40a763
push 0
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx ecx, word [eax]
cmp ecx, 0x54
jne 0x40a7c9
push 1
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx edx, word [eax]
cmp edx, 0x61
jne 0x40a7c9
push 2
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx eax, word [eax]
cmp eax, 0x73
jne 0x40a7c9
push 3
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx ecx, word [eax]
cmp ecx, 0x6b
jne 0x40a7c9
push 4
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx edx, word [eax]
cmp edx, 0x6d
jne 0x40a7c9
jmp 0x40a7cd
mov byte [ebp - 0x19], 1
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x40a7e5
lea ecx, [ebp - 0x18]
call fcn.004159b0
lea ecx, [ebp - 0x34]
call fcn.00415960
lea ecx, [ebp - 0x29c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x40a9e4
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040f450
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00416110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.0040fa50
lea edx, [ebp - 0x294]
push edx
lea ecx, [ebp - 0x34]
call fcn.00415ca0
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.00417540
cmp eax, 5
jae 0x40a860
lea ecx, [ebp - 0x18]
call fcn.004159b0
lea ecx, [ebp - 0x34]
call fcn.00415960
jmp 0x40a9d0
mov byte [ebp - 0x1a], 0
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.00417540
sub eax, 1
push eax
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx eax, word [eax]
cmp eax, 0x65
jne 0x40a9b8
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.00417540
sub eax, 2
push eax
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx ecx, word [eax]
cmp ecx, 0x78
jne 0x40a9b8
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.00417540
sub eax, 3
push eax
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx edx, word [eax]
cmp edx, 0x65
jne 0x40a9b8
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.00417540
sub eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx eax, word [eax]
cmp eax, 0x2e
jne 0x40a9b8
push 0
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx ecx, word [eax]
cmp ecx, 0x74
je 0x40a94e
push 0
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx edx, word [eax]
cmp edx, 0x54
jne 0x40a9b4
push 1
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx eax, word [eax]
cmp eax, 0x61
jne 0x40a9b4
push 2
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx ecx, word [eax]
cmp ecx, 0x73
jne 0x40a9b4
push 3
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx edx, word [eax]
cmp edx, 0x6b
jne 0x40a9b4
push 4
lea ecx, [ebp - 0x18]
call fcn.00413de0
mov ecx, eax
call fcn.004101c0
movzx eax, word [eax]
cmp eax, 0x6d
jne 0x40a9b4
jmp 0x40a9b8
mov byte [ebp - 0x1a], 1
movzx ecx, byte [ebp - 0x1a]
test ecx, ecx
jne 0x40a9d0
lea ecx, [ebp - 0x18]
call fcn.004159b0
lea ecx, [ebp - 0x34]
call fcn.00415960
lea ecx, [ebp - 0x18]
call fcn.004175f0
cmp eax, 0x64
jbe 0x40a9df
jmp 0x40a9e4
jmp 0x40a7e5
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.004143d0
movzx eax, al
test eax, eax
je 0x40aa36
push 0x41a3f8
mov ecx, dword [ebp + 8]
call fcn.0040f450
mov ecx, dword [ebp - 0x20]
or ecx, 1
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0040fb40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040fc00
mov eax, dword [ebp + 8]
jmp 0x40ab8d
lea ecx, [ebp - 0x18]
call fcn.004175f0
cmp eax, 1
jne 0x40aa82
push 0
lea ecx, [ebp - 0x18]
call fcn.00410240
push eax
mov ecx, dword [ebp + 8]
call fcn.0040f350
mov edx, dword [ebp - 0x20]
or edx, 1
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0040fb40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040fc00
mov eax, dword [ebp + 8]
jmp 0x40ab8d
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.004175f0
mov ecx, eax
sub ecx, 1
mov eax, esi
xor edx, edx
div ecx
mov dword [ebp - 0x28], edx
mov byte [ebp - 0x1b], 0
movzx edx, byte [ebp - 0x1b]
test edx, edx
jne 0x40ab51
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x34]
call fcn.00410200
mov ecx, dword [eax]
push ecx
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x40ab2e
mov dword [ebp - 0x40], 0x104
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x4a4]
push eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x40ab2e
lea edx, [ebp - 0x4a4]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004100e0
mov ecx, dword [ebp + 0xc]
call fcn.00413f30
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40ab2e
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 0x1b], 1
jmp 0x40ab51
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.004175f0
mov ecx, eax
sub ecx, 1
mov eax, esi
xor edx, edx
div ecx
mov dword [ebp - 0x28], edx
jmp 0x40aaa4
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x18]
call fcn.00410240
push eax
mov ecx, dword [ebp + 8]
call fcn.0040f350
mov eax, dword [ebp - 0x20]
or eax, 1
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0040fb40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040fc00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret