Function at 0x140006a70
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
xor esi, esi
cmp qword [rcx + 0x28], rsi
jne 0x140006ac7
call fcn.140004d60
lea r8, str.atom::kernel::Loader::CreateRegistry
lea rdx, str._s:_m_path_is_not_valid_
mov rcx, rax
call fcn.140004e20
xor al, al
jmp 0x140006d8b
mov qword [rbp + 0x47], rsi
lea rax, [rbp + 0x47]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
je 0x140006b1c
call fcn.140004d60
mov r9d, edi
lea r8, str.atom::kernel::Loader::CreateRegistry
lea rdx, str._s:_RegOpenKeyExW__HKEY_LOCAL_MACHINE__SYSTEMCurrentControlSetServices___error___0x_08X_
mov rcx, rax
call fcn.140004e20
xor bl, bl
jmp 0x140006d79
mov qword [rbp + 0x1f], rsi
lea rdx, [rbx + 0x38]
cmp qword [rdx + 0x18], 8
jb 0x140006b2e
mov rdx, qword [rdx]
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 0x47]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
je 0x140006b88
call fcn.140004d60
mov r9d, edi
lea r8, str.atom::kernel::Loader::CreateRegistry
lea rdx, str._s:_RegCreateKeyExW__Nal___error___0x_08X_
mov rcx, rax
call fcn.140004e20
xor bl, bl
jmp 0x140006d69
mov dword [rbp + 0x17], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
je 0x140006bf4
call fcn.140004d60
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 4
mov r9d, 1
lea r8, str.atom::kernel::Loader::CreateRegistry
lea rdx, str._s:_RegSetValueExW__Type__0x_08X__0x_08X___error___0x_08X_
mov rcx, rax
call fcn.140004e20
xor bl, bl
jmp 0x140006d69
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], 4
movabs rax, 0x5c003f003f005c
mov qword [rbp - 9], rax
mov word [rbp - 1], si
lea rdx, [rbx + 0x18]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x140006c28
mov rdx, qword [rdx]
lea rcx, [rbp - 9]
call fcn.1400032c0
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x37], rsi
mov qword [rbp + 0x3f], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x27], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x37], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140006c9e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006c99
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006c99
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ec90
mov eax, dword [rbp + 0x37]
lea ebx, [rax*2 + 2]
lea rax, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rax, qword [rbp + 0x27]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
je 0x140006d14
call fcn.140004d60
lea r9, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae r9, qword [rbp + 0x27]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
lea r8, str.atom::kernel::Loader::CreateRegistry
lea rdx, str._s:_RegSetValueExW__ImagePath___S__0x_08X___error___0x_08X_
mov rcx, rax
call fcn.140004e20
xor bl, bl
jmp 0x140006d16
mov bl, 1
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x140006d59
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006d54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006d54
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ec90
mov qword [rbp + 0x37], rsi
mov qword [rbp + 0x3f], 7
mov word [rbp + 0x27], si
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
jle 0x140006d79
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp + 0x47]
test rcx, rcx
jle 0x140006d88
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14000ec70
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret