Function at 0x1400f8570
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movdqa xmmword [rsp + 0x80], xmm6
mov r15, qword [rcx + 0x18]
mov rax, r15
inc rax
je 0x1400f86c2
movdqa xmm6, xmmword [rdx]
mov rbp, qword [rcx + 8]
lea r13, [rbp + 1]
mov rdx, r13
shr rdx, 3
mov r9, r13
and r9, 0xfffffffffffffff8
sub r9, rdx
cmp rbp, 8
cmovb r9, rbp
movabs rdi, 0x7ffffffffffffff0
mov rdx, r9
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x28], rcx
jbe 0x1400f8601
inc r9
cmp rax, r9
cmova r9, rax
cmp r9, 8
jae 0x1400f8633
xor eax, eax
cmp r9, 4
setae al
lea r14, [rax*4 + 4]
jmp 0x1400f8689
mov qword [rsp + 0x30], r15
mov r14, qword [rcx]
mov rcx, r13
shr rcx, 4
xor eax, eax
test r13b, 0xf
setne al
add rax, rcx
je 0x1400f8930
cmp rax, 1
jne 0x1400f88bf
xor ecx, ecx
jmp 0x1400f8918
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp r9, rax
jae 0x1400f86c2
shl r9, 3
mov r14d, 1
cmp r9, 0xe
jb 0x1400f8689
movabs rcx, 0x2492492492492493
mov rax, r9
mul rcx
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 2
dec r9
bsr rcx, r9
not ecx
mov r14, 0xffffffffffffffff
shr r14, cl
inc r14
mov ecx, 0x30
mov rax, r14
mul rcx
jo 0x1400f86c2
mov rbx, rax
lea r12, [r14 + 0x10]
mov rdx, rax
add rdx, r12
jb 0x1400f86c2
cmp rdx, rdi
ja 0x1400f86c2
test rdx, rdx
je 0x1400f86c4
movzx eax, byte [0x140188180]
xor ecx, ecx
call fcn.1400f2120
test rax, rax
jne 0x1400f86c9
ud2
mov eax, 0x10
lea rsi, [r14 - 1]
mov rcx, r14
shr rcx, 3
mov rdx, r14
and rdx, 0xfffffffffffffff8
sub rdx, rcx
cmp r14, 9
cmovb rdx, rsi
mov qword [rsp + 0x40], rdx
add rbx, rax
mov rcx, rbx
mov dl, 0xff
mov r8, r12
call sub.msvcrt.dll_memset
test r15, r15
je 0x1400f8867
mov qword [rsp + 0x38], r13
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
movdqa xmm0, xmmword [r8]
pmovmskb r12d, xmm0
not r12d
xor r13d, r13d
mov qword [rsp + 0x30], r15
mov r14, r8
mov qword [rsp + 0x48], r8
jmp 0x1400f879a
lea ecx, [r12 - 1]
and ecx, r12d
dec r15
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, rsi
mov byte [rbx + rdx], al
mov byte [r8 + rbx + 0x10], al
not rdi
lea rax, [rdi + rdi*2]
shl rax, 4
not rdx
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov r8, qword [rsp + 0x48]
movdqu xmm0, xmmword [r8 + rax]
movdqu xmm1, xmmword [r8 + rax + 0x10]
movdqu xmm2, xmmword [r8 + rax + 0x20]
movdqu xmmword [rbx + rdx + 0x20], xmm2
movdqu xmmword [rbx + rdx + 0x10], xmm1
movdqu xmmword [rbx + rdx], xmm0
mov r12d, ecx
test r15, r15
je 0x1400f884c
test r12w, r12w
jne 0x1400f87bf
movdqa xmm0, xmmword [r14 + 0x10]
add r14, 0x10
pmovmskb r12d, xmm0
add r13, 0x10
cmp r12d, 0xffff
je 0x1400f87a0
not r12d
tzcnt edi, r12d
add rdi, r13
mov rax, rdi
neg rax
lea rax, [rax + rax*2]
shl rax, 4
mov rdx, qword [r8 + rax - 0x28]
mov r8, qword [r8 + rax - 0x20]
movdqa xmmword [rsp + 0x70], xmm6
lea rcx, [rsp + 0x70]
call fcn.1400fd440
mov rcx, rax
and rcx, rsi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x1400f8827
mov r8d, 0x10
nop dword [rax + rax]
add rcx, r8
and rcx, rsi
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x1400f8810
tzcnt edx, edx
add rdx, rcx
and rdx, rsi
cmp byte [rbx + rdx], 0
js 0x1400f8730
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x1400f8730
movabs rdi, 0x7ffffffffffffff0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
jmp 0x1400f8871
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor ecx, ecx
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
test rbp, rbp
je 0x1400f9000
mov ecx, 0x30
mov rax, r13
mul rcx
add rbp, rax
cmp rbp, 0xffffffffffffffef
je 0x1400f9000
sub r8, rax
mov rcx, qword [0x140188170]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x1400f9000
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x14011c240]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + rcx]
por xmm1, xmm0
movdqa xmmword [r14 + rcx], xmm1
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [r14 + rcx + 0x10]
por xmm1, xmm0
movdqa xmmword [r14 + rcx + 0x10], xmm1
add rcx, 0x20
add rdx, 0xfffffffffffffffe
jne 0x1400f88e0
test al, 1
je 0x1400f8930
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [r14 + rcx]
por xmm0, xmmword [0x14011c240]
movdqa xmmword [r14 + rcx], xmm0
mov qword [rsp + 0x50], r9
cmp r13, 0x10
jae 0x1400f8957
lea rcx, [r14 + 0x10]
mov rdx, r14
mov r8, r13
call sub.msvcrt.dll_memmove
cmp rbp, 0xffffffffffffffff
jne 0x1400f8962
xor ecx, ecx
jmp 0x1400f8ff2
movdqu xmm0, xmmword [r14]
movdqu xmmword [r14 + r13], xmm0
pshufd xmm0, xmm6, 0x44
pxor xmm0, xmmword [0x14011c250]
pshufd xmm1, xmm6, 0xee
pxor xmm1, xmmword [0x14011c260]
pshufd xmm2, xmm1, 0xee
movq qword [rsp + 0x40], xmm2
movq qword [rsp + 0x38], xmm0
movq qword [rsp + 0x68], xmm1
pshufd xmm2, xmm0, 0xee
movq qword [rsp + 0x60], xmm2
lea r11, [r14 - 0x2e]
mov qword [rsp + 0x58], r11
xor edi, edi
jmp 0x1400f89d8
shr r8, 0x39
lea rax, [rdi - 0x10]
and rax, rbp
mov byte [r14 + rdi], r8b
mov byte [rax + r14 + 0x10], r8b
lea rax, [rdi + 1]
add r11, 0xffffffffffffffd0
cmp rdi, rbp
mov rdi, rax
je 0x1400f8fe3
cmp byte [r14 + rdi], 0x80
jne 0x1400f89c4
mov rax, rdi
shl rax, 4
lea rax, [rax + rax*2]
mov rcx, rdi
not rcx
lea rbx, [rcx + rcx*2]
shl rbx, 4
add rbx, r14
mov rcx, rdi
neg rcx
mov rdx, r14
sub rdx, rax
mov qword [rsp + 0x48], rdx
lea r15, [rcx + rcx*2]
shl r15, 4
add r15, r14
jmp 0x1400f8a50
movups xmm2, xmmword [rbx]
movups xmm3, xmmword [rax]
movups xmmword [rbx], xmm3
movups xmmword [rax], xmm2
movups xmm2, xmmword [rbx + 0x10]
movups xmm3, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm3
movups xmmword [rax + 0x10], xmm2
movdqu xmm2, xmmword [rbx + 0x20]
movdqu xmm3, xmmword [rax + 0x20]
movdqu xmmword [rbx + 0x20], xmm3
movdqu xmmword [rax + 0x20], xmm2
mov rsi, qword [r15 - 0x28]
mov r9, qword [r15 - 0x20]
mov rcx, r9
and rcx, 0xfffffffffffffff8
je 0x1400f8b10
mov rax, qword [rsp + 0x60]
mov r10, qword [rsp + 0x68]
mov r13, qword [rsp + 0x40]
xor edx, edx
mov r8, qword [rsp + 0x38]
nop dword [rax + rax]
add r8, r10
rol r10, 0xd
mov r12, qword [rsi + rdx]
xor r10, r8
rol r8, 0x20
xor r13, r12
add rax, r13
rol r13, 0x10
xor r13, rax
add r8, r13
rol r13, 0x15
add rax, r10
rol r10, 0x11
xor r10, rax
rol rax, 0x20
xor r13, r8
xor r8, r12
add rdx, 8
cmp rdx, rcx
jb 0x1400f8a80
movq xmm3, r13
movq xmm2, r10
punpcklqdq xmm2, xmm3
movq xmm4, rax
movq xmm3, r8
punpcklqdq xmm3, xmm4
mov r13d, r9d
and r13d, 7
cmp r13d, 4
jb 0x1400f8b27
mov r10d, dword [rsi + rdx]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r13
jb 0x1400f8b38
jmp 0x1400f8b52
movdqa xmm2, xmm1
movdqa xmm3, xmm0
xor edx, edx
mov r13d, r9d
and r13d, 7
cmp r13d, 4
jae 0x1400f8aec
xor r10d, r10d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r13
jae 0x1400f8b52
lea rcx, [rax + rdx]
movzx r8d, word [rsi + rcx]
lea ecx, [rax*8]
shl r8, cl
or r10, r8
or rax, 2
cmp rax, r13
jae 0x1400f8b70
add rdx, rax
movzx edx, byte [rsi + rdx]
shl eax, 3
mov ecx, eax
shl rdx, cl
or r10, rdx
jmp 0x1400f8b79
test r13, r13
je 0x1400f8c59
lea ecx, [r13*8]
mov r8d, 0xff
shl r8, cl
or r8, r10
cmp r13, 7
jne 0x1400f8d79
mov eax, 8
sub rax, r13
pshufd xmm4, xmm2, 0xee
movq rcx, xmm4
xor rcx, r8
movq xmm4, rcx
movdqa xmm5, xmm2
punpcklqdq xmm5, xmm4
paddq xmm3, xmm5
movq rcx, xmm3
rol rcx, 0x20
movdqa xmm4, xmm5
psrlq xmm4, 0x30
movdqa xmm6, xmm2
psrlq xmm6, 0x33
shufps xmm6, xmm4, 0xe4
psllq xmm5, 0x10
psllq xmm2, 0xd
shufps xmm2, xmm5, 0xe4
orps xmm2, xmm6
pxor xmm2, xmm3
pshufd xmm3, xmm3, 0xee
movq xmm4, rcx
punpcklqdq xmm3, xmm4
paddq xmm3, xmm2
movdqa xmm4, xmm2
psrlq xmm4, 0x2f
movdqa xmm5, xmm2
psrlq xmm5, 0x2b
movsd xmm5, xmm4
movdqa xmm4, xmm2
psllq xmm4, 0x11
psllq xmm2, 0x15
movsd xmm2, xmm4
orpd xmm2, xmm5
xorpd xmm2, xmm3
movq rcx, xmm3
rol rcx, 0x20
pshufd xmm3, xmm3, 0xee
movq rdx, xmm3
xor rdx, r8
movq xmm4, rcx
movq xmm3, rdx
punpcklqdq xmm3, xmm4
jmp 0x1400f8c5b
xor eax, eax
mov ecx, 1
sub rcx, rax
mov esi, ecx
and esi, 7
and rcx, 0xfffffffffffffff8
cmp rax, rcx
jae 0x1400f8d30
movq rdx, xmm3
pshufd xmm4, xmm2, 0xee
movq r13, xmm4
movq r10, xmm2
pshufd xmm2, xmm3, 0xee
movq r8, xmm2
nop word cs:[rax + rax]
add rdx, r10
rol r10, 0xd
xor r10, rdx
rol rdx, 0x20
xor r13, 0xff
add r8, r13
rol r13, 0x10
xor r13, r8
add rdx, r13
rol r13, 0x15
add r8, r10
rol r10, 0x11
xor r10, r8
rol r8, 0x20
xor r13, rdx
xor rdx, 0xff
add rax, 8
cmp rax, rcx
jb 0x1400f8ca0
movq xmm3, r13
movq xmm2, r10
punpcklqdq xmm2, xmm3
movq xmm4, r8
movq xmm3, rdx
punpcklqdq xmm3, xmm4
xor eax, eax
cmp rsi, 4
setae al
cmp esi, 4
mov edx, 0
mov ecx, 0xff
cmovae rdx, rcx
shl rax, 2
jmp 0x1400f8d34
xor edx, edx
xor eax, eax
mov r10, rax
or r10, 1
lea ecx, [rax*8]
mov r8d, 0xff
shl r8, cl
mov rcx, rax
or rcx, 2
cmp r10, rsi
mov r10d, 0
cmovae r8, r10
cmovae rcx, rax
or r8, rdx
cmp rcx, rsi
jae 0x1400f8d79
shl ecx, 3
mov eax, 0xff
shl rax, cl
or r8, rax
pshufd xmm4, xmm3, 0xee
movq rax, xmm4
movq rcx, xmm2
pshufd xmm4, xmm2, 0xee
movq rdx, xmm4
shl r9, 0x38
movabs r10, 0x100000000000000
add r9, r10
or r9, r8
paddq xmm2, xmm3
rol rcx, 0xd
movq r8, xmm2
xor rcx, r8
rol r8, 0x20
xor rdx, r9
add rax, rdx
rol rdx, 0x10
xor rdx, rax
add r8, rdx
rol rdx, 0x15
add rax, rcx
rol rcx, 0x11
xor rdx, r8
xor rcx, rax
rol rax, 0x20
xor r8, r9
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
xor rax, 0xff
add rax, rdx
rol rdx, 0x10
xor rdx, rax
add r8, rdx
rol rdx, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor rdx, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
add rax, rdx
rol rdx, 0x10
xor rdx, rax
add r8, rdx
rol rdx, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor rdx, r8
add r8, rcx
rol rcx, 0xd
add rax, rdx
rol rdx, 0x10
xor rdx, rax
rol rdx, 0x15
xor rcx, r8
add rax, rcx
rol rcx, 0x11
mov r8, rax
rol r8, 0x20
xor r8, rcx
xor r8, rdx
xor r8, rax
mov rax, rbp
and rax, r8
movdqu xmm2, xmmword [r14 + rax]
pmovmskb ecx, xmm2
mov rdx, rax
test ecx, ecx
jne 0x1400f8eb8
mov r9d, 0x10
mov rdx, rax
nop word [rax + rax]
add rdx, r9
and rdx, rbp
movdqu xmm2, xmmword [r14 + rdx]
pmovmskb ecx, xmm2
add r9, 0x10
test ecx, ecx
je 0x1400f8ea0
tzcnt ecx, ecx
add rcx, rdx
and rcx, rbp
cmp byte [r14 + rcx], 0
js 0x1400f8ed6
movdqa xmm2, xmmword [r14]
pmovmskb ecx, xmm2
tzcnt ecx, ecx
mov rdx, rdi
sub rdx, rax
mov r9, rcx
sub r9, rax
xor r9, rdx
and r9, rbp
cmp r9, 0x10
jb 0x1400f89b0
mov rax, rcx
not rax
lea rax, [rax + rax*2]
shl rax, 4
add rax, r14
movzx edx, byte [r14 + rcx]
shr r8, 0x39
lea r9, [rcx - 0x10]
and r9, rbp
mov byte [r14 + rcx], r8b
mov byte [r9 + r14 + 0x10], r8b
cmp dl, 0xff
je 0x1400f8fb0
shl rcx, 4
lea rcx, [rcx + rcx*2]
mov rdx, r14
sub rdx, rcx
cmp rbx, rdx
jae 0x1400f8a20
cmp rax, qword [rsp + 0x48]
jae 0x1400f8a20
mov rax, qword [rsp + 0x58]
sub rax, rcx
xor ecx, ecx
nop word cs:[rax + rax]
movzx edx, byte [r11 + rcx - 2]
movzx r8d, byte [rax + rcx - 2]
mov byte [r11 + rcx - 2], r8b
mov byte [rax + rcx - 2], dl
movzx edx, byte [r11 + rcx - 1]
movzx r8d, byte [rax + rcx - 1]
mov byte [r11 + rcx - 1], r8b
mov byte [rax + rcx - 1], dl
movzx edx, byte [r11 + rcx]
movzx r8d, byte [rax + rcx]
mov byte [r11 + rcx], r8b
mov byte [rax + rcx], dl
add rcx, 3
cmp rcx, 0x30
jne 0x1400f8f60
jmp 0x1400f8a50
lea rcx, [rdi - 0x10]
and rcx, rbp
mov byte [r14 + rdi], 0xff
mov byte [rcx + r14 + 0x10], 0xff
movdqu xmm2, xmmword [rbx]
movdqu xmm3, xmmword [rbx + 0x10]
movdqu xmm4, xmmword [rbx + 0x20]
movdqu xmmword [rax + 0x20], xmm4
movdqu xmmword [rax + 0x10], xmm3
movdqu xmmword [rax], xmm2
jmp 0x1400f89c4
movabs rdi, 0x7ffffffffffffff0
mov rcx, qword [rsp + 0x50]
sub rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
add rdi, 0x11
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret