Function at 0x1d458
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 [0x0002c1fe], 1
mov qword [rax + 0x10], rsi
je 0x1d481
xor eax, eax
jmp 0x1d6ed
call fcn.0001d32c
cmp eax, esi
je 0x1d48f
call fcn.0001d0e4
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 0x1d47a
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.00024210
lea rdx, [0x00027e50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, dword [0x0002a674]
lea rax, [0x0002b228]
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 0x1d6d9
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 0x1d6d9
lea rdx, [0x00024c50]
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, [0x000243c0]
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, [0x00024c70]
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, [0x00024c80]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
or rcx, 0xffffffffffffffff
lea rdx, [0x00024c90]
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 0x1d6eb
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