Function at 0x14002ec10
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc10]
sub rsp, 0xd10
mov rax, qword [0x1400e00c0]
xor rax, rsp
mov qword [rbp + 0xc00], rax
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x54], r14d
call fcn.14004d420
lea rax, [0x1400bed40]
mov qword [rbp - 0x80], rax
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x58], r14
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x60], xmm0
mov dword [rsp + 0x54], 1
lea r13, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x28], r13
mov dword [rbp + 0x24], 0x98
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x28]
call fcn.140025c60
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], r12
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.140025bd0
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x78], rax
mov byte [rbp + 4], r14b
mov byte [rbp - 7], r14b
lea rax, [rbp - 0x70]
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x68]
mov qword [rbp - 0x58], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x48]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x2c]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x50], r14
mov qword [rbp + 8], r14
mov rax, qword [0x1400e5630]
mov qword [rbp - 4], rax
mov qword [rbp - 0x10], r14
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xb4], xmm0
movups xmmword [rbp + 0xc4], xmm0
movups xmmword [rbp + 0xd4], xmm0
movups xmmword [rbp + 0xe4], xmm0
movups xmmword [rbp + 0xf4], xmm0
movups xmmword [rbp + 0x104], xmm0
mov dword [rbp + 0x114], eax
mov dword [rbp + 0xb0], 0x68
movdqu xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], r14
mov rax, qword [rbx + 0x2e0]
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
cmp rcx, 0x20
jb 0x14002edc6
lea rcx, str.___________Deletions_of_Scheduled_Tasks_Started_____________
call fcn.1400262b0
lea r8, [rbp + 0x90]
mov rdx, qword [rbx + 0x2e0]
xor ecx, ecx
call fcn.14000f400
lea rcx, str.___________Deletions_of_Scheduled_Tasks_Ended_____________
call fcn.1400262b0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x160], r14
mov qword [rbp + 0x170], r14
mov esi, 7
mov qword [rbp + 0x178], rsi
mov word [rbp + 0x160], r14w
mov qword [rbp + 0x140], r14
mov qword [rbp + 0x150], r14
mov qword [rbp + 0x158], rsi
mov word [rbp + 0x140], r14w
lea rdx, [rbp + 0x3b0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14002ef22
lea rax, [rbp + 0x3b0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14002ee40
lea rdx, [rbp + 0x3b0]
lea rcx, [rbp + 0x160]
call fcn.1400027d0
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp + 0x170]
sub rax, rcx
cmp rax, 0xc
jb 0x14002f576
lea r9, [rbp + 0x160]
cmp qword [rbp + 0x178], 8
cmovae r9, qword [rbp + 0x160]
mov qword [rsp + 0x30], 0xc
lea rax, str.safemode.bat
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x180]
call fcn.140018a00
mov rdx, qword [rbp + 0x158]
cmp rdx, 8
jb 0x14002eeff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002eefa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f57c
call fcn.140070654
movups xmm0, xmmword [rbp + 0x180]
movups xmmword [rbp + 0x140], xmm0
movups xmm1, xmmword [rbp + 0x190]
movups xmmword [rbp + 0x150], xmm1
mov rsi, qword [rbp + 0x178]
lea rcx, [rbp + 0x140]
cmp qword [rbp + 0x158], 8
cmovae rcx, qword [rbp + 0x140]
mov ebx, 6
lea r15d, [rbx - 4]
cmp qword [rbp + 8], 0
jne 0x14002efe3
lea r8d, [rbx + 0x3a]
mov edx, r15d
call fcn.14006ecd0
test rax, rax
je 0x14002efe3
lea r8d, [rbx - 5]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.1400403e0
mov rax, qword [rbp - 0x18]
mov rdi, qword [rax + 8]
mov qword [rbp + 0x188], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + VariantCopy]
nop
lea rcx, [rbp + 0x180]
call fcn.140042270
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14003ff80
nop
test rdi, rdi
je 0x14002efc6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test rax, rax
je 0x14002efc6
mov rcx, qword [rax]
mov r8, qword [rcx]
lea edx, [rbx - 5]
mov rcx, rax
call r8
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx - 0x80]
mov edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, r14d
jmp 0x14002effe
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx - 0x80]
mov edx, ebx
cmp qword [rcx + 0x48], 0
cmovne edx, r15d
or edx, dword [rcx + 0x10]
xor r8d, r8d
call fcn.140003ca0
lea rdx, str._echo_off_n
lea rcx, [rbp - 0x80]
call fcn.140025e80
lea rdx, str.bcdedit__set_current_safeboot_network_n
lea rcx, [rbp - 0x80]
call fcn.140025e80
lea rdx, str.shutdown__r__f__t_0_n
lea rcx, [rbp - 0x80]
call fcn.140025e80
lea rcx, [rbp - 0x78]
call fcn.1400404b0
test rax, rax
jne 0x14002f069
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
cmp qword [rcx + 0x48], 0
cmovne ebx, r15d
or ebx, dword [rcx + 0x10]
xor r8d, r8d
mov edx, ebx
call fcn.140003ca0
mov qword [rbp + 0x120], r14
mov qword [rbp + 0x130], r14
mov qword [rbp + 0x138], 7
mov word [rbp + 0x120], r14w
mov word [rbp + 0x1a0], r14w
mov dword [rsp + 0x50], r14d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14002f0a4
mov rdx, rax
lea rcx, [rbp + 0x120]
call fcn.1400027d0
lea rcx, [rbp + 0x120]
cmp qword [rbp + 0x138], 8
cmovae rcx, qword [rbp + 0x120]
lea rdx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
lea rcx, [rbp + 0x120]
cmp qword [rbp + 0x138], 8
cmovae rcx, qword [rbp + 0x120]
mov qword [rbp + 0x130], r14
mov word [rcx], r14w
mov r8d, 1
lea rdx, [0x1400bf9d8]
lea rcx, [rbp + 0x120]
call fcn.140014b80
mov r8d, 0x104
lea rdx, [rbp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rbp + 0x1a0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14002f141
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x120]
call fcn.140014b80
mov r8d, 1
lea rdx, [0x1400bf9d8]
lea rcx, [rbp + 0x120]
call fcn.140014b80
mov edi, 1
cmp dword [rsp + 0x50], edi
jle 0x14002f1d6
add rbx, 8
nop word [rax + rax]
mov r8d, 1
lea rdx, [0x1400be6b0]
lea rcx, [rbp + 0x120]
call fcn.140014b80
mov rdx, qword [rbx]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14002f1b3
lea rcx, [rbp + 0x120]
call fcn.140014b80
inc edi
add rbx, 8
cmp edi, dword [rsp + 0x50]
jl 0x14002f190
lea rdx, [rbp + 0x120]
cmp qword [rbp + 0x138], 8
cmovae rdx, qword [rbp + 0x120]
lea rcx, str.___________Creating_Runonce_registry_to_launch_cleanup_after_safe_boot___________Buffer_value:__s_____________
call fcn.1400262b0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002f232
lea rcx, str.___________Runonce_Key_opened_successfully_____________
call fcn.1400262b0
jmp 0x14002f27d
lea rcx, str.___________Creating_Runonce_Key______________
call fcn.1400262b0
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002f2ea
lea rcx, [rbp + 0x120]
cmp qword [rbp + 0x138], 8
cmovae rcx, qword [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
lea rcx, [rbp + 0x120]
cmp qword [rbp + 0x138], 8
mov dword [rsp + 0x28], eax
cmovae rcx, qword [rbp + 0x120]
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.AMD_CLEANUP_UTILITY
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, eax
lea rcx, str.___________Setting_value::Result:__d_____________
call fcn.1400262b0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x5c0]
call fcn.140072740
mov edx, 0x104
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor edx, edx
mov r8d, 0x430
lea rcx, [rbp + 0x7d0]
call fcn.140072740
lea rax, [rbp + 0x140]
cmp qword [rbp + 0x158], 8
cmovae rax, qword [rbp + 0x140]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x5c0]
lea r8, str.__scmd.exe___C___s_
mov edx, 0x218
lea rcx, [rbp + 0x7d0]
call fcn.140041e70
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x7d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14002f3b3
lea rcx, str.Couldnt_set_to_safemode
call fcn.1400262b0
jmp 0x14002f3da
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x138]
cmp rdx, 8
jb 0x14002f420
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f41b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f57c
call fcn.140070654
mov qword [rbp + 0x130], r14
mov qword [rbp + 0x138], 7
mov word [rbp + 0x120], r14w
mov rdx, qword [rbp + 0x158]
cmp rdx, 8
jb 0x14002f480
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f47b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f582
call fcn.140070654
mov qword [rbp + 0x150], r14
mov qword [rbp + 0x158], 7
mov word [rbp + 0x140], r14w
cmp rsi, 8
jb 0x14002f4da
lea rdx, [rsi*2 + 2]
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f4d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f570
call fcn.140070654
nop
lea rcx, [rbp + 0x90]
call fcn.1400026d0
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], r12
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.14003d560
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], r13
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x7c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x28]
call fcn.14006dd54
nop
mov rcx, qword [rbp + 0xc00]
xor rcx, rsp
call fcn.140070140
lea r11, [rsp + 0xd10]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14007d0fc
nop
call fcn.1400020a0
int3
call fcn.14007d0fc
nop
call fcn.14007d0fc
int3