Function at 0x140024e30
Capabilities:
Check for time delay via gettickcount
Create service
Query service status
Start service

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3d8]
sub rsp, 0x4b0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r12d, r9d
mov r14d, r8d
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r15, rax
test rax, rax
je 0x140025107
lea rax, vtable.CSABString.0
mov qword [rsp + 0x70], rax
xor esi, esi
mov dword [rbp - 0x80], esi
lea ecx, [rsi + 0x10]
call fcn.140247068
mov rbx, rax
mov qword [rsp + 0x78], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov r13d, 1
mov dword [rbp - 0x7c], r13d
cmp dword [rdi + 0x48], eax
jne 0x140024f70
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r8d, 0x40b
sub r8d, eax
lea rdx, [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea rdx, [0x140287e84]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rdx, qword [rdi + 0x10]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str..sys
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
test rbx, rbx
je 0x140024f2f
mov rcx, rbx
call fcn.140247060
mov qword [rsp + 0x78], rsi
lea rcx, [rbp - 0x60]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140024f40
mov dword [rbp - 0x80], eax
inc eax
mov ebx, eax
mov ecx, eax
call fcn.140247068
mov rsi, rax
test rax, rax
je 0x140024f87
mov r8d, ebx
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.1402496a0
jmp 0x140024f87
lea rdx, [rdi + 0x38]
lea rcx, [rsp + 0x70]
call fcn.140004780
mov r13d, dword [rbp - 0x7c]
mov rsi, qword [rsp + 0x78]
mov r8d, r14d
mov rdx, qword [rdi + 0x10]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
jne 0x14002502f
mov rax, qword [rbp + 0x3e8]
mov rax, qword [rax + 8]
mov rdx, qword [rdi + 0x10]
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov eax, dword [rbp + 0x408]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x400]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r12d
mov r9d, r14d
mov r8, rdx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rbx, rax
test rax, rax
jne 0x14002502f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x1400250f2
mov r8d, r14d
mov rdx, qword [rdi + 0x10]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x1400250f2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x140025052
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400250df
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov r14d, dword [rbp - 0x7c]
cmp dword [rsp + 0x74], 2
jne 0x1400250df
mov r12d, 0x2710
nop dword [rax]
mov eax, 0xcccccccd
mul dword [rbp - 0x78]
shr edx, 3
cmp edx, 0x3e8
jae 0x14002509a
mov edx, 0x3e8
jmp 0x1400250a1
cmp edx, r12d
cmova edx, r12d
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [rbp - 0x7c], r14d
jbe 0x1400250cb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov r14d, dword [rbp - 0x7c]
jmp 0x1400250d8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, dword [rbp - 0x78]
ja 0x1400250df
cmp dword [rsp + 0x74], 2
je 0x140025080
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea eax, [r13 - 1]
test eax, eax
jne 0x140025107
test rsi, rsi
je 0x140025107
mov rcx, rsi
call fcn.140247060
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret