Function at 0x180123a10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x80
mov edi, ecx
movzx esi, dl
mov rcx, qword [0x180b5ed00]
test rcx, rcx
je 0x180123dda
cmp rcx, qword [0x180b5ef08]
je 0x180123dda
cmp byte [0x180248e73], 0
vmovsd xmm0, qword [str._BP_RPPYWY]
mov qword [rax + 8], rbx
mov ebx, 8
vmovaps xmmword [rax - 0x18], xmm6
vmovaps xmmword [rax - 0x28], xmm7
vmovaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x180b60468]
mov r10, qword [rax + 0x208]
mov eax, dword [0x180248e70]
mov dword [rsp + 0x38], eax
vmovsd qword [rsp + 0x30], xmm0
je 0x180123b93
vmovdqu xmm5, xmmword [0x1802493c0]
vmovdqu xmm6, xmmword [0x180249500]
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm6
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm6
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 1
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249430]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm0, xmm3, xmmword [0x180249360]
vpaddb xmm2, xmm0, xmmword [str.22222222222222223333333333333333]
vmovdqu xmm5, xmmword [0x180249400]
vmovd xmm0, dword [str._BP_RPPYWY]
vpxor xmm1, xmm2, xmm0
vmovd dword [rsp + 0x30], xmm1
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm6
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm6
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 1
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249430]
vmovd xmm1, dword [rsp + 0x34]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm0, xmm3, xmmword [0x180249360]
vpaddb xmm2, xmm0, xmmword [str.22222222222222223333333333333333]
vpxor xmm0, xmm2, xmm1
vmovd dword [rsp + 0x34], xmm0
mov r8d, ebx
lea r9, [rsp + 0x38]
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x29e4129f
lea r9, [r9 + 1]
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul edx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, dl
add al, 0x32
xor byte [r9 - 1], al
cmp r8d, 0xc
jl 0x180123b60
lea rdx, [rsp + 0x30]
call r10
test eax, eax
je 0x180123dc0
cmp byte [0x180248e73], 0
mov rax, qword [0x180b60468]
vmovsd xmm0, qword [str._BP_RPPYWY]
mov r9, qword [rax + 0x50]
mov eax, dword [0x180248e70]
mov dword [rsp + 0x48], eax
vmovsd qword [rsp + 0x40], xmm0
je 0x180123cce
vmovdqu xmm5, xmmword [0x1802493c0]
vmovdqu xmm7, xmmword [0x180249500]
mov eax, dword [str.22222222222222223333333333333333]
lea r8, [rsp + 0x48]
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm7
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm7
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 1
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249430]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm4, xmm3, xmmword [0x180249360]
vmovdqu xmm5, xmmword [0x180249400]
vmovd xmm0, eax
vpaddb xmm1, xmm4, xmm0
vmovd xmm0, dword [str._BP_RPPYWY]
vpxor xmm1, xmm1, xmm0
vmovd dword [rsp + 0x40], xmm1
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm7
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm7
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 1
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249430]
vmovd xmm1, dword [rsp + 0x44]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm4, xmm3, xmmword [0x180249360]
vmovd xmm0, eax
vpaddb xmm2, xmm4, xmm0
vpxor xmm0, xmm2, xmm1
vmovd dword [rsp + 0x44], xmm0
nop
mov eax, 0x29e4129f
lea r8, [r8 + 1]
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x37
movzx eax, bl
inc ebx
sub al, cl
add al, 0x32
xor byte [r8 - 1], al
cmp ebx, 0xc
jl 0x180123ca0
mov rcx, qword [0x180b5ed00]
lea rdx, [rsp + 0x40]
call r9
mov rbx, rax
test rax, rax
je 0x180123dc0
cmp rax, qword [0x180b5ef08]
je 0x180123db3
mov rcx, qword [0x180b60468]
mov qword [rsp + 0x98], rbp
mov rdx, qword [rcx + 0x118]
mov ecx, edi
call rdx
mov rcx, qword [0x180b60468]
mov rdi, rax
mov rdx, qword [rcx + 0xd0]
mov ecx, esi
call rdx
mov rcx, qword [0x180b60468]
mov rsi, rax
mov rdx, qword [rcx + 0xd0]
xor ecx, ecx
call rdx
mov rcx, qword [0x180b60468]
mov r9, rax
mov r8, rsi
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov rbp, rax
mov r10, qword [rcx + 0x160]
mov rcx, rbx
call r10
test rax, rax
je 0x180123d75
mov rdx, qword [0x180b60468]
mov rcx, rax
call qword [rdx + 0x40]
test rbp, rbp
je 0x180123d87
mov rax, qword [0x180b60468]
mov rcx, rbp
call qword [rax + 0x40]
mov rbp, qword [rsp + 0x98]
test rsi, rsi
je 0x180123da1
mov rax, qword [0x180b60468]
mov rcx, rsi
call qword [rax + 0x40]
test rdi, rdi
je 0x180123db3
mov rax, qword [0x180b60468]
mov rcx, rdi
call qword [rax + 0x40]
mov rax, qword [0x180b60468]
mov rcx, rbx
call qword [rax + 0x40]
vmovaps xmm7, xmmword [rsp + 0x60]
vmovaps xmm6, xmmword [rsp + 0x70]
vmovaps xmm8, xmmword [rsp + 0x50]
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret