Function at 0x40f5c0
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2c8
xor edx, edx
mov r15, rcx
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x40f8e8
lea rsi, [rsp + 0x190]
mov rcx, rax
mov dword [rsp + 0x190], 0x130
mov rdx, rsi
call sym.Process32First
cmp dword [r15 + 0x40], 0xffffffff
mov dword [rsp + 0x50], eax
jne 0x40f92d
lea r13, [r15 + 0x28]
mov r8d, 1
lea rbx, [rsp + 0x60]
lea rdx, [0x0043a327]
mov rcx, r13
call sym.reply_buffer_append
mov rax, qword [r15 + 0x30]
mov r8d, 1
mov rcx, r15
lea rdx, [0x0043a358]
mov dword [r15 + 0x40], eax
call sym.packet_reply_add_data
lea rax, [0x0043ace3]
mov rcx, rbx
mov edx, 0x123
mov qword [rsp + 0x30], rax
lea rax, str.parent
lea r9, [0x0043acc5]
mov qword [rsp + 0x28], rax
lea rax, [0x0043acf5]
lea r8, str.___8.8s___8.8s___8.8s__s_n
mov qword [rsp + 0x20], rax
call sym.snprintf
mov rcx, rbx
mov rdi, qword [sym.imp.ucrtbase.dll_strlen]
call rdi
mov rcx, qword [r15 + 0x38]
lea rbp, [rax + rax]
mov r14, rax
mov rax, qword [r15 + 0x30]
lea rdx, [rbp + rax]
cmp rdx, rcx
ja 0x40f8fc
mov rcx, qword [r15 + 0x28]
add rcx, rax
test r14, r14
je 0x40f711
lea r9, [rbx + r14]
mov rdx, rbx
lea r8, [0x0043a173]
nop dword [rax]
movzx eax, byte [rdx]
add rcx, 2
add rdx, 1
shr al, 4
and eax, 0xf
movzx eax, byte [r8 + rax]
mov byte [rcx - 2], al
movzx eax, byte [rdx - 1]
and eax, 0xf
movzx eax, byte [r8 + rax]
mov byte [rcx - 1], al
cmp rdx, r9
jne 0x40f6e0
mov rax, qword [r15 + 0x30]
add rax, rbp
mov rcx, r15
lea r14, [0x0043a173]
mov qword [r15 + 0x30], rax
call sym.packet_reply_close
lea rax, [rsp + 0x1bc]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x40f883
mov rax, qword [r15 + 0x118]
mov r9d, 0x3e
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x198], eax
mov eax, 0x20
cmovne r9d, eax
cmp dword [r15 + 0x40], 0xffffffff
mov ebp, r9d
je 0x40f784
mov r8d, 0x389
lea rdx, str..._programs_winedbg_gdbproxy.c
lea rcx, str.gdbctx__out_curr_packet___1
call qword [sym.imp.ucrtbase.dll__assert]
mov r8d, 1
lea rdx, [0x0043a327]
mov rcx, r13
call sym.reply_buffer_append
mov rax, qword [r15 + 0x30]
mov r8d, 1
mov rcx, r15
lea rdx, [0x0043a358]
mov dword [r15 + 0x40], eax
call sym.packet_reply_add_data
mov rax, qword [rsp + 0x48]
mov r9d, ebp
mov rcx, rbx
lea r8, str._c_08lx___8ld__08lx__s_n
mov edx, 0x123
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x1b0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x1ac]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x198]
mov dword [rsp + 0x20], eax
call sym.snprintf
mov rcx, rbx
call rdi
mov rcx, qword [r15 + 0x30]
lea r8, [rax + rax]
mov r9, rax
mov rax, qword [r15 + 0x38]
lea rdx, [r8 + rcx]
cmp rdx, rax
ja 0x40f950
mov rdx, qword [r15 + 0x28]
add rdx, rcx
test r9, r9
je 0x40f861
lea r9, [rdx + r8]
mov rcx, rbx
nop dword [rax]
movzx eax, byte [rcx]
add rdx, 2
add rcx, 1
shr al, 4
and eax, 0xf
movzx eax, byte [r14 + rax]
mov byte [rdx - 2], al
movzx eax, byte [rcx - 1]
and eax, 0xf
movzx eax, byte [r14 + rax]
mov byte [rdx - 1], al
cmp rdx, r9
jne 0x40f830
mov rcx, qword [r15 + 0x30]
add rcx, r8
mov qword [r15 + 0x30], rcx
mov rcx, r15
call sym.packet_reply_close
mov rdx, rsi
mov rcx, r12
call sym.Process32Next
test eax, eax
jne 0x40f740
mov rcx, r12
call qword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [r15 + 0x40], 0xffffffff
je 0x40f8ad
mov r8d, 0x389
lea rdx, str..._programs_winedbg_gdbproxy.c
lea rcx, str.gdbctx__out_curr_packet___1
call qword [sym.imp.ucrtbase.dll__assert]
mov r8d, 1
lea rdx, [0x0043a327]
mov rcx, r13
call sym.reply_buffer_append
mov rax, qword [r15 + 0x30]
mov rcx, r15
mov r8d, 2
lea rdx, [0x0043ac2f]
mov dword [r15 + 0x40], eax
call sym.packet_reply_add_data
mov rcx, r15
call sym.packet_reply_close
nop
add rsp, 0x2c8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rcx + rcx*2]
shr rax, 1
cmp rdx, rax
ja 0x40f99e
mov qword [r15 + 0x38], rax
mov rdx, rax
mov rcx, qword [r15 + 0x28]
call qword [sym.imp.ucrtbase.dll_realloc]
mov qword [r15 + 0x28], rax
mov rcx, rax
mov rax, qword [r15 + 0x30]
jmp 0x40f6c3
mov r8d, 0x389
lea rdx, str..._programs_winedbg_gdbproxy.c
lea rcx, str.gdbctx__out_curr_packet___1
call qword [sym.imp.ucrtbase.dll__assert]
jmp 0x40f61c
lea rax, [rax + rax*2]
shr rax, 1
cmp rdx, rax
ja 0x40f998
mov qword [r15 + 0x38], rax
mov rdx, rax
mov qword [rsp + 0x58], r9
mov rcx, qword [r15 + 0x28]
mov qword [rsp + 0x50], r8
call qword [sym.imp.ucrtbase.dll_realloc]
mov rcx, qword [r15 + 0x30]
mov r9, qword [rsp + 0x58]
mov qword [r15 + 0x28], rax
mov r8, qword [rsp + 0x50]
mov rdx, rax
jmp 0x40f81d
mov qword [r15 + 0x38], rdx
jmp 0x40f963
mov qword [r15 + 0x38], rdx
jmp 0x40f913