Function at 0x40eb70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1406
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x6b5068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x240], ebx
call fcn.004018c0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x294], ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x290], ecx
lea ecx, [ebp - 0x288]
mov dword [ebp - method.CWString.virtual_0], vtable.CWString.0
call dword [eax + 0x44]
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x288]
call fcn.00402510
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x26c]
call fcn.004018c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x298]
call fcn.00428cc0
cmp ebx, 0xffffffff
jne 0x40ec34
or esi, ebx
jmp 0x40ee7b
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40ee72
nop dword [eax]
nop dword [eax + eax]
xor esi, esi
mov dword [ebp - 0x260], esi
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x40ec88
push eax
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x25c]
call dword [eax + 0xc]
mov esi, dword [ebp - 0x260]
xor edx, edx
mov dword [ebp - 0x250], 0
xor ebx, ebx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x24c], ebx
cmp word [ebp - 0x218], dx
je 0x40eccf
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00427490
mov edx, dword [ebp - 0x248]
mov ebx, dword [ebp - 0x24c]
mov esi, dword [ebp - 0x260]
test esi, esi
je 0x40ed9e
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ece0
sub ecx, edx
xor edx, edx
sar ecx, 1
mov dword [ebp - 0x248], edx
lea edi, [ecx*2 + 2]
cmp ebx, edi
jl 0x40ed67
cmp edi, 2
jne 0x40ed23
mov eax, dword [ebp - 0x250]
mov cx, word [esi]
mov word [eax], cx
mov edx, dword [ebp - 0x248]
add edx, edi
mov dword [ebp - 0x248], edx
jmp 0x40ed96
cmp edi, 4
jne 0x40ed42
mov eax, dword [ebp - 0x250]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [ebp - 0x248]
add edx, edi
mov dword [ebp - 0x248], edx
jmp 0x40ed96
cmp edi, 8
jne 0x40ed67
mov eax, dword [ebp - 0x250]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x248]
add edx, edi
mov dword [ebp - 0x248], edx
jmp 0x40ed96
test edi, edi
jle 0x40ed96
push edi
lea ecx, [ebp - 0x25c]
call fcn.004273e0
push edi
test esi, esi
je 0x40ed85
push esi
push eax
call fcn.0049b820
jmp 0x40ed8d
push 0
push eax
call fcn.0049b6c0
mov edx, dword [ebp - 0x248]
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x260], esi
mov edi, dword [ebp - 0x250]
xor eax, eax
test edx, edx
cmove edi, eax
test esi, esi
je 0x40edc5
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40edb4
sub ecx, ebx
sar ecx, 1
jmp 0x40edce
test edx, edx
je 0x40edf8
mov ecx, edx
shr ecx, 1
dec ecx
test ecx, ecx
jle 0x40edf8
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp ax, 0x19
ja 0x40ede4
lea eax, [edx + 0x20]
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x40edd2
mov edx, dword [ebp - 0x248]
mov esi, dword [ebp - 0x260]
mov eax, dword [ebp - 0x28c]
test eax, eax
jne 0x40ee15
cmp dword [ebp - 0x274], 0
mov eax, 0x4dd138
cmovne eax, dword [ebp - 0x27c]
test esi, esi
jne 0x40ee27
test edx, edx
mov esi, 0x4dd138
cmovne esi, dword [ebp - 0x250]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x40ee4d
test cx, cx
je 0x40ee49
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x40ee4d
add esi, 4
add eax, 4
test cx, cx
jne 0x40ee27
xor eax, eax
jmp 0x40ee52
sbb eax, eax
or eax, 1
test eax, eax
je 0x40eeba
mov ebx, dword [ebp - 0x240]
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40ec60
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x26c]
call fcn.00401b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x298]
call fcn.00401b70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004998bb
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x234]
jmp 0x40ee7b