Function at 0x180001c10
Capabilities:
Create directory
Delete file
Get common file path
Get file attributes
Query environment variable
Set file attributes
Write file on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
xor r9d, r9d
mov dword [rbp - 0x70], 0x18
mov rbx, rdx
lea r8, [rbp - 0x68]
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 - 0x50]
mov r8d, 0x208
call fcn.180024ab0
mov r8d, 0x104
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, str.inst.dat
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.1800277e4
lea rax, [rbp - 0x50]
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x50]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x180001ca2
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.1800031d0
cmp byte [rsp + 0x50], 0
je 0x180001db5
cmp qword [rsp + 0x70], 0x10
lea rbx, [rsp + 0x58]
lea rcx, [rdi + 0x10]
cmovae rbx, qword [rsp + 0x58]
lea rdx, [0x18003e3b8]
mov r8, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rdi + 0x219]
mov byte [rdi + 0x218], 1
mov edx, 4
nop
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 0x180001d10
mov rdx, qword [rsp + 0x70]
mov rax, qword [rbx]
mov qword [rcx], rax
cmp rdx, 0x10
jb 0x180002459
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001da5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000246a
call fcn.180005cf4
add rsp, 0x2c0
pop rdi
pop rbx
pop rbp
ret
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x180001df2
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001ded
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000246a
call fcn.180005cf4
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x208
call fcn.180024ab0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
lea rdx, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, str.inst.dat
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.1800277e4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rcx, [rbp - 0x50]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x180001e50
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.1800031d0
cmp byte [rsp + 0x50], 0
je 0x180001f65
cmp qword [rsp + 0x70], 0x10
lea rbx, [rsp + 0x58]
lea rcx, [rdi + 0x10]
cmovae rbx, qword [rsp + 0x58]
lea rdx, [0x18003e3b8]
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 0x180001ec0
mov rdx, qword [rsp + 0x70]
mov rax, qword [rbx]
mov qword [rcx], rax
cmp rdx, 0x10
jb 0x180002459
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001f55
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002470
call fcn.180005cf4
add rsp, 0x2c0
pop rdi
pop rbx
pop rbp
ret
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x180001fa2
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001f9d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002470
call fcn.180005cf4
movups xmm0, xmmword [str.GlobalSystemInstallConfig007]
mov eax, dword [0x18003e3f8]
lea r8, [rsp + 0x50]
movups xmm1, xmmword [0x18003e3d0]
mov qword [rsp + 0x2e0], rsi
xor edx, edx
movups xmmword [rsp + 0x50], xmm0
mov ecx, 0xf001f
mov qword [rsp + 0x2e8], r14
movups xmm0, xmmword [0x18003e3e0]
mov dword [rbp - 0x78], eax
movups xmmword [rsp + 0x60], xmm1
movsd xmm1, qword [0x18003e3f0]
movups xmmword [rsp + 0x70], xmm0
movsd qword [rbp - 0x80], xmm1
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rsi, rax
test rax, rax
je 0x1800020df
cmp rax, rbx
je 0x1800020d6
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 0x1800020d6
lea rcx, [rdi + 0x10]
mov r8, rax
lea rdx, [0x18003e3b8]
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 0x180002066
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 0x180002449
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov qword [rsp + 0x2f8], r15
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.180024ab0
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor r15d, r15d
lea r8, str.ProgramData
mov edx, 0x104
mov word [rbp - 0x4c], r15w
lea rcx, [rbp - 0x50]
call fcn.1800277e4
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, str.inst.dat
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.1800277e4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x180002154
mov qword [rsp + 0x48], rbx
lea rdx, [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.1800031d0
cmp byte [rsp + 0x50], r15b
je 0x18000225f
cmp qword [rsp + 0x70], 0x10
lea rbx, [rsp + 0x58]
lea rcx, [rdi + 0x10]
cmovae rbx, qword [rsp + 0x58]
lea rdx, [0x18003e3b8]
mov r8, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rdi + 0x219]
mov byte [rdi + 0x218], 1
mov edx, 4
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 0x1800021c0
mov rdx, qword [rsp + 0x70]
mov rax, qword [rbx]
mov qword [rcx], rax
cmp rdx, 0x10
jb 0x180002441
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002255
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002464
call fcn.180005cf4
jmp 0x180002441
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x18000229c
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002297
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002464
call fcn.180005cf4
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x208
call fcn.180024ab0
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.ProgramData
mov word [rbp - 0x4c], r15w
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.1800277e4
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 2
lea rcx, [rbp - 0x50]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea r8, str.InstallAtomx
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.1800277e4
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [rbp - 0x50]
lea rdx, [0x18003e3b8]
lea rcx, [rdi + 0x10]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rbp - 0x50]
lea rdx, [0x18003e3b8]
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 - 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp - 0x50]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
je 0x1800023de
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x1800023d8
lea r9, [rbp + 0x1f0]
mov dword [rbp + 0x1f0], r15d
mov r8d, 0x208
mov qword [rsp + 0x20], r15
lea rdx, [rdi + 0x219]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002430
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x208
lea rdx, [rbp - 0x50]
lea rcx, str._TEMP_Low
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [rbp - 0x50]
lea rdx, [0x18003e3b8]
lea rcx, [rdi + 0x10]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rbp - 0x50]
lea rdx, [0x18003e3b8]
lea rcx, [rdi + 0x219]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [rdi + 0x218], 1
mov r15, qword [rsp + 0x2f8]
mov rsi, qword [rsp + 0x2e0]
mov r14, qword [rsp + 0x2e8]
add rsp, 0x2c0
pop rdi
pop rbx
pop rbp
ret
call fcn.18002776c
int3
call fcn.18002776c
int3
call fcn.18002776c
int3