Function at 0x14009d120
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movdqa xmmword [rsp + 0xc0], xmm12
movdqa xmmword [rsp + 0xb0], xmm11
movdqa xmmword [rsp + 0xa0], xmm10
movdqa xmmword [rsp + 0x90], xmm9
movdqa xmmword [rsp + 0x80], xmm8
movdqa xmmword [rsp + 0x70], xmm7
movdqa xmmword [rsp + 0x60], xmm6
mov dword [rsp + 0x34], r8d
mov r15d, edx
mov r14d, ecx
lea ebx, [r14 + r14 + 0x80]
lea rsi, [rbx + 0x20]
lea rdx, [fcn.14002fb30]
mov rcx, rbx
call fcn.140082f10
mov rcx, rax
mov rdx, rsi
call fcn.14007a7f0
mov rbp, rax
mov r13d, r14d
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.140042c20
mov r12, rax
mov ecx, 0x40
call fcn.14007a770
mov rdi, rax
test r14d, r14d
je 0x14009d20f
xor esi, esi
nop
mov rcx, rbp
mov rdx, rbp
mov r8w, 3
call fcn.14007aff0
mov rcx, rdi
mov rdx, rbp
mov r8, rbx
call fcn.14007bd30
mov rcx, rbp
mov rdx, rbx
call fcn.14007deb0
mov rcx, rdi
call fcn.14007b2e0
mov word [r12 + rsi*2], ax
add rsi, 1
cmp r13, rsi
jne 0x14009d1d0
mov rcx, rdi
call fcn.14007a920
mov rcx, rbp
call fcn.14007a920
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.140042c20
mov rsi, rax
mov rcx, rax
mov rdx, r12
mov r8d, r14d
mov r9d, 3
call fcn.14009ab60
test eax, eax
je 0x14009d288
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.140042c20
mov rbp, rax
mov rcx, rax
mov edx, r14d
mov r8d, dword [rsp + 0x34]
call fcn.14009d010
test r14d, r14d
mov qword [rsp + 0x40], rsi
je 0x14009d2b4
lea eax, [r15 - 3]
cmp r14d, 0x10
jae 0x14009d2cc
xor ecx, ecx
jmp 0x14009d3e0
add r13, r13
mov rcx, r12
mov rdx, r13
call fcn.140076fb0
mov rcx, r12
call fcn.140042cc0
mov rcx, rsi
mov rdx, r13
call fcn.140076fb0
xor r14d, r14d
mov r15, rsi
jmp 0x14009da12
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.140042c20
mov rbx, rax
jmp 0x14009d6a8
mov ecx, r13d
and ecx, 0xfffffff0
movd xmm0, eax
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
lea rdx, [rcx - 0x10]
mov rdi, rdx
shr rdi, 4
add rdi, 1
test rdx, rdx
je 0x14009d7fd
mov rbx, rdi
and rbx, 0xfffffffffffffffe
xor edx, edx
nop word cs:[rax + rax]
nop dword [rax + rax]
movdqu xmm1, xmmword [rbp + rdx*2]
movdqu xmm2, xmmword [rbp + rdx*2 + 0x10]
movdqu xmm3, xmmword [rbp + rdx*2 + 0x20]
movdqu xmm4, xmmword [rbp + rdx*2 + 0x30]
movdqa xmm5, xmm1
psrlw xmm5, 1
movdqa xmm6, xmm2
psrlw xmm6, 1
pmullw xmm5, xmm0
pmullw xmm6, xmm0
paddw xmm5, xmm1
paddw xmm6, xmm2
movdqu xmmword [rbp + rdx*2], xmm5
movdqu xmmword [rbp + rdx*2 + 0x10], xmm6
movdqa xmm1, xmm3
psrlw xmm1, 1
movdqa xmm2, xmm4
psrlw xmm2, 1
pmullw xmm1, xmm0
pmullw xmm2, xmm0
paddw xmm1, xmm3
paddw xmm2, xmm4
movdqu xmmword [rbp + rdx*2 + 0x20], xmm1
movdqu xmmword [rbp + rdx*2 + 0x30], xmm2
add rdx, 0x20
add rbx, 0xfffffffffffffffe
jne 0x14009d310
test dil, 1
je 0x14009d3ce
movdqu xmm1, xmmword [rbp + rdx*2]
movdqu xmm2, xmmword [rbp + rdx*2 + 0x10]
movdqa xmm3, xmm1
psrlw xmm3, 1
movdqa xmm4, xmm2
psrlw xmm4, 1
pmullw xmm3, xmm0
pmullw xmm4, xmm0
paddw xmm3, xmm1
paddw xmm4, xmm2
movdqu xmmword [rbp + rdx*2], xmm3
movdqu xmmword [rbp + rdx*2 + 0x10], xmm4
cmp rcx, r13
je 0x14009d3fc
nop word cs:[rax + rax]
nop dword [rax]
movzx ebx, word [rbp + rcx*2]
mov edx, ebx
shr edx, 1
imul edx, eax
add edx, ebx
mov word [rbp + rcx*2], dx
add rcx, 1
cmp r13, rcx
jne 0x14009d3e0
xor edi, edi
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.140042c20
mov rbx, rax
movzx ecx, r15w
movabs rax, 0x1000000000000
xor edx, edx
div rcx
cmp r14d, 8
jb 0x14009d670
lea rdx, [r13*2]
add rdx, rbp
cmp rbx, rdx
jae 0x14009d44e
lea rdx, [rbx + r13*2]
cmp rbp, rdx
jae 0x14009d44e
xor edi, edi
jmp 0x14009d670
mov edi, r13d
and edi, 0xfffffff8
movq xmm0, rax
pshufd xmm12, xmm0, 0x44
movd xmm1, ecx
pshufd xmm11, xmm1, 0
movd xmm1, r15d
pshufd xmm9, xmm1, 0
mov r8, r13
add r8, r13
and r8, 0xfffffffffffffff0
xor edx, edx
pxor xmm10, xmm10
movdqa xmm4, xmm12
psrlq xmm4, 0x20
pslld xmm11, 0x10
psrad xmm11, 0x10
packssdw xmm11, xmm11
pcmpeqd xmm8, xmm8
nop word cs:[rax + rax]
nop
movdqu xmm1, xmmword [rbp + rdx]
movdqa xmm3, xmm1
punpckhwd xmm3, xmm10
punpcklwd xmm1, xmm10
movdqa xmm2, xmm1
paddd xmm2, xmm1
paddd xmm2, xmm1
movdqa xmm1, xmm3
paddd xmm1, xmm3
paddd xmm1, xmm3
movdqa xmm3, xmm1
punpckhdq xmm3, xmm10
movdqa xmm7, xmm1
punpckldq xmm7, xmm10
movdqa xmm5, xmm2
punpckhdq xmm5, xmm10
movdqa xmm6, xmm2
punpckldq xmm6, xmm10
movdqa xmm0, xmm12
pmuludq xmm0, xmm6
pmuludq xmm6, xmm4
psllq xmm6, 0x20
paddq xmm6, xmm0
movdqa xmm0, xmm12
pmuludq xmm0, xmm5
pmuludq xmm5, xmm4
psllq xmm5, 0x20
paddq xmm5, xmm0
movdqa xmm0, xmm12
pmuludq xmm0, xmm7
pmuludq xmm7, xmm4
psllq xmm7, 0x20
paddq xmm7, xmm0
movdqa xmm0, xmm12
pmuludq xmm0, xmm3
pmuludq xmm3, xmm4
psllq xmm3, 0x20
paddq xmm3, xmm0
movdqa xmm0, xmm3
psrad xmm0, 0x1f
pshufd xmm0, xmm0, 0xed
psrad xmm3, 0x10
pshufd xmm3, xmm3, 0xed
punpckldq xmm3, xmm0
movdqa xmm0, xmm7
psrad xmm0, 0x1f
pshufd xmm0, xmm0, 0xed
psrad xmm7, 0x10
pshufd xmm7, xmm7, 0xed
punpckldq xmm7, xmm0
packssdw xmm7, xmm3
movdqa xmm0, xmm5
psrad xmm0, 0x1f
pshufd xmm0, xmm0, 0xed
psrad xmm5, 0x10
pshufd xmm3, xmm5, 0xed
punpckldq xmm3, xmm0
movdqa xmm0, xmm6
psrad xmm0, 0x1f
pshufd xmm0, xmm0, 0xed
psrad xmm6, 0x10
pshufd xmm5, xmm6, 0xed
punpckldq xmm5, xmm0
packssdw xmm5, xmm3
packssdw xmm5, xmm7
movdqa xmm0, xmm11
pmulhuw xmm0, xmm5
pmullw xmm5, xmm11
movdqa xmm3, xmm5
punpckhwd xmm3, xmm0
punpcklwd xmm5, xmm0
psubd xmm2, xmm5
psubd xmm1, xmm3
movdqa xmm0, xmm1
pxor xmm0, xmm8
movdqa xmm3, xmm2
pxor xmm3, xmm8
paddd xmm3, xmm9
paddd xmm0, xmm9
pslld xmm0, 0x10
pslld xmm3, 0x10
packssdw xmm3, xmm0
psrlw xmm3, 0xf
pmullw xmm3, xmm11
movdqa xmm0, xmm3
punpckhwd xmm0, xmm0
punpcklwd xmm3, xmm3
psubd xmm2, xmm3
psubd xmm1, xmm0
pslld xmm1, 0x10
psrad xmm1, 0x10
pslld xmm2, 0x10
psrad xmm2, 0x10
packssdw xmm2, xmm1
movdqu xmmword [rbx + rdx], xmm2
add rdx, 0x10
cmp r8, rdx
jne 0x14009d4b0
cmp rdi, r13
je 0x14009d6a8
nop dword [rax]
movzx edx, word [rbp + rdi*2]
lea rsi, [rdx + rdx*2]
mov rdx, rsi
imul rdx, rax
shr rdx, 0x30
imul edx, ecx
sub esi, edx
mov edx, esi
not edx
add edx, r15d
shr edx, 0xf
and edx, 1
imul edx, ecx
sub esi, edx
mov word [rbx + rdi*2], si
add rdi, 1
cmp r13, rdi
jne 0x14009d670
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.140042c20
mov rdi, rax
mov rcx, rax
mov rdx, rbx
mov r8d, r14d
mov r9d, r15d
call fcn.14009ab60
test eax, eax
je 0x14009d796
mov rsi, r14
mov qword [rsp + 0x38], r15
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.140042c20
mov r15, rax
test esi, esi
je 0x14009d926
mov rax, qword [rsp + 0x38]
lea esi, [rax - 3]
cmp r14d, 0x10
jb 0x14009d71f
lea rcx, [r12 + r13*2]
cmp r15, rcx
jae 0x14009d80e
lea rcx, [r15 + r13*2]
cmp r12, rcx
jae 0x14009d80e
xor ecx, ecx
mov rdx, rcx
not rdx
test r13b, 1
je 0x14009d74e
movzx r8d, word [r12 + rcx*2]
mov r9, rdi
mov edi, r8d
shr edi, 1
mov eax, esi
imul eax, edi
mov rdi, r9
add eax, r8d
mov word [r15 + rcx*2], ax
or rcx, 1
add rdx, r13
je 0x14009d926
nop word [rax + rax]
movzx eax, word [r12 + rcx*2]
mov edx, eax
shr edx, 1
imul edx, esi
add edx, eax
mov word [r15 + rcx*2], dx
movzx eax, word [r12 + rcx*2 + 2]
mov edx, eax
shr edx, 1
imul edx, esi
add edx, eax
mov word [r15 + rcx*2 + 2], dx
add rcx, 2
cmp r13, rcx
jne 0x14009d760
jmp 0x14009d926
add r13, r13
mov rcx, rbp
mov rdx, r13
call fcn.140076fb0
mov rcx, rbp
call fcn.140042cc0
mov rcx, rbx
mov rdx, r13
call fcn.140076fb0
mov rcx, rbx
call fcn.140042cc0
mov rcx, rdi
mov rdx, r13
call fcn.140076fb0
mov rcx, rdi
call fcn.140042cc0
mov rcx, r12
mov rdx, r13
call fcn.140076fb0
mov rcx, r12
call fcn.140042cc0
mov r15, qword [rsp + 0x40]
mov rcx, r15
mov rdx, r13
call fcn.140076fb0
xor r14d, r14d
jmp 0x14009da12
xor edx, edx
test dil, 1
jne 0x14009d394
jmp 0x14009d3ce
mov rax, rdi
mov ecx, r13d
and ecx, 0xfffffff0
movd xmm0, esi
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
lea rdx, [rcx - 0x10]
mov r8, rdx
shr r8, 4
add r8, 1
test rdx, rdx
je 0x14009da68
mov rdi, r8
and rdi, 0xfffffffffffffffe
xor edx, edx
nop word cs:[rax + rax]
movdqu xmm1, xmmword [r12 + rdx*2]
movdqu xmm2, xmmword [r12 + rdx*2 + 0x10]
movdqa xmm3, xmm1
psrlw xmm3, 1
movdqa xmm4, xmm2
psrlw xmm4, 1
pmullw xmm3, xmm0
pmullw xmm4, xmm0
paddw xmm3, xmm1
paddw xmm4, xmm2
movdqu xmmword [r15 + rdx*2], xmm3
movdqu xmmword [r15 + rdx*2 + 0x10], xmm4
movdqu xmm1, xmmword [r12 + rdx*2 + 0x20]
movdqu xmm2, xmmword [r12 + rdx*2 + 0x30]
movdqa xmm3, xmm1
psrlw xmm3, 1
movdqa xmm4, xmm2
psrlw xmm4, 1
pmullw xmm3, xmm0
pmullw xmm4, xmm0
paddw xmm3, xmm1
paddw xmm4, xmm2
movdqu xmmword [r15 + rdx*2 + 0x20], xmm3
movdqu xmmword [r15 + rdx*2 + 0x30], xmm4
add rdx, 0x20
add rdi, 0xfffffffffffffffe
jne 0x14009d850
test r8b, 1
je 0x14009d91a
movdqu xmm1, xmmword [r12 + rdx*2]
movdqu xmm2, xmmword [r12 + rdx*2 + 0x10]
movdqa xmm3, xmm1
psrlw xmm3, 1
movdqa xmm4, xmm2
psrlw xmm4, 1
pmullw xmm3, xmm0
pmullw xmm4, xmm0
paddw xmm3, xmm1
paddw xmm4, xmm2
movdqu xmmword [r15 + rdx*2], xmm3
movdqu xmmword [r15 + rdx*2 + 0x10], xmm4
cmp rcx, r13
mov rdi, rax
jne 0x14009d721
mov qword [rsp + 0x58], rdi
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.140042c20
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x20], ecx
mov rcx, rax
mov rdx, r15
mov r8, rdi
mov rsi, r14
mov r9d, esi
call fcn.14009a2d0
mov edx, 2
mov rcx, r13
xor r8d, r8d
call fcn.140042c20
mov qword [rsp + 0x48], rax
mov rcx, rax
mov edx, esi
mov edi, dword [rsp + 0x34]
mov r8d, edi
call fcn.14009d010
mov ecx, 1
mov edx, 0x30
xor r8d, r8d
call fcn.140042c20
mov r14, rax
mov dword [rax], esi
mov rax, qword [rsp + 0x38]
mov dword [r14 + 4], eax
mov dword [r14 + 8], edi
mov rax, qword [rsp + 0x50]
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rbx
mov rax, qword [rsp + 0x40]
mov qword [r14 + 0x20], rax
mov rax, qword [rsp + 0x48]
mov qword [r14 + 0x28], rax
add r13, r13
mov rcx, rbp
mov rdx, r13
call fcn.140076fb0
mov rcx, rbp
call fcn.140042cc0
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
mov rdx, r13
call fcn.140076fb0
mov rcx, rsi
call fcn.140042cc0
mov rcx, r12
mov rdx, r13
call fcn.140076fb0
mov rcx, r12
call fcn.140042cc0
mov rcx, r15
mov rdx, r13
call fcn.140076fb0
mov rcx, r15
call fcn.140042cc0
mov rax, r14
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
movaps xmm9, xmmword [rsp + 0x90]
movaps xmm10, xmmword [rsp + 0xa0]
movaps xmm11, xmmword [rsp + 0xb0]
movaps xmm12, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor edx, edx
test r8b, 1
jne 0x14009d8de
jmp 0x14009d91a