Function at 0x10001170
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100595b2
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x1006b400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x164], edi
xorps xmm0, xmm0
mov dword [ebp - 0x144], 1
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0
mov dword [ebp - 4], 0
push 2
mov dword [ebp - 0x144], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x140], esi
cmp esi, 0xffffffff
jne 0x1000121e
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.CreateToolhelp32Snapshot__of_processes__failed.
push 0x10001d50
call fcn.10001b30
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_____]
jmp 0x1000125e
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x10001280
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Process32First_failed.
push 0x10001d50
call fcn.10001b30
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 esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
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.10058150
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x134]
xor esi, esi
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x148], eax
test eax, eax
je 0x10001394
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x100012bf
cmp dword [ebp - 0x14], esi
mov eax, 1
cmovne esi, eax
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10001394
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x10001394
cmp dword [ebp - 0x14], 0
setne al
test al, al
je 0x10001394
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x160]
call fcn.10001a20
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x1000134b
movups xmm0, xmmword [ebp - 0x160]
mov ecx, 0xf
mov byte [ebp - 0x160], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x150]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x10001360
lea ecx, [ebp - 0x160]
push ecx
push eax
mov ecx, edi
call fcn.10002010
mov ecx, dword [ebp - 0x14c]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x10001394
mov edx, dword [ebp - 0x160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000138a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100013b5
push ecx
push edx
call fcn.1005818e
add esp, 8
mov esi, dword [ebp - 0x140]
lea eax, [ebp - 0x13c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10001280
jmp 0x10001257
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3