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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
xor r9d, r9d
mov dword [rbp - 0x80], 0x18
mov rbx, rdx
lea r8, [rbp - 0x78]
mov rdi, rcx
lea rcx, str.D:_A__GA___WD__A_OICIIO_GA___WD_
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call sub.msvcrt.dll_memset
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.18002b800
lea rax, [rbp - 0x60]
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x60]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1800015e0
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.180003240
cmp byte [rsp + 0x40], 0
je 0x1800016ef
cmp qword [rsp + 0x60], 0x10
lea rbx, [rsp + 0x48]
lea rcx, [rdi + 0x10]
cmovae rbx, qword [rsp + 0x48]
lea rdx, [0x180034cbc]
mov r8, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rdi + 0x219]
mov byte [rdi + 0x218], 1
mov edx, 4
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x180001650
mov rdx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov qword [rcx], rax
cmp rdx, 0x10
jb 0x180001d5e
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800016e5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001d79
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x180001d5e
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18000172c
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001727
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001d79
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
lea rdx, [rbp - 0x60]
mov rcx, rax
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.18002b800
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x60]
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x180001790
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.180003240
cmp byte [rsp + 0x40], 0
je 0x18000189f
cmp qword [rsp + 0x60], 0x10
lea rbx, [rsp + 0x48]
lea rcx, [rdi + 0x10]
cmovae rbx, qword [rsp + 0x48]
lea rdx, [0x180034cbc]
mov r8, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rdi + 0x219]
mov byte [rdi + 0x218], 1
mov edx, 4
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x180001800
mov rdx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov qword [rcx], rax
cmp rdx, 0x10
jb 0x180001d5e
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001895
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001d7f
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x180001d5e
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1800018dc
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800018d7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001d7f
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
movups xmm0, xmmword [str.GlobalSystemInstallConfig007]
mov eax, dword [0x180034d00]
lea r8, [rsp + 0x40]
movups xmm1, xmmword [0x180034cd8]
mov qword [rsp + 0x2c0], rsi
xor edx, edx
movups xmmword [rsp + 0x40], xmm0
mov ecx, 0xf001f
mov qword [rsp + 0x2c8], r14
movups xmm0, xmmword [0x180034ce8]
mov dword [rsp + 0x78], eax
movups xmmword [rsp + 0x50], xmm1
movsd xmm1, qword [0x180034cf8]
movups xmmword [rsp + 0x60], xmm0
movsd qword [rsp + 0x70], xmm1
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rsi, rax
test rax, rax
je 0x180001a1b
cmp rax, rbx
je 0x180001a12
xor r9d, r9d
mov qword [rsp + 0x20], 0x208
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
je 0x180001a12
lea rcx, [rdi + 0x10]
mov r8, rax
lea rdx, [0x180034cbc]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rdi + 0x219]
mov byte [rdi + 0x218], 1
mov rax, r14
mov edx, 4
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1800019a2
mov rax, qword [rax]
mov qword [rcx], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180001d4e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor esi, esi
lea r8, str.ProgramData
mov edx, 0x104
mov word [rbp - 0x5c], si
lea rcx, [rbp - 0x60]
call fcn.18002b800
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.18002b800
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x60]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], si
jne 0x180001a90
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.180003240
cmp byte [rsp + 0x40], sil
je 0x180001b9f
cmp qword [rsp + 0x60], 0x10
lea rbx, [rsp + 0x48]
lea rcx, [rdi + 0x10]
cmovae rbx, qword [rsp + 0x48]
lea rdx, [0x180034cbc]
mov r8, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rdi + 0x219]
mov byte [rdi + 0x218], 1
mov edx, 4
nop dword [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x180001b00
mov rdx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov qword [rcx], rax
cmp rdx, 0x10
jb 0x180001d4e
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001b95
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001d73
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x180001d4e
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x180001bdc
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001bd7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001d73
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.ProgramData
mov word [rbp - 0x5c], si
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.18002b800
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
lea rcx, [rbp - 0x60]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea r8, str.InstallAtomx
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.18002b800
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [rbp - 0x60]
lea rdx, [0x180034cbc]
lea rcx, [rdi + 0x10]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rbp - 0x60]
lea rdx, [0x180034cbc]
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 0x180001cb7
mov qword [rsp + 0x38], rbx
lea rdx, [rdi + 0x219]
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x30]
mov r8d, 0x208
movdqa xmmword [rsp + 0x30], xmm0
call fcn.180001370
test al, al
jne 0x180001d3d
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, [0x180034cbc]
lea rcx, [rdi + 0x10]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rbp - 0x60]
lea rdx, [0x180034cbc]
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
mov rsi, qword [rsp + 0x2c0]
mov r14, qword [rsp + 0x2c8]
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.18002b620
int3
call fcn.18002b620
int3
call fcn.18002b620
int3