Function at 0x14008a790
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x170
movaps xmmword [r11 - 0x18], xmm6
mov rax, qword [0x14018a080]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov rdi, rcx
test rcx, rcx
jne 0x14008a92b
lea rdx, [r11 - 0x48]
call fcn.14008ae50
mov r9, rax
cmp byte [rax + 0xe], cl
je 0x14008a90c
xor ebx, ebx
cmp dword [0x14018a0d8], 2
jl 0x14008a8d9
movdqa xmm2, xmmword [0x140174030]
mov ebx, 8
movdqa xmm4, xmmword [0x1401741a0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140174050]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401740a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rax]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140174190]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140174200]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rax], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401740a0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rax + 4]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140174190]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140174200]
xorps xmm2, xmm0
movd dword [rax + 4], xmm2
movsxd r8, ebx
add r8, r9
nop
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, bl
inc ebx
sub al, cl
add al, 0x39
xor byte [r8 - 1], al
cmp ebx, 0xf
jl 0x14008a8e0
mov rcx, r9
call fcn.140023440
mov ecx, 0xbb8
call qword [0x14014d370]
mov ecx, 0x2b
call qword [0x14014de20]
int3
xor ebx, ebx
mov qword [rsp + 0x188], rbp
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov ebp, ebx
lea edx, [rbx + 4]
call qword [0x14014d148]
test eax, eax
je 0x14008a9b7
mov dword [rsp + 0x28], ebx
lea edx, [rbx + 4]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov rcx, rdi
call qword [0x14014d148]
mov ecx, eax
mov eax, 2
mul rcx
mov dword [rsp + 0x120], ecx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140145434
mov rbp, rax
lea edx, [rbx + 4]
mov eax, dword [rsp + 0x120]
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call qword [0x14014d148]
mov r9d, dword [rdi + 0x10]
lea rax, [rsp + 0x140]
mov r8, qword [rdi + 8]
mov edx, 2
mov qword [rsp + 0x38], rax
mov ecx, 0x10001
lea rax, [rsp + 0x128]
mov qword [rsp + 0x190], rsi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x8000
movaps xmmword [rsp + 0x150], xmm7
call qword [0x14014d108]
test eax, eax
je 0x14008ac53
mov rdx, qword [rsp + 0x128]
test rdx, rdx
je 0x14008ac53
mov r8, qword [rdx + 0xc8]
lea rcx, [0x14016ddd0]
mov edx, dword [rdx + 0xc0]
call qword [0x14014d138]
test rax, rax
je 0x14008ac53
mov r9d, dword [rax + 0x10]
lea rdx, [rsp + 0x120]
mov r8, qword [rax + 0x18]
mov ecx, 0x10001
mov qword [rsp + 0x38], rdx
lea rdx, [rsp + 0x130]
mov qword [rsp + 0x30], rdx
mov edx, 0xc
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x8000
mov qword [rsp + 0x130], rbx
call qword [0x14014d108]
test eax, eax
je 0x14008ac45
mov rdx, qword [rsp + 0x130]
mov edi, ebx
cmp dword [rdx], ebx
jbe 0x14008ac3c
mov esi, dword [0x14018a0d8]
nop dword [rax]
mov eax, edi
lea rcx, [rax + rax*2]
mov rax, qword [rdx + 8]
movsd xmm0, qword [rax + rcx*8 + 0x10]
movups xmm7, xmmword [rax + rcx*8]
movsd qword [rsp + 0x50], xmm0
movd eax, xmm7
cmp eax, 3
jne 0x14008ac32
movups xmm3, xmmword [0x14016dfa0]
pextrw eax, xmm3, 7
movups xmmword [rsp + 0x40], xmm3
test ax, ax
je 0x14008ac10
cmp esi, 2
jl 0x14008abd8
movdqa xmm2, xmmword [0x140174030]
movdqa xmm4, xmmword [0x1401741a0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401740a0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x140174050]
paddw xmm2, xmmword [0x140174180]
movdqa xmm0, xmm3
xorps xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movq qword [rsp + 0x40], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401740a0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x48]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x140174180]
xorps xmm2, xmm0
movq qword [rsp + 0x48], xmm2
jmp 0x14008ac10
lea r8, [rsp + 0x40]
mov ecx, ebx
nop
mov eax, 0x94f2095
lea r8, [r8 + 2]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x37
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x39
xor word [r8 - 2], ax
cmp ecx, 8
jl 0x14008abe0
psrldq xmm7, 8
lea rdx, [rsp + 0x40]
movq rcx, xmm7
call qword [0x14014da48]
test rax, rax
jne 0x14008ac9c
mov rdx, qword [rsp + 0x130]
inc edi
cmp edi, dword [rdx]
jb 0x14008aab0
mov rcx, rdx
call qword [0x14014d3c0]
mov rcx, qword [rsp + 0x128]
call qword [0x14014d3c0]
mov rcx, rbp
call fcn.1401453f8
mov rsi, qword [rsp + 0x190]
movaps xmm7, xmmword [rsp + 0x150]
mov rbp, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.140144da0
mov rbx, qword [rsp + 0x198]
movaps xmm6, xmmword [rsp + 0x160]
add rsp, 0x170
pop rdi
ret
lea rdx, [rsp + 0x60]
call fcn.14008ae80
mov r9, rax
cmp word [rax + 0xb6], bx
je 0x14008ae20
cmp esi, 2
jl 0x14008adde
movdqa xmm5, xmmword [0x140174030]
mov rcx, rax
movdqa xmm4, xmmword [0x1401741a0]
movdqa xmm6, xmmword [0x1401740a0]
movdqa xmm7, xmmword [0x140174180]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov eax, ebx
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp ebx, 0x58
jl 0x14008acf0
cmp eax, 0x5c
jge 0x14008ae20
movsxd rax, ebx
lea r8, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0x94f2095
lea r8, [r8 + 2]
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x37
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x39
xor word [r8 - 2], ax
cmp ebx, 0x5c
jl 0x14008adf0
mov rdx, rbp
mov rcx, r9
call fcn.140089510
mov ecx, 0x3a98
call qword [0x14014d370]
mov ecx, 0x2b
call qword [0x14014de20]
int3