Function at 0x40afb0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
mov dword [ebp - 0x26c], eax
sub esp, 8
cmp eax, 0xffffffff
je 0x40b241
lea esi, [ebp - 0x140]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [ebp - 0x140], 0x128
call sym._Process32First_8
sub esp, 8
mov dword [ebp - 0x274], eax
mov eax, ebx
call sym._packet_reply_open
mov ecx, 1
mov edx, 0x43c4f8
mov eax, ebx
call dbg.packet_reply_add_data
lea eax, [ebp - 0x263]
mov dword [esp + 0x18], 0x43c6dd
mov dword [esp + 0x14], str.parent
mov dword [esp + 0x10], 0x43c6ef
mov dword [esp + 0xc], 0x43c6f7
mov dword [esp + 8], str.___8.8s___8.8s___8.8s__s_n
mov dword [esp + 4], 0x123
mov dword [esp], eax
call sym._snprintf
lea eax, [ebp - 0x263]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [ebp - 0x270], eax
call eax
mov ecx, dword [ebx + 0x20]
lea edi, [eax + eax]
mov esi, eax
mov eax, dword [ebx + 0x1c]
lea edx, [edi + eax]
cmp edx, ecx
ja 0x40b249
mov ecx, dword [ebx + 0x18]
add ecx, eax
test esi, esi
je 0x40b0d1
lea eax, [ebp - 0x263]
add esi, eax
mov edx, eax
nop
movzx eax, byte [edx]
add ecx, 2
add edx, 1
shr al, 4
movzx eax, al
movzx eax, byte [eax + 0x43c48b]
mov byte [ecx - 2], al
movzx eax, byte [edx - 1]
and eax, 0xf
movzx eax, byte [eax + 0x43c48b]
mov byte [ecx - 1], al
cmp esi, edx
jne 0x40b0a0
mov eax, dword [ebx + 0x1c]
add edi, eax
mov eax, ebx
mov dword [ebx + 0x1c], edi
call dbg.packet_reply_close
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x40b210
lea esi, [esi]
nop
mov eax, dword [ebx + 0x9c]
mov esi, 0x3e
mov eax, dword [eax + 0xc]
cmp dword [ebp - 0x138], eax
mov eax, 0x20
cmovne esi, eax
mov eax, ebx
call sym._packet_reply_open
mov ecx, 1
mov edx, 0x43c4f8
mov eax, ebx
call dbg.packet_reply_add_data
lea eax, [ebp - 0x11c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x128]
mov dword [esp + 8], str._c_08lx___8ld__08lx__s_n
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp + 4], 0x123
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x138]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x263]
mov dword [esp], eax
call sym._snprintf
lea eax, [ebp - 0x263]
mov dword [esp], eax
mov eax, dword [ebp - 0x270]
call eax
mov ecx, dword [ebx + 0x20]
lea esi, [eax + eax]
mov edi, eax
mov eax, dword [ebx + 0x1c]
lea edx, [esi + eax]
cmp edx, ecx
ja 0x40b278
mov ecx, dword [ebx + 0x18]
add ecx, eax
test edi, edi
je 0x40b1e1
lea eax, [ebp - 0x263]
add edi, eax
mov edx, eax
lea esi, [esi]
nop
movzx eax, byte [edx]
add ecx, 2
add edx, 1
shr al, 4
movzx eax, al
movzx eax, byte [eax + 0x43c48b]
mov byte [ecx - 2], al
movzx eax, byte [edx - 1]
and eax, 0xf
movzx eax, byte [eax + 0x43c48b]
mov byte [ecx - 1], al
cmp edi, edx
jne 0x40b1b0
mov eax, dword [ebx + 0x1c]
add esi, eax
mov eax, ebx
mov dword [ebx + 0x1c], esi
call dbg.packet_reply_close
lea eax, [ebp - 0x140]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call sym._Process32Next_8
sub esp, 8
test eax, eax
jne 0x40b0f0
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, ebx
sub esp, 4
call sym._packet_reply_open
mov eax, ebx
mov ecx, 2
mov edx, 0x43c5a1
call dbg.packet_reply_add_data
mov eax, ebx
call dbg.packet_reply_close
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ecx + ecx*2]
shr eax, 1
cmp eax, edx
cmovb eax, edx
mov dword [ebx + 0x20], eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebx + 0x18], eax
mov ecx, eax
mov eax, dword [ebx + 0x1c]
jmp 0x40b08f
lea eax, [ecx + ecx*2]
shr eax, 1
cmp eax, edx
cmovb eax, edx
mov dword [ebx + 0x20], eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebx + 0x18], eax
mov ecx, eax
mov eax, dword [ebx + 0x1c]
jmp 0x40b198