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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x398]
sub rsp, 0x490
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x14009c900]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor ebx, ebx
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bl
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x6c], 1
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], 0x400
movups xmm0, xmmword [0x14007b758]
movups xmmword [rsp + 0x30], xmm0
mov esi, dword [reloc.WS2_32.dll_accept]
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x140008a3f
cmp esi, 2
jl 0x1400089ff
movdqa xmm5, xmmword [0x14007ad70]
mov edx, ebx
movdqa xmm4, xmmword [0x14007b6e0]
movdqa xmm6, xmmword [str.7777]
movdqa xmm0, xmmword [0x14007b6f0]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x34]
mov r8d, dword [rsp + 0x50]
nop dword [rax]
nop dword [rax + rax]
movd xmm2, edx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14007ad90]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14007ad90]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x10
jl 0x140008900
jmp 0x140008a3f
lea r9, [rsp + 0x30]
mov r8d, ebx
nop word [rax + rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x10
jl 0x140008a10
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140008bdd
mov rax, qword [0x14007b768]
mov qword [rsp + 0x30], rax
cmp byte [0x14007b76f], 0
je 0x140008bac
cmp esi, 2
jl 0x140008b7c
movdqa xmm4, xmmword [0x14007b6e0]
movdqa xmm2, xmmword [0x14007ad70]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.7777]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14007ad90]
packuswb xmm2, xmm2
mov eax, dword [0x14007b6f0]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x30]
xorps xmm2, xmm1
movd dword [rsp + 0x30], xmm2
movdqa xmm3, xmmword [0x14007c0f0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.7777]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14007ad90]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x34]
xorps xmm2, xmm1
movd dword [rsp + 0x34], xmm2
jmp 0x140008bac
lea r8, [rsp + 0x30]
mov eax, 0x94f2095
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, bl
sub al, cl
add al, 0x31
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 8
jl 0x140008b81
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x140008c1d
mov rcx, qword [rdi + 0x18]
cmp rcx, 1
jb 0x140008c05
mov rax, rdi
cmp rcx, 0xf
jbe 0x140008bf3
mov rax, qword [rdi]
mov qword [rdi + 0x10], 1
mov word [rax], Ordinal_50
jmp 0x140008c87
lea r9, [0x14007b770]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.140006cd0
jmp 0x140008c87
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140008c30
mov rax, qword [rdi + 0x18]
cmp rbx, rax
ja 0x140008c68
mov rsi, rdi
cmp rax, 0xf
jbe 0x140008c4e
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x140008c7b
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.140006cd0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, rdi
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140077370
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret