Function at 0x140056760
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14042c300]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov eax, dword [0x140069560]
xor ecx, ecx
movsd xmm0, qword [str.z___WsK_M___C]
mov r8d, ecx
mov r10d, dword [0x14042c350]
mov dword [rsp + 0x48], eax
movzx eax, byte [0x140069564]
mov byte [rsp + 0x4c], al
movaps xmmword [rsp + 0x90], xmm6
movsd qword [rsp + 0x40], xmm0
cmp r10d, 2
jl 0x1400568be
movdqa xmm2, xmmword [0x140067e70]
mov r8d, 8
movdqa xmm3, xmmword [0x140069ce0]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x140069da0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140069cf0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.z___WsK_M___C]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140069d00]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.7777777777777777]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x40], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140069cf0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x44]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140069d00]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.7777777777777777]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax]
mov eax, 0x8d3dcb09
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, r8b
inc r8d
sub al, dl
add al, 0x37
xor byte [r9 - 1], al
cmp r8d, 0xd
jl 0x1400568d0
cmp byte [0x140069551], cl
movups xmm0, xmmword [str.z___WsK_M___]
movzx eax, word [0x140069550]
mov word [rsp + 0x60], ax
movups xmmword [rsp + 0x50], xmm0
je 0x140056abf
cmp r10d, 2
jl 0x140056a7c
movdqa xmm0, xmmword [str.7777777777777777]
lea rdx, [rsp + 0x54]
movdqa xmm5, xmmword [0x140067e70]
movdqa xmm4, xmmword [0x140069da0]
movdqa xmm6, xmmword [0x140069cf0]
movdqa xmmword [rsp + 0x70], xmm0
mov r8d, dword [rsp + 0x70]
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
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x140069d00]
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
paddd xmm1, xmm3
psrad xmm1, 5
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 [0x140069d00]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x140056970
cmp ecx, 0x12
jge 0x140056abf
movsxd rax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x37
xor byte [r8 - 1], al
cmp ecx, 0x12
jl 0x140056a90
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_FindWindowA]
movaps xmm6, xmmword [rsp + 0x90]
mov qword [0x14042c8e0], rax
test rax, rax
jne 0x140056afb
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005d480
add rsp, 0xa8
ret
movdqa xmm0, xmmword [0x140069ca0]
lea rdx, [rsp + 0x70]
mov rcx, rax
mov qword [rsp + 0xa0], rbx
movdqu xmmword [rsp + 0x70], xmm0
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov rcx, qword [0x14042c8e0]
xor r9d, r9d
mov dword [rsp + 0x30], 0x40
xor r8d, r8d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x14042c8e0]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14042c8e0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [rsp + 0xa0]
mov al, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005d480
add rsp, 0xa8
ret