Function at 0x20314
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x60
xor r14d, r14d
mov rsi, r8
mov r12, rdx
mov rbp, rcx
lea rdx, [0x000249d8]
lea r8d, [r14 + 0x2f]
lea rcx, [rax - 0x48]
mov rdi, r9
mov qword [rax - 0x38], r14
call fcn.00021498
lea rcx, [rsp + 0x40]
mov r9d, 0xf003f
mov r8, rax
xor edx, edx
call fcn.0002178c
lea rcx, [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
cmp ebx, r14d
jl 0x206ca
lea r8d, [r14 + 0x14]
lea rdx, [0x00024eb0]
lea rcx, [rsp + 0x30]
call fcn.00021498
lea rcx, [rsp + 0x40]
mov r8d, 0xf003f
mov rdx, rax
call fcn.000216f4
lea rcx, [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
cmp ebx, r14d
jl 0x206ca
lea ebx, [r14 + 0xb]
lea rdx, [0x00024e48]
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.00021498
mov r8, qword [rsp + 0xa0]
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.00021a68
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rdx, [0x00024e38]
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.00021498
lea rcx, [rsp + 0x40]
mov r8, rdi
mov rdx, rax
call fcn.00021a68
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea r8d, [r14 + 0xc]
lea rdx, [0x00024e58]
lea rcx, [rsp + 0x48]
call fcn.00021498
mov rbx, qword [rsp + 0x40]
lea r13d, [r14 + 4]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x28], r13d
mov r9d, r13d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
mov dword [rsp + 0x30], r14d
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea r8d, [r14 + 9]
lea rdx, [0x00024e68]
lea rcx, [rsp + 0x48]
call fcn.00021498
lea rcx, [rsp + 0x40]
mov r8, r12
mov rdx, rax
call fcn.00021b48
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea r12d, [r14 + 0xa]
lea rdx, [0x00024e78]
lea rcx, [rsp + 0x48]
mov r8, r12
call fcn.00021498
lea rcx, [rsp + 0x40]
mov r8, rsi
mov rdx, rax
call fcn.00021a68
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rdx, [0x00024e9c]
lea rcx, [rsp + 0x48]
mov r8, r13
call fcn.00021498
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rcx
mov r9d, r13d
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
mov dword [rsp + 0x30], 0x10
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea edi, [r14 + 5]
lea rdx, [0x00024e94]
lea rcx, [rsp + 0x48]
mov r8, rdi
call fcn.00021498
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], r13d
lea rcx, [rsp + 0x30]
mov r9d, r13d
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rdx, [0x00024ea4]
lea rcx, [rsp + 0x48]
mov r8, rdi
call fcn.00021498
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rcx
mov r9d, r13d
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
mov dword [rsp + 0x30], 1
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rdx, [0x00024f58]
lea rcx, [rsp + 0x48]
mov r8, r12
call fcn.00021498
lea rcx, [rsp + 0x40]
mov r8d, 0xf003f
mov rdx, rax
call fcn.000216f4
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rdx, [0x00024e88]
lea rcx, [rsp + 0x48]
mov r8, r12
call fcn.00021498
mov r8, qword [rsp + 0xa8]
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.00021b48
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea r8d, [r14 + 0x52]
lea rdx, [0x00024970]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], r14
call fcn.00021498
lea rcx, [rsp + 0x30]
mov r9d, 0xf003f
mov r8, rax
xor edx, edx
call fcn.0002178c
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
movzx edi, word [rbp]
mov r8d, 0x524547
add edi, r13d
xor ecx, ecx
mov edx, edi
mov ebx, edi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
movzx r8d, word [rbp]
mov rdx, qword [rbp + 8]
mov rcx, rax
mov rsi, rax
call fcn.00021e50
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x30]
shr rbx, 1
lea r9d, [r14 + 7]
xor r8d, r8d
mov word [rsi + rbx*2 - 2], r14w
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
mov word [rsi + rbx*2 - 4], r14w
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [rsp + 0x30]
call fcn.00021634
lea rcx, [rsp + 0x40]
call fcn.00021634
lea r11, [rsp + 0x60]
xor al, al
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret