Function at 0x1400166d0
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x110
mov rax, qword [0x1400ab010]
xor rax, rsp
mov qword [rsp + 0xd0], rax
movups xmm0, xmmword [str.jchhxsc]
lea rax, [rsp + 0x70]
xor ebx, ebx
cmp dword [reloc.WS2_32.dll_accept], 2
movups xmm1, xmmword [0x14009e560]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], rax
movsd xmm0, qword [0x14009e570]
movsd qword [rsp + 0x60], xmm0
mov dword [rsp + 0x80], 0x3f
movups xmmword [rsp + 0x50], xmm1
jl 0x1400168c0
movdqa xmm0, xmmword [str.9999999999999999]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x14009eab0]
mov eax, 5
movdqa xmm4, xmmword [0x14009eb00]
mov edx, ebx
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [0x14009ead0]
movd xmm6, eax
mov eax, Ordinal_33
movaps xmmword [r11 - 0x38], xmm8
movdqa xmmword [rsp + 0x70], xmm0
mov r8d, dword [rsp + 0x70]
movd xmm8, eax
nop word [rax + rax]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14009eae0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14009eae0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x28
jl 0x1400167a0
movaps xmm8, xmmword [rsp + 0xe0]
movaps xmm7, xmmword [rsp + 0xf0]
movaps xmm6, xmmword [rsp + 0x100]
jmp 0x1400168ff
lea r8, [rsp + 0x40]
mov ecx, ebx
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
inc ecx
sub al, dl
add al, 0x39
xor byte [r8 - 1], al
cmp ecx, 0x28
jl 0x1400168d0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x120], rdi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001699c
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rdx, [0x14009548c]
lea rax, [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140016991
lea rdi, [rsp + 0x30]
nop dword [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x90]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x1400169bf
inc ebx
add rdi, 8
cmp ebx, 2
jb 0x140016970
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rdi, qword [rsp + 0x120]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400206a0
add rsp, 0x110
pop rbx
ret
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14001699e