Function at 0x140004650
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x14008b180]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov r13, r8
mov r12, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov rsi, qword [rsp + 0x110]
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x30], rax
xor edi, edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 2]
lea r8, str.settings
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea r15, str.0k_a_
lea r14, [0x14008b1c8]
test eax, eax
je 0x1400046ec
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], r15
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov edx, edi
mov rcx, qword [rsi + 8]
jmp 0x1400046fc
mov dword [rsi], edi
mov qword [rsi + 8], r14
mov edx, dword [rsp + 0xa4]
mov rcx, r14
mov rax, qword [0x14008b1d0]
cmp qword [rcx + 8], rax
jne 0x1400049ea
cmp dword [rsi], edi
jne 0x1400049ea
test rdx, rdx
je 0x1400049ea
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], 7
mov word [rsp + 0x80], di
shr rdx, 1
jne 0x140004759
mov qword [rsp + 0x90], rdx
mov word [rsp + rdx*2 + 0x80], di
jmp 0x14000479f
cmp rdx, 7
ja 0x140004784
mov qword [rsp + 0x90], rdx
movzx eax, di
lea rdi, [rsp + 0x80]
mov rcx, rdx
rep stosw word [rdi], ax
xor edi, edi
mov word [rsp + rdx*2 + 0x80], di
jmp 0x14000479f
lfence
mov word [rsp + 0x20], di
mov r9, rdx
xor r8d, r8d
lea rcx, [rsp + 0x80]
call fcn.140022880
lea rcx, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x90]
add rax, rax
mov dword [rsp + 0xa0], eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdi
mov r9d, 2
lea r8, str.settings
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x14000481a
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x68], r15
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi], xmm0
mov rcx, rdi
mov r14, qword [rsi + 8]
jmp 0x140004827
mov dword [rsi], edi
mov qword [rsi + 8], r14
mov ecx, dword [rsp + 0xa0]
mov rax, qword [0x14008b1d0]
cmp qword [r14 + 8], rax
jne 0x14000491a
cmp dword [rsi], 0
jne 0x14000491a
shr rcx, 1
dec rcx
mov r8, qword [rsp + 0x90]
cmp rcx, r8
ja 0x14000487c
lea rax, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rcx
mov word [rax + rcx*2], di
jmp 0x1400048f0
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rsp + 0x98]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x1400048d3
mov qword [rsp + 0x90], rcx
lea r9, [rsp + 0x80]
cmp rdi, 8
cmovae r9, qword [rsp + 0x80]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x1400048c6
xor eax, eax
movzx eax, ax
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
xor edi, edi
mov word [r9 + rax*2], di
jmp 0x1400048f0
lfence
xor edi, edi
mov word [rsp + 0x20], di
mov r9, rdx
xor r8d, r8d
lea rcx, [rsp + 0x80]
call fcn.140022880
lea rcx, [rsp + 0x80]
call fcn.1400181d0
nop
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x90]
movups xmmword [rbx + 0x10], xmm1
jmp 0x1400049fc
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov rdx, qword [rsp + 0x98]
cmp rdx, 8
jb 0x140004977
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004972
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004972
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140067440
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], 7
mov word [rsp + 0x80], di
mov rax, rbx
jmp 0x1400049ff
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov rax, rbx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400673e0
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret