Function at 0x140093bf0
Capabilities:
Check if file exists
Create process on windows
Delete directory
Get disk information
Get disk size
Query environment variable
Set file attributes

Disassembly:
mov r11, rsp
push rbp
push r13
push r14
lea rbp, [r11 - 0x3c8]
sub rsp, 0x4b0
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov qword [r11 + 0x18], rbx
mov r13, rcx
mov qword [r11 - 0x20], rsi
lea rcx, [rbp + 0x170]
mov qword [r11 - 0x28], rdi
mov rsi, rdx
movabs rax, 0x5c003a0058
mov qword [r11 - 0x30], r12
xor r14d, r14d
mov qword [r11 - 0x38], r15
xor edx, edx
mov qword [rsp + 0x58], rax
mov r8d, 0x208
mov qword [rsp + 0x48], r14
call fcn.1402767a0
test rsi, rsi
je 0x1400942e8
mov r15, qword [rsi + 0x488]
test r15, r15
je 0x1400942e8
cmp dword [rsi + 0x4a0], r14d
jne 0x1400942e8
cmp qword [rsi + 0x494], r14
jne 0x1400942e8
cmp dword [rsi + 0x490], r14d
jne 0x1400942e8
cmp dword [rsi + 0x49c], r14d
jne 0x1400942e8
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r12d, eax
test eax, eax
je 0x140094300
mov rcx, 0xffffffffffffffff
mov eax, 2
mul r12
cmovo rax, rcx
mov rcx, rax
call fcn.140125a94
lea r8, [r12 + r12]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1402767a0
mov r8d, r12d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test rdi, rdi
je 0x140094300
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x1400942df
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400942df
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdi + rax*2], r14w
jne 0x140093d30
cmp rax, 2
jbe 0x1400942df
mov r8d, 1
lea rdx, str.:_Recycle.Bin_:_Recycle.Bin_:BOOT_:BOOT_:EFI_:EFI_:System_Volume_Information_:System_Volume_Information_:Recovery_:Recovery__HOMEDRIVE___USERPROFILE___HOMEPATH___temp___PATH___SystemDrive___APPDATA___ProgramFiles_x86____ProgramFiles___windir___windir___systemroot___systemroot____systemroot__:Windows_:Windows_:Users_:Documents_and_Settings_:ProgramData_:ProgramDataPackages_:ProgramDataPackages_:Program_Files__x86__:Program_Files__x86_Microsoft_:Program_Files__x86_Microsoft_:Program_Files__x86_Microsoft__:Program_Files__x86_Microsoft__:Program_Files__x86_Windows_:Program_Files__x86_Windows_:Program_Files__x86_Windows__:Program_Files__x86_Windows__:Program_Files_:Program_FilesMicrosoft_:Program_FilesMicrosoft_:Program_FilesMicrosoft__:Program_FilesMicrosoft__:Program_FilesWindows_:Program_FilesWindows_:Program_FilesWindows__:Program_FilesWindows__:Program_FilesWindowsApps_:Program_FilesWindowsApps_:UsersAppDataLocalTemp_:UsersAppDataLocal_:UsersAppDataLocalOneDrive_:UsersAppDataLocalPackages_:UsersAppDataLocalPackages_:UsersAppDataLocalMicrosoft_:UsersAppDataLocalMicrosoft_:UsersAppDataLocalMicrosoft__:UsersAppDataLocalLow_:UsersAppDataLocalLowMicrosoft_:UsersAppDataLocalLowMicrosoft_:UsersAppDataRoaming_:UsersAppDataRoamingMicrosoft_:UsersAppDataRoamingMicrosoft__:UsersAppData_:UsersDocuments_:UsersDesktop_:UsersOneDrive_
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x1400942df
mov rcx, rdi
call fcn.140055600
test eax, eax
jne 0x1400942df
lea edx, [rax + 1]
mov rcx, rdi
lea r8d, [rax + 3]
call fcn.140052070
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140093daa
lea r9, [rsp + 0x48]
mov r8, rdi
lea rdx, [0x14007d250]
mov rcx, rax
call fcn.140052330
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x48], r14
jbe 0x140094300
mov rcx, qword [r13 + 8]
call fcn.140055a60
mov r15, rax
test rax, rax
je 0x140094300
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400942d6
mov rcx, r15
call fcn.140055600
test eax, eax
jne 0x1400942d6
movzx eax, word [r15]
lea rcx, [rsp + 0x58]
mov word [rsp + 0x58], ax
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140094300
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x140093e54
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jb 0x140093e54
lea r9, [rsp + 0x58]
mov edx, 0x104
lea r8, [0x14032f690]
lea rcx, [rbp + 0x170]
call fcn.14004e9f0
jmp 0x140094300
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.1402767a0
mov rcx, r15
call fcn.140055d30
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov r12, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x140093ec6
mov ebx, eax
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.140125a94
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
mov r12, rax
call fcn.1402767a0
mov r8d, dword [rsp + 0x40]
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov r9, r15
mov qword [rsp + 0x20], r12
lea r8, [0x14032f680]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.14004e9f0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140093f22
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x140093f22
lea r8, [0x14032f728]
jmp 0x1400942ef
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.140091790
test eax, eax
jne 0x140093f3f
lea r8, str.bcN
jmp 0x1400942ef
mov rcx, rdi
call fcn.14005f3c0
test eax, eax
je 0x140093f63
mov rcx, qword [r13 + 8]
lea rdx, [0x14032f6f8]
call fcn.140080170
test eax, eax
je 0x140094300
mov rdx, rdi
lea rcx, [0x14032f6d8]
call fcn.14005f500
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140093f99
mov rcx, rdi
call fcn.14005f250
mov rcx, rdi
call fcn.140060640
mov rcx, rdi
call fcn.140054130
call fcn.14005db60
mov rdx, r15
mov rcx, rdi
call fcn.140054f10
mov r14d, eax
test ebx, ebx
je 0x140093fc2
mov edx, 1
lea rcx, str.X:Windowsexplorer.exe
call qword [sym.imp.KERNEL32.dll_WinExec]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test r14d, r14d
je 0x140094269
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140094269
lea r8, [rsp + 0x60]
mov rdx, rsi
lea rcx, [0x1404565c0]
call fcn.1400a4c10
lea r8, [rsp + 0x60]
mov rdx, rsi
lea rcx, [0x140456e00]
call fcn.1400a4c10
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400a60c0
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400a4d40
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400a5360
lea r8, [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
call fcn.1400b23c0
mov rcx, rsi
call fcn.1400b0d20
mov rdx, rsi
mov rcx, r13
call fcn.140093a20
mov rbx, qword [rsi + 0x4a8]
test rbx, rbx
je 0x1400941f5
mov rcx, qword [rsi + 0x480]
movzx eax, word [0x140455b60]
cmp word [rcx], ax
mov rcx, rbx
mov rax, qword [rbx]
jne 0x140094138
call qword [rax + gethostname]
mov rax, qword [rbx]
lea r8, [0x14032f768]
xor r9d, r9d
lea rdx, [0x1400c1bd0]
mov rcx, rbx
call qword [rax + 0x268]
lea r8, [0x14032f750]
mov rcx, rax
lea rdx, [0x14032f738]
mov r9, qword [rax]
call qword [r9 + 0x290]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
mov rax, qword [rbx]
lea r8, [0x14032f7c8]
xor r9d, r9d
lea rdx, [0x1400c1bd0]
mov rcx, rbx
call qword [rax + 0x268]
lea r8, [0x14032f7b0]
mov rcx, rax
lea rdx, [0x14032f798]
mov r9, qword [rax]
call qword [r9 + 0x290]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
mov rax, qword [rbx]
lea r8, [0x14032f788]
xor r9d, r9d
lea rdx, [0x1400c1bd0]
mov rcx, rbx
call qword [rax + 0x268]
lea r8, [0x14032f818]
lea rdx, [0x14032f800]
jmp 0x1400941e8
call qword [rax + gethostname]
mov rax, qword [rbx]
lea r8, str.labname
xor r9d, r9d
lea rdx, [0x1400c1bd0]
mov rcx, rbx
call qword [rax + 0x268]
lea r8, [0x14032f7d8]
mov rcx, rax
lea rdx, [0x14032f870]
mov r9, qword [rax]
call qword [r9 + 0x290]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
mov rax, qword [rbx]
lea r8, [0x14032f860]
xor r9d, r9d
lea rdx, [0x1400c1bd0]
mov rcx, rbx
call qword [rax + 0x268]
lea r8, [0x14032f848]
mov rcx, rax
lea rdx, [0x14032f830]
mov r9, qword [rax]
call qword [r9 + 0x290]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
mov rax, qword [rbx]
lea r8, [0x14032f8c8]
xor r9d, r9d
lea rdx, [0x1400c1bd0]
mov rcx, rbx
call qword [rax + 0x268]
lea r8, [0x14032f8b0]
lea rdx, [0x14032f898]
mov r9, qword [rax]
mov rcx, rax
call qword [r9 + 0x290]
mov edx, 1
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.140052070
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009422d
xor r9d, r9d
lea rdx, [0x14007f9a0]
mov r8, rdi
mov rcx, rax
call fcn.140052330
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x8000000
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
lea r8, [0x14032f888]
mov r14d, 1
jmp 0x1400942ef
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x1400942cd
lea edx, [rax + 1]
lea r8d, [rax + 3]
lea rcx, [rsp + 0x60]
call fcn.140052070
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400942b2
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x14007f9a0]
mov rcx, rax
call fcn.140052330
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x80
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea r8, str._rY6R
jmp 0x1400942ef
lea r8, [0x14032f6a8]
jmp 0x1400942ef
lea r8, [0x14032f6c0]
jmp 0x1400942ef
lea r8, str._rN_e
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.14004e9f0
cmp word [rbp + 0x170], 0
mov r15, qword [rsp + 0x490]
mov r12, qword [rsp + 0x498]
mov rdi, qword [rsp + 0x4a0]
mov rsi, qword [rsp + 0x4a8]
mov rbx, qword [rsp + 0x4e0]
je 0x140094348
mov rcx, qword [r13 + 8]
lea rdx, [rbp + 0x170]
mov r8d, 0xa
call fcn.140080080
mov eax, r14d
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x4b0
pop r14
pop r13
pop rbp
ret