Function at 0x10012ea0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e0fd
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x1004b200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movlpd qword [ebp - 0x18], xmm0
push 0x234
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1001b5ca
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x18], eax
push 0
push 2
mov byte [ebp - 4], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x264], esi
cmp esi, 0xffffffff
jne 0x10012f4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001300b
push 0x228
lea eax, [ebp - 0x254]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x258], 0x22c
lea eax, [ebp - 0x258]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10012ffe
cmp dword [ebp - 0x14], 0x7432d6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x260], eax
je 0x10013140
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], eax
push 0x234
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0
call fcn.1001b5ca
mov edx, dword [ebp - 0x260]
lea esi, [ebp - 0x258]
mov ecx, 0x8b
mov byte [ebp - 4], 1
add esp, 4
mov dword [ebp - 0x28], 0
lea edi, [eax + 8]
rep movsd dword es:[edi], dword [esi]
inc dword [ebp - 0x14]
mov ecx, dword [edx + 4]
mov esi, dword [ebp - 0x264]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [edx + 4], eax
mov dword [ecx], eax
lea eax, [ebp - 0x258]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10012f80
jmp 0x10013004
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov esi, dword [edi]
cmp esi, edi
je 0x10013035
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10011c50
mov esi, dword [esi]
cmp esi, edi
jne 0x10013020
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
je 0x100130ad
sub eax, ecx
mov edx, 4
sar eax, 2
xor ecx, ecx
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001bd9a
mov edx, dword [ebp - 0x20]
add esp, 4
mov edi, dword [ebp - 0x24]
mov ecx, edx
sub ecx, edi
mov dword [ebp - 0x25c], eax
sar ecx, 2
xor esi, esi
test ecx, ecx
je 0x1001309e
mov ecx, eax
nop dword [eax]
mov eax, dword [edi + esi*4]
mov dword [ecx + esi*4], eax
inc esi
mov edx, dword [ebp - 0x20]
mov eax, edx
mov edi, dword [ebp - 0x24]
sub eax, edi
sar eax, 2
cmp esi, eax
jb 0x10013080
mov eax, dword [ebp - 0x25c]
sub edx, edi
sar edx, 2
mov dword [eax + edx*4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 4]
mov dword [eax], 0
mov eax, dword [edi]
test eax, eax
je 0x100130d6
nop dword [eax]
mov esi, dword [eax]
push 0x234
push eax
call fcn.1001b5fa
add esp, 8
mov eax, esi
test esi, esi
jne 0x100130c0
push 0x234
push dword [ebp - 0x18]
call fcn.1001b5fa
mov edx, dword [ebp - 0x24]
add esp, 8
test edx, edx
je 0x1001311f
mov ecx, dword [ebp - 0x1c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10013115
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10013115
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1001b5fa
add esp, 8
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001b6e8
mov esp, ebp
pop ebp
ret
push str.list_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3