Function at 0x7fff25dc4c34
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [0x7fff25fcfe70]
xor rax, rsp
mov qword [rbp], rax
xor edi, edi
mov qword [rbp - 0x40], r9
mov qword [rbp - 0x48], rdi
mov rsi, rdx
mov rdx, qword [rbp + 0x80]
mov rax, r8
mov qword [rbp - 0x38], rdx
mov r13d, edi
mov qword [rsp + 0x68], rax
mov r12d, edi
mov qword [rbp - 0x58], rdi
mov r14d, edi
mov qword [rbp - 0x78], rdi
mov r15d, edi
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x70], rdi
test r8, r8
je 0x7fff25dc5034
mov qword [r9], rdi
lea r8d, [rdi + 8]
mov qword [rdx], rdi
mov r9d, 0x2000000
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdx
mov rdx, rax
call sym.KERNELBASE.dll_RegOpenKeyExInternalW
test eax, eax
jne 0x7fff25dc5013
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x58], rdi
lea rax, [rbp - 0x64]
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x60]
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor edx, edx
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call sym.KERNELBASE.dll_RegQueryInfoKeyW
mov ebx, eax
test eax, eax
jne 0x7fff25dff7ea
mov rcx, qword [rsp + 0x78]
lea rax, [rbp - 0x68]
lea r9d, [rbx + 0xc]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x10]
lea edx, [rbx + 5]
call qword [sym.imp.ntdll.dll_NtQueryKey]
nop dword [rax + rax]
test eax, eax
js 0x7fff25dff7da
mov eax, dword [rbp - 0xc]
lea ecx, [rbx + 2]
test cl, al
jne 0x7fff25dff81a
mov edi, dword [rsp + 0x60]
xor ebx, ebx
test edi, edi
jne 0x7fff25dff821
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x7fff25dc503e
xor edi, edi
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x48], rdi
and eax, 1
mov qword [rsp + 0x40], rdi
mov r9, r13
mov qword [rsp + 0x38], rdx
xor r8d, r8d
mov qword [rsp + 0x30], rdi
mov rdx, rcx
mov dword [rsp + 0x28], 0x2000000
mov rcx, rsi
mov dword [rsp + 0x20], eax
call sym.KERNELBASE.dll_RegCreateKeyExInternalW
mov ebx, eax
test eax, eax
jne 0x7fff25dff7ea
mov eax, dword [rbp - 0x64]
test eax, eax
je 0x7fff25dc4e34
mov rcx, qword gs:[0x60]
mov r8d, eax
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 0x48], rax
mov r14, rax
test rax, rax
je 0x7fff25dff8ab
mov rcx, qword [rsp + 0x78]
lea r9, [rbp - 0x64]
mov esi, 4
mov r8, rax
mov edx, esi
call sym.KERNELBASE.dll_RegGetKeySecurity
mov ebx, eax
test eax, eax
jne 0x7fff25dff7ea
mov rcx, qword [rbp - 0x70]
mov r8, r14
mov edx, esi
call sym.KERNELBASE.dll_RegSetKeySecurity
mov ebx, eax
test eax, eax
jne 0x7fff25dff7ea
mov eax, dword [rbp - 0x80]
mov esi, 2
mov rcx, qword gs:[0x60]
test eax, eax
cmove eax, esi
xor edx, edx
mov r8d, eax
mov rcx, qword [rcx + 0x30]
mov dword [rbp - 0x80], eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 0x58], rax
test rax, rax
je 0x7fff25dff8ab
mov eax, dword [rbp - 0x7c]
add eax, esi
mov dword [rbp - 0x7c], eax
cmp eax, esi
jb 0x7fff25dff8ab
lea ecx, [rax + 1]
cmp ecx, eax
jbe 0x7fff25dff8ab
mov r8d, ecx
add r8, r8
cmp r8, rsi
jbe 0x7fff25dff8ab
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 0x78], rax
mov r15, rax
test rax, rax
je 0x7fff25dff8ab
mov esi, dword [rbp - 0x50]
xor ecx, ecx
test esi, esi
je 0x7fff25dc4f69
mov r14d, dword [rbp - 0x80]
mov r15d, dword [rbp - 0x7c]
mov r8, qword [rbp - 0x78]
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x38], rax
lea r9, [rbp - 0x60]
mov rax, qword [rbp - 0x58]
mov edx, edi
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x78]
mov dword [rbp - 0x60], r15d
mov dword [rbp - 0x5c], r14d
call sym.KERNELBASE.dll_RegEnumValueW
xor edx, edx
mov ebx, eax
test eax, eax
jne 0x7fff25dff7ea
mov eax, dword [rbp - 0x60]
xor r8d, r8d
mov rcx, qword [rbp - 0x78]
mov r9d, dword [rbp - 0x4c]
mov word [rcx + rax*2], dx
mov rdx, rcx
mov eax, dword [rbp - 0x5c]
mov rcx, qword [rbp - 0x70]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x20], rax
call sym.KERNELBASE.dll_RegSetValueExW
xor ecx, ecx
mov ebx, eax
test eax, eax
jne 0x7fff25dff7ea
inc edi
cmp edi, esi
jb 0x7fff25dc4ed9
mov r15, qword [rbp - 0x78]
mov rdi, qword [rsp + 0x68]
test r12, r12
jne 0x7fff25dff9ad
mov r14, qword [rbp - 0x48]
test r13, r13
jne 0x7fff25dff9d1
test r14, r14
je 0x7fff25dc4fa7
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rax, qword [rbp - 0x58]
test rax, rax
je 0x7fff25dc4fce
mov rcx, qword gs:[0x60]
mov r8, rax
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test r15, r15
je 0x7fff25dc4ff1
mov rcx, qword gs:[0x60]
mov r8, r15
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test rdi, rdi
je 0x7fff25dc5011
test ebx, ebx
jne 0x7fff25dc5011
mov rcx, qword [rbp - 0x40]
mov rax, qword [rsp + 0x78]
mov qword [rcx], rax
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x70]
mov qword [rcx], rax
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.7fff25dce640
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0x78], rcx
jmp 0x7fff25dc4cd5
mov qword [rsp + 0x58], rbx
lea rax, [rbp - 0x68]
mov qword [rsp + 0x50], rbx
lea r8, [rsp + 0x70]
mov qword [rsp + 0x48], rbx
xor r9d, r9d
mov qword [rsp + 0x40], rbx
xor edx, edx
mov qword [rsp + 0x38], rbx
mov rcx, rsi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov qword [rbp - 0x70], rsi
call sym.KERNELBASE.dll_RegQueryInfoKeyW
mov ebx, eax
test eax, eax
jne 0x7fff25dc50a4
mov eax, dword [rsp + 0x70]
test edi, edi
jne 0x7fff25dc509d
xor edi, edi
test eax, eax
je 0x7fff25dc4dc5
jmp 0x7fff25dff8b5
xor edi, edi
jmp 0x7fff25dff8b5
mov rdi, qword [rsp + 0x68]
jmp 0x7fff25dc4f7b