Function at 0x140007110
Capabilities:
Create service
Start service

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x14004a028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [r11 - 0x58], rcx
mov qword [r11 - 0x50], rdx
mov qword [r11 - 0x48], r8
xor r12b, r12b
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
mov qword [rsp + 0x70], rax
xor r13d, r13d
movzx r15d, byte [rsp + 0x120]
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x140007182
mov rax, qword [rsi]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000718f
mov r8, qword [rdi]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000719c
mov rdx, qword [rbx]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0x10030
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbp, rax
test rax, rax
jne 0x14000726b
test r15b, r15b
je 0x140007256
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400071fc
mov rdx, qword [rbx]
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x90], 7
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140007220
lea rcx, [rsp + 0x78]
call fcn.14000b1c0
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
call fcn.140006e90
mov r14, qword [rsp + 0x70]
test al, al
jne 0x140007175
jmp 0x14000729e
lea rdx, str._x__Unable_to_create_service.__there_is_already_a_registered_service__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000cf70
jmp 0x14000729e
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x140007292
lea rdx, str._x__Service_cannot_be_run._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000cf70
jmp 0x140007295
mov r12b, 1
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x1400072e7
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400072e2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400073c0
mov rcx, r8
call fcn.140021ae8
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 7
mov word [rsi], r13w
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140007336
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140007331
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400073c7
mov rcx, r8
call fcn.140021ae8
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140007381
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000737c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400073ce
mov rcx, r8
call fcn.140021ae8
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 7
mov word [rdi], r13w
movzx eax, r12b
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140021690
mov rbx, qword [rsp + 0x118]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3