Function at 0x140002410
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0xa38]
sub rsp, 0xb20
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0xa10], rax
movups xmm0, xmmword [str.DeviceNetBt_Wins_Export]
mov eax, dword [0x1400045f0]
xor edx, edx
movups xmm1, xmmword [0x1400045d0]
lea rcx, [rbp + 4]
mov r8d, 0x4e0
movaps xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [0x1400045e0]
mov dword [rbp], eax
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
xor r15d, r15d
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x80]
mov edi, r15d
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x50], r15d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], r15
lea r9, [rbp - 0x40]
mov dword [rsp + 0x40], r15d
lea r8, [rbp - 0x70]
mov qword [rbp - 0x60], rax
lea rcx, [rsp + 0x68]
lea eax, [r15 + 3]
mov dword [rbp - 0x70], 0x30
mov dword [rsp + 0x38], eax
xorps xmm0, xmm0
mov dword [rsp + 0x30], eax
mov edx, 0x2000000
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r15
mov qword [rbp - 0x68], r15
mov dword [rbp - 0x58], 0x40
movdqu xmmword [rbp - 0x50], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
js 0x1400026f9
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x28], r15d
mov r9d, 0x32f4
mov edx, 0x2100d6
mov qword [rsp + 0x20], r15
call fcn.140001938
mov rcx, qword [rsp + 0x68]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
je 0x140002547
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
jmp 0x1400026f9
mov rsi, qword [rsp + 0x70]
lea r12, [0x140007100]
mov r14d, r15d
mov ebx, 0x28a
cmp dword [rsi], r15d
jle 0x140002605
movsxd rax, r14d
lea rdx, [rsi + 8]
imul rcx, rax, 0x518
add rdx, rcx
lea rcx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp word [rbp - 0x80], bx
mov edx, 0x28b
movzx r9d, word [rbp - 0x80]
mov r8, qword [rbp - 0x78]
cmova r9d, ebx
mov r10d, edi
imul rcx, r10, 0x516
mov dword [rsp + 0x60], r9d
add rcx, r12
sub r8, rcx
lea rax, [rdx + 0x7ffffd73]
test rax, rax
je 0x1400025cd
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400025cd
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400025aa
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
neg rdx
mov word [rax], r15w
sbb eax, eax
and eax, r9d
inc edi
imul rdx, r10, 0x28b
inc r14d
mov dword [rsp + 0x60], eax
add rdx, rax
mov word [r12 + rdx*2], r15w
cmp r14d, dword [rsi]
jl 0x140002564
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0x40
jae 0x140002621
mov eax, edi
imul rcx, rax, 0x516
mov word [rcx + r12], r15w
lea rax, [rsp + 0x78]
mov dword [0x1400065f0], edi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x60], ebx
lea rdx, str.systemcurrentcontrolset_services_netbtparameters
mov word [0x140006be0], r15w
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400026f7
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x64]
lea rax, [rbp + 0x4f0]
xor r8d, r8d
lea rdx, str.ScopeId
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x64]
dec ecx
cmp ecx, 1
ja 0x1400026ec
test eax, eax
jne 0x1400026ec
lea rcx, [0x140006be0]
lea rdx, [rbp + 0x4f0]
sub rdx, rcx
lea rax, [rbx + 0x7ffffd74]
test rax, rax
je 0x1400026d4
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400026d4
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x1400026b2
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
jne 0x1400026ec
mov eax, 0xc000009a
jmp 0x1400026f9
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0xa10]
xor rcx, rsp
call fcn.1400031e0
lea r11, [rsp + 0xb20]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret