Function at 0x1400d4150
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rdx, qword [rcx + 0x288]
mov qword [rsp + 0x130], rbx
mov rbx, rcx
test rdx, rdx
je 0x1400d4196
mov r8d, dword [rcx + 0x290]
test r8d, r8d
je 0x1400d4196
xor r9d, r9d
lea rcx, [0x1402552d0]
call fcn.1400b6740
jmp 0x1400d41bf
cmp dword [rcx + 0x260], 0
jne 0x1400d41c6
lea rdx, [rcx + 0x240]
cmp qword [rdx + 0x18], 8
jb 0x1400d41b0
mov rdx, qword [rdx]
xor r8d, r8d
lea rcx, [0x1402552d0]
call fcn.1400b6930
mov qword [rbx + 0x268], rax
xor edi, edi
mov qword [rsp + 0x40], select
xorps xmm0, xmm0
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rdi
lea rcx, [0x1402552d0]
mov qword [rsp + 0x38], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x50], 6
mov dword [rsp + 0x54], 3
mov qword [rsp + 0x58], 2
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], edi
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rdi
mov dword [rsp + 0x48], select
mov dword [rsp + 0x4c], 0x190
call fcn.1400b6070
mov qword [rbx + 0x2c8], rax
cmp dword [rbx + 0x260], edi
je 0x1400d446d
cmp dword [0x1402557d0], 2
mov ecx, edi
movups xmm0, xmmword [str.x_RSPEkyZNRJXwR_]
movups xmm1, xmmword [0x14011ff40]
movzx eax, word [0x14011ff70]
movups xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x30], ax
movups xmm0, xmmword [0x14011ff50]
movups xmmword [rbp - 0x60], xmm1
movups xmm1, xmmword [0x14011ff60]
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm1
jl 0x1400d4408
movdqa xmm5, xmmword [0x140118390]
lea rdx, [rbp - 0x70]
movdqa xmm4, xmmword [0x1401183f0]
mov eax, 5
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm7
movdqa xmm7, xmmword [0x1401183b0]
movaps xmmword [rsp + 0xf0], xmm8
movd xmm6, eax
mov eax, 0x1f
movaps xmmword [rsp + 0xe0], xmm9
movdqa xmm9, xmmword [0x1401183c0]
movd xmm8, eax
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
pxor xmm3, xmm0
movq qword [rdx - 0x10], xmm3
paddd xmm2, xmm5
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
pxor xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x20
jl 0x1400d42f0
movaps xmm9, xmmword [rsp + 0xe0]
movaps xmm8, xmmword [rsp + 0xf0]
movaps xmm7, xmmword [rsp + 0x100]
movaps xmm6, xmmword [rsp + 0x110]
cmp ecx, 0x21
jge 0x1400d4453
movsxd rax, ecx
lea r8, [rbp - 0x70]
lea r8, [r8 + rax*2]
nop dword [rax]
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, 0x31
xor word [r8 - 2], ax
cmp ecx, 0x21
jl 0x1400d4420
xor r8d, r8d
lea rdx, [rbp - 0x70]
lea rcx, [0x1402552d0]
call fcn.1400b6930
mov qword [rbx + 0x270], rax
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x130]
test rcx, rcx
je 0x1400d44bd
mov rdx, qword [rbp - 0x80]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x1400d44ab
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d4507
call fcn.1400e8bd0
xorps xmm0, xmm0
mov qword [rbp - 0x80], rdi
movdqu xmmword [rsp + 0x70], xmm0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400d44f6
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d44f1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400d4507
call fcn.1400e8bd0
mov rdi, qword [rsp + 0x138]
add rsp, 0x120
pop rbp
ret
call fcn.1400ef88c
int3