Function at 0x40cfe0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425818
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x2b8], ebx
cmp ebx, 0xffffffff
je 0x40d3e1
mov edi, dword [esi]
add edi, 0x39
cmp edi, dword [esi + 4]
jb 0x40d03e
push edi
mov ecx, esi
call fcn.004049c2
mov eax, dword [esi + 8]
add eax, dword [esi]
push 0x39
push str._r_n_r_n____________________________________________________r_n
push eax
call fcn.00414710
mov dword [esi], edi
add esp, 0xc
add edi, 0xf
cmp edi, dword [esi + 4]
jb 0x40d065
push edi
mov ecx, esi
call fcn.004049c2
mov ecx, dword [esi + 8]
add ecx, dword [esi]
movq xmm0, qword [str.Processes:__r_n_r_n]
push 0x228
push 0
movq qword [ecx], xmm0
mov eax, dword [0x42fdf8]
mov dword [ecx + 8], eax
mov ax, word [0x42fdfc]
mov word [ecx + 0xc], ax
mov al, byte [0x42fdfe]
mov byte [ecx + 0xe], al
lea eax, [ebp - 0x2a8]
push eax
mov dword [esi], edi
call fcn.00414170
add esp, 0xc
mov dword [ebp - 0x2ac], 0x22c
lea eax, [ebp - 0x2ac]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
sete al
test al, al
je 0x40d3b8
nop
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x288]
lea ecx, [ebp - 0x7c]
call fcn.00404683
mov edi, dword [esi]
add esp, 8
add edi, 5
mov dword [ebp - 0x2b0], eax
cmp edi, dword [esi + 4]
jb 0x40d0fc
push edi
mov ecx, esi
call fcn.004049c2
mov ecx, dword [esi + 8]
add ecx, dword [esi]
mov eax, dword [str._____]
push 0xa
push 0x20
mov dword [ecx], eax
mov al, byte [0x42fe08]
mov byte [ecx + 4], al
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2a4]
mov dword [esi], edi
call fcn.004193ee
add esp, 0x10
cmp byte [ebp - 0x34], 0
je 0x40d165
lea edi, [ebp - 0x34]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40d134
sub edi, ecx
je 0x40d165
mov ebx, dword [esi]
add ebx, edi
cmp ebx, dword [esi + 4]
jb 0x40d150
push ebx
mov ecx, esi
call fcn.004049c2
push edi
lea eax, [ebp - 0x34]
push eax
mov eax, dword [esi + 8]
add eax, dword [esi]
push eax
call fcn.00414710
add esp, 0xc
mov dword [esi], ebx
mov edi, dword [esi]
add edi, 2
cmp edi, dword [esi + 4]
jb 0x40d177
push edi
mov ecx, esi
call fcn.004049c2
mov ecx, dword [esi + 8]
add ecx, dword [esi]
mov ax, word [0x42fe00]
mov word [ecx], ax
mov eax, dword [ebp - 0x2b0]
mov dword [esi], edi
cmp dword [eax + 0x14], 0x10
mov ebx, dword [eax + 0x10]
jb 0x40d19e
mov eax, dword [eax]
mov dword [ebp - 0x2b0], eax
test ebx, ebx
je 0x40d1c9
add edi, ebx
cmp edi, dword [esi + 4]
jb 0x40d1b7
push edi
mov ecx, esi
call fcn.004049c2
mov eax, dword [ebp - 0x2b0]
push ebx
push eax
mov eax, dword [esi + 8]
add eax, dword [esi]
push eax
call fcn.00414710
add esp, 0xc
mov dword [esi], edi
mov eax, dword [ebp - 0x68]
cmp eax, 0x10
jb 0x40d20f
mov ecx, dword [ebp - 0x7c]
inc eax
cmp eax, 0x1000
jb 0x40d206
test cl, 0x1f
jne 0x40d3ff
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40d3ff
sub ecx, eax
cmp ecx, 4
jb 0x40d3ff
cmp ecx, 0x23
ja 0x40d3ff
mov ecx, eax
push ecx
call fcn.00411ab6
add esp, 4
mov eax, dword [ebp - 0x2a4]
test eax, eax
je 0x40d37a
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40d37a
mov edx, ebx
lea ecx, [ebp - 0x64]
call fcn.00403a15
push ecx
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.004040f6
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [ebp - 0x50]
cmp eax, 8
jb 0x40d270
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.00401b20
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x3c], eax
je 0x40d31b
mov edi, dword [esi]
add edi, 2
cmp edi, dword [esi + 4]
jb 0x40d29f
push edi
mov ecx, esi
call fcn.004049c2
mov ecx, dword [esi + 8]
add ecx, dword [esi]
mov ax, word [0x42fe10]
mov word [ecx], ax
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0x10
mov dword [esi], edi
cmovae eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2b0], eax
test eax, eax
je 0x40d2f9
add edi, eax
cmp edi, dword [esi + 4]
jb 0x40d2e2
push edi
mov ecx, esi
call fcn.004049c2
mov eax, dword [ebp - 0x2b0]
push eax
mov eax, dword [esi + 8]
push dword [ebp - 0x2b4]
add eax, dword [esi]
push eax
call fcn.00414710
add esp, 0xc
mov dword [esi], edi
mov edi, dword [esi]
add edi, 2
cmp edi, dword [esi + 4]
jb 0x40d30b
push edi
mov ecx, esi
call fcn.004049c2
mov ecx, dword [esi + 8]
add ecx, dword [esi]
mov ax, word [0x42fe0c]
mov word [ecx], ax
mov dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x40d368
mov ecx, dword [ebp - 0x4c]
inc eax
cmp eax, 0x1000
jb 0x40d35f
test cl, 0x1f
jne 0x40d3ff
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40d3ff
sub ecx, eax
cmp ecx, 4
jb 0x40d3ff
cmp ecx, 0x23
ja 0x40d3ff
mov ecx, eax
push ecx
call fcn.00411ab6
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
mov edi, dword [esi]
add edi, 2
cmp edi, dword [esi + 4]
jb 0x40d38c
push edi
mov ecx, esi
call fcn.004049c2
mov ecx, dword [esi + 8]
add ecx, dword [esi]
mov ax, word [0x42f79c]
mov ebx, dword [ebp - 0x2b8]
mov word [ecx], ax
lea eax, [ebp - 0x2ac]
push eax
push ebx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40d0d0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi]
add edi, 2
cmp edi, dword [esi + 4]
jb 0x40d3d1
push edi
mov ecx, esi
call fcn.004049c2
mov ecx, dword [esi + 8]
add ecx, dword [esi]
mov ax, word [0x42f79c]
mov word [ecx], ax
mov dword [esi], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00411abb
mov esp, ebp
pop ebp
ret 4
call fcn.0041592c
int3