Function at 0x17d7c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rsi
push rdi
push r13
sub rsp, 0xc0
mov rdi, rcx
xor esi, esi
lea rdx, [0x00214620]
lea rcx, [rax - 0x78]
mov qword [rax + 0x18], rsi
mov dword [rax + 0x10], esi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x00214628]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r13, str.MFSysGrp
lea rcx, [rsp + 0x80]
mov rdx, r13
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, 0x400
mov word [rsp + 0x40], si
mov word [rsp + 0x42], cx
call fcn.00017d34
mov qword [rsp + 0x48], rax
cmp rax, rsi
jne 0x17dfd
mov eax, 0xc000009a
jmp 0x180ab
lea rcx, [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
cmp eax, esi
mov edi, eax
jl 0x18099
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
cmp eax, esi
mov edi, eax
jl 0x18099
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
cmp eax, esi
mov edi, eax
jl 0x18099
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x90]
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0xe8]
mov ebx, 0x30
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x90], ebx
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0xa8], 0x240
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rsi
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp eax, esi
mov edi, eax
jl 0x18099
lea rdx, [0x00020ca0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
lea r9d, [rbx - 0x2f]
lea rdx, [rsp + 0x50]
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0xf0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0xf0], rsi
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
cmp eax, esi
mov edi, eax
jl 0x18099
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
cmp eax, esi
mov edi, eax
jl 0x18099
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x90]
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0xe8]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov edx, 0xf003f
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x90], ebx
mov qword [rsp + 0x98], rsi
mov dword [rsp + 0xa8], 0x240
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rsi
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp eax, esi
mov ebx, eax
jge 0x17fdf
mov rcx, qword [rsp + 0x48]
mov edx, 0x4d784b5f
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x180ab
lea rdx, [0x00020cc0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
or rcx, 0xffffffffffffffff
lea rdx, [0x00020ce0]
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 + 0xf0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x00020cf0]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0xe8], esi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0xf0]
lea rax, [rsp + 0xe8]
mov r9d, 4
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x48]
mov edx, 0x4d784b5f
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x17fd8
mov rcx, qword [rsp + 0x48]
mov edx, 0x4d784b5f
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop r13
pop rdi
pop rsi
ret