Function at 0x1400222f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xa8
mov rax, qword [0x1400c2138]
xor rax, rsp
mov qword [rbp - 1], rax
mov rdi, r9
mov r14, r8
mov rbx, rdx
mov qword [rbp - 0x59], rdx
mov qword [rbp - 0x41], rcx
mov qword [rbp - 9], r9
mov rax, qword [rbp + 0x77]
mov qword [rbp - 0x51], rax
movabs r15, 0x7ffffffffffffffe
mov qword [rbp - 0x49], r15
mov rcx, 0xfffffffffffffffe
movabs r8, 0x7fffffffffffffff
xor r13d, r13d
cmp r14, r9
je 0x1400223b7
mov rax, r9
mov qword [rbp - 0x61], rax
cmp qword [r9 + 0x18], 8
jb 0x140022370
mov rax, qword [r9]
mov qword [rbp - 0x61], rax
mov r13, qword [r9 + 0x10]
mov r12, qword [r14 + 0x18]
cmp r13, r12
ja 0x140022534
mov rsi, r14
cmp r12, 8
jb 0x14002238d
mov rsi, qword [r14]
mov qword [r14 + 0x10], r13
lea rbx, [r13*2]
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.140061930
xor r13d, r13d
mov word [rbx + rsi], r13w
mov rbx, qword [rbp - 0x59]
mov rax, qword [rbp - 0x51]
mov qword [rbp - 0x21], r13
mov dword [rbp - 0x19], r13d
mov qword [rbp - 0x11], r13
mov rcx, qword [rbp - 0x41]
cmp qword [rcx + 0x18], 8
jb 0x1400223d1
mov rcx, qword [rcx]
mov qword [rbp - 0x51], r13
lea rdx, [rbp - 0x51]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022848
mov r12, qword [rbp - 0x51]
mov qword [rbp - 0x21], r12
mov dword [rbp - 0x19], r13d
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140022414
mov rdx, qword [rbx]
mov dword [rbp - 0x61], r13d
lea rax, [rbp - 0x61]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x59]
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002251d
mov eax, dword [rbp - 0x59]
dec eax
cmp eax, 1
ja 0x14002251d
mov esi, dword [rbp - 0x61]
shr esi, 1
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], r13
mov word [rbp - 0x61], r13w
lea edx, [rsi + 1]
lea r8, [rbp - 0x61]
lea rcx, [rbp - 0x39]
call fcn.140024020
cmp qword [rbx + 0x18], 8
jb 0x14002247c
mov rbx, qword [rbx]
lea eax, [rsi + rsi]
mov dword [rbp - 0x61], eax
lea rax, [rbp - 0x61]
mov qword [rsp + 0x28], rax
mov rsi, qword [rbp - 0x39]
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x59]
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400224dc
mov eax, dword [rbp - 0x59]
dec eax
cmp eax, 1
ja 0x1400224dc
test rsi, rsi
je 0x14002263e
mov eax, dword [rbp - 0x61]
test eax, eax
je 0x14002263a
test al, 1
jne 0x1400224dc
shr rax, 1
cmp word [rsi + rax*2 - 2], 0
je 0x14002263e
test rsi, rsi
je 0x14002251d
mov rax, qword [rbp - 0x29]
sub rax, rsi
sar rax, 1
lea rdx, [rax + rax]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140022514
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400228e3
mov rcx, rsi
call fcn.14005cb40
nop
test r12, r12
je 0x140022848
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140022848
cmp r13, r15
ja 0x1400228e9
mov rbx, r13
or rbx, 7
cmp rbx, r15
jbe 0x14002254e
mov rbx, r15
jmp 0x140022588
mov rdx, r12
shr rdx, 1
mov rax, r15
sub rax, rdx
cmp r12, rax
jbe 0x140022564
mov rbx, r15
jmp 0x140022588
lea rax, [rdx + r12]
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, r8
ja 0x140022906
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400225b4
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140022906
mov rcx, rax
call fcn.1400679f4
test rax, rax
je 0x1400228ef
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400225d0
test rcx, rcx
je 0x1400225cc
call fcn.1400679f4
mov rsi, rax
test rax, rax
je 0x1400228bb
jmp 0x1400225d0
xor eax, eax
mov esi, eax
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], rbx
lea rbx, [r13*2]
mov r8, rbx
mov rdx, qword [rbp - 0x61]
mov rcx, rsi
call fcn.140061930
xor r13d, r13d
mov word [rbx + rsi], r13w
cmp r12, 8
jb 0x140022632
mov rcx, qword [r14]
lea rdx, [r12*2 + 2]
cmp rdx, 0x1000
jb 0x14002262d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140022900
mov rcx, r8
call fcn.14005cb40
mov qword [r14], rsi
jmp 0x1400223af
mov word [rsi], r13w
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140022645
mov r13, qword [r14 + 0x18]
cmp rbx, r13
ja 0x140022686
mov r15, r14
cmp r13, 8
jb 0x140022664
mov r15, qword [r14]
mov qword [r14 + 0x10], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, r15
call fcn.140061930
xor r14d, r14d
mov word [rbx + r15], r14w
jmp 0x1400227a2
cmp rbx, r15
ja 0x14002290c
mov rcx, rbx
or rcx, 7
cmp rcx, r15
jbe 0x1400226a4
mov rax, 0xfffffffffffffffe
jmp 0x1400226f6
mov rdx, r13
shr rdx, 1
mov rax, r15
sub rax, rdx
cmp r13, rax
jbe 0x1400226c2
mov qword [rbp - 0x49], r15
mov rax, 0xfffffffffffffffe
jmp 0x1400226f6
lea rax, [rdx + r13]
mov r15, rcx
cmp rcx, rax
cmovb r15, rax
mov qword [rbp - 0x49], r15
lea rax, [r15 + 1]
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
ja 0x1400228b5
add rax, rax
cmp rax, 0x1000
jb 0x14002271f
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x1400228b5
call fcn.1400679f4
test rax, rax
je 0x140022912
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x14002273d
test rax, rax
je 0x14002273a
mov rcx, rax
call fcn.1400679f4
mov r15, rax
test rax, rax
je 0x1400228cc
jmp 0x14002273d
mov r15, rax
mov qword [r14 + 0x10], rbx
mov rax, qword [rbp - 0x49]
mov qword [r14 + 0x18], rax
add rbx, rbx
mov r8, rbx
mov rdx, rsi
mov rcx, r15
call fcn.140061930
xor eax, eax
mov word [r15 + rbx], ax
cmp r13, 8
jb 0x14002279c
mov rcx, qword [r14]
lea rdx, [r13*2 + 2]
cmp rdx, 0x1000
jb 0x140022797
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140022929
mov rcx, r8
call fcn.14005cb40
mov qword [r14], r15
xor r14d, r14d
test rsi, rsi
je 0x1400227e3
mov rax, qword [rbp - 0x29]
sub rax, rsi
sar rax, 1
lea rdx, [rax + rax]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400227da
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022923
mov rcx, rsi
call fcn.14005cb40
nop
test r12, r12
je 0x1400227f2
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140022831
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14002282c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002292f
mov rcx, r8
call fcn.14005cb40
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov eax, 1
jmp 0x140022895
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140022883
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14002287e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400228dd
mov rcx, r8
call fcn.14005cb40
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 7
mov word [rdi], r13w
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14005ccc0
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140005fc4
nop
lea rdx, [0x1400beb80]
lea rcx, [rbp - 0x61]
call fcn.140062228
nop
lea rdx, [0x1400beb80]
lea rcx, [rbp - 0x69]
call fcn.140062228
nop
call fcn.140067514
nop
call fcn.140067514
nop
call fcn.140005da8
int3
lea rdx, [0x1400beb80]
lea rcx, [rbp - 0x69]
call fcn.140062228
int3
call fcn.140067514
int3
call fcn.140005fc4
nop
call fcn.140005da8
int3
lea rdx, [0x1400beb80]
lea rcx, [rbp - 0x61]
call fcn.140062228
nop
call fcn.140067514
nop
call fcn.140067514
nop
call fcn.140067514
int3