Function at 0x140098a90
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov r10, qword [rcx + 0x18]
mov rax, r10
inc rax
je 0x140098bde
mov rdi, rdx
mov r9, rcx
mov r13, qword [rcx + 8]
lea r15, [r13 + 1]
mov rcx, r15
shr rcx, 3
mov r11, r15
and r11, 0xfffffffffffffff8
sub r11, rcx
cmp r13, 8
mov rdx, r11
cmovb rdx, r13
movabs r8, 0x7ffffffffffffff0
mov rcx, rdx
shr rcx, 1
cmp rax, rcx
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r10
jbe 0x140098b25
lea rcx, [rdx + 1]
cmp rax, rdx
cmova rcx, rax
cmp rcx, 8
jae 0x140098b52
xor eax, eax
cmp rcx, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x140098bab
mov rbx, qword [r9]
mov rcx, r15
shr rcx, 4
xor eax, eax
test r15b, 0xf
setne al
add rax, rcx
je 0x140098e2a
cmp rax, 1
jne 0x140098dc3
xor ecx, ecx
jmp 0x140098e14
movabs rax, 0x1ffffffffffffffe
or rax, 1
cmp rcx, rax
ja 0x140098bde
shl rcx, 3
movabs rdx, 0x2492492492492493
mov rax, rcx
mul rdx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 2
dec rcx
bsr rcx, rcx
not ecx
mov r14, 0xffffffffffffffff
shr r14, cl
movabs rax, 0x7fffffffffffffe
cmp r14, rax
ja 0x140098bde
inc r14
mov r12, r14
shl r12, 5
lea r15, [r14 + 0x10]
mov rdx, r12
add rdx, r15
jb 0x140098bde
cmp rdx, r8
ja 0x140098bde
test rdx, rdx
je 0x140098be0
movzx eax, byte [0x140259141]
xor ecx, ecx
call fcn.14008b700
mov rbx, rax
test rax, rax
jne 0x140098be5
ud2
mov ebx, 0x10
lea rsi, [r14 - 1]
mov rax, r14
shr rax, 3
mov rbp, r14
and rbp, 0xfffffffffffffff8
sub rbp, rax
cmp r14, 9
cmovb rbp, rsi
add rbx, r12
mov rcx, rbx
mov dl, 0xff
mov r8, r15
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x30]
mov r8, qword [rax]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140098d6d
mov qword [rsp + 0x38], rbp
movdqa xmm0, xmmword [r8]
pmovmskb r14d, xmm0
not r14d
movups xmm6, xmmword [rdi]
xor ebp, ebp
mov rdi, rax
mov r15, r8
mov qword [rsp + 0x20], r8
jmp 0x140098c9f
lea ecx, [r14 - 1]
and ecx, r14d
dec rdi
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rsi
mov byte [rbx + rdx], al
mov byte [rbx + r9 + 0x10], al
not r12
shl r12, 5
not rdx
shl rdx, 5
movdqu xmm0, xmmword [r8 + r12]
movdqu xmm1, xmmword [r8 + r12 + 0x10]
movdqu xmmword [rbx + rdx + 0x10], xmm1
movdqu xmmword [rbx + rdx], xmm0
mov r14d, ecx
test rdi, rdi
je 0x140098d61
test r14w, r14w
jne 0x140098ccf
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r15 + 0x10]
add r15, 0x10
pmovmskb r14d, xmm0
add rbp, 0x10
cmp r14d, 0xffff
je 0x140098cb0
not r14d
tzcnt r12d, r14d
add r12, rbp
mov rax, r12
shl rax, 5
mov rcx, r8
sub rcx, rax
mov rdx, qword [rcx - 0x18]
mov r8, qword [rcx - 0x10]
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x50]
call fcn.14009db20
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140098d37
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, rsi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x140098d20
mov r8, qword [rsp + 0x20]
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [rbx + rdx], 0
js 0x140098c50
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140098c50
mov rax, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x38]
jmp 0x140098d6f
xor eax, eax
sub rbp, rax
mov rax, qword [rsp + 0x30]
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test r13, r13
movabs rsi, 0x7ffffffffffffff0
je 0x1400992ef
mov rax, r13
shl rax, 5
add r13, rax
cmp r13, 0xffffffffffffffcf
je 0x1400992ef
sub r8, rax
add r8, 0xffffffffffffffe0
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x1400992ef
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x1401ba210]
nop word [rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rcx]
por xmm1, xmm0
movdqa xmmword [rbx + rcx], xmm1
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + rcx + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + rcx + 0x10], xmm1
add rcx, 0x20
add rdx, 0xfffffffffffffffe
jne 0x140098de0
test al, 1
je 0x140098e2a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x1401ba210]
movdqa xmmword [rbx + rcx], xmm0
mov qword [rsp + 0x40], r11
cmp r15, 0x10
jae 0x140098e50
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r15
call sub.msvcrt.dll_memmove
test r15, r15
jne 0x140098e5a
xor ecx, ecx
jmp 0x1400992d7
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r15], xmm0
movdqu xmm1, xmmword [rdi]
pshufd xmm0, xmm1, 0x44
pxor xmm0, xmmword [0x1401ba220]
pshufd xmm1, xmm1, 0xee
pxor xmm1, xmmword [0x1401ba230]
pshufd xmm2, xmm1, 0xee
movq qword [rsp + 0x20], xmm2
movq qword [rsp + 0x38], xmm0
movq qword [rsp + 0x48], xmm1
pshufd xmm2, xmm0, 0xee
movq r10, xmm2
xor r11d, r11d
jmp 0x140098ec4
shr rsi, 0x39
lea rax, [r11 - 0x10]
and rax, r13
mov byte [rbx + r11], sil
mov byte [rbx + rax + 0x10], sil
lea rax, [r11 + 1]
cmp r11, r13
mov r11, rax
je 0x1400992ca
cmp byte [rbx + r11], 0x80
jne 0x140098eb4
mov r15, r11
not r15
shl r15, 5
add r15, rbx
mov rax, r11
shl rax, 5
mov r12, rbx
sub r12, rax
jmp 0x140098f11
movdqu xmm3, xmmword [r15 + 0x10]
movdqu xmm4, xmmword [rax]
movups xmm5, xmmword [rax + 0x10]
movdqu xmmword [r15], xmm4
movups xmmword [r15 + 0x10], xmm5
movdqu xmmword [rax], xmm2
movdqu xmmword [rax + 0x10], xmm3
mov rdi, qword [r12 - 0x18]
mov r14, qword [r12 - 0x10]
mov rcx, r14
and rcx, 0xfffffffffffffff8
je 0x140098fc0
mov rax, r10
mov rsi, qword [rsp + 0x48]
mov r8, qword [rsp + 0x20]
xor ebp, ebp
mov rdx, qword [rsp + 0x38]
nop dword [rax]
add rdx, rsi
rol rsi, 0xd
mov r9, qword [rdi + rbp]
xor rsi, rdx
rol rdx, 0x20
xor r8, r9
add rax, r8
rol r8, 0x10
xor r8, rax
add rdx, r8
rol r8, 0x15
add rax, rsi
rol rsi, 0x11
xor rsi, rax
rol rax, 0x20
xor r8, rdx
xor rdx, r9
add rbp, 8
cmp rbp, rcx
jb 0x140098f40
movq xmm3, r8
movq xmm2, rsi
punpcklqdq xmm2, xmm3
movq xmm4, rax
movq xmm3, rdx
punpcklqdq xmm3, xmm4
mov esi, r14d
and esi, 7
cmp esi, 4
jb 0x140098fd5
mov edx, dword [rdi + rbp]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rsi
jb 0x140098fe5
jmp 0x140099000
movdqa xmm2, xmm1
movdqa xmm3, xmm0
xor ebp, ebp
mov esi, r14d
and esi, 7
cmp esi, 4
jae 0x140098faa
xor edx, edx
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rsi
jae 0x140099000
lea rcx, [rdi + rax]
movzx r8d, word [rbp + rcx]
lea ecx, [rax*8]
shl r8, cl
or rdx, r8
or rax, 2
cmp rax, rsi
jae 0x140099020
add rbp, rax
movzx r8d, byte [rdi + rbp]
shl eax, 3
mov ecx, eax
shl r8, cl
or rdx, r8
jmp 0x140099029
test rsi, rsi
je 0x1400990ba
lea ecx, [rsi*8]
mov ebp, 0xff
shl rbp, cl
or rbp, rdx
cmp rsi, 7
jne 0x1400990c0
pshufd xmm4, xmm2, 0xee
movq rcx, xmm4
xor rcx, rbp
movq rdx, xmm2
paddq xmm2, xmm3
movq rax, xmm2
rol rdx, 0xd
xor rdx, rax
rol rax, 0x20
pshufd xmm2, xmm3, 0xee
movq r8, xmm2
add r8, rcx
rol rcx, 0x10
xor rcx, r8
add rax, rcx
rol rcx, 0x15
add r8, rdx
rol rdx, 0x11
xor rcx, rax
xor rdx, r8
movq xmm3, rcx
movq xmm2, rdx
punpcklqdq xmm2, xmm3
rol r8, 0x20
xor rax, rbp
movq xmm4, r8
movq xmm3, rax
punpcklqdq xmm3, xmm4
xor ebp, ebp
jmp 0x1400990c0
mov ebp, 0xff
nop
pshufd xmm4, xmm3, 0xee
movq rax, xmm4
movq rcx, xmm2
pshufd xmm4, xmm2, 0xee
movq rdi, xmm4
shl r14, 0x38
movabs rdx, 0x100000000000000
add r14, rdx
or r14, rbp
paddq xmm2, xmm3
rol rcx, 0xd
movq rbp, xmm2
xor rcx, rbp
rol rbp, 0x20
xor rdi, r14
add rax, rdi
rol rdi, 0x10
xor rdi, rax
add rbp, rdi
rol rdi, 0x15
add rax, rcx
rol rcx, 0x11
xor rdi, rbp
xor rcx, rax
rol rax, 0x20
xor rbp, r14
add rbp, rcx
rol rcx, 0xd
xor rcx, rbp
rol rbp, 0x20
xor rax, 0xff
add rax, rdi
rol rdi, 0x10
xor rdi, rax
add rbp, rdi
rol rdi, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor rdi, rbp
add rbp, rcx
rol rcx, 0xd
xor rcx, rbp
rol rbp, 0x20
add rax, rdi
rol rdi, 0x10
xor rdi, rax
add rbp, rdi
rol rdi, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor rdi, rbp
add rbp, rcx
rol rcx, 0xd
add rax, rdi
rol rdi, 0x10
xor rdi, rax
rol rdi, 0x15
xor rcx, rbp
add rax, rcx
rol rcx, 0x11
mov rsi, rax
rol rsi, 0x20
xor rsi, rcx
xor rsi, rdi
xor rsi, rax
mov rax, r13
and rax, rsi
movdqu xmm2, xmmword [rbx + rax]
pmovmskb ecx, xmm2
mov rdx, rax
test ecx, ecx
jne 0x1400991f7
mov r8d, 0x10
mov rdx, rax
nop dword [rax]
add rdx, r8
and rdx, r13
movdqu xmm2, xmmword [rbx + rdx]
pmovmskb ecx, xmm2
add r8, 0x10
test ecx, ecx
je 0x1400991e0
tzcnt ecx, ecx
add rcx, rdx
and rcx, r13
cmp byte [rbx + rcx], 0
js 0x140099213
movdqa xmm2, xmmword [rbx]
pmovmskb ecx, xmm2
tzcnt ecx, ecx
mov rdx, r11
sub rdx, rax
mov r8, rcx
sub r8, rax
xor r8, rdx
and r8, r13
cmp r8, 0x10
jb 0x140098ea0
mov rax, rcx
not rax
shl rax, 5
add rax, rbx
movzx edx, byte [rbx + rcx]
shr rsi, 0x39
lea r8, [rcx - 0x10]
and r8, r13
mov byte [rbx + rcx], sil
mov byte [rbx + r8 + 0x10], sil
cmp dl, 0xff
je 0x1400992a0
shl rcx, 5
mov rdx, rbx
sub rdx, rcx
movdqu xmm2, xmmword [r15]
cmp r15, rdx
jae 0x140098ef0
cmp rax, r12
jae 0x140098ef0
movups xmm3, xmmword [rax]
movups xmmword [r15], xmm3
movdqu xmmword [rax], xmm2
movdqu xmm2, xmmword [r15 + 0x10]
movdqu xmm3, xmmword [rax + 0x10]
movdqu xmmword [r15 + 0x10], xmm3
movdqu xmmword [rax + 0x10], xmm2
jmp 0x140098f11
lea rcx, [r11 - 0x10]
and rcx, r13
mov byte [rbx + r11], 0xff
mov byte [rbx + rcx + 0x10], 0xff
movdqu xmm2, xmmword [r15]
movdqu xmm3, xmmword [r15 + 0x10]
movdqu xmmword [rax + 0x10], xmm3
movdqu xmmword [rax], xmm2
jmp 0x140098eb4
cmp r13, 8
mov rcx, qword [rsp + 0x40]
cmovb rcx, r13
sub rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movabs rsi, 0x7ffffffffffffff0
add rsi, 0x11
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret