Function at 0x1400a1670
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov rax, qword [0x140672360]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r13, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x88], rcx
xorps xmm1, xmm1
movdqu xmmword [r11 - 0x60], xmm1
xor r15d, r15d
mov qword [r11 - 0x50], r15
lea rbx, [rcx + 0x48]
mov qword [rsp + 0x90], rbx
mov rcx, rbx
call fcn.140333cc8
test eax, eax
jne 0x1400a1fdc
lea rdx, [r13 + 0x98]
lea rax, [rsp + 0xe8]
cmp rax, rdx
je 0x1400a1707
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
lea rcx, [rsp + 0xe8]
call fcn.1400a2630
nop
mov rcx, rbx
call fcn.140333cec
mov rdi, qword [rsp + 0xe8]
mov qword [rsp + 0x48], rdi
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x78], rax
nop dword [rax]
mov rax, qword [rsp + 0x48]
cmp rax, qword [rsp + 0x78]
je 0x1400a1f04
xorps xmm0, xmm0
movups xmmword [rsp + 0x100], xmm0
mov r14, qword [rax + 8]
mov qword [rsp + 0x50], r14
test r14, r14
je 0x1400a1767
lock inc dword [r14 + 8]
mov r14, qword [rax + 8]
mov qword [rsp + 0x50], r14
mov rsi, qword [rax]
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0x108], r14
lea rax, [rsi + 8]
mov qword [rsp + 0x80], rax
mov rdx, qword [rax]
add rdx, 8
lea rcx, [rsp + 0xc0]
call fcn.1400cd780
nop
lea rdx, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae rdx, qword [rsp + 0xc0]
mov dword [rsp + 0x98], r15d
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0xe0]
xor r8d, r8d
mov rcx, qword [r13 + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a1eb4
mov eax, dword [rsp + 0xe0]
dec eax
cmp eax, 1
ja 0x1400a1eb4
mov r12d, dword [rsp + 0x98]
shr r12d, 1
xorps xmm0, xmm0
mov edi, r12d
movdqu xmmword [rsp + 0xa8], xmm0
mov qword [rsp + 0xb8], r15
je 0x1400a18af
add rdi, rdi
cmp rdi, 0x1000
jb 0x1400a1869
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x1400a1fe4
lfence
call fcn.1403590cc
mov rcx, rax
test rax, rax
je 0x1400a1fea
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov rsi, qword [rsp + 0x100]
jmp 0x1400a1886
test rdi, rdi
je 0x1400a1883
lfence
mov rcx, rdi
call fcn.1403590cc
mov rsi, qword [rsp + 0x100]
jmp 0x1400a1886
mov rax, r15
mov qword [rsp + 0xa8], rax
lea rbx, [rdi + rax]
mov qword [rsp + 0xb8], rbx
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.14035c350
mov qword [rsp + 0xb0], rbx
mov rbx, qword [rsp + 0xa8]
lea rdx, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae rdx, qword [rsp + 0xc0]
lea eax, [r12 + r12]
mov dword [rsp + 0x9c], eax
lea rax, [rsp + 0x9c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xe4]
xor r8d, r8d
mov rcx, qword [r13 + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a1934
mov eax, dword [rsp + 0xe4]
dec eax
cmp eax, 1
ja 0x1400a1934
test rbx, rbx
je 0x1400a1989
mov eax, dword [rsp + 0x9c]
test eax, eax
je 0x1400a1985
test al, 1
jne 0x1400a1934
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x1400a1989
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x1400a1df8
mov rax, qword [rsp + 0xb8]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a1ddf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a1fea
jmp 0x1400a1ddf
mov word [rbx], r15w
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
mov rdx, qword [rsp + 0xa8]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400a19b1
lea rcx, [rsp + 0x58]
call fcn.1400739a0
nop
call fcn.140371050
mov r12, rax
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rbx, qword [rsp + 0x58]
mov dword [rax], r15d
mov r8d, 0xa
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.140370e8c
mov edi, eax
cmp rbx, qword [rsp + 0xa0]
je 0x1400a1ff0
cmp dword [r12], 0x22
je 0x1400a1ffc
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400a1a56
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a1a51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a2009
call fcn.140359090
mov word [rsp + 0x58], r15w
mov r12, qword [rsp + 0x80]
mov rax, qword [r12]
mov ecx, dword [rax + 0x150]
mov rax, rdi
mov ebx, r15d
cmp rdi, rcx
sete bl
shr edi, 0x1e
and dil, 1
je 0x1400a1a99
cmp rax, rcx
mov rcx, qword [rsi + 0x10]
jne 0x1400a1a92
mov rdx, qword [rsi + 0x18]
jmp 0x1400a1a94
xor edx, edx
call fcn.1400ec890
xor r8d, r8d
mov edx, ebx
mov ecx, dword [rsi]
call fcn.1400ed1b0
mov rax, qword [r13]
mov rdx, qword [r12]
mov rcx, r13
mov rax, qword [rax + 0x10]
call qword [case.0x1401cd220.0]
lea rbx, [r13 + 0x48]
mov rcx, rbx
call fcn.140333cc8
test eax, eax
jne 0x1400a200f
mov r12, qword [rsp + 0x88]
mov r13, qword [r12 + 0xa0]
mov rdi, qword [rsp + 0x30]
mov rdi, qword [rdi + 0x98]
cmp rdi, r13
je 0x1400a1bcc
cmp qword [rdi], rsi
je 0x1400a1b06
add rdi, 0x10
cmp rdi, r13
jne 0x1400a1af3
jmp 0x1400a1bcc
add rdi, 0x10
cmp rdi, r13
je 0x1400a1b7d
nop
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi - 0x10], rax
mov rsi, qword [rdi - 8]
mov qword [rdi - 8], rcx
test rsi, rsi
je 0x1400a1b6c
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400a1b6c
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x1401cd220.0]
mov eax, 0xffffffff
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x1400a1b6c
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x1401cd220.0]
add rdi, 0x10
cmp rdi, r13
jne 0x1400a1b10
mov r13, qword [r12 + 0xa0]
mov rdi, qword [r13 - 8]
test rdi, rdi
je 0x1400a1bc3
mov eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400a1bc3
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x1401cd220.0]
mov eax, 0xffffffff
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400a1bc3
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x1401cd220.0]
add qword [r12 + 0xa0], 0xfffffffffffffff0
mov rcx, rbx
call fcn.140333cec
lea rdx, [rsp + 0xc0]
cmp qword [rsp + 0xd8], 8
cmovae rdx, qword [rsp + 0xc0]
mov r13, qword [rsp + 0x30]
mov rcx, qword [r13 + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x1400a1c5b
mov rax, qword [rsp + 0xb8]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a1c42
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a1fea
call fcn.140359090
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa8], xmm0
mov qword [rsp + 0xb8], r15
mov rdx, qword [rsp + 0xd8]
cmp rdx, 8
jb 0x1400a1e5d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a1ca2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a2017
call fcn.140359090
jmp 0x1400a1e5d
call fcn.140359090
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa8], xmm0
mov qword [rsp + 0xb8], r15
mov rdx, qword [rsp + 0xd8]
cmp rdx, 8
jb 0x1400a1e40
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a1e3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a2017
call fcn.140359090
mov word [rsp + 0xc0], r15w
mov qword [rsp + 0xd8], 7
mov qword [rsp + 0xd0], r15
test r14, r14
je 0x1400a1ea1
mov eax, 0xffffffff
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x1400a1ea1
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax]
call qword [case.0x1401cd220.0]
mov eax, 0xffffffff
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x1400a1ea1
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [case.0x1401cd220.0]
add qword [rsp + 0x48], 0x10
mov rdi, qword [rsp + 0xe8]
jmp 0x1400a1730
mov rdx, qword [rsp + 0xd8]
cmp rdx, 8
jb 0x1400a1e40
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a1e3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a2017
jmp 0x1400a1e3b
test rdi, rdi
je 0x1400a1faf
mov rsi, qword [rsp + 0xf0]
cmp rdi, rsi
je 0x1400a1f77
nop word [rax + rax]
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400a1f66
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400a1f66
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x1401cd220.0]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400a1f66
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x1401cd220.0]
add rdi, 0x10
cmp rdi, rsi
jne 0x1400a1f20
mov rdi, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0xf8]
sub rdx, rdi
and rdx, 0xfffffffffffffff0
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400a1fa7
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a201d
mov rcx, rdi
call fcn.140359090
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140359070
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, eax
call fcn.140333d14
nop
call fcn.140073980
int3
call fcn.140368068
nop
lea rcx, str.invalid_stoul_argument
call fcn.140332c70
lea rcx, str.stoul_argument_out_of_range
call fcn.140332cb8
nop
call fcn.140368068
nop
mov ecx, eax
call fcn.140333d14
nop
call fcn.140368068
nop
call fcn.140368068
int3