Function at 0x14004e9e0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x8f0], rbx
mov rax, qword [0x1401cde90]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov r13, rdx
xor esi, esi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x58], rsi
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.14004c380
nop
mov qword [rsp + 0x68], rsi
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [0x1401d0d48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x14004ea7f
mov dword [rsp + 0x50], esi
mov ecx, esi
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
test ecx, ecx
setne bl
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ea9d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14004eaf8
mov eax, dword [0x1401d5d60]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub ecx, edx
cmp ecx, 3
jne 0x14004eaec
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x1401d5d60]
mov edx, 7
test rax, rax
cmove ecx, edx
mov dword [0x1401d5d60], ecx
xor bl, bl
mov rdi, qword [rsp + 0x48]
jmp 0x14004ed9d
mov r12d, esi
mov rdi, qword [rsp + 0x48]
mov ebx, dword [0x1401d5d60]
nop word [rax + rax]
mov word [rbp - 0x70], si
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x6e]
call fcn.1400d8c20
mov dword [rsp + 0x60], 0x400
lea ecx, [rbx + 2]
lea eax, [rbx + 1]
imul ecx, eax
imul ecx, ebx
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 0x12
jne 0x14004eb73
mov ecx, 1
cmp ebx, ecx
jle 0x14004eb6d
mov eax, ebx
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, ebx
jl 0x14004eb60
mov dword [0x1401d5d60], ecx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x70]
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r15d, eax
inc r12d
test eax, eax
jne 0x14004ed12
lea rcx, str.__r_
mov rdx, qword [str.__r_]
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x70]
lea rax, [rbp - 0x70]
test rax, 0xffffffffffff0000
jne 0x14004ec00
movzx ebx, cx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x14004ece6
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002760
jmp 0x14004ece6
lea rax, [rbp - 0x70]
or rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14004ec10
test edi, edi
jne 0x14004ec6e
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14004ece6
cmp dword [rdx + 0x10], 0
jge 0x14004ec4a
cmp dword [rbx - 0xc], 0
jl 0x14004ed60
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x14004ece6
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ec5a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
jmp 0x14004ece6
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp - 0x70]
sub rsi, rbx
sar rsi, 1
test edi, edi
js 0x14004ed76
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14004eca6
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140002560
mov rbx, qword [rsp + 0x40]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14004ecca
lea r8, [rbx + rsi*2]
call fcn.1400d400c
jmp 0x14004ecd3
lea r8, [rbp - 0x70]
call fcn.1400d41cc
cmp edi, dword [rbx - 0xc]
jg 0x14004ed6b
mov dword [rbx - 0x10], edi
xor esi, esi
mov word [r14 + rbx], si
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.14002bb90
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004ed0d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x48]
mov ebx, dword [0x1401d5d60]
lea ecx, [rbx + 1]
imul ecx, ebx
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub ecx, edx
cmp ecx, 3
jne 0x14004ed56
mov edx, 1
mov eax, edx
mov ecx, 0x41
lea ebx, [rax + rdx]
lea edx, [rax]
mov eax, ebx
dec ecx
jns 0x14004ed45
mov dword [0x1401d5d60], ebx
test r15d, r15d
jne 0x14004ed81
jmp 0x14004eb10
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
test rdi, rdi
je 0x14004ed97
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rsi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x50], esi
mov bl, 1
test rdi, rdi
je 0x14004edb0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x50], esi
movzx eax, bl
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.1400d37e0
mov rbx, qword [rsp + 0x8f0]
add rsp, 0x8a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret