Function at 0x140006450
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x1400a96f0]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400064c8
lea rdx, str.Failed_to_create_process_snapshot.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000d0a0
lea rdx, [0x14000d270]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x14000683a
mov dword [rbp - 0x70], 0x130
lea rdx, [rbp - 0x70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x140006513
lea rdx, str.Failed_to_get_the_first_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000d0a0
lea rdx, [0x14000d270]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000683a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r12d, eax
mov dword [rsp + 0x20], eax
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x1c0]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x1c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
lea rax, [rbp + 0x1c0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140006570
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x28]
call fcn.14000b880
nop
lea rbx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
setae r14b
mov rsi, qword [rsp + 0x28]
cmovae rbx, rsi
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x14000661f
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0xc0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140097c34]
lea rdx, [0x140097c36]
movzx eax, byte [rcx]
mov byte [rbp + rax + 0xc0], 1
inc rcx
cmp rcx, rdx
jne 0x1400065d0
lea rax, [rdi - 1]
mov rcx, 0xffffffffffffffff
cmp rax, rcx
cmovb rcx, rax
add rcx, rbx
movzx eax, byte [rcx]
cmp byte [rbp + rax + 0xc0], 0
jne 0x14000661a
cmp rcx, rbx
je 0x14000661f
dec rcx
movzx eax, byte [rcx]
cmp byte [rbp + rax + 0xc0], 0
je 0x140006605
sub rcx, rbx
jmp 0x140006626
mov rcx, 0xffffffffffffffff
inc rcx
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], bl
cmp rdi, rcx
jb 0x14000686a
sub rdi, rcx
mov r8, 0xffffffffffffffff
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rsp + 0x28]
test r14b, r14b
cmovne rdx, rsi
add rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14000b880
nop
mov rsi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x48]
cmp dword [rbp - 0x68], r12d
je 0x140006751
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
lea rax, [rbp - 0x44]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400066b0
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x68]
call fcn.14000b880
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, r13
lea rcx, [rsp + 0x68]
mov r14, qword [rbp - 0x80]
cmp r14, 0x10
setae r12b
mov rbx, qword [rsp + 0x68]
cmovae rcx, rbx
mov rdi, qword [rsp + 0x78]
mov r8, rdi
cmp rsi, rdi
cmovb r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140006714
cmp rdi, rsi
jb 0x140006714
jbe 0x1400067a8
test r12b, r12b
je 0x14000674a
lea rdx, [r14 + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140006742
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400067e7
mov rcx, rbx
call fcn.140083fe4
xor ebx, ebx
mov r12d, dword [rsp + 0x20]
lea rdx, [rbp - 0x70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140006680
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x1400067f7
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x1400067ee
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400067ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12b, r12b
je 0x1400067e3
lea rdx, [r14 + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400067db
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400067e7
mov rcx, rbx
call fcn.140083fe4
mov bl, 1
jmp 0x140006771
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, r13
call fcn.140083fe4
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140006837
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006832
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006832
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140083fe4
movzx eax, bl
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140083eb0
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14000cce0
nop