Function at 0x14004adb0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x40], xmm11
movdqa xmmword [rbp + 0x30], xmm10
movdqa xmmword [rbp + 0x20], xmm9
movdqa xmmword [rbp + 0x10], xmm8
movdqa xmmword [rbp], xmm7
movdqa xmmword [rbp - 0x10], xmm6
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov r15, rcx
mov r12b, byte [rcx + 0x24]
mov byte [rcx + 0x27], r12b
mov rdi, qword [rdx]
mov qword [rbp - 0x40], rdx
mov rcx, qword [rdx + 0x10]
lea r14, [rdi + rcx]
movzx edx, word [r15 + 0x48]
test rcx, rcx
je 0x14004ae29
cmp rcx, 0x10
jae 0x14004ae30
xor ebx, ebx
mov r9, rdi
jmp 0x14004b020
xor eax, eax
jmp 0x14004b053
mov r9, rcx
and r9, 0xfffffffffffffff0
movzx edx, dx
movd xmm0, edx
lea rdx, [r9 - 0x10]
mov r8, rdx
shr r8, 4
add r8, 1
test rdx, rdx
je 0x14004b1ef
mov rdx, r8
and rdx, 0xfffffffffffffffe
neg rdx
pxor xmm8, xmm8
xor ebx, ebx
pcmpeqd xmm11, xmm11
movdqa xmm9, xmmword [0x1401af140]
pxor xmm2, xmm2
pxor xmm3, xmm3
pxor xmm4, xmm4
nop word cs:[rax + rax]
nop dword [rax + rax]
movq xmm7, qword [rdi + rbx]
movq xmm5, qword [rdi + rbx + 8]
movdqa xmm1, xmm7
punpcklbw xmm1, xmm8
paddw xmm1, xmm3
movdqa xmm6, xmm5
punpcklbw xmm6, xmm8
paddw xmm6, xmm4
pcmpeqb xmm7, xmm11
pxor xmm7, xmm11
punpcklbw xmm7, xmm7
pand xmm7, xmm9
paddw xmm7, xmm0
pcmpeqb xmm5, xmm11
pxor xmm5, xmm11
punpcklbw xmm5, xmm5
pand xmm5, xmm9
paddw xmm5, xmm2
movq xmm0, qword [rdi + rbx + 0x10]
movq xmm10, qword [rdi + rbx + 0x18]
movdqa xmm3, xmm0
punpcklbw xmm3, xmm8
paddw xmm3, xmm1
movdqa xmm4, xmm10
punpcklbw xmm4, xmm8
paddw xmm4, xmm6
pcmpeqb xmm0, xmm11
pxor xmm0, xmm11
punpcklbw xmm0, xmm0
pand xmm0, xmm9
paddw xmm0, xmm7
movdqa xmm2, xmm10
pcmpeqb xmm2, xmm11
pxor xmm2, xmm11
punpcklbw xmm2, xmm2
pand xmm2, xmm9
paddw xmm2, xmm5
add rbx, 0x20
add rdx, 2
jne 0x14004ae90
test r8b, 1
je 0x14004afb4
movq xmm1, qword [rdi + rbx]
movq xmm10, qword [rdi + rbx + 8]
pcmpeqd xmm5, xmm5
movdqa xmm6, xmm10
pcmpeqb xmm6, xmm5
pxor xmm6, xmm5
punpcklbw xmm6, xmm6
movdqa xmm7, xmmword [0x1401af140]
pand xmm6, xmm7
paddw xmm2, xmm6
movdqa xmm6, xmm1
pcmpeqb xmm6, xmm5
pxor xmm6, xmm5
punpcklbw xmm6, xmm6
pand xmm6, xmm7
paddw xmm0, xmm6
pxor xmm5, xmm5
movdqa xmm6, xmm10
punpcklbw xmm6, xmm5
paddw xmm4, xmm6
punpcklbw xmm1, xmm5
paddw xmm3, xmm1
paddw xmm0, xmm2
paddw xmm3, xmm4
pshufd xmm1, xmm3, 0xee
paddw xmm1, xmm3
pshufd xmm2, xmm1, 0x55
paddw xmm2, xmm1
movdqa xmm1, xmm2
psrld xmm1, 0x10
paddw xmm1, xmm2
movd ebx, xmm1
pshufd xmm1, xmm0, 0xee
paddw xmm1, xmm0
pshufd xmm0, xmm1, 0x55
paddw xmm0, xmm1
movdqa xmm1, xmm0
psrld xmm1, 0x10
paddw xmm1, xmm0
movd edx, xmm1
cmp rcx, r9
jne 0x14004b012
pextrw ecx, xmm10, 3
shr ecx, 8
jmp 0x14004b03f
add r9, rdi
nop word cs:[rax + rax]
nop
movzx ecx, byte [r9]
add r9, 1
movzx esi, cx
xor eax, eax
cmp esi, 0xff
setne al
add ebx, ecx
add edx, eax
cmp r14, r9
jne 0x14004b020
cmp cl, 0xff
sete r12b
mov word [r15 + 0x48], dx
sete byte [r15 + 0x27]
movzx eax, bx
mov qword [rbp - 0x38], rax
movzx eax, r12b
movzx ebx, dx
add rbx, rax
je 0x14004b08c
lea r13, [rbx*4]
mov edx, 2
mov rcx, r13
call fcn.1400012e0
test rax, rax
jne 0x14004b091
mov edx, 2
mov rcx, r13
call fcn.14019e1f0
ud2
mov eax, 2
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], 0
xor edx, edx
lea rcx, [rbp - 0x30]
xor r13d, r13d
xor ebx, ebx
nop dword [rax]
cmp rdi, r14
je 0x14004b106
movzx eax, byte [rdi]
add rdi, 1
movzx esi, ax
add ebx, eax
cmp esi, 0xff
je 0x14004b0b0
cmp qword [rbp - 0x28], rdx
jne 0x14004b0e4
mov r8d, 1
mov rsi, rcx
call fcn.140191800
mov rdx, qword [rbp - 0x20]
mov rcx, rsi
mov rax, qword [rbp - 0x30]
mov word [rax + rdx*4], r13w
mov word [rax + rdx*4 + 2], bx
add ebx, r13d
mov rdx, qword [rbp - 0x20]
add rdx, 1
mov qword [rbp - 0x20], rdx
mov r13d, ebx
jmp 0x14004b0aa
test r12b, r12b
je 0x14004b137
cmp qword [rbp - 0x28], rdx
jne 0x14004b124
lea rcx, [rbp - 0x30]
mov r8d, 1
call fcn.140191800
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x30]
mov word [rax + rdx*4], r13w
mov word [rax + rdx*4 + 2], bx
add qword [rbp - 0x20], 1
mov rdi, qword [rbp - 0x38]
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x50], rax
movups xmm0, xmmword [rbp - 0x30]
movaps xmmword [rbp - 0x60], xmm0
lea rsi, [r15 + 8]
mov rdx, qword [r15 + 0x10]
test rdx, rdx
je 0x14004b16f
shl rdx, 2
test rdx, rdx
je 0x14004b16f
mov rcx, qword [rsi]
mov r8d, 2
call fcn.1400012f0
mov rax, qword [rbp - 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rbp - 0x60]
movups xmmword [rsi], xmm0
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x50], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rbp - 0x60], xmm0
mov rdx, qword [r15 + 0x30]
add r15, 0x28
test rdx, rdx
je 0x14004b1ac
mov rcx, qword [r15]
mov r8d, 1
call fcn.1400012f0
mov rax, qword [rbp - 0x50]
mov qword [r15 + 0x10], rax
movaps xmm0, xmmword [rbp - 0x60]
movups xmmword [r15], xmm0
mov rax, rdi
movaps xmm6, xmmword [rbp - 0x10]
movaps xmm7, xmmword [rbp]
movaps xmm8, xmmword [rbp + 0x10]
movaps xmm9, xmmword [rbp + 0x20]
movaps xmm10, xmmword [rbp + 0x30]
movaps xmm11, xmmword [rbp + 0x40]
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
pxor xmm2, xmm2
xor ebx, ebx
pxor xmm3, xmm3
pxor xmm4, xmm4
test r8b, 1
jne 0x14004af52
jmp 0x14004afb4