Function at 0x14018cfa0
Capabilities:
Acquire debug privileges
Check for time delay via gettickcount
Create service
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x4b0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rbx, rcx
lea rdi, vtable.CSABString.0
mov qword [rcx + 8], rdi
xor r15d, r15d
mov qword [rcx + 0x10], r15
mov dword [rcx + 0x18], r15d
lea ecx, [r15 + 0x10]
call fcn.140247068
mov qword [rbx + 0x10], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rbx + 0x1c], 1
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x28], r15
mov dword [rbx + 0x30], r15d
lea ecx, [r15 + 0x10]
call fcn.140247068
mov qword [rbx + 0x28], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rbx + 0x34], 1
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], r15
mov dword [rbx + 0x48], r15d
lea ecx, [r15 + 0x10]
call fcn.140247068
mov qword [rbx + 0x40], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rbx + 0x4c], 1
lea rax, vtable.CSABProcessDebugPrivilege.0
mov qword [rsp + 0x500], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x4f8]
lea edx, [r15 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14018d0c4
lea r8, [rsp + 0x74]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x14018d0c4
mov dword [rsp + 0x70], 1
mov dword [rsp + 0x7c], 2
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9d, [r15 + 0x10]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x4f8]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
lea rcx, str.SASDIFSV64.SYS
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r8d, 0x40e
sub r8d, eax
lea rdx, [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea rdx, [0x140287e84]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.SASDIFSV64.SYS
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14018d134
call fcn.140247060
mov qword [rbx + 0x10], r15
lea rcx, [rsp + 0xa0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14018d143
mov dword [rbx + 0x18], eax
lea ecx, [rax + 1]
call fcn.140247068
mov qword [rbx + 0x10], rax
test rax, rax
je 0x14018d177
mov r8d, dword [rbx + 0x18]
inc r8d
lea rdx, [rsp + 0xa0]
mov rcx, rax
call fcn.1402496a0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14018d189
call fcn.140247060
mov qword [rbx + 0x28], r15
mov dword [rbx + 0x30], 8
mov ecx, 9
call fcn.140247068
mov qword [rbx + 0x28], rax
test rax, rax
je 0x14018d1b9
mov r8d, dword [rbx + 0x30]
inc r8d
lea rdx, str.SASDIFSV
mov rcx, rax
call fcn.1402496a0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14018d1cb
call fcn.140247060
mov qword [rbx + 0x40], r15
mov dword [rbx + 0x48], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov ecx, SafeArrayGetDim
call fcn.140247068
mov qword [rbx + 0x40], rax
test rax, rax
je 0x14018d1fb
mov r8d, dword [rbx + 0x48]
inc r8d
lea rdx, str..SASDIFSV
mov rcx, rax
call fcn.1402496a0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r14, rax
test rax, rax
je 0x14018d36f
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x28]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov r8, rdx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
test rax, rax
jne 0x14018d29f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x14018d36f
mov r8d, 0xf01ff
mov rdx, qword [rbx + 0x28]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x14018d36f
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x14018d2c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14018d35d
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov ebp, dword [rsp + 0x84]
cmp dword [rsp + 0x74], 2
jne 0x14018d35d
mov r12d, 0x2710
nop dword [rax]
mov eax, 0xcccccccd
mul dword [rsp + 0x88]
shr edx, 3
cmp edx, 0x3e8
jae 0x14018d30e
mov edx, 0x3e8
jmp 0x14018d315
cmp edx, r12d
cmova edx, r12d
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [rsp + 0x84], ebp
jbe 0x14018d345
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov ebp, dword [rsp + 0x84]
jmp 0x14018d356
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [rsp + 0x88]
ja 0x14018d35d
cmp dword [rsp + 0x74], 2
je 0x14018d2f0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx], rax
mov rax, rbx
add rsp, 0x4b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret