Function at 0x409c00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a1a3
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.0040f1c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0040f100
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 0x409c60
mov byte [ebp - 0x1c], 0
jmp 0x40a02c
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 0x40a02c
lea edx, [ebp - 0x278]
push edx
lea ecx, [ebp - 0x58]
call fcn.0040ef10
mov byte [ebp - 4], 2
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x18]
call fcn.004167c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040f670
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00416350
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.00417e70
cmp eax, 5
jae 0x409ce5
lea ecx, [ebp - 0x18]
call fcn.00416060
lea ecx, [ebp - 0x34]
call fcn.00416010
jmp 0x409e3c
mov byte [ebp - 0x19], 0
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.00417e70
sub eax, 1
push eax
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx edx, word [eax]
cmp edx, 0x65
jne 0x409e24
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.00417e70
sub eax, 2
push eax
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx eax, word [eax]
cmp eax, 0x78
jne 0x409e24
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.00417e70
sub eax, 3
push eax
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx ecx, word [eax]
cmp ecx, 0x65
jne 0x409e24
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.00417e70
sub eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx edx, word [eax]
cmp edx, 0x2e
jne 0x409e24
push 0
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx eax, word [eax]
cmp eax, 0x74
jne 0x409e20
push 1
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx ecx, word [eax]
cmp ecx, 0x61
jne 0x409e20
push 2
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx edx, word [eax]
cmp edx, 0x73
jne 0x409e20
push 3
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx eax, word [eax]
cmp eax, 0x6b
jne 0x409e20
push 4
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx ecx, word [eax]
cmp ecx, 0x6d
jne 0x409e20
jmp 0x409e24
mov byte [ebp - 0x19], 1
movzx edx, byte [ebp - 0x19]
test edx, edx
jne 0x409e3c
lea ecx, [ebp - 0x18]
call fcn.00416060
lea ecx, [ebp - 0x34]
call fcn.00416010
lea eax, [ebp - 0x29c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x40a022
lea edx, [ebp - 0x278]
push edx
lea ecx, [ebp - 0x70]
call fcn.0040ef10
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x18]
call fcn.004167c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.0040f670
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00416350
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.00417e70
cmp eax, 5
jae 0x409eb7
lea ecx, [ebp - 0x18]
call fcn.00416060
lea ecx, [ebp - 0x34]
call fcn.00416010
jmp 0x40a00e
mov byte [ebp - 0x1a], 0
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.00417e70
sub eax, 1
push eax
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx edx, word [eax]
cmp edx, 0x65
jne 0x409ff6
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.00417e70
sub eax, 2
push eax
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx eax, word [eax]
cmp eax, 0x78
jne 0x409ff6
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.00417e70
sub eax, 3
push eax
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx ecx, word [eax]
cmp ecx, 0x65
jne 0x409ff6
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.00417e70
sub eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx edx, word [eax]
cmp edx, 0x2e
jne 0x409ff6
push 0
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx eax, word [eax]
cmp eax, 0x74
jne 0x409ff2
push 1
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx ecx, word [eax]
cmp ecx, 0x61
jne 0x409ff2
push 2
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx edx, word [eax]
cmp edx, 0x73
jne 0x409ff2
push 3
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx eax, word [eax]
cmp eax, 0x6b
jne 0x409ff2
push 4
lea ecx, [ebp - 0x18]
call fcn.00413e80
mov ecx, eax
call fcn.0040fde0
movzx ecx, word [eax]
cmp ecx, 0x6d
jne 0x409ff2
jmp 0x409ff6
mov byte [ebp - 0x1a], 1
movzx edx, byte [ebp - 0x1a]
test edx, edx
jne 0x40a00e
lea ecx, [ebp - 0x18]
call fcn.00416060
lea ecx, [ebp - 0x34]
call fcn.00416010
lea ecx, [ebp - 0x18]
call fcn.00417f20
cmp eax, 0x64
jbe 0x40a01d
jmp 0x40a022
jmp 0x409e3c
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00414560
movzx ecx, al
test ecx, ecx
je 0x40a074
push 0x41b6bc
mov ecx, dword [ebp + 8]
call fcn.0040ef10
mov edx, dword [ebp - 0x20]
or edx, 1
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0040f760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040f820
mov eax, dword [ebp + 8]
jmp 0x40a1cb
lea ecx, [ebp - 0x18]
call fcn.00417f20
cmp eax, 1
jne 0x40a0c0
push 0
lea ecx, [ebp - 0x18]
call fcn.0040fe60
push eax
mov ecx, dword [ebp + 8]
call fcn.0040ee10
mov eax, dword [ebp - 0x20]
or eax, 1
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0040f760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040f820
mov eax, dword [ebp + 8]
jmp 0x40a1cb
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.00417f20
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 0x40a18f
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040fe20
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 0x40a16c
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 0x40a16c
lea edx, [ebp - 0x4a4]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040fd00
mov ecx, dword [ebp + 0xc]
call fcn.00413fd0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40a16c
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 0x1b], 1
jmp 0x40a18f
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.00417f20
mov ecx, eax
sub ecx, 1
mov eax, esi
xor edx, edx
div ecx
mov dword [ebp - 0x28], edx
jmp 0x40a0e2
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040fe60
push eax
mov ecx, dword [ebp + 8]
call fcn.0040ee10
mov eax, dword [ebp - 0x20]
or eax, 1
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0040f760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040f820
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret