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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x660]
sub rsp, 0x760
mov rax, qword [0x140026730]
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 esi, esi
lea rax, str.RegistryMachineSoftwareMicrosoftWindowsCurrentVersionSetup
mov dword [rsp + 0x40], esi
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], rsi
mov dword [rbp - 0x80], 0x40
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
mov edx, eax
test eax, eax
jns 0x14000d582
mov ebx, 1
lock xadd dword [0x140027960], ebx
inc ebx
and ebx, 0x8000003f
jge 0x14000d55f
dec ebx
or ebx, 0xffffffc0
inc ebx
lea rcx, [0x140027960]
movsxd rax, ebx
add rax, rax
mov dword [rcx + rax*8 + 8], 0x2b69
mov dword [rcx + rax*8 + 0xc], edx
mov qword [rcx + rax*8 + 0x10], rsi
jmp 0x14000d944
mov rcx, qword [rsp + 0x48]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x440]
mov r8d, 2
mov dword [rsp + 0x20], 0x210
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x770], rdi
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
mov edi, eax
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test edi, edi
jns 0x14000d610
mov ebx, 1
lock xadd dword [0x140027960], ebx
inc ebx
and ebx, 0x8000003f
jge 0x14000d5f2
dec ebx
or ebx, 0xffffffc0
inc ebx
lea rcx, [0x140027960]
movsxd rax, ebx
add rax, rax
mov dword [rcx + rax*8 + 8], 0x2b80
mov dword [rcx + rax*8 + 0xc], edi
jmp 0x14000d937
lea rdx, [rbp + 0x44c]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [0x140027878]
lea rax, [rbp + 0x240]
mov qword [rsp + 0x58], rax
lea rdx, [rbp]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
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]
mov edx, eax
test eax, eax
js 0x14000d7be
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 0x14000d780
cmp word [rbp], 4
jne 0x14000d780
mov rax, qword [rbp + 8]
cmp word [rax + 2], 0x3a
jne 0x14000d780
mov rax, qword [0x140027878]
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 0x14000d780
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 0x14000d780
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 0x14000d7ed
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 0x14000d780
movzx ecx, word [rbp - 0x30]
mov rax, qword [rsp + 0x58]
shr rcx, 1
cmp word [rax + rcx*2], 0x5c
je 0x14000d7ed
mov rcx, qword [0x140027878]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
lea rdx, [rbp]
mov qword [rsp + 0x28], rax
mov r9b, 1
mov r8d, 0x23a
mov byte [rsp + 0x20], sil
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
nop dword [rax + rax]
mov edx, eax
test eax, eax
jns 0x14000d671
cmp edx, 0x8000001a
jne 0x14000d900
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
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], rsi
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]
mov edx, eax
mov ebx, 1
test eax, eax
jns 0x14000d86b
lock xadd dword [0x140027960], ebx
inc ebx
and ebx, 0x8000003f
jge 0x14000d851
dec ebx
or ebx, 0xffffffc0
inc ebx
movsxd rax, ebx
lea rcx, [0x140027960]
add rax, rax
mov dword [rcx + rax*8 + 8], 0x2c03
jmp 0x14000d933
mov rax, qword [rbp + 8]
lea rdx, [rbp - 0x10]
mov dword [rsp + 0x28], 8
mov r9d, ebx
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 edx, eax
test eax, eax
jns 0x14000d8ed
lock xadd dword [0x140027960], ebx
inc ebx
and ebx, 0x8000003f
jge 0x14000d8cf
dec ebx
or ebx, 0xffffffc0
inc ebx
lea rcx, [0x140027960]
movsxd rax, ebx
add rax, rax
mov dword [rcx + rax*8 + 8], 0x2c1d
mov dword [rcx + rax*8 + 0xc], edx
mov qword [rcx + rax*8 + 0x10], rsi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
jmp 0x14000d93c
mov ebx, 1
lock xadd dword [0x140027960], ebx
inc ebx
and ebx, 0x8000003f
jge 0x14000d91e
dec ebx
or ebx, 0xffffffc0
inc ebx
movsxd rax, ebx
lea rcx, [0x140027960]
add rax, rax
mov dword [rcx + rax*8 + 8], 0x2bea
mov dword [rcx + rax*8 + 0xc], edx
mov qword [rcx + rax*8 + 0x10], rsi
mov rdi, qword [rsp + 0x770]
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.140010a60
lea r11, [rsp + 0x760]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret