Function at 0x1400010d0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push rbp
push rsi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x140056008]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, r8
lea rdx, str.ServicesActive
mov r8d, 3
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x140001406
mov qword [rsp + 0x110], rbx
lea rdx, str.RTCore64
mov r8d, 0x10
mov qword [rsp + 0x118], rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140001159
lea rdx, str.RTCore64
lea rcx, str.____s_service_already_registered_n
call fcn.140001010
jmp 0x14000134c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x1400013d5
lea rdx, str.RTCore64
lea rcx, str.____s_service_not_present_n
call fcn.140001010
xor ebx, ebx
lea r8, str.Micro_Star_MSI_Afterburner
mov qword [rsp + 0x60], rbx
lea rdx, str.RTCore64
mov qword [rsp + 0x58], rbx
mov r9d, 0x60010
mov qword [rsp + 0x50], rbx
mov rcx, r14
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x1400013c6
lea rdx, str.RTCore64
lea rcx, str.____s_service_successfully_registered_n
call fcn.140001010
lea rax, [rbp - 0x49]
mov dword [rbp - 9], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rbp - 1]
mov word [rbp - 5], 0x100
lea edx, [rbx + 4]
mov dword [rbp - 0x39], 0x201fd
mov rcx, rdi
mov qword [rbp - 0x35], 2
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], rbx
mov dword [rbp - 0x19], 5
mov qword [rbp - 0x11], rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceObjectSecurity]
test eax, eax
jne 0x140001340
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140001340
mov edx, dword [rbp - 0x49]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140001340
mov r9d, dword [rbp - 0x49]
lea rax, [rbp - 0x49]
mov r8, rsi
mov qword [rsp + 0x20], rax
lea edx, [rbx + 4]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceObjectSecurity]
test eax, eax
je 0x14000131e
lea rax, [rbp - 0x11]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 9]
mov dword [rsp + 0x48], ebx
xor r8d, r8d
mov dword [rsp + 0x40], ebx
mov dl, 1
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000131e
lea rax, [rbp - 0x41]
xor edx, edx
mov qword [rsp + 0x40], rax
lea r9, [rbp - 0x39]
lea rax, [rbp - 0x49]
xor ecx, ecx
mov qword [rsp + 0x38], rax
lea r8d, [rbx + 1]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_BuildSecurityDescriptorW]
test eax, eax
jne 0x140001314
mov r8, qword [rbp - 0x41]
lea edx, [rbx + 4]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_SetServiceObjectSecurity]
mov rcx, qword [rbp - 0x41]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x140001340
lea rdx, str.RTCore64
lea rcx, str.____s_service_ACL_to_everyone_n
call fcn.140001010
jmp 0x14000134c
lea rcx, str.kull_m_service_addWorldToSD
call fcn.140001070
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x14000137c
lea rdx, str.RTCore64
lea rcx, str.____s_service_started_n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400013e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x1400013a7
lea rdx, str.RTCore64
lea rcx, str.____s_service_already_started_n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400013e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_service_install___StartService__0x_08x__n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400013e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_service_install___CreateService__0x_08x__n
jmp 0x1400013e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_service_install___OpenService__0x_08x__n
mov edx, eax
call fcn.140001010
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x118]
xor eax, eax
mov rbx, qword [rsp + 0x110]
jmp 0x140001420
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_service_install___OpenSCManager_create___0x_08x__n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140001560
add rsp, 0xf0
pop r14
pop rsi
pop rbp
ret