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

Disassembly:
push rbp
sub rsp, 0xa0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x60], rsi
mov qword [rbp + 0x58], rbx
mov rax, 0xffffffff80000002
lea rdx, str.SYSTEMDisk
lea rcx, [rbp + 0x28]
mov rbx, qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov qword [rbp + 0x38], rcx
mov rcx, rax
mov rax, qword [rbp + 0x38]
mov r8, rax
call rbx
mov dword [rbp], eax
mov eax, dword [rbp]
test eax, eax
je 0x140010086
mov eax, 0
mov rbx, qword [rbp + 0x58]
mov rsi, qword [rbp + 0x60]
lea rsp, [rbp + 0x70]
pop rbp
ret
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x28]
lea rdx, str.Information
mov ecx, 0
lea rbx, [rbp + 8]
mov qword [rsp + 0x20], 0
lea rsi, [rbp + 4]
mov qword [rsp + 0x28], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov qword [rbp + 0x40], rcx
mov rcx, rax
mov rax, qword [rbp + 0x40]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0xc], eax
mov eax, dword [rbp + 4]
movsxd rax, eax
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
call rdx
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [0x1400e9db8], rax
mov rax, qword [rbp + 0x28]
lea rdx, str.Information
mov ecx, 0
lea rbx, [rbp + 8]
mov rsi, qword [0x1400e9db8]
mov qword [rsp + 0x20], rsi
lea rsi, [rbp + 4]
mov qword [rsp + 0x28], rsi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov qword [rbp + 0x48], rcx
mov rcx, rax
mov rax, qword [rbp + 0x48]
mov r8, rax
mov r9, rbx
call rsi
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
mov dword [rbp + 0x14], eax
mov eax, dword [rbp + 0x14]
test eax, eax
je 0x140010189
mov rax, qword [rbp + 0x28]
mov rdx, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rax
call rdx
mov dword [rbp + 0x18], eax
mov rax, qword [0x1400e9db8]
test rax, rax
je 0x140010176
mov rax, qword [0x1400e9db8]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov eax, 0
mov rbx, qword [rbp + 0x58]
mov rsi, qword [rbp + 0x60]
lea rsp, [rbp + 0x70]
pop rbp
ret
mov rax, qword [0x1400e9db8]
mov qword [0x1400e9dc0], rax
call fcn.14000ff41
mov eax, dword [0x1400e0b30]
test eax, eax
je 0x14001024e
lea rax, str.Writing_the_disk_key_n
mov rcx, rax
call fcn.14000f4d8
mov rax, qword [rbp + 0x28]
lea rdx, str.Information
mov ecx, 0
mov ebx, 3
mov rsi, qword [0x1400e9db8]
mov qword [rsp + 0x20], rsi
mov esi, dword [rbp + 4]
mov dword [rsp + 0x28], esi
mov rsi, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rbp + 0x50], ecx
mov rcx, rax
mov eax, dword [rbp + 0x50]
mov r8d, eax
mov r9d, ebx
call rsi
mov dword [rbp + 0x1c], eax
mov eax, dword [rbp + 0x1c]
mov dword [rbp + 0x14], eax
mov eax, dword [rbp + 0x14]
test eax, eax
je 0x14001025d
mov rax, qword [rbp + 0x28]
mov rdx, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rax
call rdx
mov dword [rbp + 0x24], eax
mov rax, qword [0x1400e9db8]
test rax, rax
je 0x14001023b
mov rax, qword [0x1400e9db8]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov eax, 0
mov rbx, qword [rbp + 0x58]
mov rsi, qword [rbp + 0x60]
lea rsp, [rbp + 0x70]
pop rbp
ret
lea rax, str.No_Write_of_the_disk_key_n
mov rcx, rax
call fcn.14000f4d8
mov rax, qword [rbp + 0x28]
mov rdx, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rax
call rdx
mov dword [rbp + 0x20], eax
mov rax, qword [0x1400e9db8]
test rax, rax
je 0x14001028f
mov rax, qword [0x1400e9db8]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov eax, 1
mov rbx, qword [rbp + 0x58]
mov rsi, qword [rbp + 0x60]
lea rsp, [rbp + 0x70]
pop rbp
ret