Function at 0x180025d50
Capabilities:
Create directory
Delete file
Get common file path
Get file attributes
Query environment variable
Set file attributes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1b8]
sub rsp, 0x2b0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rdi, rcx
mov rbx, qword [0x1800a0128]
mov dword [rbp - 0x80], 0x18
xor r9d, r9d
lea r8, [rbp - 0x78]
lea edx, [r9 + 1]
lea rcx, str.D:_A__GA___WD__A_OICIIO_GA___WD_
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.18004b570
mov r8d, 0x104
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, str.inst.dat
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.1800507a4
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x60]
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x180025e00
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1800266c0
cmp byte [rsp + 0x40], 0
je 0x180025f0e
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rbx, qword [rsp + 0x48]
lea rcx, [rdi + 0x10]
mov r8, rbx
lea rdx, [0x180083490]
call qword [sym.imp.USER32.dll_wsprintfW]
mov byte [rdi + 0x218], 1
lea rcx, [rdi + 0x219]
mov edx, 4
nop dword [rax]
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rbx + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rbx, [rbx + 0x80]
sub rdx, 1
jne 0x180025e70
mov rax, qword [rbx]
mov qword [rcx], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18002654c
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180025f04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002657b
call fcn.18002aef0
jmp 0x18002654c
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x180025f4b
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180025f46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180026581
call fcn.18002aef0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.18004b570
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, 0x104
lea rdx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, str.inst.dat
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.1800507a4
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x60]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x180025fa6
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1800266c0
cmp byte [rsp + 0x40], 0
je 0x1800260af
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rbx, qword [rsp + 0x48]
lea rcx, [rdi + 0x10]
mov r8, rbx
lea rdx, [0x180083490]
call qword [sym.imp.USER32.dll_wsprintfW]
mov byte [rdi + 0x218], 1
lea rcx, [rdi + 0x219]
mov edx, 4
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rbx + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rbx, [rbx + 0x80]
sub rdx, 1
jne 0x180026012
mov rax, qword [rbx]
mov qword [rcx], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18002654c
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180025f04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002656f
jmp 0x180025f04
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1800260ec
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800260e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180026587
call fcn.18002aef0
movups xmm0, xmmword [str.GlobalSystemInstallConfig007]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [0x1800834a8]
movups xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [0x1800834b8]
movups xmmword [rsp + 0x60], xmm0
movsd xmm1, qword [0x1800834c8]
movsd qword [rsp + 0x70], xmm1
mov eax, dword [0x1800834d0]
mov dword [rsp + 0x78], eax
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180026211
mov qword [rsp + 0x20], 0x208
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
je 0x180026211
lea rcx, [rdi + 0x10]
mov r8, rax
lea rdx, [0x180083490]
call qword [sym.imp.USER32.dll_wsprintfW]
mov byte [rdi + 0x218], 1
lea rcx, [rdi + 0x219]
mov rax, r14
mov edx, 4
nop
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x1800261a0
mov rax, qword [rax]
mov qword [rcx], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x18002654c
test rsi, rsi
je 0x180026220
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.18004b570
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor esi, esi
mov word [rbp - 0x5c], si
lea r8, str.ProgramData
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.1800507a4
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, str.inst.dat
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.1800507a4
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x60]
mov rax, rbx
nop
inc rax
cmp word [rcx + rax*2], si
jne 0x180026290
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1800266c0
cmp byte [rsp + 0x40], sil
je 0x18002639d
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rbx, qword [rsp + 0x48]
lea rcx, [rdi + 0x10]
mov r8, rbx
lea rdx, [0x180083490]
call qword [sym.imp.USER32.dll_wsprintfW]
mov byte [rdi + 0x218], 1
lea rcx, [rdi + 0x219]
mov edx, 4
nop dword [rax + rax]
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rbx + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rbx, [rbx + 0x80]
sub rdx, 1
jne 0x180026300
mov rax, qword [rbx]
mov qword [rcx], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18002654c
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180025f04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180026575
jmp 0x180025f04
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1800263da
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800263d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180026569
call fcn.18002aef0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.18004b570
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov word [rbp - 0x5c], si
lea r8, str.ProgramData
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.1800507a4
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 2
mov edx, eax
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea r8, str.InstallAtomx
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.1800507a4
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [rbp - 0x60]
lea rdx, [0x180083490]
lea rcx, [rdi + 0x10]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rbp - 0x60]
lea rdx, [0x180083490]
lea rcx, [rdi + 0x219]
call qword [sym.imp.USER32.dll_wsprintfW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
lea r8, [rdi + 0x10]
lea rdx, str._s_access__x.log
lea rcx, [rbp - 0x60]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
inc rbx
cmp word [rax + rbx*2], si
jne 0x1800264b5
mov qword [rsp + 0x38], rbx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, 0x208
lea rdx, [rdi + 0x219]
lea rcx, [rsp + 0x30]
call fcn.180026940
test al, al
jne 0x18002653b
mov r8d, 0x208
lea rdx, [rbp - 0x60]
lea rcx, str._TEMP_Low
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [rbp - 0x60]
lea rdx, [0x180083490]
lea rcx, [rdi + 0x10]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rbp - 0x60]
lea rdx, [0x180083490]
lea rcx, [rdi + 0x219]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [rdi + 0x218], 1
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.18004df84
int3
call fcn.18004df84
int3
call fcn.18004df84
int3
call fcn.18004df84
int3
call fcn.18004df84
int3
call fcn.18004df84
int3