Function at 0x14000daf8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0xa8], rsi
mov qword [rbp + 0xa0], rbx
mov rax, qword [0x1400e0a40]
xor rax, rbp
mov qword [rbp + 0x178], rax
mov qword [rbp + 0x30], 0
mov dword [rbp], 0
mov qword [rbp + 0x38], 0
mov rax, 0xffffffff80000002
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerDOS_Devices
mov ecx, dword [rbp]
mov ebx, 0xf003f
lea rsi, [rbp + 0x30]
mov qword [rsp + 0x20], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rbp + 0x80], ecx
mov rcx, rax
mov eax, dword [rbp + 0x80]
mov r8d, eax
mov r9d, ebx
call rsi
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
mov dword [rbp + 8], eax
mov eax, dword [rbp + 8]
test eax, eax
je 0x14000dbc9
mov eax, 0
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x178]
mov qword [rbp + 0x178], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov rax, qword [rbp + 0x68]
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
lea rsp, [rbp + 0x180]
pop rbp
ret
mov dword [rbp + 0xc], 0
mov dword [rbp + 0x10], 0
mov eax, 0
cmp eax, 1
je 0x14000ddaf
lea rax, [rbp + 0xb0]
mov byte [rax], 0
lea rax, [rbp + 0x114]
mov byte [rax], 0
mov dword [rbp + 0x14], 0x63
mov dword [rbp + 0x18], 0x63
mov rax, qword [rbp + 0x30]
mov edx, dword [rbp + 0xc]
lea rcx, [rbp + 0xb0]
lea rbx, [rbp + 0x14]
mov qword [rsp + 0x20], 0
lea rsi, [rbp + 0x1c]
mov qword [rsp + 0x28], rsi
lea rsi, [rbp + 0x114]
mov qword [rsp + 0x30], rsi
lea rsi, [rbp + 0x18]
mov qword [rsp + 0x38], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov qword [rbp + 0x88], rcx
mov rcx, rax
mov rax, qword [rbp + 0x88]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x20], eax
mov eax, dword [rbp + 0x20]
mov dword [rbp + 8], eax
mov eax, dword [rbp + 8]
test eax, eax
jne 0x14000dd48
mov eax, 0xd0
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
call rdx
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
lea rdx, [rbp + 0x114]
mov ecx, 0x63
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov qword [rbp + 0x90], rcx
mov rcx, rax
mov rax, qword [rbp + 0x90]
mov r8, rax
call rbx
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x48]
lea rax, [rax + 0x64]
lea rdx, [rbp + 0xb0]
mov ecx, 0x63
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov qword [rbp + 0x98], rcx
mov rcx, rax
mov rax, qword [rbp + 0x98]
mov r8, rax
call rbx
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x38]
test rax, rax
jne 0x14000dd12
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x60], rax
jmp 0x14000dd29
mov rax, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x48]
mov qword [rax + 0xc8], rdx
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
mov qword [rax + 0xc8], 0
mov eax, 1
add eax, dword [rbp + 0xc]
mov dword [rbp + 0xc], eax
jmp 0x14000dbd7
mov eax, dword [rbp + 8]
cmp eax, 0x103
je 0x14000ddaf
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x14000dd6e
mov rax, qword [rbp + 0x30]
mov rdx, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rax
call rdx
mov dword [rbp + 0x28], eax
mov eax, 0
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x178]
mov qword [rbp + 0x178], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov rax, qword [rbp + 0x70]
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
lea rsp, [rbp + 0x180]
pop rbp
ret
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x14000ddcb
mov rax, qword [rbp + 0x30]
mov rdx, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rax
call rdx
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x178]
mov qword [rbp + 0x178], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov rax, qword [rbp + 0x78]
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
lea rsp, [rbp + 0x180]
pop rbp
ret