Function at 0x140005530
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x520]
sub rsp, 0x620
mov rax, qword [0x1400c8090]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov rdi, r9
lea rax, [rsp + 0x68]
mov rbx, r8
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400057ac
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x618], rsi
lea rdx, [rbp - 0x70]
xor esi, esi
mov dword [rsp + 0x60], 0x20
mov qword [rsp + 0x58], rsi
xor r9d, r9d
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea rax, [rbp - 0x80]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea r9, [rbp - 0x70]
lea rax, [rsp + 0x78]
mov rdx, rdi
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
test eax, eax
je 0x14000561b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400057a4
mov qword [rsp + 0x38], rsi
lea r9, [rsp + 0x60]
mov qword [rsp + 0x30], rsi
lea r8, [rbp + 0xe0]
mov edi, 1
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x60], 0x104
mov ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400056b8
nop word [rax + rax]
mov r8, qword [rsp + 0x78]
lea r9, [rbp + 0xe0]
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp + 0xe0]
call fcn.140005530
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], rsi
lea r8, [rbp + 0xe0]
mov qword [rsp + 0x30], rsi
mov edx, ebx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x60], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc ebx
test eax, eax
je 0x140005660
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x60]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x60], 0x104
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x2f0]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14000578c
nop dword [rax + rax]
mov eax, dword [rsp + 0x64]
lea rdx, [rbp + 0x2f0]
mov r9d, dword [rsp + 0x70]
xor r8d, r8d
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x60]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x60], 0x104
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x2f0]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x28], rax
mov edx, edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc edi
test eax, eax
je 0x140005710
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rsi, qword [rsp + 0x618]
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.1400403f0
add rsp, 0x620
pop rdi
pop rbx
pop rbp
ret