Function at 0x1001f830
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029f35
mov eax, dword fs:[0]
push eax
sub esp, 0x5ec
mov eax, dword [0x1003d01c]
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
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x5e8]
mov dword [ebp - 0x5f8], eax
push ecx
push eax
mov dword [ebp - 0x5e8], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1001fbfe
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0xc
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov ebx, eax
mov dword [ebp - 0x5f4], eax
add esp, 4
mov dword [ebp - 0x5ec], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1001f8f7
xorps xmm0, xmm0
lea eax, [ebp - 0x5c4]
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
push eax
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
test eax, eax
jne 0x1001f8ff
push 0x8007000e
call fcn.10027020
xor ebx, ebx
mov dword [ebp - 0x5f4], ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x390], ebx
test ebx, ebx
je 0x1001f8ed
mov dword [ebp - 4], 1
cmp dword [ebx + 4], 0
jne 0x1001f927
push dword [ebx]
call fcn.10026d80
mov dword [ebx + 4], eax
mov ecx, str._System_Process_
lea eax, [ebp - 0x5c4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001f958
test dx, dx
je 0x1001f954
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001f958
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001f932
xor eax, eax
jmp 0x1001f95d
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001fb9c
mov ecx, str.System
lea eax, [ebp - 0x5c4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001f996
test dx, dx
je 0x1001f992
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001f996
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001f970
xor eax, eax
jmp 0x1001f99b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001fb9c
push 0x100
lea eax, [ebp - 0x5c4]
push eax
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.MSVCR120.dll_wcstombs]
lea eax, [ebp - 0x180]
add esp, 0xc
dec eax
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x1001f9c6
push dword [ebp - 0x5e0]
mov cx, word [0x10033780]
mov word [eax], cx
mov cl, byte [0x10033782]
push 0
push 0x1fffff
mov byte [eax + 2], cl
call esi
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x1001fa31
push dword [ebp - 0x5e0]
push 1
push 0x100430
call esi
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x1001fa31
push dword [ebp - 0x5e0]
push eax
push 0x1fffff
call esi
mov dword [ebp - 0x5f0], eax
test eax, eax
je 0x1001fb9c
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x394], 0x104
push ecx
lea ecx, [ebp - 0x388]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x1001fb90
lea eax, [ebp - 0x3b8]
push eax
push 0
lea eax, [ebp - 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
lea eax, [ebp - 0x388]
mov dword [ebp - 0x38c], 0
push eax
lea ecx, [ebp - 0x38c]
call fcn.1001d120
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x38c]
test ebx, ebx
je 0x1001faaf
cmp dword [ebx + 4], 0
jne 0x1001faaa
push dword [ebx]
call fcn.10026d80
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
jmp 0x1001fab1
xor eax, eax
mov edx, eax
mov dword [ebp - 0x5ec], eax
mov esi, edx
jmp 0x1001fac0
mov al, byte [edx]
inc edx
test al, al
jne 0x1001fac0
lea edi, [ebp - 0x180]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001fad0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x5ec]
call fcn.10019fc0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x180]
call fcn.1001f5a0
mov ecx, dword [ebp - 0x5ec]
lea edx, [ebp - 0x80]
call fcn.10019680
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x180]
call fcn.1001f5a0
test ebx, ebx
je 0x1001fb84
lea eax, [ebx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jne 0x1001fb72
mov eax, dword [ebx]
test eax, eax
je 0x1001fb42
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x1001fb5a
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebx + 4], 0
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
push ebx
call edi
add esp, 4
mov dword [ebp - 0x38c], 0
jmp 0x1001fb8a
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0x38c], 0
jmp 0x1001fb8a
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ebx, dword [ebp - 0x5f4]
push dword [ebp - 0x5f0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x5e8]
push eax
push dword [ebp - 0x5f8]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
jne 0x1001fbf6
mov ecx, dword [ebx]
test ecx, ecx
je 0x1001fbd8
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x1001fbf0
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebx + 4], 0
push ebx
call edi
add esp, 4
test esi, esi
jne 0x1001f894
push dword [ebp - 0x5f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.1002711f
mov esp, ebp
pop ebp
ret