Function at 0x415740
Capabilities:
Access peb ldr_data
Enumerate processes
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
sub esp, 8
cmp eax, 0xffffffff
je 0x41595e
mov edx, 0x10
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov esi, dword fs:[0x18]
mov dword [esp + 8], 0x1300
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x28], eax
test eax, eax
je 0x41598c
imul edx, dword [ebp - 0x24], 0x130
mov dword [eax + edx], 0x128
imul eax, dword [ebp - 0x24], 0x130
add eax, dword [ebp - 0x28]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.kernel32.dll_Process32First
sub esp, 8
test eax, eax
je 0x415887
lea esi, [esi]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
imul ecx, eax, 0x130
add ecx, edx
mov edi, dword [ecx + 8]
cmp dword [esi + 0x20], edi
je 0x41580e
mov dword [ecx + 0x128], 0xffffffff
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
cmp eax, ecx
jb 0x415859
lea eax, [ecx + ecx]
imul ecx, ecx, 0x260
mov dword [ebp - 0x20], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
mov edx, eax
mov dword [ebp - 0x28], eax
test eax, eax
je 0x41595e
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x130
mov dword [edx + eax], 0x128
imul eax, dword [ebp - 0x24], 0x130
add eax, dword [ebp - 0x28]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.kernel32.dll_Process32Next
sub esp, 8
test eax, eax
jne 0x4157e8
mov dword [esp], ebx
mov ebx, 0xffffffff
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [ebp - 0x24]
sub esp, 4
test edi, edi
je 0x415907
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mov ebx, eax
lea esi, [esi]
mov eax, dword [ebp - 0x3c]
lea edx, [eax + 8]
xor eax, eax
lea esi, [esi]
nop
cmp ecx, eax
je 0x4158cf
mov esi, dword [ebx + 0x18]
cmp dword [edx], esi
je 0x415970
add eax, 1
add edx, 0x130
cmp edi, eax
jne 0x4158c0
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
mov dword [ebx + 0x12c], eax
mov dword [edx], ecx
mov edi, dword [ebp - 0x24]
add ecx, 1
cmp ecx, edi
jae 0x415904
mov eax, dword [ebp - 0x28]
imul ebx, ecx, 0x130
mov dword [ebp - 0x3c], eax
add ebx, eax
jmp 0x4158b0
mov ebx, dword [ebp - 0x2c]
mov dword [esp + 0xc], str.executable
mov dword [esp + 8], str.threads
mov dword [esp + 4], 0x436b6c
mov dword [esp], str.___8.8s___8.8s__s__all_id:s_are_in_hex__n
call fcn.004242a0
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, ebx
call fcn.00414750
mov edx, dword [ebp - 0x28]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x3c]
imul eax, eax, 0x130
add eax, esi
lea edx, [eax + 0x128]
mov eax, dword [eax + 0x128]
jmp 0x4158e2
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x41595e