Function at 0x1021f0e1
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021d320
push 0x10225390
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x250], bl
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x24f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
call sub.MSVCRT.dll_strcpy
push 0x1c
push ebx
lea eax, [ebp - 0x270]
push eax
call sub.MSVCRT.dll_memset
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x278], ebx
xor edi, edi
mov esi, 0x128
push esi
push ebx
lea eax, [ebp - 0x14c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x20
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x1021f2f4
mov dword [ebp - 0x14c], esi
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
pop ecx
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x274]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1021f2f8
mov esi, 0x1000000
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0xc
test eax, eax
je 0x1021f2d9
push dword [ebp - 0x144]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x254], eax
cmp eax, ebx
je 0x1021f2f4
push 4
push 0x3000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
cmp dword [ebp - 0x20], ebx
je 0x1021f2d9
push 0x1c
lea eax, [ebp - 0x270]
push eax
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x270]
add eax, ecx
push eax
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x1021f216
cmp dword [ebp - 0x264], esi
ja 0x1021f216
cmp dword [ebp - 0x25c], 4
jne 0x1021f216
cmp dword [ebp - 0x260], 0x1000
jne 0x1021f216
cmp dword [ebp - 0x270], 0x70000000
jae 0x1021f216
cmp edi, ebx
je 0x1021f2ad
push ebx
push dword [ebp - 0x264]
push edi
push dword [ebp - 0x270]
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1021f2ad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x264]
push edi
call fcn.1021f05e
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
je 0x1021f2cd
cmp byte [ebp + 0x14], bl
push dword [ebp - 0x1c]
je 0x1021f2c1
call fcn.1021ee66
jmp 0x1021f2c6
call fcn.1021efee
pop ecx
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], ebx
je 0x1021f216
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x274]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1021f2f8
jmp 0x1021f1b2
xor eax, eax
jmp 0x1021f326
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x1021f31c
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x1021f31c
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret