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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14018c080]
xor rax, rsp
mov qword [rbp - 8], rax
mov eax, dword [0x140174100]
xor ebx, ebx
cmp byte [0x140174105], bl
movsd xmm0, qword [str.chagqxjd_U_XH]
mov edi, dword [reloc.WS2_32.dll_accept]
mov dword [rbp - 0x28], eax
movzx eax, word [0x140174104]
mov word [rbp - 0x24], ax
mov dword [rbp - 0x14], 4
mov dword [rbp - 0x18], 4
movsd qword [rbp - 0x30], xmm0
je 0x1400d35f1
mov r8d, ebx
cmp edi, 2
jl 0x1400d35a8
movdqa xmm2, xmmword [0x140176070]
mov r8d, 8
movdqa xmm4, xmmword [0x140176320]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140176090]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401760c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.chagqxjd_U_XH]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1401761c0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401761e0]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rbp - 0x30], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401760c0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rbp - 0x2c]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401761c0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401761e0]
xorps xmm2, xmm0
movd dword [rbp - 0x2c], xmm2
movsxd rax, r8d
lea r9, [rbp - 0x30]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4d4873ed
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 0xe
jl 0x1400d35c0
lea rax, [rbp - 0x20]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400d37ad
cmp byte [0x140172f4f], bl
mov rax, qword [str.sD_AQ_B7_]
mov qword [rbp - 0x30], rax
je 0x1400d376d
cmp edi, 2
jl 0x1400d3734
movdqa xmm2, xmmword [0x140176070]
movdqa xmm4, xmmword [0x140176320]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140176090]
movdqa xmm0, xmm2
mov eax, dword [0x1401761e0]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401760c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401761c0]
movd xmm1, dword [rbp - 0x30]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movdqa xmm0, xmm3
xorps xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
movd dword [rbp - 0x30], xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401760c0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401761c0]
movd xmm1, dword [rbp - 0x2c]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rbp - 0x2c], xmm2
jmp 0x1400d376d
lea r8, [rbp - 0x30]
nop dword [rax + rax]
mov eax, 0x4d4873ed
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, bl
inc ebx
sub al, cl
add al, 0x30
xor byte [r8 - 1], al
cmp ebx, 8
jl 0x1400d3740
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x14]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400d37a3
cmp dword [rbp - 0x10], 1
jne 0x1400d37a3
call fcn.1400b69b0
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140146930
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret