Function at 0x1400016db
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [rbp + 0x20]
mov r8d, 2
lea rdx, str..
mov rcx, rax
call method.std::filesystem::__cxx11::path::path_char__2___std::filesystem::__cxx11.path__char_const_____2___std::filesystem::__cxx11::path::format_
lea rdx, [rbp + 0x20]
lea rax, [rbp - 0x10]
mov rcx, rax
call method.std::filesystem::__cxx11::directory_iterator.directory_iterator_std::filesystem::__cxx11::path_const_
lea rax, [rbp - 0x10]
mov qword [rbp + 0xb8], rax
lea rax, [rbp + 0x20]
mov rcx, rax
call fcn.140004320
mov rdx, qword [rbp + 0xb8]
lea rax, [rbp + 0x50]
mov rcx, rax
call method.std::filesystem::__cxx11::directory_iterator.directory_iterator_std::filesystem::__cxx11::directory_iterator_const_
lea rax, [rbp - 0x20]
lea rdx, [rbp + 0x50]
mov rcx, rax
call method.std::filesystem::__cxx11.begin_std::filesystem::__cxx11::directory_iterator_
lea rax, [rbp + 0x50]
mov rcx, rax
call fcn.140003e30
mov rdx, qword [rbp + 0xb8]
lea rax, [rbp + 0x60]
mov rcx, rax
call method.std::filesystem::__cxx11::directory_iterator.directory_iterator_std::filesystem::__cxx11::directory_iterator_const_
lea rax, [rbp - 0x30]
lea rdx, [rbp + 0x60]
mov rcx, rax
call method.std::filesystem::__cxx11.end_std::filesystem::__cxx11::directory_iterator_
lea rax, [rbp + 0x60]
mov rcx, rax
call fcn.140003e30
jmp 0x1400018ab
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.std::filesystem::__cxx11::directory_iterator::operator___const
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov rcx, rax
call method.std::filesystem::__cxx11::directory_entry.is_regular_file___const
test al, al
je 0x14000189f
mov rax, qword [rbp + 0xa8]
mov rcx, rax
call method.std::filesystem::__cxx11::directory_entry.path___const
mov rdx, rax
lea rax, [rbp + 0x70]
mov rcx, rax
call method.std::filesystem::__cxx11::path.filename___const
lea rax, [rbp - 0x50]
lea rdx, [rbp + 0x70]
mov rcx, rax
call method.std::filesystem::__cxx11::path.wstring___const
lea rax, [rbp + 0x70]
mov rcx, rax
call fcn.140004320
lea rax, [rbp - 0x50]
mov r8d, 0
lea rdx, [0x140007074]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::find_wchar_t_const__unsigned_long_long__const
test rax, rax
sete al
test al, al
je 0x140001893
lea rax, [0x140007080]
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::wcout]
mov rcx, rax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____wchar_t_const_
mov rcx, rax
lea rax, [rbp - 0x50]
mov rdx, rax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____const_
mov rcx, rax
mov rax, qword [0x1400074f0]
mov rdx, rax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___std::basic_ostream_wchar_t__std::char_traits_wchar_t_______std::basic_ostream_wchar_t__std::char_traits_wchar_t_____
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::c_str___const
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
lea rax, str.open
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteW]
call rax
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.140001b20
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.std::filesystem::__cxx11::directory_iterator::operator__
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::filesystem::__cxx11.operator__std::filesystem::__cxx11::directory_iterator_const__std::filesystem::__cxx11::directory_iterator_const_
test al, al
jne 0x140001794
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.140003e30
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.140003e30
lea rax, [rbp - 0x10]
mov rcx, rax
call fcn.140003e30
lea rax, [rbp + 0x9f]
mov qword [rbp + 0xa0], rax
nop
nop
lea rdx, [rbp + 0x9f]
mov rax, rbp
mov r8, rdx
lea rdx, str.example_process_list.exe
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string_std.allocator_wchar_t____wchar_t_const__std::allocator_wchar_t__const_
lea rax, [rbp + 0x9f]
mov rcx, rax
call method.std::__new_allocator_wchar_t_.__new_allocator__
nop
mov rax, rbp
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::c_str___const
mov rcx, rax
lea rax, [0x1400070e8]
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__wfopen]
call rax
mov qword [rbp + 0xb0], rax
cmp qword [rbp + 0xb0], 0
jne 0x140001995
lea rax, [0x1400070f0]
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::wcerr]
mov rcx, rax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____wchar_t_const_
mov rcx, rax
mov rax, rbp
mov rdx, rax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____const_
mov rcx, rax
mov rax, qword [0x1400074f0]
mov rdx, rax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___std::basic_ostream_wchar_t__std::char_traits_wchar_t_______std::basic_ostream_wchar_t__std::char_traits_wchar_t_____
mov ebx, 1
jmp 0x140001a06
mov rax, qword [rbp + 0xb0]
mov r9, rax
mov r8d, 0x145
mov edx, 1
lea rax, [0x140006020]
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call sym.fclose
lea rax, [0x140007128]
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::wcout]
mov rcx, rax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____wchar_t_const_
mov rcx, rax
mov rax, rbp
mov rdx, rax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____const_
mov rcx, rax
mov rax, qword [0x1400074f0]
mov rdx, rax
call sym.std::basic_ostream_wchar_t__std::char_traits_wchar_t___::operator___std::basic_ostream_wchar_t__std::char_traits_wchar_t_______std::basic_ostream_wchar_t__std::char_traits_wchar_t_____
mov ebx, 0
mov rax, rbp
mov rcx, rax
call fcn.140001b20
mov eax, ebx
jmp 0x140001abd
add rsp, 0x148
pop rbx
pop rbp
ret