Function at 0x1001f9d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a665
mov eax, dword fs:[0]
push eax
sub esp, 0x5ec
mov eax, dword [0x1003e01c]
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 0x1001fd9e
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 0x1001fa97
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 0x1001fa9f
push 0x8007000e
call fcn.100275a0
xor ebx, ebx
mov dword [ebp - 0x5f4], ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x390], ebx
test ebx, ebx
je 0x1001fa8d
mov dword [ebp - 4], 1
cmp dword [ebx + 4], 0
jne 0x1001fac7
push dword [ebx]
call fcn.10027300
mov dword [ebx + 4], eax
mov ecx, str._System_Process_
lea eax, [ebp - 0x5c4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001faf8
test dx, dx
je 0x1001faf4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001faf8
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001fad2
xor eax, eax
jmp 0x1001fafd
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001fd3c
mov ecx, str.System
lea eax, [ebp - 0x5c4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001fb36
test dx, dx
je 0x1001fb32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001fb36
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001fb10
xor eax, eax
jmp 0x1001fb3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1001fd3c
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 0x1001fb66
push dword [ebp - 0x5e0]
mov cx, word [0x10034774]
mov word [eax], cx
mov cl, byte [0x10034776]
push 0
push 0x1fffff
mov byte [eax + 2], cl
call esi
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x1001fbd1
push dword [ebp - 0x5e0]
push 1
push 0x100430
call esi
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x1001fbd1
push dword [ebp - 0x5e0]
push eax
push 0x1fffff
call esi
mov dword [ebp - 0x5f0], eax
test eax, eax
je 0x1001fd3c
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 0x1001fd30
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.1001d230
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x38c]
test ebx, ebx
je 0x1001fc4f
cmp dword [ebx + 4], 0
jne 0x1001fc4a
push dword [ebx]
call fcn.10027300
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
jmp 0x1001fc51
xor eax, eax
mov edx, eax
mov dword [ebp - 0x5ec], eax
mov esi, edx
jmp 0x1001fc60
mov al, byte [edx]
inc edx
test al, al
jne 0x1001fc60
lea edi, [ebp - 0x180]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001fc70
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.1001a0b0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x180]
call fcn.1001f710
mov ecx, dword [ebp - 0x5ec]
lea edx, [ebp - 0x80]
call fcn.10019770
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x180]
call fcn.1001f710
test ebx, ebx
je 0x1001fd24
lea eax, [ebx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jne 0x1001fd12
mov eax, dword [ebx]
test eax, eax
je 0x1001fce2
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x1001fcfa
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 0x1001fd2a
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0x38c], 0
jmp 0x1001fd2a
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 0x1001fd96
mov ecx, dword [ebx]
test ecx, ecx
je 0x1001fd78
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x1001fd90
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 0x1001fa34
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.1002769f
mov esp, ebp
pop ebp
ret