Function at 0x140001510
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x150
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x20], rax
movups xmm3, xmmword [str.QMF_WK_I]
movups xmmword [rsp + 0x40], xmm3
movsd xmm0, qword [0x1400064b0]
movsd qword [rsp + 0x50], xmm0
movzx eax, word [0x1400064b8]
mov word [rsp + 0x58], ax
xor ebx, ebx
mov r8d, ebx
mov esi, dword [0x140008088]
cmp esi, 2
jl 0x140001669
movdqa xmm4, xmmword [0x1400065e0]
movdqa xmm2, xmmword [0x140006550]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140006570]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x140006590]
movq xmm1, xmm3
xorps xmm2, xmm1
movq qword [rsp + 0x40], xmm2
movdqa xmm3, xmmword [0x140006560]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140006570]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x140006590]
movq xmm0, qword [rsp + 0x48]
xorps xmm2, xmm0
movq qword [rsp + 0x48], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x40]
lea r9, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, r8w
sub ax, cx
add ax, 0x34
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0xd
jl 0x140001680
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140002950
nop
lea rcx, [rsp + 0x68]
call fcn.1400012b0
mov r15d, eax
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x140001715
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001710
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002557
call fcn.140004508
test r15d, r15d
jne 0x1400018da
movups xmm0, xmmword [0x140006460]
movups xmmword [rsp + 0x68], xmm0
movsd xmm0, qword [0x140006470]
movsd qword [rsp + 0x78], xmm0
cmp byte [0x140006477], r15b
je 0x1400018be
cmp esi, 2
jl 0x140001885
movdqa xmm5, xmmword [0x140006550]
movdqa xmm4, xmmword [0x1400065e0]
movdqa xmm6, xmmword [0x140006570]
movdqa xmm0, xmmword [0x1400065c0]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x6c]
mov edx, dword [rsp + 0x20]
nop dword [rax]
movd xmm2, ebx
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
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
andps xmm2, xmmword [0x1400065a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 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
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
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400065a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
lea rcx, [rcx + 8]
cmp ebx, 0x18
jl 0x140001780
jmp 0x1400018be
lea r8, [rsp + 0x68]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, bl
sub al, cl
add al, 0x34
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x18
jl 0x140001890
lea rcx, [rsp + 0x68]
call fcn.140001010
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
jmp 0x140002563
mov r14d, 4
mov rax, qword gs:[0x58]
add r14, qword [rax]
mov eax, dword [r14]
cmp dword [0x140008790], eax
jle 0x140001924
lea rcx, [0x140008790]
call fcn.14000420c
cmp dword [0x140008790], 0xffffffff
jne 0x140001924
lea rcx, [0x1400052c0]
call fcn.1400044e8
lea rcx, [0x140008790]
call fcn.1400041a0
movsd xmm0, qword [0x140006478]
movsd qword [rsp + 0x20], xmm0
movzx eax, word [0x140006480]
mov word [rsp + 0x28], ax
cmp byte [0x140006481], 0
je 0x140001979
mov byte [rsp + 0x20], 0x6d
xor byte [rsp + 0x21], 0x35
xor byte [rsp + 0x22], 0x36
xor byte [rsp + 0x23], 0x37
xor byte [rsp + 0x24], 0x38
xor byte [rsp + 0x25], 0x39
xor byte [rsp + 0x26], 0x3a
xor byte [rsp + 0x27], 0x3b
xor byte [rsp + 0x28], 0x3c
xor byte [rsp + 0x29], 0x3d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140002c30
nop
mov edi, 0xf
mov rdx, qword [0x140008780]
cmp rdx, qword [0x140008788]
je 0x1400019c0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov edx, edi
mov byte [rsp + 0x40], 0
add qword [0x140008780], 0x20
jmp 0x1400019cf
lea r8, [rsp + 0x40]
call fcn.140003230
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140001a07
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002557
call fcn.140004508
movsd xmm0, qword [0x1400064d0]
movsd qword [rsp + 0x20], xmm0
movzx ecx, word [0x1400064d8]
mov word [rsp + 0x28], cx
movzx eax, byte [0x1400064da]
mov byte [rsp + 0x20], 0x6d
xor byte [rsp + 0x21], 0x35
xor byte [rsp + 0x22], 0x36
xor byte [rsp + 0x23], 0x37
xor byte [rsp + 0x24], 0x38
xor byte [rsp + 0x25], 0x39
xor byte [rsp + 0x26], 0x3a
xor byte [rsp + 0x27], 0x3b
xor cl, 0x3c
mov byte [rsp + 0x28], cl
xor byte [rsp + 0x29], 0x3d
xor al, 0x3e
mov byte [rsp + 0x2a], al
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140002c30
nop
mov rdx, qword [0x140008780]
cmp rdx, qword [0x140008788]
je 0x140001aa5
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov rdx, rdi
mov byte [rsp + 0x40], 0
add qword [0x140008780], 0x20
jmp 0x140001ab4
lea r8, [rsp + 0x40]
call fcn.140003230
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140001aec
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ae7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002557
call fcn.140004508
movsd xmm0, qword [0x140006450]
movsd qword [rsp + 0x20], xmm0
mov eax, dword [0x140006458]
mov dword [rsp + 0x28], eax
cmp byte [0x14000645b], 0
je 0x140001c73
mov r8d, ebx
cmp esi, 2
jl 0x140001c27
movdqa xmm4, xmmword [0x1400065e0]
movdqa xmm2, xmmword [0x140006550]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140006570]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400065a0]
packuswb xmm2, xmm2
mov eax, dword [0x1400065c0]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x140006450]
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm3, xmmword [0x140006560]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140006570]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400065a0]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x24]
xorps xmm2, xmm1
movd dword [rsp + 0x24], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x20]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xc
jl 0x140001c40
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140002c30
nop
mov rdx, qword [0x140008780]
cmp rdx, qword [0x140008788]
je 0x140001cb6
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov rdx, rdi
mov byte [rsp + 0x40], 0
add qword [0x140008780], 0x20
jmp 0x140001cc5
lea r8, [rsp + 0x40]
call fcn.140003230
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140001cfd
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cf8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002557
call fcn.140004508
movsd xmm0, qword [0x1400064c0]
movsd qword [rsp + 0x20], xmm0
movzx ecx, word [0x1400064c8]
mov word [rsp + 0x28], cx
movzx eax, byte [0x1400064ca]
mov byte [rsp + 0x20], 0x6d
xor byte [rsp + 0x21], 0x35
xor byte [rsp + 0x22], 0x36
xor byte [rsp + 0x23], 0x37
xor byte [rsp + 0x24], 0x38
xor byte [rsp + 0x25], 0x39
xor byte [rsp + 0x26], 0x3a
xor byte [rsp + 0x27], 0x3b
xor cl, 0x3c
mov byte [rsp + 0x28], cl
xor byte [rsp + 0x29], 0x3d
xor al, 0x3e
mov byte [rsp + 0x2a], al
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140002c30
nop
mov rdx, qword [0x140008780]
cmp rdx, qword [0x140008788]
je 0x140001d98
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov byte [rsp + 0x40], 0
add qword [0x140008780], 0x20
jmp 0x140001da7
lea r8, [rsp + 0x40]
call fcn.140003230
mov rdi, qword [rsp + 0x58]
cmp rdi, 0xf
jbe 0x140001de0
lea rdx, [rdi + 1]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ddb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002557
call fcn.140004508
mov eax, dword [r14]
cmp dword [0x140008794], eax
jle 0x140001e18
lea rcx, [0x140008794]
call fcn.14000420c
cmp dword [0x140008794], 0xffffffff
jne 0x140001e18
lea rcx, [0x140005240]
call fcn.1400044e8
lea rcx, [0x140008794]
call fcn.1400041a0
movups xmm0, xmmword [str.YTBEQARN]
movups xmmword [rsp + 0x20], xmm0
mov eax, dword [0x140006498]
mov dword [rsp + 0x30], eax
mov r14d, 0x6d
cmp word [0x14000649a], 0
je 0x140001e7a
mov word [rsp + 0x20], r14w
xor word [rsp + 0x22], 0x35
xor word [rsp + 0x24], 0x36
xor word [rsp + 0x26], 0x37
xor word [rsp + 0x28], 0x38
xor word [rsp + 0x2a], 0x39
xor word [rsp + 0x2c], 0x3a
xor word [rsp + 0x2e], 0x3b
xor word [rsp + 0x30], 0x3c
xor word [rsp + 0x32], 0x3d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140002950
nop
mov edi, 7
mov rdx, qword [0x140008760]
cmp rdx, qword [0x140008768]
je 0x140001ec1
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov edx, edi
mov word [rsp + 0x40], bx
add qword [0x140008760], 0x20
jmp 0x140001ed0
lea r8, [rsp + 0x40]
call fcn.140002f70
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140001f0d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002557
call fcn.140004508
movups xmm0, xmmword [0x140006438]
movups xmmword [rsp + 0x20], xmm0
mov ecx, dword [0x140006448]
mov dword [rsp + 0x30], ecx
movzx eax, word [0x14000644c]
mov word [rsp + 0x20], r14w
xor word [rsp + 0x22], 0x35
xor word [rsp + 0x24], 0x36
xor word [rsp + 0x26], 0x37
xor word [rsp + 0x28], 0x38
xor word [rsp + 0x2a], 0x39
xor word [rsp + 0x2c], 0x3a
xor word [rsp + 0x2e], 0x3b
xor cx, 0x3c
mov word [rsp + 0x30], cx
xor word [rsp + 0x32], 0x3d
xor ax, 0x3e
mov word [rsp + 0x34], ax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140002950
nop
mov rdx, qword [0x140008760]
cmp rdx, qword [0x140008768]
je 0x140001fb5
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov rdx, rdi
mov word [rsp + 0x40], bx
add qword [0x140008760], 0x20
jmp 0x140001fc4
lea r8, [rsp + 0x40]
call fcn.140002f70
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140002001
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ffc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002557
call fcn.140004508
movups xmm7, xmmword [str.YTBEQAB]
movups xmmword [rsp + 0x20], xmm7
movsd xmm0, qword [str.LXS_]
movsd qword [rsp + 0x30], xmm0
cmp word [0x14000650e], 0
je 0x140002177
mov r8d, ebx
cmp esi, 2
jl 0x140002127
movdqa xmm4, xmmword [0x1400065e0]
movdqa xmm6, xmmword [0x140006590]
movdqa xmm2, xmmword [0x140006550]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140006570]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm6
paddw xmm3, xmm2
movq xmm1, xmm7
xorps xmm3, xmm1
movq qword [rsp + 0x20], xmm3
movdqa xmm2, xmmword [0x140006560]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140006570]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm6
paddw xmm3, xmm2
movq xmm0, qword [rsp + 0x28]
xorps xmm3, xmm0
movq qword [rsp + 0x28], xmm3
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x20]
lea r9, [r9 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, r8w
sub ax, cx
add ax, 0x34
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0xc
jl 0x140002140
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140002950
nop
mov rdx, qword [0x140008760]
cmp rdx, qword [0x140008768]
je 0x1400021b7
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov word [rsp + 0x40], bx
add qword [0x140008760], 0x20
jmp 0x1400021c6
lea r8, [rsp + 0x40]
call fcn.140002f70
mov rdi, qword [rsp + 0x58]
cmp rdi, 7
jbe 0x140002203
lea rdx, [rdi*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400021fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002557
call fcn.140004508
movups xmm0, xmmword [str.YTBEQA]
movups xmmword [rsp + 0x20], xmm0
mov ecx, dword [0x1400064f0]
mov dword [rsp + 0x30], ecx
movzx eax, word [0x1400064f4]
mov word [rsp + 0x20], r14w
xor word [rsp + 0x22], 0x35
xor word [rsp + 0x24], 0x36
xor word [rsp + 0x26], 0x37
xor word [rsp + 0x28], 0x38
xor word [rsp + 0x2a], 0x39
xor word [rsp + 0x2c], 0x3a
xor word [rsp + 0x2e], 0x3b
xor cx, 0x3c
mov word [rsp + 0x30], cx
xor word [rsp + 0x32], 0x3d
xor ax, 0x3e
mov word [rsp + 0x34], ax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140002950
nop
mov rdx, qword [0x140008760]
cmp rdx, qword [0x140008768]
je 0x1400022b6
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
movdqa xmm0, xmmword [0x140006540]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], bx
add qword [0x140008760], 0x20
jmp 0x1400022c1
lea r8, [rsp + 0x40]
call fcn.140002f70
nop
lea rcx, [rsp + 0x40]
call fcn.1400028e0
lea rcx, [rbp - 0x70]
call fcn.1400025a0
mov edx, r15d
lea rcx, [rbp - 0x70]
call fcn.1400036b0
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x68]
call fcn.140002640
mov rdi, rax
lea rcx, [rsp + 0x40]
call fcn.140002800
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140003770
mov edi, ebx
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140003d20
mov rcx, qword [rsp + 0x68]
mov rax, rcx
mov rdx, qword [rsp + 0x70]
cmp rcx, rdx
je 0x14000233f
inc edi
add rax, 8
cmp rax, rdx
jne 0x140002334
test rcx, rcx
je 0x140002385
mov rax, qword [rsp + 0x78]
sub rax, rcx
sar rax, 3
lea rdx, [rax*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002380
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002380
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004508
movsd xmm0, qword [0x140006428]
movsd qword [rsp + 0x20], xmm0
mov eax, dword [0x140006430]
mov dword [rsp + 0x28], eax
cmp byte [0x140006433], 0
je 0x1400024fe
cmp esi, 2
jl 0x1400024bc
movdqa xmm4, xmmword [0x1400065e0]
movdqa xmm2, xmmword [0x140006550]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140006570]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400065a0]
packuswb xmm2, xmm2
mov eax, dword [0x1400065c0]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x140006428]
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm3, xmmword [0x140006560]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140006570]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400065a0]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x24]
xorps xmm2, xmm1
movd dword [rsp + 0x24], xmm2
mov ebx, 8
movsxd rax, ebx
lea r8, [rsp + 0x20]
add r8, rax
nop word [rax + rax]
mov eax, 0xa0a0a0a1
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, bl
sub al, cl
add al, 0x34
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0xc
jl 0x1400024d0
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140001010
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
nop
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140002563
mov rdx, qword [rbp - 0x60]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000255e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000255e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004508
xor eax, eax
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140004180
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rbp
ret