Function at 0x140005890
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
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140018af8]
xor rax, rsp
mov qword [rbp + 8], rax
mov rsi, rcx
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
lea r8d, [r14 + 0x22]
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rbp - 0x38]
call fcn.1400015b0
nop
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp word [rsi + r8*2], 0
jne 0x1400058f2
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.140009a80
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x14000597a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005975
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005975
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cb60
movdqa xmm0, xmmword [0x140010bf0]
movdqu xmmword [rbp - 0x28], xmm0
mov word [rbp - 0x38], r14w
mov rcx, rsi
call fcn.140005f80
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x60]
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
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov r15d, eax
test eax, eax
jne 0x140005cd5
mov rbx, qword [rsp + 0x60]
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 8], xmm1
lea r8d, [rax + 0x1d]
lea rdx, str.SystemRootSystem32drivers_
lea rcx, [rbp - 0x18]
call fcn.1400015b0
nop
nop word [rax + rax]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x140005a10
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp - 0x18]
call fcn.140009a80
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rbp - 0x80]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x140005aa3
lea rax, [rcx + 4]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
cmp rdx, 8
cmovae rax, qword [rsp + 0x68]
movabs rdx, 0x7300790073002e
mov qword [rax + rcx*2], rdx
mov word [rax + rcx*2 + 8], r14w
lea rax, [rsp + 0x68]
jmp 0x140005ac8
mov qword [rsp + 0x20], 4
lea r9, str..sys
movzx r8d, byte [rsp + 0x58]
mov edx, 4
lea rcx, [rsp + 0x68]
call fcn.140002080
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov eax, dword [rbp - 0x68]
add eax, eax
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r15d, eax
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140005b71
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b6c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b6c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cb60
movdqa xmm0, xmmword [0x140010bf0]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r14w
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140005bc7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005bc2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005bc2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cb60
movdqa xmm0, xmmword [0x140010bf0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r14w
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x140005c1e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005c19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cb60
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or r15d, eax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or r15d, eax
mov dword [rsp + 0x50], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or r15d, eax
mov rcx, qword [rsp + 0x60]
je 0x140005d16
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.140005f80
mov r14d, r15d
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140005d23
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005d1e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140005cd8
call fcn.14000cb60
mov eax, r14d
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.14000cdc0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret