Function at 0x14000d220
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov rbx, rcx
movaps xmmword [rax - 0x28], xmm6
lea rcx, [rbp - 0x59]
call fcn.140001a70
mov rcx, qword [rbp - 0x49]
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
sub rax, rcx
cmp rax, 0x22
jb 0x14000d5a8
cmp qword [rbp - 0x41], 7
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rcx
lea r9, str.SYSTEMCurrentControlSetServices_
cmova rax, qword [rbp - 0x59]
lea rcx, [rbp + 7]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x22
call fcn.140009250
mov rcx, qword [rbx + 0x10]
mov rax, rdi
sub rax, rcx
cmp rax, 4
jb 0x14000d5a8
cmp qword [rbx + 0x18], 7
jbe 0x14000d2b7
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
lea r9, str.___
mov qword [rsp + 0x28], rbx
lea rcx, [rbp - 0x39]
mov qword [rsp + 0x20], 4
call fcn.140009250
cmp qword [rbp + 0x1f], 7
lea rdx, [rbp + 7]
lea r8, [rbp + 0x77]
mov rcx, 0xffffffff80000002
cmova rdx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
movdqa xmm6, xmmword [0x14003e3c0]
xor r14d, r14d
test eax, eax
jne 0x14000d4a4
mov eax, dword [rbp - 0x29]
lea rcx, [rbp - 0x39]
add eax, eax
lea r8, str.ImagePath
cmp qword [rbp - 0x21], 7
mov r9d, 2
mov dword [rsp + 0x28], eax
cmova rcx, qword [rbp - 0x39]
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp + 0x77]
test eax, eax
jne 0x14000d49e
lea rax, [0x14003e390]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp + 0x77]
test eax, eax
jne 0x14000d49e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x140035608]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x14000d4a4
lea rdx, str.RtlAdjustPrivilege
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtLoadDriver
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rbp + 0x6f]
xor r8d, r8d
mov dl, 1
mov ecx, 0xa
mov rsi, rax
call rbx
test eax, eax
js 0x14000d4a4
mov rcx, qword [rbp - 0x49]
sub rdi, rcx
cmp rdi, 0x34
jb 0x14000d5a8
cmp qword [rbp - 0x41], 7
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rcx
lea r9, str.RegistryMachineSystemCurrentControlSetServices_
cmova rax, qword [rbp - 0x59]
lea rcx, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x34
call fcn.140009250
cmp qword [rbp - 1], 7
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x27]
cmova rdx, qword [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp + 0x27]
call rsi
mov ebx, eax
cmp eax, 0xc000010e
jne 0x14000d44c
mov bl, 1
jmp 0x14000d452
shr ebx, 0x1f
xor bl, 1
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x14000d492
mov rcx, qword [rbp - 0x19]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d48d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d5a2
call fcn.14000fbb0
movdqu xmmword [rbp - 9], xmm6
mov word [rbp - 0x19], r14w
jmp 0x14000d4a6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x14000d4ee
mov rcx, qword [rbp - 0x39]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d4e1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d5a2
call fcn.14000fbb0
movdqa xmm6, xmmword [0x14003e3c0]
mov rdx, qword [rbp + 0x1f]
mov word [rbp - 0x39], r14w
movdqu xmmword [rbp - 0x29], xmm6
cmp rdx, 7
jbe 0x14000d53c
mov rcx, qword [rbp + 7]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d52f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d5a2
call fcn.14000fbb0
movdqa xmm6, xmmword [0x14003e3c0]
mov rdx, qword [rbp - 0x41]
mov word [rbp + 7], r14w
movdqu xmmword [rbp + 0x17], xmm6
cmp rdx, 7
jbe 0x14000d582
mov rcx, qword [rbp - 0x59]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d57d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d5a2
call fcn.14000fbb0
lea r11, [rsp + 0xe0]
movzx eax, bl
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140017988
int3
call fcn.1400012d0
int3