Function at 0x4019a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4041bd
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
push 0
push 2
mov dword [ebp - 0x254], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x25c], esi
cmp esi, 0xffffffff
jne 0x401a25
push 0x4024d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
mov edx, str._TERRORISM_PROJECT__Unable_to_create_process_snapshot._Error:
push eax
call fcn.004022a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
jmp 0x401bff
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x401bf8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x401bf8
nop dword [eax]
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x230]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401a80
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402790
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x14]
cmp edi, 7
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
seta byte [ebp - 0x255]
cmova ecx, esi
push 1
sub esp, 8
call fcn.00402640
mov ecx, eax
add esp, 0xc
cmp ecx, 0xffffffff
je 0x401b6e
cmp dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x268], 0
cmovb ecx, dword [ebp - 0x18]
cmp byte [ebp - 0x255], 0
push ecx
cmovne eax, esi
mov dword [ebp - 0x264], 0
push eax
lea ecx, [ebp - 0x278]
movups xmmword [ebp - 0x278], xmm0
call fcn.00402790
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x401b50
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401b46
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c5a
push ecx
push edx
call fcn.0040323d
add esp, 8
movups xmm0, xmmword [ebp - 0x278]
movups xmmword [ebp - 0x28], xmm0
mov esi, dword [ebp - 0x28]
movq xmm0, qword [ebp - 0x268]
movq qword [ebp - 0x18], xmm0
mov edi, dword [ebp - 0x14]
cmp edi, 7
lea eax, [ebp - 0x28]
cmova eax, esi
mov esi, dword [ebp - 0x260]
mov ecx, esi
cmp dword [esi + 0x14], 7
jbe 0x401b87
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x401c1c
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x401bdb
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401bd1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c5a
push ecx
push edx
call fcn.0040323d
add esp, 8
mov esi, dword [ebp - 0x25c]
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x401a60
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
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.004031ff
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24c]
cmp ecx, 7
jbe 0x401c6a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401c60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401c60
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040323d
add esp, 8
mov eax, esi
jmp 0x401c01