Function at 0x1c3f4
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0xb0
xor esi, esi
cmp byte [0x0002a8be], 1
mov qword [rax + 0x10], rsi
je 0x1c41d
xor eax, eax
jmp 0x1c689
call fcn.0001c2c8
cmp eax, esi
je 0x1c42b
call fcn.0001c080
mov edi, 0x400
xor ecx, ecx
mov rdx, rdi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov word [rsp + 0x50], si
mov word [rsp + 0x52], di
mov qword [rsp + 0x58], rax
cmp rax, rsi
je 0x1c416
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.000231f0
lea rdx, [0x00026c90]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, dword [0x00029374]
lea rax, [0x00029f28]
mov rdx, qword [rax + rdx*8]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
cmp eax, esi
mov ebx, eax
jl 0x1c675
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0xc0]
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x98], 0x200
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov ebx, eax
cmp qword [rsp + 0xc8], rsi
je 0x1c675
lea rdx, [0x00023ca0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0xc0], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0xc8]
mov edi, 4
lea rax, [rsp + 0xc0]
lea rdx, [rsp + 0x40]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x00023c90]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0xc0], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0xc8]
lea rax, [rsp + 0xc0]
lea rdx, [rsp + 0x40]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x00023cc0]
lea rcx, [rsp + 0x40]
mov ebx, eax
mov dword [rsp + 0xc0], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0xc8]
lea rax, [rsp + 0xc0]
lea rdx, [rsp + 0x40]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x00023cd0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
or rcx, 0xffffffffffffffff
lea rdx, [0x00023ce0]
xor eax, eax
mov rdi, rdx
mov r9d, 1
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0xc8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0xc8], rsi
mov rcx, qword [rsp + 0x58]
cmp rcx, rsi
je 0x1c687
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret