Function at 0x140011278
Capabilities:
Delete registry key
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r14
sub rsp, 0x880
mov rax, qword [0x14002c0e0]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rcx, qword [0x14002d508]
mov dword [rsp + 0x58], 1
cmp rcx, 0xffffffffffffffff
je 0x1400112c1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtUnloadDriver
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
mov qword [0x14002e8b0], rax
cmp rax, rdi
jne 0x1400112f3
xor eax, eax
jmp 0x14001152f
lea rbp, str.RamCaptureDriver
mov r12d, 0x400
lea r8, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x70]
mov r9, rbp
mov rdx, r12
call fcn.140011560
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov r14, 0xffffffff80000002
lea rdx, [rsp + 0x70]
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]
lea r9, [0x14002e8c0]
lea r8, str.___s
lea rcx, [rsp + 0x70]
mov rdx, r12
call fcn.140011560
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
lea rdx, str.ImagePath
add eax, eax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, 4
lea rax, [rsp + 0x58]
lea rdx, str.Type
xor r8d, r8d
mov r9d, ebx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
lea rdx, str.Start
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
lea rdx, str.ErrorControl
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea r8, str.RegistryMachineSystemCurrentControlSetServices_s
lea rcx, [rsp + 0x70]
mov r9, rbp
mov rdx, r12
call fcn.140011560
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.140010ec0
lea rcx, [rsp + 0x60]
call qword [0x14002e8b0]
lea r11, [rsp + 0x50]
lea rdx, str.SYSTEMCurrentControlSetServices
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x1400112ec
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [rsp + 0x50]
mov ebx, 1
cmp eax, edi
cmovne ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x43
mov qword [rsp + 0x50], rdi
call qword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 1
je 0x1400114d4
cmp eax, 1
jne 0x14001152d
lea rdx, str.SYSTEMCurrentControlSetControlSafeBootNetwork
jmp 0x1400114db
lea rdx, str.SYSTEMCurrentControlSetControlSafeBootMinimal
lea rax, [rsp + 0x50]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x14001152d
lea r8, str._s.sys
lea rcx, [rsp + 0x70]
mov r9, rbp
mov rdx, r12
call fcn.140011560
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140011d10
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret