Function at 0x1000a240
Capabilities:
Create service
Delete service
Modify service
Persist via windows service

Disassembly:
push 0xffffffffffffffff
push 0x1001abc0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10023050]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x54]
push 0xf01ff
mov eax, 1
push edi
push ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x1000a29d
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push ebx
push ebx
push str.RpcSs
push ebx
push str.COM_Infrastructure
push eax
mov esi, 1
push esi
push 2
push 0x110
push 0xf01ff
push ecx
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
cmp edi, ebx
je 0x1000a41a
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push 2
lea edx, [esp + 0x30]
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jne 0x1000a350
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeServiceConfig2_error__d
push ebx
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x10
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push esi
call fcn.1000a4a0
cmp eax, ebx
jne 0x1000a37d
mov ecx, dword [esp + 0x64]
push ecx
push esi
push str.WriteReg_DisplayName_error__s_the_reg_is__s
push ebx
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x14
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x5c], esp
mov esi, esp
call fcn.1000c1b0
add eax, 0x10
mov dword [esi], eax
call fcn.1000a620
cmp eax, ebx
jne 0x1000a3c2
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
push eax
push ecx
push str.BackupRegistry_error__s_the_reg_is__s
push ebx
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x14
mov ebp, dword [esp + 0x6c]
cmp ebp, ebx
je 0x1000a408
mov eax, dword [esp + 0x60]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x58], esp
mov esi, esp
call fcn.1000c1b0
add eax, 0x10
mov dword [esi], eax
mov eax, ebp
call fcn.1000a820
cmp eax, ebx
jne 0x1000a408
mov edx, dword [esp + 0x60]
push ebp
push edx
push str.RestoreRegistry_error__s_the_reg_is__s
push ebx
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x14
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
jmp 0x1000a43a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_error_RsMgrSvcBackup__d
push ebx
push 4
mov esi, 0x10023490
call fcn.10003ad0
mov esi, dword [esp + 0x64]
add esp, 0x10
mov byte [esp + 0x4c], bl
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a45e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a486
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x1c