Function at 0x14001e9fc
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x1400231e0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor esi, esi
xorps xmm0, xmm0
mov rbx, rdx
mov qword [rbp - 0x59], rsi
xor eax, eax
mov qword [rbp - 0x61], rsi
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x49], rsi
mov dword [rbp - 0x69], esi
mov rdi, r8
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x21], rax
movups xmmword [rbp - 0x31], xmm0
call fcn.14001fad0
test eax, eax
js 0x14001ea98
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x19]
call fcn.14001fa90
test eax, eax
js 0x14001ea7e
lea rcx, [rbp + 0x1f]
lea edx, [rsi + 0x10]
not byte [rcx]
inc rcx
sub rdx, 1
jne 0x14001ea6b
lea rax, [rbp + 0x1f]
mov qword [rbp - 0x39], rax
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x19]
call fcn.14001f6f4
lea rcx, [rbp - 0x19]
call fcn.14001f6bc
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x59]
call fcn.1400162e8
test eax, eax
js 0x14001eacc
cmp dword [rbp - 0x51], 1
jne 0x14001ead0
mov r8, qword [rdi + 0x60]
lea rdx, [0x14001fc60]
mov rcx, qword [rbp - 0x59]
add r8, 0xb8
call fcn.14001e654
jmp 0x14001ead0
mov qword [rbp - 0x59], rsi
lea r9, [rbp - 0x4d]
mov rcx, rbx
lea r8, [rbp - 0x61]
lea rdx, [0x14001fd10]
call fcn.14001e014
mov rcx, qword [rbp - 0x61]
lea r9, [rbp + 0x2f]
test eax, eax
mov dword [rsp + 0x28], 3
lea r8, [rbp - 1]
mov dword [rsp + 0x20], 0x10
cmovs rcx, rsi
lea rdx, [0x14001fd80]
mov qword [rbp - 0x61], rcx
call fcn.14001e51c
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp + 0x2f]
test eax, eax
cmovs rcx, qword [rbp - 0x41]
mov qword [rbp - 0x41], rcx
test rdx, rdx
je 0x14001ebce
cmp dword [rbp - 0x4d], 2
jne 0x14001ebce
lea r9, [rbp - 0x41]
mov rcx, rdi
lea r8, [0x14001fd30]
call fcn.14001e308
mov dword [rbp - 0x69], eax
test eax, eax
je 0x14001ebce
jns 0x14001ebf0
cmp qword [rbp - 0x59], rsi
je 0x14001ebf0
mov rbx, qword [rdi + 0x60]
lea rdx, [0x14001fd40]
lea rcx, [rbp - 1]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp - 0x59]
lea rax, [rbx + 0xc4]
mov dword [rsp + 0x28], 0xb8
lea rdx, [rbp - 1]
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
test eax, eax
js 0x14001ebf0
lea rdx, [0x14001fd30]
lea rcx, [rbp - 1]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp - 0x61]
lea rdx, [rbp - 1]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
jmp 0x14001ebf0
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x14001ebf0
mov rdx, rcx
lea r9, [rbp - 0x41]
mov rcx, rdi
lea r8, [0x14001fd40]
call fcn.14001e308
mov dword [rbp - 0x69], eax
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x14001ec01
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ebx, 0x40000000
cmp qword [rbp - 0x61], rsi
je 0x14001ecac
lea rdx, [0x14001fd50]
lea rcx, [rbp - 1]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rbp - 0x39]
lea rdx, [rbp - 1]
mov rcx, qword [rbp - 0x61]
test rax, rax
je 0x14001ec50
mov dword [rsp + 0x28], 0x10
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
jmp 0x14001ec56
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
cmp dword [rbp - 0x69], esi
jne 0x14001ec6c
cmp byte [rdi + 0x5f], sil
mov eax, ebx
mov ecx, 0x50000000
cmovne eax, ecx
mov dword [rbp - 0x69], eax
lea rdx, [0x14001fd60]
lea rcx, [rbp - 1]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp - 0x61]
lea rax, [rbp - 0x69]
mov r9d, 4
lea rdx, [rbp - 1]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x14001ecbb
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rbp - 0x69]
test eax, eax
je 0x14001ecca
test ebx, eax
jne 0x14001ecca
xor eax, eax
jmp 0x14001eccf
mov eax, 0xc0000001
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14001c5f0
mov rbx, qword [rsp + 0x118]
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret