Function at 0x140046c80
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0xc0
xor ebx, ebx
mov r14, rdx
cmp byte [0x1400cc00c], bl
je 0x140046eb0
cmp dword [0x1400b8018], 2
mov ecx, ebx
movzx eax, word [0x1400aef88]
movups xmm0, xmmword [0x1400aef78]
mov word [rsp + 0x30], ax
movzx eax, byte [0x1400aef8a]
mov byte [rsp + 0x32], al
movups xmmword [rsp + 0x20], xmm0
jl 0x140046e53
movdqa xmm0, xmmword [0x1400af610]
lea rdx, [rsp + 0x24]
movdqa xmm5, xmmword [0x1400af580]
mov eax, 5
movdqa xmm4, xmmword [0x1400af7b0]
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [0x1400af5b0]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rsp + 0x40], xmm0
mov r8d, dword [rsp + 0x40]
movaps xmmword [r11 - 0x38], xmm8
movd xmm8, eax
nop dword [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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400af5f0]
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400af5f0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x140046d30
movaps xmm8, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
movaps xmm6, xmmword [rsp + 0xb0]
cmp ecx, 0x13
jge 0x140046e8f
movsxd rax, ecx
lea r8, [rsp + 0x20]
add r8, rax
nop
mov eax, 0x8fb823ef
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, 0x39
movzx eax, cl
inc ecx
sub al, dl
add al, 0x32
xor byte [r8 - 1], al
cmp ecx, 0x13
jl 0x140046e60
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x20]
call fcn.140053a80
lea rdx, [0x140053c50]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x1400cbdb8]
mov qword [r14], rbx
add rcx, 0xe322218
mov qword [r14 + 8], rbx
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], rbx
mov qword [r14 + 0x20], rbx
mov qword [r14 + 0x28], rbx
mov dword [r14 + 0x30], ebx
call fcn.140053c90
mov rbx, qword [0x1400cbdb8]
add rbx, 0xe3221d8
test rax, rax
cmovne rbx, rax
mov rcx, rbx
call fcn.140053c90
lea rcx, [rbx + 8]
mov qword [rsp + 0x50], rax
call fcn.140053c90
lea rcx, [rbx + 0x10]
mov qword [rsp + 0x58], rax
call fcn.140053c90
lea rcx, [rbx + 0x18]
mov rdi, rax
call fcn.140053c90
lea rcx, [rbx + 0x20]
mov qword [rsp + 0x68], rax
call fcn.140053c90
lea rcx, [rbx + 0x28]
mov qword [rsp + 0x70], rax
call fcn.140053c90
lea rcx, [rbx + 0x30]
mov rsi, rax
call fcn.140053c90
movdqa xmm2, xmmword [0x1400af760]
lea r11, [rsp + 0xc0]
movdqa xmm3, xmmword [0x1400af600]
movabs rcx, 0x4efb2ac9fe274cea
movdqu xmm0, xmmword [rsp + 0x50]
xor rdi, rcx
movabs rcx, 0x4ef841eb813427c9
xor rsi, rcx
movabs rcx, 0x4e1db9ad4c1ef28b
xorps xmm2, xmm0
xor rax, rcx
movdqu xmm0, xmmword [rsp + 0x68]
xorps xmm3, xmm0
movaps xmm0, xmm2
unpckhpd xmm0, xmm2
movsd qword [r14], xmm0
movaps xmm0, xmm3
movsd qword [r14 + 8], xmm2
mov qword [r14 + 0x10], rdi
unpckhpd xmm0, xmm3
movsd qword [r14 + 0x18], xmm0
movsd qword [r14 + 0x20], xmm3
mov qword [r14 + 0x28], rsi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov dword [r14 + 0x30], eax
mov rax, r14
mov rsp, r11
pop r14
ret