Function at 0x14008ec80
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
movdqa xmmword [rsp + 0x60], xmm6
mov rsi, qword [rcx + 0x18]
mov rax, rsi
inc rax
je 0x14008edd9
mov r10, rcx
movdqa xmm6, xmmword [rdx]
mov rbp, qword [rcx + 8]
lea rdi, [rbp + 1]
mov rdx, rdi
shr rdx, 3
mov rcx, rdi
and rcx, 0xfffffffffffffff8
sub rcx, rdx
cmp rbp, 8
cmovb rcx, rbp
movabs r8, 0x7ffffffffffffff0
mov rdx, rcx
shr rdx, 1
cmp rax, rdx
mov qword [rsp + 0x28], r10
jbe 0x14008ed0e
inc rcx
cmp rax, rcx
cmova rcx, rax
cmp rcx, 8
jae 0x14008ed3b
xor eax, eax
cmp rcx, 4
setae al
lea r15, [rax*4 + 4]
jmp 0x14008ed95
mov r14, qword [r10]
mov rcx, rdi
shr rcx, 4
xor eax, eax
test dil, 0xf
setne al
add rax, rcx
je 0x14008f040
cmp rax, 1
jne 0x14008efcc
xor ecx, ecx
jmp 0x14008f028
movabs rax, 0x1ffffffffffffffe
add rax, 2
cmp rcx, rax
jae 0x14008edd9
shl rcx, 3
mov r15d, 1
cmp rcx, 0xe
jb 0x14008ed95
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 r15, 0xffffffffffffffff
shr r15, cl
inc r15
mov ecx, 0x18
mov rax, r15
mul rcx
jo 0x14008edd9
mov r12, rax
add r12, 0xf
and r12, 0xfffffffffffffff0
lea r13, [r15 + 0x10]
mov rdx, r12
add rdx, r13
jb 0x14008edd9
cmp rdx, r8
ja 0x14008edd9
test rdx, rdx
je 0x14008eddb
movzx eax, byte [0x14024a149]
xor ecx, ecx
call fcn.140080d30
mov rbx, rax
test rax, rax
jne 0x14008ede0
ud2
mov ebx, 0x10
lea r14, [r15 - 1]
mov rax, r15
shr rax, 3
mov rcx, r15
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp r15, 9
cmovb rcx, r14
mov qword [rsp + 0x48], rcx
add rbx, r12
mov rcx, rbx
mov dl, 0xff
mov r8, r13
call sub.msvcrt.dll_memset
test rsi, rsi
je 0x14008ef62
mov qword [rsp + 0x38], rdi
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
movdqa xmm0, xmmword [r8]
pmovmskb edi, xmm0
not edi
xor r13d, r13d
mov qword [rsp + 0x40], rsi
mov r15, r8
mov qword [rsp + 0x30], r8
jmp 0x14008ee99
lea ecx, [rdi - 1]
and ecx, edi
dec rsi
shr rax, 0x39
lea r10, [rdx - 0x10]
and r10, r14
mov byte [rbx + rdx], al
mov byte [r10 + rbx + 0x10], al
not r12
lea rax, [r12 + r12*2]
not rdx
lea rdx, [rdx + rdx*2]
mov r10, qword [r8 + rax*8 + 0x10]
mov qword [rbx + rdx*8 + 0x10], r10
movdqu xmm0, xmmword [r8 + rax*8]
movdqu xmmword [rbx + rdx*8], xmm0
mov edi, ecx
test rsi, rsi
je 0x14008ef56
test di, di
jne 0x14008eebc
nop
movdqa xmm0, xmmword [r15 + 0x10]
add r15, 0x10
pmovmskb edi, xmm0
add r13, 0x10
cmp edi, 0xffff
je 0x14008eea0
not edi
tzcnt r12d, edi
add r12, r13
mov rax, r12
neg rax
lea rax, [rax + rax*2]
mov rdx, qword [r8 + rax*8 - 0x10]
mov r8, qword [r8 + rax*8 - 8]
movdqa xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x50]
call fcn.140091800
mov rcx, rax
and rcx, r14
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14008ef27
mov r8d, 0x10
nop word cs:[rax + rax]
add rcx, r8
and rcx, r14
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14008ef10
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
tzcnt edx, edx
add rdx, rcx
and rdx, r14
cmp byte [rbx + rdx], 0
js 0x14008ee50
movdqa xmm0, xmmword [rbx]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14008ee50
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
jmp 0x14008ef6c
mov r9, qword [rsp + 0x28]
mov r8, qword [r9]
xor eax, eax
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov qword [r9], rbx
mov qword [r9 + 8], r14
mov qword [r9 + 0x10], rcx
mov qword [r9 + 0x18], rax
test rbp, rbp
movabs rsi, 0x7ffffffffffffff0
je 0x14008f7dd
mov ecx, 0x18
mov rax, rdi
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rbp, rax
cmp rbp, 0xffffffffffffffef
je 0x14008f7dd
sub r8, rax
mov rcx, qword [0x14024a138]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x14008f7dd
movabs rdx, 0x1ffffffffffffffe
and rdx, rax
xor ecx, ecx
movdqa xmm0, xmmword [0x1401ac0e0]
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 0x14008eff0
test al, 1
je 0x14008f040
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [r14 + rcx]
por xmm0, xmmword [0x1401ac0e0]
movdqa xmmword [r14 + rcx], xmm0
cmp rdi, 0x10
jae 0x14008f067
lea rcx, [r14 + 0x10]
mov rdx, r14
mov r8, rdi
call sub.msvcrt.dll_memmove
mov r10, qword [rsp + 0x28]
cmp rbp, 0xffffffffffffffff
jne 0x14008f072
xor eax, eax
jmp 0x14008f7cc
movdqu xmm0, xmmword [r14]
movdqu xmmword [r14 + rdi], xmm0
pshufd xmm0, xmm6, 0x44
pxor xmm0, xmmword [0x1401ac0f0]
pshufd xmm1, xmm6, 0xee
pxor xmm1, xmmword [0x1401ac100]
pshufd xmm2, xmm1, 0xee
movq qword [rsp + 0x30], xmm2
movq qword [rsp + 0x48], xmm0
movq qword [rsp + 0x40], xmm1
pshufd xmm2, xmm0, 0xee
movq qword [rsp + 0x38], xmm2
xor r12d, r12d
jmp 0x14008f0e6
shr r11, 0x39
lea rax, [r12 - 0x10]
and rax, rbp
mov byte [rbx + r12], r11b
mov byte [rax + r14 + 0x10], r11b
lea rax, [r12 + 1]
cmp r12, rbp
mov r12, rax
je 0x14008f7aa
cmp byte [r14 + r12], 0x80
jne 0x14008f0d5
mov rax, r12
not rax
lea rax, [rax + rax*2]
lea r13, [r14 + rax*8]
mov rsi, r12
neg rsi
mov rbx, r14
nop word cs:[rax + rax]
lea rax, [rsi + rsi*2]
mov r15, qword [rbx + rax*8 - 0x10]
mov rdx, qword [rbx + rax*8 - 8]
mov rcx, rdx
and rcx, 0xfffffffffffffff8
je 0x14008f1e0
mov rax, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
mov r11, qword [rsp + 0x30]
xor edi, edi
mov r8, qword [rsp + 0x48]
nop word cs:[rax + rax]
add r8, r9
rol r9, 0xd
mov r10, qword [r15 + rdi]
xor r9, r8
rol r8, 0x20
xor r11, r10
add rax, r11
rol r11, 0x10
xor r11, rax
add r8, r11
rol r11, 0x15
add rax, r9
rol r9, 0x11
xor r9, rax
rol rax, 0x20
xor r11, r8
xor r8, r10
add rdi, 8
cmp rdi, rcx
jb 0x14008f150
movq xmm3, r11
movq xmm2, r9
punpcklqdq xmm2, xmm3
movq xmm4, rax
movq xmm3, r8
punpcklqdq xmm3, xmm4
mov r10, qword [rsp + 0x28]
mov r11d, edx
and r11d, 7
cmp r11d, 4
jb 0x14008f1f7
mov r8d, dword [r15 + rdi]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r11
jb 0x14008f208
jmp 0x14008f222
movdqa xmm2, xmm1
movdqa xmm3, xmm0
xor edi, edi
mov r11d, edx
and r11d, 7
cmp r11d, 4
jae 0x14008f1c1
xor r8d, r8d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, r11
jae 0x14008f222
lea rcx, [rax + rdi]
movzx r9d, word [r15 + rcx]
lea ecx, [rax*8]
shl r9, cl
or r8, r9
or rax, 2
cmp rax, r11
jae 0x14008f240
add rdi, rax
movzx r9d, byte [r15 + rdi]
shl eax, 3
mov ecx, eax
shl r9, cl
or r8, r9
jmp 0x14008f249
test r11, r11
je 0x14008f329
lea ecx, [r11*8]
mov r15d, 0xff
shl r15, cl
or r15, r8
cmp r11, 7
jne 0x14008f44a
mov eax, 8
sub rax, r11
pshufd xmm4, xmm2, 0xee
movq rcx, xmm4
xor rcx, r15
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 r8, xmm3
xor r8, r15
movq xmm4, rcx
movq xmm3, r8
punpcklqdq xmm3, xmm4
jmp 0x14008f32b
xor eax, eax
mov ecx, 1
sub rcx, rax
mov edi, ecx
and edi, 7
and rcx, 0xfffffffffffffff8
cmp rax, rcx
jae 0x14008f400
movq r8, xmm3
pshufd xmm4, xmm2, 0xee
movq r9, xmm4
movq r15, xmm2
pshufd xmm2, xmm3, 0xee
movq r11, xmm2
nop word cs:[rax + rax]
add r8, r15
rol r15, 0xd
xor r15, r8
rol r8, 0x20
xor r9, 0xff
add r11, r9
rol r9, 0x10
xor r9, r11
add r8, r9
rol r9, 0x15
add r11, r15
rol r15, 0x11
xor r15, r11
rol r11, 0x20
xor r9, r8
xor r8, 0xff
add rax, 8
cmp rax, rcx
jb 0x14008f370
movq xmm3, r9
movq xmm2, r15
punpcklqdq xmm2, xmm3
movq xmm4, r11
movq xmm3, r8
punpcklqdq xmm3, xmm4
xor eax, eax
cmp rdi, 4
setae al
cmp edi, 4
mov r8d, 0
mov ecx, 0xff
cmovae r8, rcx
shl rax, 2
jmp 0x14008f405
xor r8d, r8d
xor eax, eax
mov r9, rax
or r9, 1
lea ecx, [rax*8]
mov r15d, 0xff
shl r15, cl
mov rcx, rax
or rcx, 2
cmp r9, rdi
mov r9d, 0
cmovae r15, r9
cmovae rcx, rax
or r15, r8
cmp rcx, rdi
jae 0x14008f44a
shl ecx, 3
mov eax, 0xff
shl rax, cl
or r15, rax
pshufd xmm4, xmm3, 0xee
movq rax, xmm4
movq rcx, xmm2
pshufd xmm4, xmm2, 0xee
movq rdi, xmm4
shl rdx, 0x38
movabs r8, 0x100000000000000
add rdx, r8
or rdx, r15
paddq xmm2, xmm3
rol rcx, 0xd
movq r15, xmm2
xor rcx, r15
rol r15, 0x20
xor rdi, rdx
add rax, rdi
rol rdi, 0x10
xor rdi, rax
add r15, rdi
rol rdi, 0x15
add rax, rcx
rol rcx, 0x11
xor rdi, r15
xor rcx, rax
rol rax, 0x20
xor r15, rdx
add r15, rcx
rol rcx, 0xd
xor rcx, r15
rol r15, 0x20
xor rax, 0xff
add rax, rdi
rol rdi, 0x10
xor rdi, rax
add r15, rdi
rol rdi, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor rdi, r15
add r15, rcx
rol rcx, 0xd
xor rcx, r15
rol r15, 0x20
add rax, rdi
rol rdi, 0x10
xor rdi, rax
add r15, rdi
rol rdi, 0x15
add rax, rcx
rol rcx, 0x11
xor rcx, rax
rol rax, 0x20
xor rdi, r15
add r15, rcx
rol rcx, 0xd
add rax, rdi
rol rdi, 0x10
xor rdi, rax
rol rdi, 0x15
xor rcx, r15
add rax, rcx
rol rcx, 0x11
mov r11, rax
rol r11, 0x20
xor r11, rcx
xor r11, rdi
xor r11, rax
mov rax, rbp
and rax, r11
movdqu xmm2, xmmword [rbx + rax]
pmovmskb ecx, xmm2
mov rdx, rax
test ecx, ecx
jne 0x14008f587
mov r8d, 0x10
mov rdx, rax
nop word [rax + rax]
add rdx, r8
and rdx, rbp
movdqu xmm2, xmmword [rbx + rdx]
pmovmskb ecx, xmm2
add r8, 0x10
test ecx, ecx
je 0x14008f570
tzcnt ecx, ecx
add rcx, rdx
and rcx, rbp
cmp byte [rbx + rcx], 0
js 0x14008f5a3
movdqa xmm2, xmmword [rbx]
pmovmskb ecx, xmm2
tzcnt ecx, ecx
mov rdx, r12
sub rdx, rax
mov r8, rcx
sub r8, rax
xor r8, rdx
and r8, rbp
cmp r8, 0x10
jb 0x14008f0c0
mov rax, rcx
not rax
lea rax, [rax + rax*2]
lea rax, [rbx + rax*8]
movzx edx, byte [rbx + rcx]
shr r11, 0x39
lea r8, [rcx - 0x10]
and r8, rbp
mov byte [rbx + rcx], r11b
mov byte [r8 + r14 + 0x10], r11b
cmp dl, 0xff
je 0x14008f780
movzx ecx, byte [r13]
movzx edx, byte [rax]
mov byte [r13], dl
mov byte [rax], cl
movzx ecx, byte [r13 + 1]
movzx edx, byte [rax + 1]
mov byte [r13 + 1], dl
mov byte [rax + 1], cl
movzx ecx, byte [r13 + 2]
movzx edx, byte [rax + 2]
mov byte [r13 + 2], dl
mov byte [rax + 2], cl
movzx ecx, byte [r13 + 3]
movzx edx, byte [rax + 3]
mov byte [r13 + 3], dl
mov byte [rax + 3], cl
movzx ecx, byte [r13 + 4]
movzx edx, byte [rax + 4]
mov byte [r13 + 4], dl
mov byte [rax + 4], cl
movzx ecx, byte [r13 + 5]
movzx edx, byte [rax + 5]
mov byte [r13 + 5], dl
mov byte [rax + 5], cl
movzx ecx, byte [r13 + 6]
movzx edx, byte [rax + 6]
mov byte [r13 + 6], dl
mov byte [rax + 6], cl
movzx ecx, byte [r13 + 7]
movzx edx, byte [rax + 7]
mov byte [r13 + 7], dl
mov byte [rax + 7], cl
movzx ecx, byte [r13 + 8]
movzx edx, byte [rax + 8]
mov byte [r13 + 8], dl
mov byte [rax + 8], cl
movzx ecx, byte [r13 + 9]
movzx edx, byte [rax + 9]
mov byte [r13 + 9], dl
mov byte [rax + 9], cl
movzx ecx, byte [r13 + 0xa]
movzx edx, byte [rax + 0xa]
mov byte [r13 + 0xa], dl
mov byte [rax + 0xa], cl
movzx ecx, byte [r13 + 0xb]
movzx edx, byte [rax + 0xb]
mov byte [r13 + 0xb], dl
mov byte [rax + 0xb], cl
movzx ecx, byte [r13 + 0xc]
movzx edx, byte [rax + 0xc]
mov byte [r13 + 0xc], dl
mov byte [rax + 0xc], cl
movzx ecx, byte [r13 + 0xd]
movzx edx, byte [rax + 0xd]
mov byte [r13 + 0xd], dl
mov byte [rax + 0xd], cl
movzx ecx, byte [r13 + 0xe]
movzx edx, byte [rax + 0xe]
mov byte [r13 + 0xe], dl
mov byte [rax + 0xe], cl
movzx ecx, byte [r13 + 0xf]
movzx edx, byte [rax + 0xf]
mov byte [r13 + 0xf], dl
mov byte [rax + 0xf], cl
movzx ecx, byte [r13 + 0x10]
movzx edx, byte [rax + 0x10]
mov byte [r13 + 0x10], dl
mov byte [rax + 0x10], cl
movzx ecx, byte [r13 + 0x11]
movzx edx, byte [rax + 0x11]
mov byte [r13 + 0x11], dl
mov byte [rax + 0x11], cl
movzx ecx, byte [r13 + 0x12]
movzx edx, byte [rax + 0x12]
mov byte [r13 + 0x12], dl
mov byte [rax + 0x12], cl
movzx ecx, byte [r13 + 0x13]
movzx edx, byte [rax + 0x13]
mov byte [r13 + 0x13], dl
mov byte [rax + 0x13], cl
movzx ecx, byte [r13 + 0x14]
movzx edx, byte [rax + 0x14]
mov byte [r13 + 0x14], dl
mov byte [rax + 0x14], cl
movzx ecx, byte [r13 + 0x15]
movzx edx, byte [rax + 0x15]
mov byte [r13 + 0x15], dl
mov byte [rax + 0x15], cl
movzx ecx, byte [r13 + 0x16]
movzx edx, byte [rax + 0x16]
mov byte [r13 + 0x16], dl
mov byte [rax + 0x16], cl
movzx ecx, byte [r13 + 0x17]
movzx edx, byte [rax + 0x17]
mov byte [r13 + 0x17], dl
mov byte [rax + 0x17], cl
mov rbx, qword [r10]
jmp 0x14008f110
lea rcx, [r12 - 0x10]
and rcx, rbp
mov byte [r14 + r12], 0xff
mov byte [rcx + r14 + 0x10], 0xff
mov rcx, qword [r13 + 0x10]
mov qword [rax + 0x10], rcx
movdqu xmm2, xmmword [r13]
movdqu xmmword [rax], xmm2
jmp 0x14008f0d5
mov rcx, qword [r10 + 8]
mov rsi, qword [r10 + 0x18]
lea rax, [rcx + 1]
mov rdx, rax
shr rdx, 3
and rax, 0xfffffffffffffff8
sub rax, rdx
cmp rcx, 8
cmovb rax, rcx
sub rax, rsi
mov qword [r10 + 0x10], rax
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