Function at 0x14000b070
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x660]
sub rsp, 0x760
mov rax, qword [0x1400246e0]
xor rax, rsp
mov qword [rbp + 0x650], rax
lea rax, str.RegistryMachineSystemSetup
mov dword [rbp - 0x60], 0x3e003c
mov qword [rbp - 0x58], rax
lea r8, [rsp + 0x68]
lea rax, str.SystemPartition
mov dword [rbp - 0x50], 0x20001e
mov qword [rbp - 0x48], rax
lea rcx, [rsp + 0x48]
lea rax, str.SymbolicLink
mov dword [rbp - 0x40], 0x1a0018
mov qword [rbp - 0x38], rax
xor edi, edi
lea rax, str.RegistryMachineSoftwareMicrosoftWindowsCurrentVersionSetup
mov dword [rsp + 0x40], edi
mov qword [rbp - 0x18], rax
xorps xmm0, xmm0
lea rax, str.BootDir
mov dword [rbp - 0x20], 0x840082
mov qword [rbp - 8], rax
mov edx, 0x20019
lea rax, [rbp - 0x60]
mov dword [rbp - 0x10], 0x10000e
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x68], 0x30
mov qword [rsp + 0x70], rdi
mov dword [rbp - 0x80], 0x40
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
js 0x14000b3e3
mov rcx, qword [rsp + 0x48]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x440]
lea r8d, [rdi + 2]
mov dword [rsp + 0x20], 0x210
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x770], rbx
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
js 0x14000b3db
lea rdx, [rbp + 0x44c]
mov qword [rsp + 0x778], rsi
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [0x140025a18]
lea rax, [rbp + 0x240]
mov qword [rsp + 0x58], rax
lea rdx, [rbp]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov r9b, 1
mov r8d, 0x23a
mov byte [rsp + 0x20], 1
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
nop dword [rax + rax]
test eax, eax
js 0x140010a52
nop dword [rax]
mov r8b, 1
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x10]
call qword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
nop dword [rax + rax]
test al, al
je 0x14000b222
cmp word [rbp], 4
je 0x14000b25f
mov rcx, qword [0x140025a18]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
lea rdx, [rbp]
mov qword [rsp + 0x28], rax
mov r9b, 1
mov r8d, 0x23a
mov byte [rsp + 0x20], dil
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
nop dword [rax + rax]
test eax, eax
jns 0x14000b200
jmp 0x140010a52
mov rax, qword [rbp + 8]
cmp word [rax + 2], 0x3a
jne 0x14000b222
mov rax, qword [0x140025a18]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x60]
lea rax, [rbp]
mov dword [rsp + 0x68], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
mov edx, 0xf0001
mov dword [rbp - 0x80], 0x40
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
nop dword [rax + rax]
test eax, eax
js 0x14000b222
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x50], 0x2000000
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
js 0x14000b222
mov r8b, 1
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
nop dword [rax + rax]
test al, al
jne 0x14000b336
mov r8b, 1
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_RtlPrefixUnicodeString]
nop dword [rax + rax]
test al, al
je 0x14000b222
jmp 0x140010a36
lea rax, [rbp - 0x20]
mov dword [rsp + 0x68], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x68]
mov qword [rsp + 0x70], rdi
mov edx, 0xf003f
mov dword [rbp - 0x80], 0x40
lea rcx, [rsp + 0x48]
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
js 0x14000b3d3
mov rax, qword [rbp + 8]
lea rdx, [rbp - 0x10]
mov dword [rsp + 0x28], 8
mov r9d, 1
xor r8d, r8d
mov ecx, dword [rax]
lea rax, [rbp + 0x240]
mov dword [rbp + 0x240], ecx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x244], 0x5c
call qword [sym.imp.ntdll.dll_NtSetValueKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x778]
mov rbx, qword [rsp + 0x770]
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.14000e710
mov rdi, qword [rsp + 0x780]
add rsp, 0x760
pop rbp
ret
movzx ecx, word [rbp - 0x30]
mov rax, qword [rsp + 0x58]
shr rcx, 1
cmp word [rax + rcx*2], 0x5c
je 0x14000b336
jmp 0x14000b222
cmp eax, 0x8000001a
jne 0x14000b3d3
call qword [sym.imp.ntdll.dll_RtlGetNtSystemRoot]
nop dword [rax + rax]
lea rcx, [rbp + 0x20]
mov qword [rbp + 8], rcx
movzx ecx, word [rax]
mov word [rbp + 0x20], cx
movzx eax, word [rax + 2]
mov word [rbp + 0x22], ax
jmp 0x14000b336