Function at 0x1400046c0
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 [0x140025c14], eax
jle 0x140004738
lea rcx, [0x140025c14]
call fcn.1400128f0
cmp dword [0x140025c14], 0xffffffff
jne 0x140004738
movups xmm0, xmmword [0x1400172f0]
movups xmmword [0x140025ac8], xmm0
mov eax, dword [0x140017300]
mov dword [0x140025ad8], eax
lea rcx, [0x140025c14]
call fcn.140012884
lea rdi, [0x140025acc]
lea r15, [0x140025ac8]
mov r14d, dword [0x140025088]
mov eax, dword [rsi]
cmp dword [0x140025c4c], eax
jle 0x14000492e
lea rcx, [0x140025c4c]
call fcn.1400128f0
cmp dword [0x140025c4c], 0xffffffff
jne 0x14000492e
mov qword [0x140025ca0], rbx
cmp byte [0x140025adb], 0
je 0x140004902
mov ecx, ebx
cmp r14d, 2
jl 0x1400048cc
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 0x1400047c2
cmp ecx, 0x14
jge 0x140004902
movsxd r8, ecx
add r8, r15
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, 0x14
jl 0x1400048d2
mov qword [0x140025c98], r15
lea rcx, [0x140025c98]
call fcn.1400012c0
lea rcx, [0x140014310]
call fcn.140012e68
nop
lea rcx, [0x140025c4c]
call fcn.140012884
cmp byte [0x140025adb], 0
jne 0x140004ab0
cmp r14d, 2
jl 0x140004a7a
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
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 0x140004970
cmp eax, 0x14
jge 0x140004ab0
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, 0x14
jl 0x140004a80
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x140025ac8], xmm0
mov dword [0x140025ad8], eax
movups xmm0, xmmword [0x140025c98]
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