Function at 0x140096900
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 0x140096a4e
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 0x140096995
lea rcx, [rdx + 1]
cmp rax, rdx
cmova rcx, rax
cmp rcx, 8
jae 0x1400969c2
xor eax, eax
cmp rcx, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x140096a1b
mov rbx, qword [r9]
mov rcx, r15
shr rcx, 4
xor eax, eax
test r15b, 0xf
setne al
add rax, rcx
je 0x140096c9a
cmp rax, 1
jne 0x140096c33
xor ecx, ecx
jmp 0x140096c84
movabs rax, 0x1ffffffffffffffe
or rax, 1
cmp rcx, rax
ja 0x140096a4e
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 0x140096a4e
inc r14
mov r12, r14
shl r12, 5
lea r15, [r14 + 0x10]
mov rdx, r12
add rdx, r15
jb 0x140096a4e
cmp rdx, r8
ja 0x140096a4e
test rdx, rdx
je 0x140096a50
movzx eax, byte [0x140254141]
xor ecx, ecx
call fcn.14008bd10
mov rbx, rax
test rax, rax
jne 0x140096a55
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 0x140096bdd
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 0x140096b0f
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 0x140096bd1
test r14w, r14w
jne 0x140096b3f
nop word cs:[rax + rax]
movdqa xmm0, xmmword [r15 + 0x10]
add r15, 0x10
pmovmskb r14d, xmm0
add rbp, 0x10
cmp r14d, 0xffff
je 0x140096b20
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.14009a4e0
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x140096ba7
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 0x140096b90
mov r8, qword [rsp + 0x20]
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [rbx + rdx], 0
js 0x140096ac0
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x140096ac0
mov rax, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x38]
jmp 0x140096bdf
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 0x14009715f
mov rax, r13
shl rax, 5
add r13, rax
cmp r13, 0xffffffffffffffcf
je 0x14009715f
sub r8, rax
add r8, 0xffffffffffffffe0
mov rcx, qword [0x1402540f8]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x14009715f
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x1401b57b0]
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 0x140096c50
test al, 1
je 0x140096c9a
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rcx]
por xmm0, xmmword [0x1401b57b0]
movdqa xmmword [rbx + rcx], xmm0
mov qword [rsp + 0x40], r11
cmp r15, 0x10
jae 0x140096cc0
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, r15
call sub.msvcrt.dll_memmove
test r15, r15
jne 0x140096cca
xor ecx, ecx
jmp 0x140097147
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + r15], xmm0
movdqu xmm1, xmmword [rdi]
pshufd xmm0, xmm1, 0x44
pxor xmm0, xmmword [0x1401b57c0]
pshufd xmm1, xmm1, 0xee
pxor xmm1, xmmword [0x1401b57d0]
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 0x140096d34
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 0x14009713a
cmp byte [rbx + r11], 0x80
jne 0x140096d24
mov r15, r11
not r15
shl r15, 5
add r15, rbx
mov rax, r11
shl rax, 5
mov r12, rbx
sub r12, rax
jmp 0x140096d81
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 0x140096e30
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 0x140096db0
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 0x140096e45
mov edx, dword [rdi + rbp]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rsi
jb 0x140096e55
jmp 0x140096e70
movdqa xmm2, xmm1
movdqa xmm3, xmm0
xor ebp, ebp
mov esi, r14d
and esi, 7
cmp esi, 4
jae 0x140096e1a
xor edx, edx
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rsi
jae 0x140096e70
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 0x140096e90
add rbp, rax
movzx r8d, byte [rdi + rbp]
shl eax, 3
mov ecx, eax
shl r8, cl
or rdx, r8
jmp 0x140096e99
test rsi, rsi
je 0x140096f2a
lea ecx, [rsi*8]
mov ebp, 0xff
shl rbp, cl
or rbp, rdx
cmp rsi, 7
jne 0x140096f30
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 0x140096f30
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 0x140097067
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 0x140097050
tzcnt ecx, ecx
add rcx, rdx
and rcx, r13
cmp byte [rbx + rcx], 0
js 0x140097083
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 0x140096d10
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 0x140097110
shl rcx, 5
mov rdx, rbx
sub rdx, rcx
movdqu xmm2, xmmword [r15]
cmp r15, rdx
jae 0x140096d60
cmp rax, r12
jae 0x140096d60
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 0x140096d81
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 0x140096d24
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