Function at 0x180020400
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
movups xmm0, xmmword [str.e__GMeZVAH]
xor ebx, ebx
movups xmmword [rbp - 0x20], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x1800205b1
cmp dword [0x180201ee0], 2
jl 0x180020576
movdqa xmm0, xmmword [str.0000000000000000]
lea rcx, [rbp - 0x1c]
movdqa xmm5, xmmword [0x18006eb00]
mov edx, ebx
movdqa xmm4, xmmword [0x18006eec0]
movdqa xmmword [rbp - 0x30], xmm0
mov r8d, dword [rbp - 0x30]
movaps xmmword [rsp + 0x50], xmm6
movdqa xmm6, xmmword [0x18006eb50]
nop dword [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, 4
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 [0x18006eb70]
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, 4
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 [0x18006eb70]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x10
jl 0x180020470
movaps xmm6, xmmword [rsp + 0x50]
jmp 0x1800205b1
lea r9, [rbp - 0x20]
mov r8d, ebx
nop dword [rax]
mov eax, 0x4ec4ec4f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 0x10
jl 0x180020580
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r10, rax
test rax, rax
jne 0x1800205d1
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
movsxd r11, dword [rax + 0x3c]
lea r9, [rax + 0x108]
mov qword [rsp + 0x70], rsi
movzx esi, word [0x18006c35c]
mov qword [rsp + 0x78], rdi
mov edi, dword [0x18006c358]
mov dword [rbp - 0x40], edi
lea r8, [rbp - 0x40]
xor byte [rbp - 0x3f], 0x31
add r9, r11
xor byte [rbp - 0x3e], 0x32
mov rax, r9
xor byte [rbp - 0x3d], 0x33
mov word [rbp - 0x3c], si
xor byte [rbp - 0x3c], 0x34
xor byte [rbp - 0x3b], 0x35
sub r8, r9
mov byte [rbp - 0x40], 0x2e
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180020633
inc rax
test ecx, ecx
jne 0x180020620
test edx, edx
je 0x18002065b
movzx eax, word [r11 + r10 + 6]
inc ebx
cmp ebx, eax
jge 0x1800206fb
movsxd rax, ebx
lea r9, [rax*4 + 0x21]
add r9, rax
lea r9, [r10 + r9*8]
jmp 0x1800205f3
movzx ecx, word [0x18006c368]
movzx eax, byte [0x18006c36a]
movsd xmm0, qword [str.q_pUXSEYJ:]
mov ebx, dword [r9 + 0xc]
movsd qword [rbp - 0x30], xmm0
add rbx, r10
xor byte [rbp - 0x2f], 0x31
xor byte [rbp - 0x2e], 0x32
xor byte [rbp - 0x2d], 0x33
xor byte [rbp - 0x2c], 0x34
xor byte [rbp - 0x2b], 0x35
xor byte [rbp - 0x2a], 0x36
xor byte [rbp - 0x29], 0x37
mov word [rbp - 0x28], cx
xor cl, 0x38
xor byte [rbp - 0x27], 0x39
xor al, 0x3a
mov byte [rbp - 0x28], cl
mov byte [rbp - 0x26], al
lea rcx, [rbp - 0x30]
mov rax, 0xffffffffffffffff
mov byte [rbp - 0x30], 0x41
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1800206c0
movsxd rdi, dword [r9 + 0x10]
movsx rsi, al
sub rdi, rsi
add rdi, rbx
cmp rbx, rdi
ja 0x1800206fb
nop dword [rax]
mov r8, rsi
lea rdx, [rbp - 0x30]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180020725
inc rbx
cmp rbx, rdi
jbe 0x1800206e0
mov edx, 0x3e8
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Beep]
xor eax, eax
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
test rbx, rbx
je 0x1800206fb
movabs rdx, 0xeffffffffeffffe
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbx]
lea rax, [rcx - 0x100001]
cmp rax, rdx
jbe 0x180020757
sub rbx, 8
jne 0x180020740
jmp 0x1800206fb
mov rax, rcx
jmp 0x18002070d