Function at 0x14001d760
Capabilities:
Create service
Delete service
Start service

Disassembly:
sub rsp, 0x6f8
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
lea r8, [rsp + 0x70]
lea rdx, str.Start
lea rcx, str.SYSTEMCurrentControlSetServices_veracrypt
call fcn.14003f890
test eax, eax
je 0x14001d7b9
cmp dword [rsp + 0x70], 0
jne 0x14001d7b9
mov eax, 0x1e
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.1400a4e70
add rsp, 0x6f8
ret
mov qword [rsp + 0x700], rbx
mov ebx, 0x208
lea rdx, [rsp + 0x2d0]
xor ecx, ecx
mov r8d, ebx
mov qword [rsp + 0x6f0], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x2d0]
mov edx, 0x5c
call fcn.1400a6680
xor edi, edi
test rax, rax
jne 0x14001d807
mov dword [rsp + 0x2d0], 0x2e
jmp 0x14001d80a
mov word [rax], di
call fcn.14001ac90
lea rcx, str._veracrypt_arm64.sys
lea r8, str._veracrypt_x64.sys
test eax, eax
lea rax, [rsp + 0x2d0]
cmovne r8, rcx
mov rcx, rbx
nop
cmp word [rax], 0
je 0x14001d841
add rax, 2
dec rcx
jne 0x14001d830
jmp 0x14001d890
test rcx, rcx
je 0x14001d890
mov rdx, rbx
sub rdx, rcx
sub rbx, rdx
lea rax, [rsp + rdx*2 + 0x2d0]
je 0x14001d889
lea rcx, [rbx + rdx + 0x7ffffdf7]
sub r8, rax
test rcx, rcx
je 0x14001d884
movzx edx, word [r8 + rax]
test dx, dx
je 0x14001d884
mov word [rax], dx
add rax, 2
dec rcx
dec rbx
jne 0x14001d864
jmp 0x14001d889
test rbx, rbx
jne 0x14001d88d
sub rax, 2
mov word [rax], di
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14001d8da
lea rcx, str.DRIVER_NOT_FOUND
call fcn.14003a7b0
mov r8, qword [0x140196ee8]
mov r9d, 0x10
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x1c
jmp 0x14001da39
mov rcx, rax
mov qword [rsp + 0x710], rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14001d942
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14001d938
lea rcx, str.ADMIN_PRIVILEGES_DRIVER
call fcn.14003a7b0
mov r8, qword [0x140196ee8]
lea r9d, [rsi + 0x10]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [rsi + 0x1c]
jmp 0x14001da31
mov eax, 1
jmp 0x14001da31
lea rdx, [0x1400cd980]
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x708], rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14001d985
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
lea r8, [0x1400cd980]
lea rdx, [0x1400cd980]
mov r9d, 0xf01ff
mov rcx, rsi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbp, rax
test rax, rax
jne 0x14001d9f6
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [rbp + 1]
jmp 0x14001da29
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
sete dil
mov eax, edi
mov rbp, qword [rsp + 0x708]
mov rsi, qword [rsp + 0x710]
mov rbx, qword [rsp + 0x700]
mov rdi, qword [rsp + 0x6f0]
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.1400a4e70
add rsp, 0x6f8
ret