Function at 0x140004940
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xf0
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movaps xmmword [r11 - 0x38], xmm8
mov rax, qword [0x140037038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r11 - 0x68], xmm0
movups xmmword [r11 - 0x58], xmm0
mov qword [r11 - 0x48], rax
movups xmm0, xmmword [0x140031b70]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [0x140031b80]
movups xmmword [rsp + 0x40], xmm1
mov eax, dword [0x140031b90]
mov dword [rsp + 0x50], eax
movzx eax, byte [0x140031b94]
mov byte [rsp + 0x54], al
xor ecx, ecx
cmp dword [0x140037018], 2
jl 0x140004b10
movdqa xmm5, xmmword [0x140031c70]
movdqa xmm4, xmmword [0x140031cc0]
mov eax, 4
movd xmm6, eax
movdqa xmm7, xmmword [0x140031c90]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [str.7777777777777777]
movdqa xmmword [rsp + 0x80], xmm0
lea rdx, [rsp + 0x34]
mov r8d, dword [rsp + 0x80]
nop dword [rax]
nop dword [rax + rax]
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
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
andps xmm2, xmmword [0x140031ca0]
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
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
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140031ca0]
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, 0x20
jl 0x140004a10
cmp ecx, 0x25
jge 0x140004b4c
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax + rax]
mov eax, 0x4bda12f7
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, cl
sub al, dl
add al, 0x37
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x25
jl 0x140004b20
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.1400058e0
nop
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.140005ab0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140004baa
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ba5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004c68
call fcn.14000e2e0
movdqa xmm0, xmmword [0x140031c60]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
lea rcx, [0x1400397a8]
mov rdx, rcx
cmp qword [0x1400397c0], 0x10
cmovae rdx, qword [0x1400397a8]
add rdx, qword [0x1400397b8]
cmp qword [0x1400397c0], 0x10
cmovae rcx, qword [0x1400397a8]
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x90]
call fcn.140006020
movzx ebx, al
lea rcx, [rsp + 0x90]
call fcn.140005a30
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x140004c39
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x140004c39
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx eax, bl
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14000e2c0
lea r11, [rsp + 0xf0]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbx
ret
call fcn.140014c50
nop
int3