Function at 0x140001290
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, rdx
mov rsi, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400012ee
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_process_snapshot.
call fcn.140003eb0
mov rcx, rax
lea rdx, [0x140004270]
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 0x140001405
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140001331
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_retrieve_process_list.
call fcn.140003eb0
mov rcx, rax
lea rdx, [0x140004270]
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, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140001405
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], r15
nop word [rax + rax]
lea r8, [r14 + 0x2c]
lea rdx, [rsp + 0x20]
call fcn.140001470
mov rdi, qword [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
cmp rdi, 0xf
mov rcx, rsi
cmova rdx, rbx
cmp qword [rsi + 0x18], 0xf
jbe 0x140001382
mov rcx, qword [rsi]
mov r8, qword [rsi + 0x10]
cmp r8, qword [rsp + 0x30]
jne 0x14000139a
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000141b
cmp rdi, 0xf
jbe 0x1400013d1
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400013c9
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001461
mov rcx, rbx
call fcn.140004b5c
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001350
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004b00
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000145d
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001458
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001461
call fcn.140004b5c
mov al, 1
jmp 0x1400013f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3