Function at 0x1e52c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x120
xor esi, esi
xor eax, eax
mov rbx, rdx
lea rcx, [r11 - 0x40]
lea r8d, [rsi + 0x28]
xor edx, edx
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], 1
mov dword [r11 + 0x10], esi
mov dword [r11 + 0x18], esi
mov dword [r11 + 0x20], esi
mov word [rsp + 0x50], si
mov qword [rsp + 0x52], rax
mov dword [rsp + 0x5a], eax
mov word [rsp + 0x5e], ax
mov dword [r11 - 0x48], esi
call fcn.00028240
lea edx, [rsi + 0xc]
lea ecx, [rsi + 8]
lea rax, [0x00028930]
lea r11d, [rsi + 0xa]
mov qword [rsp + 0x88], rax
lea rax, [0x00028940]
mov word [rsp + 0x82], dx
mov qword [rsp + 0xa8], rax
lea eax, [rsi + 0x1a]
mov word [rsp + 0xa0], cx
mov word [rsp + 0xc2], ax
lea rax, [0x00028950]
mov word [rsp + 0x62], cx
mov qword [rsp + 0xc8], rax
lea ecx, [rsi + 0x16]
lea eax, [rsi + 6]
mov word [rsp + 0x60], ax
mov word [rsp + 0xe2], dx
lea edx, [rsi + 0x14]
lea rax, [0x00028970]
lea r8d, [rsi + 0x18]
mov word [rsp + 0x70], cx
mov qword [rsp + 0x68], rax
lea rax, [0x00029030]
mov word [rsp + 0x92], dx
mov qword [rsp + 0xe8], rax
lea eax, [rsi + 0x12]
mov word [rsp + 0xb0], dx
mov word [rsp + 0x90], ax
lea rax, [0x00028980]
mov word [rsp + 0xb2], cx
mov qword [rsp + 0x98], rax
lea rax, [0x000289a0]
mov word [rsp + 0xd0], dx
mov qword [rsp + 0x78], rax
lea rax, [0x00028de0]
mov word [rsp + 0xd2], cx
mov qword [rsp + 0xb8], rax
lea rax, [0x00028e00]
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x50]
mov word [rsp + 0x80], r11w
mov word [rsp + 0xa2], r11w
mov qword [rsp + 0xd8], rax
mov word [rsp + 0xc0], r8w
mov word [rsp + 0xe0], r11w
mov word [rsp + 0x72], r8w
call qword [fcn.004e696c]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x48]
lea r8, [rsp + 0xf0]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], esi
mov dword [rsp + 0xf0], 0x30
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0xf8], rsi
mov dword [rsp + 0x108], 0x240
mov qword [rsp + 0x110], rsi
mov qword [rsp + 0x118], rsi
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp eax, esi
mov edi, eax
jl 0x1e974
mov eax, dword [rbx + 0x364]
mov rcx, qword [rsp + 0x40]
lea ebp, [rsi + 4]
mov dword [rsp + 0x148], eax
lea rax, [rsp + 0x148]
lea rdx, [rsp + 0xa0]
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
cmp eax, esi
mov edi, eax
jl 0x1e959
mov eax, dword [rbx + 0x36c]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov dword [rsp + 0x150], eax
lea rax, [rsp + 0x150]
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
cmp eax, esi
mov edi, eax
jl 0x1e959
mov eax, dword [rbx + 0x370]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0xc0]
mov dword [rsp + 0x158], eax
lea rax, [rsp + 0x158]
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
cmp eax, esi
mov edi, eax
jl 0x1e959
mov rcx, qword [rsp + 0x40]
lea rax, [rbx + 0x368]
lea rdx, [rsp + 0x60]
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
cmp eax, esi
mov edi, eax
jl 0x1e959
mov eax, dword [rbx + 0x374]
lea rcx, [rbx + 0x2a0]
lea r9d, [rsi + 1]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0xe0]
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
cmp eax, esi
mov edi, eax
jl 0x1e959
mov rcx, qword [rbx + 8]
mov eax, dword [rbx + 0x378]
lea r9d, [rsi + 1]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
cmp eax, esi
mov edi, eax
jl 0x1e959
mov rcx, qword [rbx + 0x380]
mov eax, dword [rbx + 0x388]
lea r9d, [rsi + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x90]
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
cmp eax, esi
mov edi, eax
jl 0x1e959
mov rcx, qword [rbx + 0x390]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
lea edi, [rsi + 3]
cmp al, sil
je 0x1e912
mov eax, dword [rbx + 0x398]
cmp eax, esi
je 0x1e912
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x390]
lea rdx, [rsp + 0xb0]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rbx + 0x3a0]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
cmp al, sil
je 0x1e957
mov eax, dword [rbx + 0x3a8]
cmp eax, esi
je 0x1e957
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x3a0]
lea rdx, [rsp + 0xd0]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov edi, esi
mov rcx, qword [rsp + 0x40]
cmp rcx, rsi
je 0x1e974
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
mov rbx, qword [rsp + 0x140]
add rsp, 0x120
pop rdi
pop rsi
pop rbp
ret