Function at 0x140001790
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 [section..data]
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 0x140001ac6
mov qword [rsp + 0x118], rdi
lea rdx, str.RTCore64
mov r8d, 0x10
mov qword [rsp + 0x110], rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140001819
lea rdx, str.RTCore64
lea rcx, str.____s_service_already_registered_n
call fcn.140001010
jmp 0x140001a0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140001a95
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 0x140001a86
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 0x140001a00
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140001a00
mov edx, dword [rbp - 0x49]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140001a00
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 0x1400019de
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 0x1400019de
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 0x1400019d4
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 0x140001a00
lea rdx, str.RTCore64
lea rcx, str.____s_service_ACL_to_everyone_n
call fcn.140001010
jmp 0x140001a0c
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 0x140001a3c
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 0x140001aa9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140001a67
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 0x140001aa9
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 0x140001aa9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_service_install___CreateService__0x_08x__n
jmp 0x140001aa2
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 0x140001ae0
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.140002ad0
add rsp, 0xf0
pop r14
pop rsi
pop rbp
ret