Function at 0x140001210
Capabilities:
Check os version
Create service
Get common file path
Modify service
Start service

Disassembly:
push rbp
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
lea rcx, [rbp + 0xb0]
xor edx, edx
mov r8d, 0x114
call fcn.1400035c0
lea rcx, [rbp + 0xb0]
mov dword [rbp + 0xb0], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp + 0xb4], 6
jb 0x1400014b3
lea rcx, [rbp + 0xb0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, str.drivers_
lea rcx, [rbp + 0xb0]
mov edx, 0x104
call fcn.140001884
lea rdx, [rbp + 0xb0]
call fcn.140001650
test eax, eax
jne 0x1400012ae
mov eax, 0xfffffc17
jmp 0x1400014b8
mov qword [rsp + 0x2f0], rbx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x2f8], rsi
mov qword [rsp + 0x300], rdi
call fcn.1400010a0
mov r10, qword [rsp + 0x70]
xor esi, esi
test r10, r10
jne 0x140001304
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, esi
test rax, rax
mov r10, rax
mov qword [rsp + 0x70], rax
setne cl
test ecx, ecx
je 0x1400013e5
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rcx
lea rax, [rbp - 0x70]
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0x9c]
mov r8, rdx
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x98]
mov rcx, r10
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x94]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
jne 0x1400013ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x1400013e0
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x1400013e0
mov rcx, qword [rbp - 0x78]
mov r9d, dword [rbp + 0x9c]
mov r8d, dword [rbp + 0x98]
mov edx, dword [rbp + 0x94]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rcx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov rcx, rbx
jmp 0x1400013f2
mov r10, qword [rsp + 0x70]
mov edi, 0xfffffc13
jmp 0x140001489
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r10, qword [rsp + 0x70]
test r10, r10
jne 0x14000142a
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r10, rax
mov qword [rsp + 0x70], rax
mov eax, esi
test r10, r10
setne al
test eax, eax
jne 0x14000142a
mov ebx, esi
jmp 0x14000147f
mov rdx, qword [rsp + 0x78]
mov r8d, 0xf01ff
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x14000144a
mov ebx, esi
jmp 0x14000147a
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, eax
test eax, eax
jne 0x140001471
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
cmp eax, 0x420
cmove ebx, ecx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r10, qword [rsp + 0x70]
mov edi, 0xfffffc12
test ebx, ebx
cmovne edi, esi
mov rsi, qword [rsp + 0x2f8]
mov rbx, qword [rsp + 0x2f0]
test r10, r10
je 0x1400014a7
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rdi, qword [rsp + 0x300]
jmp 0x1400014b8
mov eax, 0xfffffc0f
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140001840
add rsp, 0x2e0
pop rbp
ret