Function at 0x41aac0
Capabilities:
Check os version
Create service

Disassembly:
mov r11, rsp
sub rsp, 0x198
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [r11 - 8], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r13
mov qword [r11 - 0x38], r14
mov qword [r11 - 0x40], r15
mov rax, qword [0x0047e2e8]
mov qword [rsp + 0x140], rax
mov r12, r9
mov r15, r8
mov r14, rdx
mov r13, rcx
mov rsi, qword [rsp + 0x1c0]
mov dword [rsp + 0xa0], 0x94
xor ebx, ebx
mov dword [rsp + 0xa4], ebx
xor edx, edx
mov r8d, 0x8c
lea rcx, [r11 - 0xf0]
call fcn.00448e10
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41adcf
cmp dword [rsp + 0xb0], 2
jne 0x41adcf
xor edx, edx
xor ecx, ecx
lea r8d, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbp, rax
test rax, rax
jne 0x41ab88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x41add6
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x80], ebx
lea rax, [0x00463658]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x88], ebx
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [0x00463660]
nop
lea rax, [0x00463698]
mov qword [rsp + 0x70], rax
test rsi, rsi
je 0x41abda
cmp byte [rsi], 0
je 0x41abda
mov rax, rsi
nop
inc ebx
inc rax
cmp byte [rax], 0
jne 0x41abd0
movsxd rdi, dword [rsp + 0x80]
lea edx, [rdi + rbx]
lea rcx, [rsp + 0x70]
call qword [0x004636a0]
cmp edi, edi
jge 0x41ac15
mov rdx, qword [rsp + 0x78]
lea r9, [rdi + rdx]
movsxd rcx, ebx
add rcx, rdi
add rcx, rdx
mov eax, edi
sub eax, edi
movsxd r8, eax
mov rdx, r9
call fcn.00448f40
movsxd r8, ebx
mov rcx, rdi
add rcx, qword [rsp + 0x78]
mov rdx, rsi
call fcn.00448f40
nop
lea r9, [0x004636e8]
mov qword [rsp + 0x70], r9
xor esi, esi
mov ecx, esi
mov rax, rsi
mov r8d, dword [rsp + 0x80]
test r8d, r8d
jle 0x41ac76
nop
nop
mov rdx, qword [rsp + 0x78]
cmp byte [rax + rdx], 0x2f
jne 0x41ac67
mov byte [rax + rdx], sil
mov r8d, dword [rsp + 0x80]
inc ecx
inc rax
cmp ecx, r8d
jl 0x41ac50
mov r9, qword [rsp + 0x70]
neg dword [rsp + 0x1c8]
sbb ebx, ebx
add ebx, 3
mov edx, r8d
lea rcx, [rsp + 0x70]
call qword [r9 + 8]
neg dword [rsp + 0x1d0]
sbb ecx, ecx
and ecx, 0x100
or ecx, 0x10
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
mov r9d, 0xf01ff
mov r8, r15
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
test rax, rax
jne 0x41ad35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rax, [0x00463658]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x80], esi
mov dword [rsp + 0x88], esi
test rcx, rcx
je 0x41add6
call fcn.00448f10
jmp 0x41add6
cmp dword [rsp + 0xa4], 5
jb 0x41ad8c
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x41ad8c
lea rdx, str.ChangeServiceConfig2A
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x41ad83
mov qword [rsp + 0x90], r12
lea r8, [rsp + 0x90]
mov edx, 1
mov rcx, rdi
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rax, [0x00463658]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x80], esi
mov dword [rsp + 0x88], esi
test rcx, rcx
je 0x41ae1f
call fcn.00448f10
jmp 0x41ae1f
mov ebx, 0x47e
jmp 0x41adda
test ebx, ebx
je 0x41ae1f
sub ebx, 5
je 0x41ae18
sub ebx, 0x2f
je 0x41ae11
sub ebx, 0x3fc
je 0x41ae0a
dec ebx
je 0x41ae03
cmp ebx, 0x4d
je 0x41adfc
mov eax, 0x119
jmp 0x41ae21
mov eax, 0x110
jmp 0x41ae21
mov eax, 0x118
jmp 0x41ae21
mov eax, 0x117
jmp 0x41ae21
mov eax, 0x116
jmp 0x41ae21
mov eax, 0x115
jmp 0x41ae21
xor eax, eax
mov rcx, qword [rsp + 0x140]
call fcn.00462020
mov rbx, qword [rsp + 0x190]
mov rbp, qword [rsp + 0x188]
mov rsi, qword [rsp + 0x180]
mov rdi, qword [rsp + 0x178]
mov r12, qword [rsp + 0x170]
mov r13, qword [rsp + 0x168]
mov r14, qword [rsp + 0x160]
mov r15, qword [rsp + 0x158]
add rsp, 0x198
ret