Function at 0x140010f44
Capabilities:
Delete registry key
Manipulate safe mode programs
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x890
mov rax, qword [0x14002c0e0]
xor rax, rsp
mov qword [rsp + 0x880], rax
lea rcx, str.ntdll.dll
mov esi, 1
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtLoadDriver
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
mov qword [0x14002e8a8], rax
cmp rax, rdi
jne 0x140010fa8
xor eax, eax
jmp 0x140011249
lea r12, str.RamCaptureDriver
mov ebp, 0x400
lea r8, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x80]
mov r9, r12
mov rdx, rbp
call fcn.140011560
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov r14, 0xffffffff80000002
lea rdx, [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x140010fa1
lea r9, [0x14002e8c0]
lea r8, str.___s
lea rcx, [rsp + 0x80]
mov rdx, rbp
call fcn.140011560
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x58]
lea rdx, str.ImagePath
add eax, eax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
jne 0x14001123c
mov rcx, qword [rsp + 0x58]
mov ebx, 4
lea rax, [rsp + 0x50]
lea rdx, str.Type
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
jne 0x14001123c
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea rdx, str.Start
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
jne 0x14001123c
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea rdx, str.ErrorControl
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], esi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
jne 0x14001123c
lea r8, str.RegistryMachineSystemCurrentControlSetServices_s
lea rcx, [rsp + 0x80]
mov r9, r12
mov rdx, rbp
call fcn.140011560
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x68]
call fcn.140010ec0
lea ecx, [rbx + 0x3f]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, esi
je 0x140011157
cmp eax, esi
jne 0x1400111b3
lea r8, str.SYSTEMCurrentControlSetControlSafeBootNetwork_s.sys
jmp 0x14001115e
lea r8, str.SYSTEMCurrentControlSetControlSafeBootMinimal_s.sys
lea rcx, [rsp + 0x80]
mov r9, r12
mov rdx, rbp
call fcn.140011560
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x68]
call qword [0x14002e8a8]
mov rcx, qword [rsp + 0x58]
lea rdx, str.Enum
mov ebx, eax
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [rsp + 0x58]
lea rdx, str.Security
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp ebx, edi
jne 0x14001123c
lea r8, str.._s
lea rcx, [rsp + 0x80]
mov r9, r12
mov rdx, rbp
call fcn.140011560
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov qword [0x14002d508], rax
cmove esi, edi
mov edi, esi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.140011d10
lea r11, [rsp + 0x890]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rdi
ret