Function at 0x14007f120
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 [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x820], rax
xor edx, edx
lea rcx, [rbp + 0x1f0]
mov r8d, 0x208
xor edi, edi
call fcn.1402767a0
mov r8d, 0x104
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14007f5bb
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 0x14007f1eb
mov rcx, 0xffffffffffffffff
mov eax, 2
mul r14
cmovo rax, rcx
mov rcx, rax
call fcn.140125a94
lea r8, [r14 + r14]
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.1402767a0
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 0x14007f5ab
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 0x14007f5ab
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rbx, rax
test rax, rax
je 0x14007f5ab
xor edx, edx
lea rcx, [rbp + 0x400]
mov r8d, 0x208
call fcn.1402767a0
xor edx, edx
lea rcx, [rbp + 0x610]
mov r8d, 0x208
call fcn.1402767a0
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x208
call fcn.1402767a0
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 0x14007f2bf
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 0x14007f5ab
lea r9, [rbp + 0x610]
mov edx, 0x104
lea r8, [0x140326868]
lea rcx, [rbp + 0x400]
call fcn.14004e9f0
xor r8d, r8d
lea rdx, [rbp + 0x400]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x14007f5ab
lea r9, [rbp + 0x610]
mov qword [rsp + 0x20], rbx
lea r8, [0x1403268f8]
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.14004e9f0
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14007f359
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
call fcn.1402779b8
test eax, eax
je 0x14007f5ab
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 0x14007f3ee
xor r8d, r8d
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14007f3ee
lea rax, [0x14032abc0]
mov edx, 0x104
lea r9, [rbp + 0x610]
mov qword [rsp + 0x20], rax
lea r8, str._s_s.lnk
lea rcx, [rbp + 0x400]
call fcn.14004e9f0
lea rcx, [rbp + 0x400]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14007f5ab
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0x400]
call fcn.14004d520
jmp 0x14007f5ab
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14007f5ab
xor edx, edx
lea rcx, [rbp + 0x400]
mov r8d, 0x208
call fcn.1402767a0
lea rbx, [0x14032aba8]
mov edx, 0x104
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], rbx
lea r8, [0x140326748]
lea rcx, [rbp + 0x400]
call fcn.14004e9f0
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1402767a0
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 0x14007f4ad
mov edi, esi
jmp 0x14007f5ab
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.14004e9f0
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14007f4f0
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 0x14007f51f
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, [0x140326990]
mov edx, 0x104
lea rcx, [rbp + 0x400]
call fcn.14004e9f0
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1402767a0
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.140125a70
mov rdi, qword [rsp + 0x958]
add rsp, 0x930
pop rbp
ret