Function at 0x14008ea58
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r14d, r14d
mov qword [rbp - 0x80], r8
mov r13, rdx
mov byte [rcx], 1
mov r15, rcx
mov qword [rsp + 0x70], r14
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x208
lea edi, [r14 + 3]
mov esi, r14d
mov r12b, r14b
call sub.msvcrt.dll_memset
call fcn.14008e70c
mov r8, rax
lea rcx, [rbp - 0x70]
mov edx, 0x104
call fcn.1400026c0
mov ebx, eax
test eax, eax
js 0x14008ec96
lea r8, str.Users
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.1400027e4
mov ebx, eax
test eax, eax
js 0x14008ec96
lea rax, [rsp + 0x70]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14008ec96
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r14
xor r9d, r9d
mov qword [rsp + 0x50], r14
xor r8d, r8d
mov qword [rsp + 0x48], r14
xor edx, edx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x64], r14d
mov dword [rsp + 0x60], r14d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14008ec96
mov ebx, dword [rsp + 0x60]
inc ebx
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14008ebdd
mov ebx, 0x8007000e
jmp 0x14008ecc9
cmp dword [rsp + 0x64], r14d
jbe 0x14008ec8b
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x78]
mov eax, dword [rsp + 0x60]
mov r8, rsi
and qword [rsp + 0x30], 0
inc eax
and qword [rsp + 0x28], 0
mov edx, r14d
mov rcx, qword [rsp + 0x70]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x78], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070002
je 0x14008ec6f
test ebx, ebx
js 0x14008ec93
mov r9, qword [rbp - 0x80]
lea rcx, [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov r8, rsi
call fcn.14008e6ac
mov ebx, eax
cmp eax, 0x80070002
je 0x14008ec6f
test eax, eax
js 0x14008ec93
cmp dword [rsp + 0x68], edi
mov r12b, 1
cmovl edi, dword [rsp + 0x68]
inc r14d
cmp r14d, dword [rsp + 0x64]
jb 0x14008ebe8
xor r14d, r14d
test r12b, r12b
je 0x14008ec8b
mov dword [r13], edi
jmp 0x14008ec8e
mov byte [r15], r14b
mov ebx, r14d
jmp 0x14008ec96
xor r14d, r14d
cmp ebx, 0x80070002
jne 0x14008eca4
mov ebx, r14d
mov byte [r15], r14b
test rsi, rsi
je 0x14008ecc9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14008ecdf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140094220
mov rbx, qword [rsp + 0x308]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret