Function at 0x402e40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a310
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 2
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402ec9
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Could_not_take_process_snapshot._Error:
call fcn.00406430
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x406650
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor eax, eax
jmp 0x40306d
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x403032
nop
xorps xmm0, xmm0
mov dword [ebp - 0x260], 0
lea eax, [ebp - 0x230]
mov dword [ebp - 0x25c], 0
movups xmmword [ebp - 0x270], xmm0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402f07
sub eax, edx
lea ecx, [ebp - 0x270]
sar eax, 1
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004076b0
lea edx, [ebp - 0x270]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00402c70
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x25c]
cmp ecx, 7
jbe 0x402f85
mov edx, dword [ebp - 0x270]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402f7b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403020
push ecx
push edx
call fcn.00409053
add esp, 8
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x402f8f
mov ecx, dword [esi]
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push ecx
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ecx, dword [ebp - 0x14]
add esp, 8
test eax, eax
je 0x402ff1
cmp ecx, 0xf
jbe 0x402fd9
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402fcf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403020
push ecx
push edx
call fcn.00409053
add esp, 8
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402ee0
jmp 0x403060
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x258], eax
cmp ecx, 0xf
jbe 0x403060
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403026
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403026
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00409053
add esp, 8
jmp 0x403060
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Could_not_retrieve_process_information._Error:
call fcn.00406430
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x406650
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x258]
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.00408efb
mov esp, ebp
pop ebp
ret