Function at 0x4148d0
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4173ed
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x260
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], ax
push eax
push eax
push 0xffffffffffffffff
push str.cs2.exe
push eax
mov dword [ebp - 4], eax
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xfde9
call edi
mov esi, eax
test esi, esi
jle 0x4149ff
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x26c], ecx
cmp esi, ecx
ja 0x414973
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmovae ecx, dword [ebp - 0x2c]
xor eax, eax
mov word [ecx + esi*2], ax
jmp 0x4149e2
mov eax, dword [ebp - 0x18]
mov edx, esi
sub edx, ecx
sub eax, ecx
cmp edx, eax
ja 0x4149d1
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x264], eax
lea eax, [eax + ecx*2]
mov dword [ebp - 0x268], eax
test edx, edx
je 0x4149c0
mov edi, dword [ebp - 0x268]
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x26c]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ecx + edx]
mov ecx, dword [ebp - 0x264]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x4149e2
push ecx
push edx
push dword [ebp - 0x264]
lea ecx, [ebp - 0x2c]
push edx
call fcn.00414eb0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push esi
cmovae eax, dword [ebp - 0x2c]
push eax
push 0xffffffffffffffff
push str.cs2.exe
push 0
push 0xfde9
call edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov esi, eax
lea eax, [ebp - 0x25c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x260], 0x22c
lea eax, [ebp - 0x260]
xor edi, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x414aa0
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop word [eax + eax]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x2c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x414a87
test dx, dx
je 0x414a83
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x414a87
add ecx, 4
add eax, 4
test dx, dx
jne 0x414a61
xor eax, eax
jmp 0x414a8c
sbb eax, eax
or eax, 1
test eax, eax
je 0x414ad9
lea eax, [ebp - 0x260]
push eax
push esi
call edi
test eax, eax
jne 0x414a50
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x414aeb
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414ae1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x414ae1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, dword [ebp - 0x258]
jmp 0x414aa0
push ecx
push edx
call fcn.00415366
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004150d2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4