Function at 0x140004b00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rbp, rdx
xor ebx, ebx
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
mov eax, dword [rsi]
cmp dword [0x140025bf4], eax
jle 0x140004b79
lea rcx, [0x140025bf4]
call fcn.1400128f0
cmp dword [0x140025bf4], 0xffffffff
jne 0x140004b79
movups xmm0, xmmword [0x140017220]
movups xmmword [0x140025d40], xmm0
movzx eax, byte [0x140017230]
mov byte [0x140025d50], al
lea rcx, [0x140025bf4]
call fcn.140012884
lea rdi, [0x140025d44]
lea r15, [0x140025d40]
mov r14d, dword [0x140025088]
mov eax, dword [rsi]
cmp dword [0x140025c48], eax
jle 0x140004d7c
lea rcx, [0x140025c48]
call fcn.1400128f0
cmp dword [0x140025c48], 0xffffffff
jne 0x140004d7c
mov qword [0x140025d20], rbx
cmp byte [0x140025d50], 0
je 0x140004d50
mov ecx, ebx
cmp r14d, 2
jl 0x140004d0d
movdqa xmm5, xmmword [0x1400205c0]
movdqa xmm4, xmmword [0x140020640]
movdqa xmm6, xmmword [0x1400205f0]
movdqa xmm0, xmmword [0x140020620]
movdqa xmmword [rsp + 0x30], xmm0
mov rdx, rdi
mov r8d, dword [rsp + 0x30]
movd xmm2, ecx
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 [0x140020600]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 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 [0x140020600]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x10
jl 0x140004c03
cmp ecx, 0x11
jge 0x140004d50
movsxd r8, ecx
add r8, r15
nop dword [rax]
nop word [rax + rax]
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x39
add dl, cl
xor byte [r8], dl
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x11
jl 0x140004d20
mov qword [0x140025d18], r15
lea rcx, [0x140025d18]
call fcn.1400012c0
lea rcx, [0x1400142f0]
call fcn.140012e68
nop
lea rcx, [0x140025c48]
call fcn.140012884
cmp byte [0x140025d50], 0
jne 0x140004f00
cmp r14d, 2
jl 0x140004eca
movdqa xmm5, xmmword [0x1400205c0]
movdqa xmm4, xmmword [0x140020640]
movdqa xmm6, xmmword [0x1400205f0]
movdqa xmm0, xmmword [0x140020620]
movdqa xmmword [rsp + 0x30], xmm0
mov ecx, dword [rsp + 0x30]
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 [0x140020600]
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm0, dword [rdi - 4]
xorps xmm2, xmm0
movd dword [rdi - 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 [0x140020600]
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm0, dword [rdi]
xorps xmm2, xmm0
movd dword [rdi], xmm2
add ebx, 8
mov eax, ebx
lea rdi, [rdi + 8]
cmp ebx, 0x10
jl 0x140004dc0
cmp eax, 0x11
jge 0x140004f00
movsxd r8, ebx
add r8, r15
mov eax, 0x8fb823ef
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x39
add cl, bl
xor byte [r8], cl
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x11
jl 0x140004ed0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x140025d40], xmm0
mov byte [0x140025d50], al
movups xmm0, xmmword [0x140025d18]
movups xmmword [rbp], xmm0
mov rax, rbp
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret