Function at 0x1400067d0
Capabilities:
Check for time delay via gettickcount
Create service
Delete service
Modify service
Persist via windows service
Query service status
Start service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
movzx ebx, dl
mov r13, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140006ac8
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x140006ac8
xor sil, sil
lea rdi, [r13 + 0x38]
mov rcx, qword [rdi]
test bl, bl
je 0x1400069e8
mov qword [rbp - 0x78], rdi
xor ebx, ebx
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], ebx
mov rax, qword [rcx]
lea rdx, [rbp - 0x70]
call qword [rax + 0x30]
nop
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x48], ebx
mov rcx, qword [rdi]
mov rax, qword [rcx]
lea rdx, [rbp - 0x50]
call qword [rax + 0x30]
nop
lea rdi, [0x14007484c]
mov r8, rdi
mov rax, qword [rbp - 0x70]
test rax, rax
cmovne r8, rax
mov rdx, rdi
mov rax, qword [rbp - 0x50]
test rax, rax
cmovne rdx, rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov r15, rax
mov rcx, qword [rbp - 0x58]
mov rcx, qword [rcx]
mov r8, qword [rcx]
lea rdx, [rbp - 0x50]
call qword [r8 + 0x38]
nop
mov rcx, qword [rbp - 0x78]
mov rcx, qword [rcx]
mov r8, qword [rcx]
lea rdx, [rbp - 0x70]
call qword [r8 + 0x38]
test r15, r15
je 0x140006ab9
lea rsi, [r13 + 0x48]
mov rcx, qword [rsi]
mov rax, qword [rcx]
call qword [rax + 0x18]
test al, al
jne 0x140006984
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x80], ebx
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
call qword [rax + 0x30]
nop
mov rax, qword [rsp + 0x78]
test rax, rax
cmovne rdi, rax
mov qword [rbp + 0x248], rdi
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
call qword [rax + 0x38]
lea r8, [rbp + 0x248]
lea edx, [rbx + 1]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov dword [rbp + 0x240], 1
mov dword [rbp + 0x244], 0x1388
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x3c], xmm0
mov dword [rbp - 0x2c], ebx
mov qword [rbp - 0x28], 1
mov dword [rbp - 0x40], 0xffffffff
lea rax, [rbp + 0x240]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x40]
mov edx, 2
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov sil, 1
mov rcx, r15
jmp 0x140006ab3
mov qword [rsp + 0x70], rdi
xor ebx, ebx
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x80], ebx
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
call qword [rax + 0x30]
nop
lea rdx, [0x14007484c]
mov rax, qword [rsp + 0x78]
test rax, rax
cmovne rdx, rax
mov r8d, 0xf01ff
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
mov r8, qword [rcx]
lea rdx, [rsp + 0x78]
call qword [r8 + 0x38]
test rbx, rbx
je 0x140006ab9
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], eax
lea r8, [rbp - 0x78]
lea edx, [rax + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
cmp dword [rbp - 0x74], 1
je 0x140006aa1
nop
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140006aa1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x2710
jae 0x140006aa1
cmp dword [rbp - 0x74], 1
jne 0x140006a70
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
setne sil
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, sil
jmp 0x140006aca
xor al, al
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret