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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66bd68
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x74b1ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov dword [ebp - 4], 0
mov edx, 5
movups xmm0, xmmword [str.exmmznxbr__0_7_3]
mov edi, dword [0x7fe91c]
movups xmmword [ebp - 0x68], xmm0
movups xmm0, xmmword [0x708f64]
movups xmmword [ebp - 0x58], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x4065d7
xor edx, edx
mov dword [ebp - 0x6c], edx
cmp edi, 2
jl 0x4065a1
movaps xmm0, xmmword [str.6666666666666666]
mov eax, 5
movaps xmm4, xmmword [0x70a720]
xor ecx, ecx
movaps xmm3, xmmword [0x70a790]
movaps xmm6, xmmword [0x70a750]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebp - 0x30]
movd xmm7, eax
nop word [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x70a770]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x68]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x68], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x70a770]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x64]
pxor xmm1, xmm0
movd dword [ebp + ecx - 0x64], xmm1
add ecx, 8
cmp ecx, 0x20
jl 0x4064a0
jmp 0x4065d2
mov eax, 0x8fb823ef
imul edx
add edx, dword [ebp - 0x6c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x6c]
movsx eax, al
mov cl, dl
imul eax, eax, 0x39
sub cl, al
add cl, 0x36
xor byte [ebp + edx - 0x68], cl
inc edx
mov dword [ebp - 0x6c], edx
cmp edx, 0x20
jl 0x4065a1
mov edx, 5
cmp byte [0x708f4b], 0
movq xmm0, qword [str.V_QSUYzKV_A]
mov eax, dword [0x708f48]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
je 0x40673f
xor ecx, ecx
cmp edi, 2
jl 0x406715
movaps xmm2, xmmword [0x70a720]
mov eax, 0x1f
movaps xmm5, xmmword [0x70a790]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov ecx, 8
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm6, edx
psrad xmm1, xmm6
movd xmm7, eax
mov eax, dword [str.6666666666666666]
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x70a750]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x70a730]
paddd xmm2, xmmword [0x70a720]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x70a770]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str.V_QSUYzKV_A]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x2c], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x70a750]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x70a770]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [ebp - 0x28]
pxor xmm1, xmm0
movd dword [ebp - 0x28], xmm1
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x39
sub dl, al
add dl, 0x36
xor byte [ebp + ecx - 0x2c], dl
inc ecx
cmp ecx, 0xc
jl 0x406715
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
push 0x20119
push 0
lea eax, [ebp - 0x68]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4067cf
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push 0
lea eax, [ebp - 0x74]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x6c]
call edi
test eax, eax
jne 0x4067c6
push eax
push dword [ebp - 0x70]
lea ecx, [ebp - 0x48]
call fcn.00401900
cmp dword [ebp - 0x34], 0x10
lea ecx, [ebp - 0x70]
push ecx
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x6c]
call edi
test eax, eax
jne 0x4067c6
push eax
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x48]
dec eax
push eax
call fcn.00401900
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [ebp - 0x48]
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [esi + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004cd30a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret