Function at 0x140090770
Capabilities:
Continue service
Create service
Delete registry value
Delete service
Set registry value
Start service
Stop service

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x168], rbx
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r15, r8
mov rbx, rdx
mov r14, rcx
lea rcx, [rsp + 0x78]
call fcn.14008fb90
nop
lea rcx, [0x14012ff08]
call fcn.1406a99b2
nop
mov qword [rbp - 0x58], 7
xor edi, edi
mov qword [rbp - 0x60], rdi
mov word [rbp - 0x70], di
cmp word [rax], di
jne 0x1400907df
mov r8d, edi
jmp 0x1400907ed
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x1400907e3
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140007670
nop
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
nop
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
mov r8b, 1
mov edx, 0xd
mov rcx, r14
call fcn.140090180
mov dword [r15], eax
test rbx, rbx
jne 0x140090839
xor sil, sil
jmp 0x1400909f9
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14008fc90
nop
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r9, qword [rbp - 0x50]
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r8, qword [rbp - 0x70]
lea rdx, [rbp - 0x70]
cmovae rdx, qword [rbp - 0x70]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x140090982
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rdx, qword [rbp - 0x70]
mov r8d, 0xf01ff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140090974
lea r8, [rbp - 0x30]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r10, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r10, qword [rbp - 0x50]
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r8, qword [rbp - 0x70]
lea rdx, [rbp - 0x70]
cmovae rdx, qword [rbp - 0x70]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x140090982
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor sil, sil
jmp 0x1400909d7
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400909a7
xor r8d, r8d
lea edx, [rax + 0xd]
mov rcx, r14
call fcn.140090180
mov dword [r15], eax
jmp 0x1400909b9
lea r8, [rbp - 0x10]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov sil, 1
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1400909f9
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
cmp qword [rbp - 0x38], 8
jb 0x140090a09
mov rcx, qword [rbp - 0x50]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rdi
mov word [rbp - 0x50], di
cmp qword [rbp - 0x58], 8
jb 0x140090a29
mov rcx, qword [rbp - 0x70]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rdi
mov word [rbp - 0x70], di
cmp qword [rsp + 0x78], 0
je 0x140090aa2
lea rcx, [0x14012fee0]
call fcn.1406a99b2
nop
mov ecx, dword [rbp - 0x80]
mov rdx, rax
cmp ecx, 2
jne 0x140090a66
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x140090a97
cmp ecx, 1
sete dil
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x28], 4
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
call qword [0x14011e0c8]
movzx eax, sil
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14010a480
mov rbx, qword [rsp + 0x168]
add rsp, 0x120
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret