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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rdx
mov rbx, rcx
mov r8, rdx
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0x1f]
call fcn.14000dfb0
nop
mov r8, rbx
lea rdx, str.___
lea rcx, [rbp - 0x21]
call fcn.14000dfb0
nop
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rdx, qword [rbp + 0x1f]
lea r8, [rbp + 0x7f]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor r14d, r14d
test eax, eax
jne 0x14000dd34
mov eax, dword [rbp - 0x11]
add eax, eax
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rcx, qword [rbp - 0x21]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea r9d, [r14 + 2]
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp + 0x7f]
test eax, eax
jne 0x14000dd2e
mov dword [rsp + 0x28], 4
lea rax, [0x140045a70]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 4]
lea r8, str.Type
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rbp + 0x7f]
test eax, eax
jne 0x14000dd2e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x14003ce50]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x14000dd34
lea rdx, str.RtlAdjustPrivilege
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.NtLoadDriver
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea r9, [rbp + 0x77]
xor r8d, r8d
mov dl, 1
lea ecx, [r14 + 0xa]
call rbx
test eax, eax
js 0x14000dd34
mov r8, rsi
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp - 1]
call fcn.14000dfb0
nop
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rdx, qword [rbp - 1]
lea rcx, [rbp - 0x31]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 0x31]
call rdi
cmp eax, 0xc000010e
jne 0x14000dcd5
mov bl, 1
jmp 0x14000dcda
test eax, eax
setns bl
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x14000dd1a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dd15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000dde0
call fcn.140010d2c
movdqa xmm0, xmmword [0x140046250]
movdqu xmmword [rbp + 0xf], xmm0
mov word [rbp - 1], r14w
jmp 0x14000dd36
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x14000dd72
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dd6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000dde6
call fcn.140010d2c
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], 7
mov word [rbp - 0x21], r14w
mov rdx, qword [rbp + 0x37]
cmp rdx, 8
jb 0x14000ddbf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ddba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ddda
call fcn.140010d2c
movzx eax, bl
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140016bd0
nop
call fcn.140016bd0
nop
call fcn.140016bd0
int3