Function at 0x140012860
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140150a10]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x208
call fcn.1400ae360
mov r8d, 0x104
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x30]
call qword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
xor edx, edx
xor ecx, ecx
mov r8d, 0x40000000
mov r14b, 1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
je 0x140012cdd
cmp qword [rbx + 0x40], 8
lea rdi, [rbx + 0x28]
mov r8, rdi
jb 0x1400128f2
mov r8, qword [rdi]
add rbx, 8
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140012903
mov rdx, qword [rbx]
xor r12d, r12d
lea rax, [rbp - 0x30]
mov qword [rsp + 0x60], r12
mov r9d, 0xf01ff
mov qword [rsp + 0x58], r12
mov rcx, r15
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x20
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x78], rax
mov rsi, rax
test rax, rax
jne 0x140012b3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
cmp eax, 0x431
je 0x1400129ae
lea ecx, [rsi + 5]
call fcn.14009c140
test eax, eax
je 0x1400129ae
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9d, [r12 + 0x36]
lea rax, str.CreateService_failed_with_error__lu
lea r8, str.Intel::WindowsService::install
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
lea ecx, [rsi + 5]
call fcn.14000aa30
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1400129bb
mov rdx, qword [rbx]
mov r8d, 0xf01ff
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x78], rax
mov rsi, rax
test rax, rax
jne 0x140012a81
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rsi + 5]
mov dword [rsp + 0x70], eax
call fcn.14009c140
test eax, eax
je 0x140012a21
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9d, [rsi + 0x3d]
lea rax, str.OpenService_failed_with_error__lu
lea r8, str.Intel::WindowsService::install
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
lea ecx, [rsi + 5]
call fcn.14000aa30
xor r14b, r14b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 5
mov dword [rsp + 0x70], eax
call fcn.14009c140
test eax, eax
je 0x140012cd2
mov r9d, 0x6f
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::install
lea rax, str.Failed_to_create_service:__lu
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
mov qword [rsp + 0x20], rax
lea ecx, [r9 - 0x6a]
call fcn.14000aa30
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140012d2b
mov qword [rsp + 0x50], r12
mov edx, 0xffffffff
mov qword [rsp + 0x48], r12
mov r9d, edx
mov qword [rsp + 0x40], r12
mov r8d, 2
mov qword [rsp + 0x38], r12
mov rcx, rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ecx, 6
test eax, eax
je 0x140012af8
call fcn.14009c140
test eax, eax
je 0x140012b3e
mov r9d, 0x44
lea rax, str.Service_has_been_set_to_auto_start
lea r8, str.Intel::WindowsService::install
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
lea ecx, [r9 - 0x3e]
call fcn.14000a9d0
jmp 0x140012b3e
call fcn.14009c140
test eax, eax
je 0x140012b3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
mov r9d, 0x48
lea r8, str.Intel::WindowsService::install
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
lea rax, str.Not_able_to_set_service_to_auto_start__error___lu
lea ecx, [r9 - 0x42]
mov qword [rsp + 0x20], rax
call fcn.14000aa30
mov ecx, 6
call fcn.14009c140
test eax, eax
je 0x140012b91
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x140012b59
mov rax, qword [rbx]
mov qword [rsp + 0x70], rax
lea r8, str.Intel::WindowsService::install
mov r9d, 0x4f
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
lea rax, str.Service__ls_installed_or_opened_successfuly_into_SCM
mov qword [rsp + 0x20], rax
lea ecx, [r9 - 0x49]
call fcn.14000aaa0
lea r8, [rbp - 0x50]
mov dword [rbp - 0x50], r12d
mov edx, 3
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 6
mov dword [rsp + 0x70], eax
call fcn.14009c140
test eax, eax
je 0x140012bf2
mov r9d, 0x54
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::install
lea rax, str.Change_service_to_delay_start__result:__lu
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
mov qword [rsp + 0x20], rax
lea ecx, [r9 - 0x4e]
call fcn.14000aa30
cmp qword [rdi + 0x18], 8
jb 0x140012bfc
mov rdi, qword [rdi]
lea r8, [rbp - 0x80]
mov qword [rbp - 0x80], rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
xorps xmm0, xmm0
mov qword [rbp - 0x48], 1
lea rax, [rbp - 0x48]
mov dword [rbp - 0x40], 1
lea r8, [rbp - 0x78]
mov qword [rbp - 0x58], rax
mov edx, 2
mov qword [rbp - 0x3c], 0x3a98
mov rcx, rsi
mov dword [rbp - 0x34], r12d
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x78], 0x15180
mov qword [rbp - 0x60], 3
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov r8d, 1
lea rdx, [rsp + 0x78]
call fcn.140013cc0
test al, al
jne 0x140012cc7
mov ecx, 6
call fcn.14009c140
test eax, eax
je 0x140012cc3
cmp qword [rbx + 0x18], 8
jb 0x140012c8b
mov rbx, qword [rbx]
mov r9d, 0x65
mov qword [rsp + 0x78], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::install
lea rax, str.Failed_to_enable_the_lockdown_of_service__ls.
lea ecx, [r9 - 0x5f]
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
call fcn.14000aaa0
xor al, al
jmp 0x140012d2f
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140012d2b
xor r14b, r14b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 5
mov dword [rsp + 0x70], eax
call fcn.14009c140
test eax, eax
je 0x140012d2b
mov r9d, 0x77
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r8, str.Intel::WindowsService::install
lea rax, str.Failed_to_open_SCM:__lu
lea rdx, str.E:BT84f93cf4_3aa9_4a85_9be2_79e782bf7724WSSModularizationCore_srcModuleCoreServiceModuleCoreServiceImplWindowsService.cpp
mov qword [rsp + 0x20], rax
lea ecx, [r9 - 0x72]
call fcn.14000aa30
movzx eax, r14b
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400ab6c0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret