Function at 0x44874
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x4a0
mov rax, qword [0x000a7100]
xor rax, rsp
mov qword [rsp + 0x490], rax
xor r13d, r13d
mov eax, 0x200
mov rbx, rcx
mov word [rsp + 0x32], ax
lea rax, [r11 - 0x428]
mov word [rsp + 0x30], r13w
mov rsi, r13
mov qword [rsp + 0x38], rax
cmp byte [0x000b50f8], r13b
je 0x44b30
cmp qword [0x000be5f0], r13
je 0x44b30
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
mov rcx, qword [0x000be5f0]
mov dl, 1
add rcx, 0x30
call qword [sym.imp.ntoskrnl.exe_ExAcquireResourceExclusiveLite]
lea rdx, [0x00097c40]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea rdx, [0x00097c50]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov rax, qword [0x000be5f0]
cmp byte [rax + 0x9c], r13b
jne 0x44afc
mov ebx, 0x400
mov r8d, 0x6c616e41
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
cmp rax, r13
je 0x44b06
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.00091d10
mov r11, qword [0x000be5f0]
lea r8, [0x00093ae0]
mov r9d, dword [r11 + 0x98]
mov edx, 0x1ff
mov rcx, rsi
lea eax, [r9 + 1]
mov dword [r11 + 0x98], eax
call fcn.00014458
lea rcx, [rsp + 0x60]
mov rdx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlCreateUnicodeString]
lea rdx, [0x00097b80]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8, qword [0x000be5f0]
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.000445dc
cmp eax, r13d
jl 0x44aef
mov rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.000445dc
cmp eax, r13d
jl 0x44ae4
movzx edx, word [rsp + 0x30]
movzx ecx, word [rsp + 0x32]
mov r12, qword [rsp + 0x48]
sub ecx, edx
movzx edx, dx
cmp ecx, 2
jb 0x44a6d
mov rax, qword [rsp + 0x38]
shr rdx, 1
lea r9d, [r13 + 1]
mov word [rax + rdx*2], r13w
movzx eax, word [rsp + 0x30]
lea rdx, [rsp + 0x50]
add eax, 2
xor r8d, r8d
mov rcx, r12
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
jmp 0x44ad9
add rdx, 2
xor ecx, ecx
mov r8d, 0x6c616e41
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbp, rax
cmp rax, r13
je 0x44ad9
movzx edi, word [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, rax
mov r8, rdi
mov rbx, rdi
call fcn.00091720
lea eax, [rdi + 2]
shr rbx, 1
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], rbp
mov word [rbp + rbx*2], r13w
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov edx, 0x6c616e41
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x44b06
lea rcx, [rsp + 0x30]
call fcn.00044638
mov rcx, qword [0x000be5f0]
add rcx, 0x30
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
cmp rsi, r13
je 0x44b30
mov edx, 0x6c616e41
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.000916b0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret