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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
lea rbp, [r11 - 0x28]
sub rsp, 0x120
mov rax, qword [0x1400de080]
xor rax, rsp
mov qword [rbp], rax
mov qword [rsp + 0x38], rcx
mov rbx, rcx
movups xmm0, xmmword [0x1400ca790]
xor ecx, ecx
movups xmm1, xmmword [0x1400ca7a0]
mov eax, dword [0x1400ca7d0]
mov qword [r11 + 0x10], rdi
mov edi, dword [0x1400de0c8]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [0x1400ca7b0]
movups xmmword [rbp - 0x80], xmm1
movups xmm1, xmmword [0x1400ca7c0]
mov dword [rbp - 0x50], eax
movzx eax, byte [0x1400ca7d4]
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm1
movaps xmmword [r11 - 0x18], xmm6
mov dword [rsp + 0x30], 0x40
mov dword [rsp + 0x34], 1
mov byte [rbp - 0x4c], al
cmp edi, 2
jl 0x140058d24
movdqa xmm0, xmmword [0x1400cb6c0]
lea rdx, [rsp + 0x74]
movdqa xmm5, xmmword [0x1400cb600]
movdqa xmm4, xmmword [0x1400cb6b0]
movdqa xmm6, xmmword [0x1400cb630]
movdqa xmmword [rsp + 0x50], xmm0
mov r8d, dword [rsp + 0x50]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 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 ecx, 8
pmuldq xmm1, 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
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400cb6a0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
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
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400cb6a0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x40
jl 0x140058c20
cmp ecx, 0x45
jge 0x140058d5c
movsxd rax, ecx
lea r8, [rsp + 0x70]
add r8, rax
nop
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, cl
inc ecx
sub al, dl
add al, 0x39
xor byte [r8 - 1], al
cmp ecx, 0x45
jl 0x140058d30
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
lea rdx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
movups xmm0, xmmword [str.pTHHRS_f.__0___H]
movups xmmword [rsp + 0x60], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x140058f10
cmp edi, 2
jl 0x140058ed1
movdqa xmm0, xmmword [0x1400cb6c0]
lea rcx, [rsp + 0x64]
movdqa xmm5, xmmword [0x1400cb600]
xor edx, edx
movdqa xmm4, xmmword [0x1400cb6b0]
movdqa xmm6, xmmword [0x1400cb630]
movdqa xmmword [rsp + 0x50], xmm0
mov r8d, dword [rsp + 0x50]
nop dword [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
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
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400cb6a0]
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
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
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400cb6a0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x10
jl 0x140058dd0
jmp 0x140058f10
lea r9, [rsp + 0x60]
xor r8d, r8d
nop dword [rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9 - 1], al
cmp r8d, 0x10
jl 0x140058ee0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp - 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movaps xmm6, xmmword [rsp + 0x110]
lea rax, [rbp - 0x40]
mov rdi, qword [rsp + 0x138]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], 0
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140058f80
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.140078680
mov rax, rbx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140084e10
mov rbx, qword [rsp + 0x140]
add rsp, 0x120
pop rbp
ret