Function at 0x140084000
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Get common file path
Move file
Persist via lnk shortcut
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x830]
sub rsp, 0x930
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x820], rax
xor edx, edx
lea rcx, [rbp + 0x1f0]
mov r8d, 0x208
xor edi, edi
call fcn.14027b2c0
mov r8d, 0x104
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14008449b
mov qword [rsp + 0x940], rbx
lea rcx, [rbp + 0x1f0]
mov qword [rsp + 0x948], rsi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x950], r14
mov esi, edi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
test eax, eax
je 0x1400840cb
mov rcx, 0xffffffffffffffff
mov eax, 2
mul r14
cmovo rax, rcx
mov rcx, rax
call fcn.14012a2dc
lea r8, [r14 + r14]
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.14027b2c0
mov r8d, r14d
lea rcx, [rbp + 0x1f0]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
mov r14, qword [rsp + 0x950]
test eax, eax
jne 0x14008448b
mov esi, 1
lea rdx, str.:UsersDesktop_:UsersOneDrive_
mov r8d, esi
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x14008448b
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rbx, rax
test rax, rax
je 0x14008448b
xor edx, edx
lea rcx, [rbp + 0x400]
mov r8d, 0x208
call fcn.14027b2c0
xor edx, edx
lea rcx, [rbp + 0x610]
mov r8d, 0x208
call fcn.14027b2c0
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x208
call fcn.14027b2c0
xor r9d, r9d
lea rdx, [rbp + 0x610]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rbp + 0x610]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14008419f
xor r9d, r9d
lea r8d, [rsi + 0xf]
lea rdx, [rbp + 0x610]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rbp + 0x610]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14008448b
lea r9, [rbp + 0x610]
mov edx, 0x104
lea r8, [0x14032d798]
lea rcx, [rbp + 0x400]
call fcn.14004ebd0
xor r8d, r8d
lea rdx, [rbp + 0x400]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x14008448b
lea r9, [rbp + 0x610]
mov qword [rsp + 0x20], rbx
lea r8, [0x14032d858]
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.14004ebd0
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140084239
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
call fcn.14027c4d8
test eax, eax
je 0x14008448b
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, ntohs
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400842ce
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400842ce
lea rax, [0x14032b4b0]
mov edx, 0x104
lea r9, [rbp + 0x610]
mov qword [rsp + 0x20], rax
lea r8, str._s_s.lnk
lea rcx, [rbp + 0x400]
call fcn.14004ebd0
lea rcx, [rbp + 0x400]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14008448b
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0x400]
call fcn.14004d700
jmp 0x14008448b
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14008448b
xor edx, edx
lea rcx, [rbp + 0x400]
mov r8d, 0x208
call fcn.14027b2c0
lea rbx, [0x140330808]
mov edx, 0x104
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], rbx
lea r8, [0x14032d7b8]
lea rcx, [rbp + 0x400]
call fcn.14004ebd0
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.14027b2c0
xor eax, eax
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x400]
mov qword [rsp + 0x58], rax
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x60], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14008438d
mov edi, esi
jmp 0x14008448b
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r9, [rbp + 0x610]
mov qword [rsp + 0x20], rbx
lea r8, str._s_s.exe
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.14004ebd0
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400843d0
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, ntohs
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400843ff
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], rbx
lea r8, [0x14032d8f0]
mov edx, 0x104
lea rcx, [rbp + 0x400]
call fcn.14004ebd0
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.14027b2c0
xor eax, eax
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x400]
mov qword [rsp + 0x58], rax
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x60], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
cmovne edi, esi
mov rbx, qword [rsp + 0x940]
mov rsi, qword [rsp + 0x948]
mov eax, edi
mov rcx, qword [rbp + 0x820]
xor rcx, rsp
call fcn.14012a2b0
mov rdi, qword [rsp + 0x958]
add rsp, 0x930
pop rbp
ret