Function at 0x140047d30
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
cmp byte [0x1400cc00c], 0
mov r14d, r9d
movaps xmmword [rax - 0x18], xmm6
mov rdi, r8
movaps xmmword [rax - 0x28], xmm7
mov rbx, rdx
movaps xmmword [rax - 0x38], xmm8
mov qword [rax + 8], rsi
mov rsi, rcx
je 0x140047f60
movups xmm0, xmmword [0x1400aeff0]
movzx eax, byte [0x1400af000]
xor ecx, ecx
cmp dword [0x1400b8018], 2
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], al
jl 0x140047efa
movdqa xmm0, xmmword [0x1400af610]
lea rdx, [rsp + 0x24]
movdqa xmm5, xmmword [0x1400af580]
mov eax, 5
movdqa xmm4, xmmword [0x1400af7b0]
movdqa xmm7, xmmword [0x1400af5b0]
movdqa xmmword [rsp + 0x40], xmm0
mov r8d, dword [rsp + 0x40]
movd xmm6, eax
mov eax, 0x1f
movd xmm8, eax
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, 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 0x140047df0
cmp ecx, 0x11
jge 0x140047f3f
movsxd rax, ecx
lea r8, [rsp + 0x20]
add r8, rax
nop word [rax + rax]
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, 0x11
jl 0x140047f10
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]
test rsi, rsi
mov rsi, qword [rsp + 0x2a0]
jne 0x140047f89
mov qword [rbx], 0
mov qword [rbx + 8], 0
mov qword [rbx + 0x10], 0
jmp 0x14004808e
lea rcx, [rdi + 0x648]
movaps xmmword [rsp + 0x250], xmm9
call fcn.140053d50
shl eax, 4
movsxd rcx, eax
add rcx, 0x600
add rcx, rdi
call fcn.140053c90
lea ecx, [r14 + r14*2]
shl ecx, 5
movsxd rdx, ecx
lea rcx, [rbp + 0x30]
add rdx, rax
call fcn.140054010
lea rdx, [rdi + 0x240]
lea rcx, [rbp - 0x30]
call fcn.140054010
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x30]
call fcn.140045a30
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x30]
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
movups xmm8, xmmword [rax + 0x20]
movups xmm9, xmmword [rax + 0x30]
call fcn.140045a30
lea r8, [rbp - 0x70]
movaps xmmword [rbp - 0x70], xmm6
lea rdx, [rsp + 0x50]
movaps xmmword [rbp - 0x60], xmm7
lea rcx, [rbp + 0x110]
movaps xmmword [rbp - 0x50], xmm8
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rax + 0x20]
movaps xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rbp - 0x80], xmm1
movaps xmmword [rbp - 0x40], xmm9
call fcn.140045c50
movaps xmm9, xmmword [rsp + 0x250]
xorps xmm0, xmm0
movups xmm2, xmmword [rax + 0x30]
cvtss2sd xmm0, xmm2
movaps xmm1, xmm2
movsd qword [rbx], xmm0
xorps xmm0, xmm0
shufps xmm1, xmm2, 0x55
cvtss2sd xmm0, xmm1
shufps xmm2, xmm2, 0xaa
movsd qword [rbx + 8], xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm2
movsd qword [rbx + 0x10], xmm0
lea r11, [rsp + 0x290]
mov rax, rbx
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret