Function at 0x14008d240
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x170
movaps xmmword [r11 - 0x18], xmm6
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov rdi, rcx
test rcx, rcx
jne 0x14008d3db
lea rdx, [r11 - 0x48]
call fcn.14008d790
mov r9, rax
cmp byte [rax + 0xe], cl
je 0x14008d3bc
xor ebx, ebx
cmp dword [0x14018e0d8], 2
jl 0x14008d389
movdqa xmm2, xmmword [0x1401781d0]
mov ebx, 8
movdqa xmm4, xmmword [0x140178350]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1401781f0]
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 [0x140178260]
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 [0x140178340]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401783c0]
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 [0x140178260]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rax + 4]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140178340]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401783c0]
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 0x14008d390
mov rcx, r9
call fcn.1400235e0
mov ecx, 0xbb8
call qword [0x140151370]
mov ecx, 0x2b
call qword [0x140151e20]
int3
xor ebx, ebx
mov qword [rsp + 0x188], rsi
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov esi, ebx
lea edx, [rbx + 4]
call qword [0x140151148]
test eax, eax
je 0x14008d467
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 [0x140151148]
mov ecx, eax
mov eax, 2
mul rcx
mov dword [rsp + 0x120], ecx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140148b14
mov rsi, 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], rsi
call qword [0x140151148]
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 + 0x30], rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x8000
call qword [0x140151108]
test eax, eax
je 0x14008d598
mov rdx, qword [rsp + 0x128]
test rdx, rdx
je 0x14008d598
mov r8, qword [rdx + 0xc8]
lea rcx, [0x140171eb8]
mov edx, dword [rdx + 0xc0]
call qword [0x140151138]
test rax, rax
je 0x14008d598
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 [0x140151108]
test eax, eax
je 0x14008d58a
mov rdx, qword [rsp + 0x130]
mov edi, ebx
cmp dword [rdx], ebx
jbe 0x14008d581
nop dword [rax + rax]
mov eax, edi
lea rcx, [rax + rax*2]
mov rax, qword [rdx + 8]
movups xmm1, xmmword [rax + rcx*8]
movd eax, xmm1
cmp eax, 3
jne 0x14008d57b
psrldq xmm1, 8
lea rdx, [0x140171ec8]
movq rcx, xmm1
call qword [0x140151a48]
test rax, rax
jne 0x14008d5d1
mov rdx, qword [rsp + 0x130]
inc edi
cmp edi, dword [rdx]
jb 0x14008d540
mov rcx, rdx
call qword [0x1401513c0]
mov rcx, qword [rsp + 0x128]
call qword [0x1401513c0]
mov rcx, rsi
call fcn.140148ad8
mov rsi, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.140148480
mov rbx, qword [rsp + 0x190]
movaps xmm6, xmmword [rsp + 0x160]
add rsp, 0x170
pop rdi
ret
lea rdx, [rsp + 0x60]
call fcn.14008d7c0
mov r9, rax
cmp word [rax + 0xb6], bx
je 0x14008d760
cmp dword [0x14018e0d8], 2
jl 0x14008d726
movdqa xmm5, xmmword [0x1401781d0]
mov rcx, rax
movdqa xmm4, xmmword [0x140178350]
movdqa xmm6, xmmword [0x140178260]
movaps xmmword [rsp + 0x150], xmm7
movdqa xmm7, xmmword [0x140178330]
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 0x14008d630
movaps xmm7, xmmword [rsp + 0x150]
cmp eax, 0x5c
jge 0x14008d760
movsxd rax, ebx
lea r8, [r9 + rax*2]
nop dword [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 0x14008d730
mov rdx, rsi
mov rcx, r9
call fcn.14008bfc0
mov ecx, 0x3a98
call qword [0x140151370]
mov ecx, 0x2b
call qword [0x140151e20]
int3