Function at 0x411610
Capabilities:
Check for peb beingdebugged flag
Enumerate processes
Enumerate threads
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2cc
mov dword [esp + 4], 0
mov dword [esp], 4
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
cmp eax, 0xffffffff
je 0x41188a
mov dword [ebp - 0x260], 0x1c
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 0x260]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._Thread32First_8
sub esp, 8
mov esi, eax
mov dword [esp + 0x10], str.name
mov dword [esp + 0xc], str.prio
mov dword [esp + 8], 0x43e1c8
mov dword [esp + 4], str.process
mov dword [esp], str.__8.8s___8.8s__s_____s__all_IDs_are_in_hex__n
call dbg.dbg_printf
mov dword [ebp - 0x2a0], 0
mov eax, dword fs:[0x18]
mov dword [ebp - 0x29c], eax
test esi, esi
je 0x41187e
lea esi, [esi]
nop
mov ecx, dword [ebp - 0x29c]
mov eax, dword [ebp - 0x254]
cmp dword [ecx + 0x20], eax
je 0x411861
cmp eax, ebx
je 0x4117fa
mov dword [esp], eax
call sym._dbg_get_process
mov dword [ebp - 0x2a0], eax
test eax, eax
je 0x4118d0
mov edx, dword [eax + 0x18]
mov eax, 0x43e1ad
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x254]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], str._08lx_s__ls_n
call dbg.dbg_printf
mov eax, dword [ebp - 0x254]
mov dword [esp + 4], 0
mov dword [esp], 0x410
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_OpenProcess]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4117f4
lea eax, [ebp - 0x278]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x18
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
sub esp, 0x14
test eax, eax
jne 0x4117c0
lea eax, [ebp - 0x294]
mov esi, dword [sym.imp.kernel32.dll_IsWow64Process]
mov dword [esp], 0xffffffff
mov dword [esp + 4], eax
call esi
lea eax, [ebp - 0x290]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
je 0x4117c0
mov edx, dword [ebp - 0x290]
mov eax, dword [ebp - 0x294]
cmp edx, eax
je 0x411c60
test eax, eax
jne 0x4117c0
test edx, edx
jne 0x411978
lea esi, [esi]
xor edx, edx
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 8], edx
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 esi
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov ebx, dword [ebp - 0x254]
mov edx, dword [ebp - 0x258]
mov ecx, 0x43e1b4
cmp edx, dword [0x4ad5f0]
mov eax, 0x43e1b9
cmove eax, ecx
mov dword [esp], str._t_08lx__4ld_s
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x250]
mov dword [esp + 8], eax
call dbg.dbg_printf
mov eax, dword [ebp - 0x258]
mov dword [esp], eax
call dbg.fetch_thread_description
mov esi, eax
test eax, eax
je 0x411898
mov dword [esp + 4], eax
mov dword [esp], str._ls_n
call dbg.dbg_printf
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
lea eax, [ebp - 0x260]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._Thread32Next_8
sub esp, 8
test eax, eax
jne 0x4116b0
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x258]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp], eax
call dbg.dbg_get_thread
mov dword [esp], 0x43de34
lea edx, [eax + 0x58]
test eax, eax
mov eax, 0x43dc80
cmovne eax, edx
mov dword [esp + 4], eax
call dbg.dbg_printf
jmp 0x411861
mov dword [esp + 4], 0
mov esi, dword [ebp - 0x254]
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov ebx, eax
cmp eax, 0xffffffff
je 0x411923
lea eax, [ebp - 0x244]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [ebp - 0x244], 0x22c
call sym._Process32FirstW_8
sub esp, 8
test eax, eax
jne 0x411951
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov edx, 0x43e1b2
mov eax, 0x43dc80
jmp 0x4116eb
lea eax, [ebp - 0x244]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._Process32NextW_8
sub esp, 8
test eax, eax
je 0x411917
cmp esi, dword [ebp - 0x23c]
jne 0x411938
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
lea edx, [ebp - 0x220]
mov eax, 0x43dc80
sub esp, 4
jmp 0x4116eb
lea eax, [ebp - 0x280]
mov dword [esp + 0xc], 4
mov esi, dword [sym.imp.kernel32.dll_ReadProcessMemory]
mov dword [ebp - 0x2a4], eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x28c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x274]
mov dword [esp], ebx
add eax, 0x10
mov dword [esp + 4], eax
call esi
sub esp, 0x14
test eax, eax
je 0x4117c0
cmp dword [ebp - 0x280], 4
jne 0x4117c0
lea eax, [ebp - 0x288]
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2a4]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28c]
add eax, 0x40
mov dword [esp + 4], eax
call esi
sub esp, 0x14
test eax, eax
je 0x4117c0
cmp dword [ebp - 0x288], 8
jne 0x4117c0
mov edx, dword [ebp - 0x280]
movzx eax, word [ebp - 0x280]
mov dword [ebp - 0x288], edx
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x284], edx
cmp ax, 0x1000
ja 0x4117c0
test al, 1
jne 0x4117c0
add eax, 2
mov dword [esp + 4], 8
movzx eax, ax
mov dword [esp + 8], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x2a8], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x2b0], eax
call eax
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x4117c0
movzx eax, word [ebp - 0x288]
mov ecx, dword [ebp - 0x2a4]
mov dword [esp + 8], edx
mov dword [ebp - 0x2a4], edx
mov dword [ebp - 0x2ac], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x284]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
mov edx, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0x2a8]
sub esp, 0x14
test eax, eax
je 0x4117c2
mov eax, dword [ebp - 0x2ac]
cmp eax, dword [ebp - 0x280]
jne 0x4117c2
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 8], edx
mov dword [ebp - 0x2a4], edx
mov dword [ebp - 0x2a8], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x2ac], eax
call eax
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x2a4]
sub esp, 0x20
test eax, eax
je 0x4117c8
mov ecx, dword [ebp - 0x2a8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [ebp - 0x2a4], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x2b8], edx
mov edx, dword [ebp - 0x2b0]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x2b4], ecx
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x2b8]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x2a8], eax
mov ecx, eax
je 0x4117c8
mov eax, dword [ebp - 0x2a4]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x2a4], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
mov edx, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0x2b4]
sub esp, 0x20
test eax, eax
je 0x411d04
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x2a4], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ebx, dword [ebp - 0x2a8]
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], str._t__s__n
call dbg.dbg_printf
mov ecx, dword [ebp - 0x2a4]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
jmp 0x4117f4
lea eax, [ebp - 0x280]
mov dword [esp + 0xc], 4
mov esi, dword [sym.imp.kernel32.dll_ReadProcessMemory]
mov dword [ebp - 0x2a4], eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x28c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x274]
mov dword [esp], ebx
add eax, 0x10
mov dword [esp + 4], eax
call esi
sub esp, 0x14
test eax, eax
je 0x4117c0
cmp dword [ebp - 0x280], 4
jne 0x4117c0
mov eax, dword [ebp - 0x2a4]
mov dword [esp + 0xc], 8
mov dword [esp], ebx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x288]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28c]
add eax, 0x40
mov dword [esp + 4], eax
call esi
sub esp, 0x14
test eax, eax
je 0x4117c0
cmp dword [ebp - 0x280], 8
jne 0x4117c0
movzx eax, word [ebp - 0x288]
jmp 0x411a2f
mov eax, dword [ebp - 0x2a8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x2a4]
sub esp, 0xc
jmp 0x4117c8