Function at 0x1cde8
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 [0x0004c2fe], 1
mov qword [rax + 0x10], rsi
je 0x1ce11
xor eax, eax
jmp 0x1d087
call fcn.0001ccb4
cmp eax, esi
je 0x1ce1f
call fcn.0001ca6c
mov edx, 0x410
xor ecx, ecx
mov r8d, 0x72647268
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, 0x400
mov word [rsp + 0x50], si
mov qword [rsp + 0x58], rax
mov word [rsp + 0x52], r8w
cmp rax, rsi
je 0x1ce0a
xor edx, edx
mov rcx, rax
call fcn.0003bc80
lea rdx, [0x000490c0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, dword [0x0004ac0c]
lea rax, [0x0004b918]
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 0x1d070
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 0x1d070
lea rdx, [0x0003c8c0]
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, [0x0003c8b0]
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, [0x0003c8e0]
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, [0x0003c8f0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
or rcx, 0xffffffffffffffff
lea rdx, [0x0003c900]
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 0x1d085
mov edx, 0x72647268
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