Function at 0x1400a7a60
Capabilities:
Create process on windows
Delete registry key
Persist via windows service
Set registry value

Disassembly:
push rbp
push rdi
push r12
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov r12d, edx
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMCurrentControlSet_services_vjoyParameters
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a7b0c
lea edi, [rax + 1]
nop word [rax + rax]
xor edx, edx
lea rcx, [rbp]
mov r8d, 0xea
call sub.VCRUNTIME140.dll_memset
mov r9d, edi
lea r8, str.SYSTEMCurrentControlSet_services_vjoyParametersDevice_02d
mov edx, 0x75
lea rcx, [rbp]
call fcn.140087f90
lea rdx, [rbp]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
inc edi
cmp edi, 0x10
jle 0x1400a7ac0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x360], r13
test r12d, r12d
jne 0x1400a7bdd
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x20c
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x20c
lea rdx, [rbp]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea r8d, [r12 + 0x5c]
lea rcx, [rbp]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
movups xmm0, xmmword [str.driververifyx64.exe]
xor r13d, r13d
lea rdi, [rbp - 0x80]
mov ecx, 0x68
lea rdx, str.__disable
movups xmmword [rax + 2], xmm0
xor r9d, r9d
xor r8d, r8d
movups xmm1, xmmword [0x140248420]
movups xmmword [rax + 0x12], xmm1
movsd xmm0, qword [0x140248430]
movsd qword [rax + 0x22], xmm0
xor eax, eax
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov dword [rbp - 0x80], 0x68
mov qword [rsp + 0x48], rax
lea rcx, [rbp]
lea rax, [rbp - 0x80]
mov dword [rbp - 0x44], 1
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0x20], r13d
mov word [rbp - 0x40], r13w
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x1400a7e41
xor r13d, r13d
mov qword [rsp + 0x358], rsi
mov esi, r13d
test r12d, r12d
je 0x1400a7d82
mov qword [rsp + 0x350], rbx
mov qword [rsp + 0x328], r14
mov qword [rsp + 0x320], r15
nop dword [rax]
mov ecx, 8
lea edi, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400a7d5f
xor r9d, r9d
mov byte [rsp + 0x30], r13b
mov byte [rsp + 0x28], dil
lea r8, [rbp - 0x10]
mov rcx, rax
mov dword [rbp - 0x10], 0x1010101
mov dword [rbp - 0xc], 0x1010101
lea edx, [r9 + 0x20]
mov dword [rsp + 0x20], 1
call fcn.1400b2720
mov r14d, eax
test eax, eax
jle 0x1400a7d56
mov r15, qword [rbx]
lea rax, [rsp + 0x50]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSet_services_vjoyParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a7d56
xor edx, edx
lea rcx, [rbp]
mov r8d, 0xea
call sub.VCRUNTIME140.dll_memset
movzx r9d, dil
lea r8, str.SYSTEMCurrentControlSet_services_vjoyParametersDevice_02d
mov edx, 0x75
lea rcx, [rbp]
call fcn.140087f90
lea r8, [rsp + 0x58]
mov rcx, 0xffffffff80000002
lea rdx, [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1400a7ce5
mov rcx, qword [rsp + 0x50]
jmp 0x1400a7d50
mov rcx, qword [rsp + 0x58]
lea rdx, str.HidReportDesctiptor
mov dword [rsp + 0x28], r14d
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400a7d40
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 4
lea rdx, str.HidReportDesctiptorSize
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x60], r14d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
cmp esi, r12d
jb 0x1400a7c10
mov r15, qword [rsp + 0x320]
mov r14, qword [rsp + 0x328]
mov rbx, qword [rsp + 0x350]
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x20c
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x20c
lea rdx, [rbp]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [rbp]
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
movups xmm0, xmmword [str.driververifyx64.exe]
lea rdi, [rbp - 0x80]
mov ecx, 0x68
xor r9d, r9d
lea rdx, str.__refresh
movups xmmword [rax + 2], xmm0
xor r8d, r8d
movups xmm1, xmmword [0x140248420]
movups xmmword [rax + 0x12], xmm1
movsd xmm0, qword [0x140248430]
movsd qword [rax + 0x22], xmm0
xor eax, eax
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov dword [rbp - 0x80], 0x68
mov qword [rsp + 0x48], rax
lea rcx, [rbp]
lea rax, [rbp - 0x80]
mov dword [rbp - 0x44], 1
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0x20], r13d
mov word [rbp - 0x40], r13w
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rsi, qword [rsp + 0x358]
test eax, eax
je 0x1400a7e6b
mov rcx, qword [rsp + 0x68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400a7ea0
mov r13, qword [rsp + 0x360]
xor eax, eax
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1401d0310
add rsp, 0x330
pop r12
pop rdi
pop rbp
ret