Function at 0x10005f20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x3a8
mov eax, dword [0x10244540]
xor eax, esp
mov dword [esp + 0x3a4], eax
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], edx
push 0
mov dword [esp + 0x14], esi
push 2
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, 0xffffffff
je 0x1000610d
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x10005f8b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000610d
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
lea eax, [esp + 0x6c]
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x34], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005fb0
sub eax, edx
lea ecx, [esp + 0x20]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.100191c0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
call fcn.100047d0
mov ecx, dword [esp + 0x34]
mov esi, eax
cmp ecx, 0xf
jbe 0x1000600d
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006003
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006187
push ecx
push edx
call fcn.1018eb3e
add esp, 8
test esi, esi
jne 0x100060ee
push dword [esp + 0x50]
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x100060e8
push 0x104
lea eax, [esp + 0x2a4]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x100060dd
lea eax, [esp + 0x174]
mov dword [esp + 0x174], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100060dd
cmp dword [esp + 0x174], 0x103
jne 0x100060dd
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push esi
push 2
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x100060dd
lea eax, [esp + 0x178]
mov dword [esp + 0x178], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100060d4
nop dword [eax]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x180], eax
je 0x10006145
lea eax, [esp + 0x178]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x100060b0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x100060ee
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10005f91
push esi
call edi
mov esi, dword [esp + 0x14]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
push 0x101ebc35
mov dword [esi + 0x14], 0
mov ecx, esi
call fcn.100191c0
mov ecx, dword [esp + 0x3ac]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1018e7c9
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x19c]
xorps xmm0, xmm0
lea edx, [ecx + 1]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006173
sub ecx, edx
lea eax, [esp + 0x19c]
push ecx
push eax
jmp 0x10006128
call fcn.1019b181
int3