Function at 0x140097ed0
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 [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov qword [r11 + 0x18], rbx
mov r13, rcx
mov qword [r11 - 0x20], rsi
movabs rax, 0x5c003a0058
mov qword [r11 - 0x28], rdi
mov rsi, rdx
mov qword [rsp + 0x40], rcx
xor r14d, r14d
mov qword [r11 - 0x30], r12
lea rcx, [rbp + 0x170]
xor edx, edx
mov qword [r11 - 0x38], r15
mov r8d, 0x208
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], r14
call fcn.14027b2c0
test rsi, rsi
je 0x140098668
mov r15, qword [rsi + 0x488]
test r15, r15
je 0x140098668
cmp dword [rsi + 0x494], r14d
jne 0x140098668
cmp dword [rsi + 0x4a4], r14d
jne 0x140098668
cmp qword [rsi + 0x498], r14
jne 0x140098668
cmp dword [rsi + 0x490], r14d
jne 0x140098668
cmp dword [rsi + 0x4a0], r14d
jne 0x140098668
xor r8d, r8d
xor edx, edx
mov rcx, r15
mov edi, r14d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or rcx, 0xffffffffffffffff
mov r12d, eax
test eax, eax
je 0x140097feb
mov eax, 2
mul r12
cmovo rax, rcx
mov rcx, rax
call fcn.14012a2dc
lea r8, [r12 + r12]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.14027b2c0
mov r8d, r12d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test rdi, rdi
je 0x140098680
mov rcx, rdi
call fcn.140055c90
test eax, eax
jne 0x140098680
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x14009865f
lea r8d, [rax + 1]
mov rcx, rdi
lea rdx, str.:_Recycle.Bin_:_Recycle.Bin_:BOOT_:BOOT_:EFI_:EFI_:System_Volume_Information_:Recovery_: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_
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x14009865f
mov edx, 1
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.1400526c0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009806b
lea r9, [rsp + 0x48]
mov r8, rdi
lea rdx, [0x140082180]
mov rcx, rax
call fcn.140052980
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x48], r14
jbe 0x140098680
mov rcx, qword [r13 + 8]
call fcn.1400560b0
mov r15, rax
test rax, rax
je 0x140098680
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140098680
mov rcx, r15
call fcn.140055c90
test eax, eax
jne 0x140098680
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 0x140098680
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 0x140098113
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jb 0x140098113
mov r9, r15
lea r8, [0x14033610c]
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.14004ebd0
jmp 0x140098680
mov rcx, rdi
call fcn.14005fa10
test eax, eax
je 0x14009813d
mov rcx, qword [r13 + 8]
lea rdx, [0x1403360f8]
mov r8d, 0x1e
call fcn.1400850d0
test eax, eax
je 0x140098680
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call fcn.14027b2c0
mov rcx, r15
call fcn.140056380
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov r12, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r13d, eax
test eax, eax
je 0x1400981ae
mov rcx, 0xffffffffffffffff
mov eax, 2
mul r13
cmovo rax, rcx
mov rcx, rax
call fcn.14012a2dc
lea r8, [r13*2]
xor edx, edx
mov rcx, rax
mov r12, rax
call fcn.14027b2c0
mov r8d, r13d
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, [0x1403360e8]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.14004ebd0
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 0x140098223
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x140098223
mov r9, r12
lea r8, [0x1403360dc]
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.14004ebd0
mov r13, qword [rsp + 0x40]
jmp 0x140098680
mov rdx, rdi
lea rcx, [0x140336140]
call fcn.14005fb50
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140098259
mov rcx, rdi
call fcn.14005f8a0
mov rcx, rdi
call fcn.140060d60
mov rcx, rdi
call fcn.1400547f0
call fcn.14005e1b0
mov rdx, r15
mov rcx, rdi
call fcn.1400555d0
mov r14d, eax
test ebx, ebx
je 0x140098282
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 0x1400985dc
mov edx, 1
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.1400526c0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400982c9
xor r9d, r9d
lea rdx, [0x140084880]
mov r8, rdi
mov rcx, rax
call fcn.140052980
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]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140098300
lea r9, [rsp + 0x60]
lea r8, [0x140336124]
jmp 0x140098208
mov rdx, qword [rsi + 0x480]
mov rcx, qword [rsi + 0x488]
call fcn.14027c4d8
test eax, eax
je 0x140098391
mov rcx, qword [rsi + 0x480]
call fcn.14004bc80
mov rcx, qword [rsi + 0x480]
mov rdi, rax
call fcn.14004bc80
mov rcx, rax
mov rbx, rax
call qword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbx
lea r8, [0x140336118]
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.14004ebd0
lea r9, [rbp + 0x170]
mov edx, 0x104
lea r8, [0x1403361a0]
lea rcx, [rsp + 0x60]
call fcn.14004ebd0
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x208
call fcn.14027b2c0
lea r8, [rsp + 0x60]
mov rdx, rdi
lea rcx, [0x14045e330]
call fcn.1400a8bd0
lea r8, [rsp + 0x60]
mov rdx, rdi
lea rcx, [0x14045e760]
call fcn.1400a8bd0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400a9c20
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400a8d00
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400a91f0
mov rcx, qword [rsi]
lea rax, [rsp + 0x60]
lea r8, [rsi + 0x210]
mov qword [rsp + 0x20], rax
lea rdx, [rsi + 8]
mov r9, rdi
call fcn.1400b6bf0
mov rcx, rsi
call fcn.1400b4bf0
mov r13, qword [rsp + 0x40]
mov rdx, rsi
mov rcx, r13
call fcn.140097d00
mov rbx, qword [rsi + 0x4a8]
test rbx, rbx
je 0x1400985b7
mov rcx, qword [rsi + 0x480]
movzx eax, word [0x14045e53c]
cmp word [rcx], ax
mov rcx, rbx
mov rax, qword [rbx]
jne 0x1400984fa
call qword [rax + gethostname]
mov rax, qword [rbx]
lea r8, [0x140336190]
xor r9d, r9d
lea rdx, [0x1400c6350]
mov rcx, rbx
call qword [rax + 0x268]
lea r8, [0x140336178]
mov rcx, rax
lea rdx, [0x140336160]
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, [0x1403361e8]
xor r9d, r9d
lea rdx, [0x1400c6350]
mov rcx, rbx
call qword [rax + 0x268]
lea r8, [0x1403361d0]
mov rcx, rax
lea rdx, [0x1403361b8]
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, [0x1403361a8]
xor r9d, r9d
lea rdx, [0x1400c6350]
mov rcx, rbx
call qword [rax + 0x268]
lea r8, [0x140336238]
lea rdx, [0x140336220]
jmp 0x1400985aa
call qword [rax + gethostname]
mov rax, qword [rbx]
lea r8, str.labname
xor r9d, r9d
lea rdx, [0x1400c6350]
mov rcx, rbx
call qword [rax + 0x268]
lea r8, [0x1403361f8]
mov rcx, rax
lea rdx, [0x140336290]
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, [0x140336280]
xor r9d, r9d
lea rdx, [0x1400c6350]
mov rcx, rbx
call qword [rax + 0x268]
lea r8, [0x140336268]
mov rcx, rax
lea rdx, [0x140336250]
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, [0x1403362e8]
xor r9d, r9d
lea rdx, [0x1400c6350]
mov rcx, rbx
call qword [rax + 0x268]
lea r8, [0x1403362d0]
lea rdx, [0x1403362b8]
mov r9, qword [rax]
mov rcx, rax
call qword [r9 + 0x290]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x8000000
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
lea r8, [0x1403362a8]
mov r14d, 1
jmp 0x14009866f
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x140098640
lea edx, [rax + 1]
lea r8d, [rax + 3]
lea rcx, [rsp + 0x60]
call fcn.1400526c0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140098625
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [0x140084880]
mov rcx, rax
call fcn.140052980
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
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.14004ebd0
mov r13, qword [rsp + 0x40]
jmp 0x140098680
lea r8, [0x1403360a0]
jmp 0x14009866f
lea r8, str._rN_e
mov edx, 0x104
lea rcx, [rbp + 0x170]
call fcn.14004ebd0
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 0x1400986c8
mov rcx, qword [r13 + 8]
lea rdx, [rbp + 0x170]
mov r8d, 0xa
call fcn.140084fe0
mov eax, r14d
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x4b0
pop r14
pop r13
pop rbp
ret