Function at 0x14007c89c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push rdi
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rsi, rcx
lea rdx, [0x1404a9d65]
lea rcx, [rbp - 0x48]
mov r8d, 0x28
call fcn.1400771bf
mov rcx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x38]
add rax, rcx
lea rdi, [rbp - 0x30]
mov qword [rbp + 0x18], rcx
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov word [rdi + 0x10], 0
mov dword [rdi + 0x18], 1
lea rcx, [rbp - 0x10]
mov rdx, rdi
call fcn.1400afe64
cmp qword [rbp - 0x48], 0
je 0x14007c925
mov rcx, qword [0x140532288]
xor edx, edx
mov r8, qword [rbp + 0x18]
call qword [sym.imp.kernel32.dll_HeapFree]
mov qword [rbp - 0x30], 0
mov rdx, qword [rbp - 8]
mov qword [rsp + 0x20], rdi
mov rcx, 0xffffffff80000002
mov qword [rbp + 8], rdx
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14007c95c
mov rax, qword [rbp - 0x30]
jmp 0x14007c967
mov rax, rdi
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x18], rax
cmp qword [rbp - 0x10], 0
je 0x14007c985
mov rcx, qword [0x140532288]
xor edx, edx
mov r8, qword [rbp + 8]
call qword [sym.imp.kernel32.dll_HeapFree]
test edi, edi
je 0x14007c999
mov rax, qword [rbp + 0x18]
mov qword [rsi + 8], rax
mov byte [rsi], 1
jmp 0x14007cb64
lea rax, str.Startt
lea rdx, [rbp - 0x30]
mov qword [rdx], rax
lea rax, [0x1404a9d92]
mov qword [rdx + 8], rax
mov word [rdx + 0x10], 0
mov dword [rdx + 0x18], 1
lea rcx, [rbp - 0x10]
call fcn.1400afe64
mov qword [rbp + 8], rsi
mov dword [rbp + 0x14], 0x800
mov dword [rbp - 0x48], 0
mov ecx, 0x800
call fcn.140019604
mov rdi, rdx
lea rbx, [rbp - 0x30]
mov qword [rbx], rax
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], 0
mov r14, qword [rbp - 8]
lea r13, [rbp + 0x14]
lea r15, [rbp - 0x48]
mov rsi, qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
mov rcx, qword [rbp + 0x18]
mov rdx, r14
xor r8d, r8d
mov r9, r15
call rsi
mov r12d, eax
cmp eax, 0xea
jne 0x14007ca52
mov r8d, dword [rbp + 0x14]
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x20]
sub rax, rdx
cmp rax, r8
jae 0x14007ca0d
mov rcx, rbx
call fcn.1400db82e
mov rdi, qword [rbp - 0x28]
jmp 0x14007ca0d
movabs r14, 0x8000000000000000
test r12d, r12d
jne 0x14007ca83
mov r12d, dword [rbp + 0x14]
mov qword [rbp - 0x20], r12
mov r15d, dword [rbp - 0x48]
mov rbx, qword [rbp - 0x30]
cmp r15d, 0xb
jbe 0x14007cab4
movabs r12, 0xde00000002
jmp 0x14007ca8f
shl r12, 0x20
or r12, 2
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x14007caab
mov rcx, qword [0x140532288]
xor r15d, r15d
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x14007caae
xor r15d, r15d
mov rbx, r14
mov rdi, r12
cmp qword [rbp - 0x10], 0
je 0x14007cace
mov r8, qword [rbp - 8]
mov rcx, qword [0x140532288]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp rbx, r14
jne 0x14007cadc
mov r14, rdi
mov rcx, qword [rbp + 8]
jmp 0x14007cb4b
cmp r15b, 5
je 0x14007caf6
movzx eax, r15b
cmp eax, 4
jne 0x14007cb07
cmp r12, 4
jne 0x14007cb13
mov r15d, dword [rdi]
jmp 0x14007cb02
cmp r12, 4
jne 0x14007cb13
mov r15d, dword [rdi]
bswap r15d
mov sil, 1
jmp 0x14007cb1f
movabs r14, 0xde00000002
jmp 0x14007cb1d
movabs r14, 0xd00000002
xor esi, esi
test rbx, rbx
je 0x14007cb36
mov rcx, qword [0x140532288]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
test sil, sil
mov rcx, qword [rbp + 8]
je 0x14007cb4b
cmp r15d, 1
jne 0x14007cb53
mov byte [rcx + 1], 1
jmp 0x14007cb57
mov qword [rcx + 8], r14
mov al, 1
jmp 0x14007cb59
mov byte [rcx + 1], 0
xor eax, eax
mov byte [rcx], al
mov rcx, qword [rbp + 0x18]
call fcn.1400b0222
mov rcx, 0xffffffff80000002
call fcn.1400b0222
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret