Function at 0x140088da0
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 [0x14017d080]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov rdi, rcx
test rcx, rcx
jne 0x140088f4e
lea rdx, [r11 - 0x48]
call fcn.140089480
mov r9, rax
cmp byte [rax + 0xe], cl
je 0x140088f2f
xor ebx, ebx
cmp dword [0x14017d0d8], 2
jl 0x140088ef1
movdqa xmm2, xmmword [0x140167f70]
mov ebx, 8
movdqa xmm3, xmmword [0x140167f90]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x140168310]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140167fb0]
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 [0x1401680f0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140168150]
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
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140167fb0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rax + 4]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401680f0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140168150]
xorps xmm2, xmm0
movd dword [rax + 4], xmm2
movsxd r8, ebx
add r8, r9
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x33
movzx eax, bl
inc ebx
sub al, cl
add al, 0x34
xor byte [r8 - 1], al
cmp ebx, 0xf
jl 0x140088f00
mov rcx, r9
call fcn.140023040
mov ecx, 0xbb8
call qword [0x140142358]
mov ecx, 0x2b
call qword [0x140142d90]
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 [0x140142110]
test eax, eax
je 0x140088fda
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 [0x140142110]
mov ecx, eax
mov eax, 2
mul rcx
mov dword [rsp + 0x120], ecx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14013a694
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 [0x140142110]
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 [0x1401420c0]
test eax, eax
je 0x140089286
mov rdx, qword [rsp + 0x128]
test rdx, rdx
je 0x140089286
mov r8, qword [rdx + 0xc8]
lea rcx, [0x140162aa0]
mov edx, dword [rdx + 0xc0]
call qword [0x140142100]
test rax, rax
je 0x140089286
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 [0x1401420c0]
test eax, eax
je 0x140089278
mov rdx, qword [rsp + 0x130]
mov edi, ebx
cmp dword [rdx], ebx
jbe 0x14008926f
mov esi, dword [0x14017d0d8]
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 0x140089265
movups xmm3, xmmword [0x140162b60]
pextrw eax, xmm3, 7
movups xmmword [rsp + 0x40], xmm3
test ax, ax
je 0x140089243
cmp esi, 2
jl 0x140089200
movdqa xmm2, xmmword [0x140167f70]
movdqa xmm4, xmmword [0x140168310]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140167fb0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x140167f90]
paddw xmm2, xmmword [0x1401680c0]
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
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140167fb0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x48]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x1401680c0]
xorps xmm2, xmm0
movq qword [rsp + 0x48], xmm2
jmp 0x140089243
lea r8, [rsp + 0x40]
mov ecx, ebx
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 2]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x33
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x34
xor word [r8 - 2], ax
cmp ecx, 8
jl 0x140089210
psrldq xmm7, 8
lea rdx, [rsp + 0x40]
movq rcx, xmm7
call qword [0x1401429e0]
test rax, rax
jne 0x1400892cf
mov rdx, qword [rsp + 0x130]
inc edi
cmp edi, dword [rdx]
jb 0x1400890d0
mov rcx, rdx
call qword [0x1401421a8]
mov rcx, qword [rsp + 0x128]
call qword [0x1401421a8]
mov rcx, rbp
call fcn.14013a658
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.14013a000
mov rbx, qword [rsp + 0x198]
movaps xmm6, xmmword [rsp + 0x160]
add rsp, 0x170
pop rdi
ret
lea rdx, [rsp + 0x60]
call fcn.1400894b0
mov r9, rax
cmp word [rax + 0xb6], bx
je 0x140089453
cmp esi, 2
jl 0x140089416
movdqa xmm5, xmmword [0x140167f70]
mov rcx, rax
movdqa xmm4, xmmword [0x140168310]
movdqa xmm6, xmmword [0x140167fb0]
movdqa xmm7, xmmword [0x1401680c0]
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
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
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
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, 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
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 0x140089320
cmp eax, 0x5c
jge 0x140089453
movsxd rax, ebx
lea r8, [r9 + rax*2]
nop dword [rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 2]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x34
xor word [r8 - 2], ax
cmp ebx, 0x5c
jl 0x140089420
mov rdx, rbp
mov rcx, r9
call fcn.140087ab0
mov ecx, 0x3a98
call qword [0x140142358]
mov ecx, 0x2b
call qword [0x140142d90]
int3