Function at 0x144c8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x330
mov rax, qword [0x000a7100]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov rbx, rcx
xor ebp, ebp
mov rsi, rdx
lea rdx, [0x00092b10]
xor eax, eax
lea r13d, [rbp + 1]
mov rdi, rdx
or r15, 0xffffffffffffffff
lea r8, [0x00092b50]
mov rcx, r15
mov r9d, r13d
mov qword [rsp + 0x50], rbp
repne scasw ax, word [rdi]
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x48], ebp
not rcx
mov dword [rsp + 0x4c], ebp
sub rcx, r13
lea eax, [rcx + rcx + 2]
mov ecx, r13d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
mov r12d, 0xc0000000
mov ecx, eax
and ecx, r12d
cmp ecx, r12d
jne 0x14574
lea rcx, [0x00092b60]
mov edx, eax
call fcn.0004505c
lea rdx, [0x00092ba0]
xor eax, eax
mov rcx, r15
mov rdi, rdx
lea r8, [0x00092bb0]
mov r9d, 7
repne scasw ax, word [rdi]
not rcx
sub rcx, r13
lea eax, [rcx + rcx + 2]
mov ecx, r13d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
mov ecx, eax
and ecx, r12d
cmp ecx, r12d
jne 0x145ca
lea rcx, [0x00092bd0]
mov edx, eax
call fcn.0004505c
lea rcx, [rsp + 0xc0]
xor edx, edx
mov r8d, 0x258
call fcn.00091d10
lea rax, [rsp + 0xc0]
mov r14d, 0x12c
mov rdx, r14
lea rcx, [rsp + 0xc0]
sub rbx, rax
lea rax, [rdx + 0x7ffffed2]
cmp rax, rbp
je 0x1461c
movzx eax, word [rbx + rcx]
cmp ax, bp
je 0x1461c
mov word [rcx], ax
add rcx, 2
sub rdx, r13
jne 0x145fb
cmp rdx, rbp
jne 0x14625
sub rcx, 2
mov word [rcx], bp
lea r8, [0x00092c10]
lea rcx, [rsp + 0xc0]
mov rdx, r14
call fcn.0001438c
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x58]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov ebx, 0x30
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x80], 0x40
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x90], rbp
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov ecx, eax
mov edi, eax
and ecx, r12d
cmp ecx, r12d
jne 0x146ca
mov edx, eax
lea rcx, [0x00092c30]
jmp 0x14892
lea rdx, [0x00092c60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor eax, eax
mov rcx, r15
mov rdi, rsi
lea rdx, [rsp + 0x58]
mov r9d, r13d
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
sub rcx, r13
lea eax, [rcx + rcx + 2]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov ecx, eax
and ecx, r12d
cmp ecx, r12d
jne 0x14728
lea rcx, [0x00092c80]
mov edx, eax
call fcn.0004505c
lea r8, [0x00092cc0]
lea rcx, [rsp + 0xc0]
mov rdx, r14
call fcn.0001438c
lea rcx, [rsp + 0xc0]
mov r8, rsi
mov rdx, r14
call fcn.0001438c
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x58]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x80], 0x40
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x90], rbp
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov edi, eax
and eax, r12d
cmp eax, r12d
jne 0x147d4
lea rcx, [0x00092c30]
jmp 0x14890
lea rdx, [0x00092cd0]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x00092cf0]
xor eax, eax
mov rdi, rdx
mov rcx, r15
mov r9d, r13d
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
sub rcx, r13
lea eax, [rcx + rcx + 2]
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov ecx, eax
and ecx, r12d
cmp ecx, r12d
jne 0x1483f
lea rcx, [0x00092d00]
mov edx, eax
call fcn.0004505c
lea rdx, [0x00092d40]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x4c]
mov r9d, 4
lea rdx, [rsp + 0x98]
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov edi, eax
and eax, r12d
cmp eax, r12d
jne 0x14897
lea rcx, [0x00092d50]
mov edx, edi
call fcn.0004505c
mov rcx, qword [rsp + 0x40]
cmp rcx, rbp
je 0x148ac
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0x40], rbp
mov rcx, qword [rsp + 0x50]
cmp rcx, rbp
je 0x148bc
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.000916b0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret