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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x610
mov rax, qword [0x140015008]
xor rax, rsp
mov qword [rsp + 0x600], rax
mov rsi, qword [r8]
xor ebp, ebp
mov rdi, rdx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
mov rbx, rcx
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x90]
xor r9d, r9d
mov rcx, rsi
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea r11, [rsp + 0x78]
mov qword [rsp + 0x40], r11
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, rsi
test eax, eax
mov ebx, eax
je 0x14000476f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14000492f
xor edi, edi
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x1e0]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov ebp, 1
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x60], 0x208
mov qword [rsp + 0x20], rdi
mov ebx, ebp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140004839
mov rdi, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
lea rdx, [rsp + 0x1e0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400047f9
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x1e0]
mov rcx, rdi
call fcn.1400046b0
xor edi, edi
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x1e0]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov edx, ebx
mov rcx, rsi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x60], 0x208
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add ebx, ebp
test eax, eax
je 0x1400047b1
lea rax, [rsp + 0x64]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x3f0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd0]
xor edx, edx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov rcx, rsi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x60], 0x208
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140004919
nop
mov eax, dword [rsp + 0x64]
mov r9d, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0xd0]
lea rdx, [rsp + 0x3f0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rsp + 0x64]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd0]
lea r8, [rsp + 0x3f0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov edx, ebp
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov dword [rsp + 0x60], 0x208
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x64], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add ebp, 1
test eax, eax
je 0x140004890
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x600]
xor rcx, rsp
call fcn.1400049a0
mov rbx, qword [rsp + 0x648]
add rsp, 0x610
pop rdi
pop rsi
pop rbp
ret