Function at 0x14007ef00
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
mov r9, qword [rcx + 0x18]
mov rax, r9
inc rax
je 0x14007f059
mov r14, rdx
mov rdi, qword [rcx + 8]
lea rsi, [rdi + 1]
mov r8, rsi
shr r8, 3
mov rdx, rsi
and rdx, 0xfffffffffffffff8
sub rdx, r8
cmp rdi, 8
cmovb rdx, rdi
mov r8, rdx
shr r8, 1
cmp rax, r8
jbe 0x14007ef7e
lea r8, [rdx + 1]
cmp rax, rdx
cmova r8, rax
cmp r8, 8
mov qword [rsp + 0x40], r9
jae 0x14007efb0
mov rbp, rcx
xor eax, eax
cmp r8, 4
setae al
lea rbx, [rax*4 + 4]
jmp 0x14007f001
mov qword [rsp + 0x38], rcx
mov rbx, qword [rcx]
mov rcx, rsi
shr rcx, 4
xor eax, eax
test sil, 0xf
setne al
add rax, rcx
je 0x14007f2d1
cmp rax, 1
jne 0x14007f25b
xor edx, edx
jmp 0x14007f2b7
movabs rax, 0x1ffffffffffffffe
or rax, 1
cmp r8, rax
ja 0x14007f059
mov rbp, rcx
shl r8, 3
movabs rdx, 0x2492492492492493
mov rax, r8
mul rdx
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 2
dec r8
bsr rcx, r8
not ecx
mov rbx, 0xffffffffffffffff
shr rbx, cl
inc rbx
mov ecx, 0x18
mov rax, rbx
mul rcx
jo 0x14007f059
mov r13, rax
add r13, 0xf
and r13, 0xfffffffffffffff0
lea r15, [rbx + 0x10]
mov rdx, r13
add rdx, r15
jb 0x14007f059
movabs rax, 0x7ffffffffffffff0
cmp rdx, rax
ja 0x14007f059
test rdx, rdx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x28], r14
je 0x14007f05b
movzx eax, byte [0x14017a148]
xor ecx, ecx
call fcn.1400dbb10
mov rsi, rax
test rax, rax
jne 0x14007f060
ud2
mov esi, 0x10
lea r14, [rbx - 1]
mov rax, rbx
shr rax, 3
mov rcx, rbx
and rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rbx, 9
cmovb rcx, r14
mov qword [rsp + 0x60], rcx
lea r12, [rsi + r13]
mov rcx, r12
mov dl, 0xff
mov r8, r15
call sub.msvcrt.dll_memset
mov r9, qword [rbp]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14007f201
mov qword [rsp + 0x38], rbp
lea rcx, [rsi + r13]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x30], rcx
movdqa xmm0, xmmword [r9]
pmovmskb ebp, xmm0
not ebp
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx]
mov qword [rsp + 0x58], rdx
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], rcx
lea rcx, [r9 - 0x18]
mov qword [rsp + 0x50], rcx
xor esi, esi
mov r13, rax
mov rbx, r9
mov qword [rsp + 0x48], r9
jmp 0x14007f148
lea ecx, [rbp - 1]
and ecx, ebp
dec r13
shr rax, 0x39
lea r8, [rdx - 0x10]
and r8, r14
mov byte [r12 + rdx], al
mov byte [r12 + r8 + 0x10], al
shl r15, 3
lea rax, [r15 + r15*2]
mov r8, qword [rsp + 0x50]
sub r8, rax
shl rdx, 3
lea rax, [rdx + rdx*2]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
mov rax, qword [r8 + 0x10]
mov qword [rdx + 0x10], rax
movdqu xmm0, xmmword [r8]
movdqu xmmword [rdx], xmm0
mov ebp, ecx
test r13, r13
je 0x14007f1f5
test bp, bp
jne 0x14007f16b
nop dword [rax]
movdqa xmm0, xmmword [rbx + 0x10]
add rbx, 0x10
pmovmskb ebp, xmm0
add rsi, 0x10
cmp ebp, 0xffff
je 0x14007f150
not ebp
tzcnt r15d, ebp
add r15, rsi
mov rax, r15
neg rax
lea rax, [rax + rax*2]
mov r8, qword [r9 + rax*8 - 0x18]
mov r9, qword [r9 + rax*8 - 0x10]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x28]
call fcn.14009ef20
mov rcx, rax
and rcx, r14
movdqu xmm0, xmmword [r12 + rcx]
pmovmskb edx, xmm0
test edx, edx
jne 0x14007f1c8
mov r8d, 0x10
add rcx, r8
and rcx, r14
movdqu xmm0, xmmword [r12 + rcx]
pmovmskb edx, xmm0
add r8, 0x10
test edx, edx
je 0x14007f1b0
mov r9, qword [rsp + 0x48]
tzcnt edx, edx
add rdx, rcx
and rdx, r14
cmp byte [r12 + rdx], 0
js 0x14007f0f0
movdqa xmm0, xmmword [r12]
pmovmskb ecx, xmm0
tzcnt edx, ecx
jmp 0x14007f0f0
mov rbp, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
jmp 0x14007f203
xor eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov qword [rbp], r12
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], rcx
test rdi, rdi
je 0x14007f781
mov ecx, 0x18
mov rax, qword [rsp + 0x68]
mul rcx
add rax, 0xf
and rax, 0xfffffffffffffff0
add rdi, rax
cmp rdi, 0xffffffffffffffef
je 0x14007f781
sub r9, rax
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, r9
call sub.KERNEL32.dll_HeapFree
jmp 0x14007f781
movabs rcx, 0x1ffffffffffffffe
and rcx, rax
xor r8d, r8d
movdqa xmm0, xmmword [0x14010c850]
nop word cs:[rax + rax]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8]
por xmm1, xmm0
movdqa xmmword [rbx + r8], xmm1
lea rdx, [r8 + 0x20]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [rbx + r8 + 0x10]
por xmm1, xmm0
movdqa xmmword [rbx + r8 + 0x10], xmm1
mov r8, rdx
add rcx, 0xfffffffffffffffe
jne 0x14007f280
test al, 1
je 0x14007f2d1
pxor xmm0, xmm0
pcmpgtb xmm0, xmmword [rbx + rdx]
por xmm0, xmmword [0x14010c850]
movdqa xmmword [rbx + rdx], xmm0
cmp rsi, 0x10
jae 0x14007f2f7
lea rcx, [rbx + 0x10]
mov rdx, rbx
mov r8, rsi
call sub.msvcrt.dll_memmove
test rsi, rsi
jne 0x14007f300
xor eax, eax
mov r8, qword [rsp + 0x38]
jmp 0x14007f779
movdqu xmm0, xmmword [rbx]
movdqu xmmword [rbx + rsi], xmm0
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
movabs r12, 0x736f6d6570736575
xor r12, rax
movabs r15, 0x646f72616e646f6d
xor r15, rcx
movabs rdx, 0x6c7967656e657261
xor rdx, rax
mov qword [rsp + 0x28], rdx
movabs rax, 0x7465646279746573
xor rax, rcx
mov qword [rsp + 0x50], rax
xor r11d, r11d
mov qword [rsp + 0x70], rdi
jmp 0x14007f373
shr rax, 0x39
lea rcx, [r11 - 0x10]
and rcx, rdi
mov byte [rbx + r11], al
mov byte [rbx + rcx + 0x10], al
lea rax, [r11 + 1]
cmp r11, rdi
mov r11, rax
je 0x14007f756
cmp byte [rbx + r11], 0x80
jne 0x14007f363
lea rax, [r11*8]
lea rax, [rax + rax*2]
mov rcx, rbx
sub rcx, rax
mov qword [rsp + 0x48], rcx
neg rax
add rax, rbx
add rax, 0xffffffffffffffe8
mov qword [rsp + 0x40], rax
mov rax, r11
neg rax
lea rax, [rax + rax*2]
lea rax, [rbx + rax*8]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], r11
nop dword [rax + rax]
mov rax, qword [rsp + 0x58]
mov r14, qword [rax - 0x18]
mov r10, qword [rax - 0x10]
add r14, 0x10
mov rax, r10
and rax, 0xfffffffffffffff8
je 0x14007f470
mov r13, qword [rsp + 0x28]
mov r8, r15
mov rbp, qword [rsp + 0x50]
xor r9d, r9d
mov rdx, r12
nop word cs:[rax + rax]
add rdx, r8
rol r8, 0xd
mov rcx, qword [r14 + r9]
xor r8, rdx
rol rdx, 0x20
xor rbp, rcx
add r13, rbp
rol rbp, 0x10
xor rbp, r13
add rdx, rbp
rol rbp, 0x15
add r13, r8
rol r8, 0x11
xor r8, r13
rol r13, 0x20
xor rbp, rdx
xor rdx, rcx
add r9, 8
cmp r9, rax
jb 0x14007f400
mov esi, r10d
and esi, 7
cmp esi, 4
jb 0x14007f48e
mov r11d, dword [r14 + r9]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, rsi
jb 0x14007f49f
jmp 0x14007f4ca
mov rbp, qword [rsp + 0x50]
mov r8, r15
mov r13, qword [rsp + 0x28]
mov rdx, r12
xor r9d, r9d
mov esi, r10d
and esi, 7
cmp esi, 4
jae 0x14007f44e
xor r11d, r11d
xor eax, eax
mov rcx, rax
or rcx, 1
cmp rcx, rsi
jae 0x14007f4ca
lea rcx, [r14 + rax]
mov rdi, r15
mov r15, r12
movzx r12d, word [r9 + rcx]
lea ecx, [rax*8]
shl r12, cl
or r11, r12
mov r12, r15
mov r15, rdi
mov rdi, qword [rsp + 0x70]
or rax, 2
cmp rax, rsi
jae 0x14007f4f0
add r9, rax
movzx r9d, byte [r14 + r9]
shl eax, 3
mov ecx, eax
shl r9, cl
or r11, r9
jmp 0x14007f4f5
test rsi, rsi
je 0x14007f547
lea ecx, [rsi*8]
mov eax, 0xff
shl rax, cl
or rax, r11
cmp rsi, 7
jne 0x14007f550
add rdx, r8
rol r8, 0xd
xor rbp, rax
xor r8, rdx
rol rdx, 0x20
add r13, rbp
rol rbp, 0x10
xor rbp, r13
add rdx, rbp
rol rbp, 0x15
xor rbp, rdx
add r13, r8
rol r8, 0x11
xor r8, r13
rol r13, 0x20
xor rdx, rax
xor eax, eax
jmp 0x14007f550
mov eax, 0xff
nop dword [rax]
mov r11, qword [rsp + 0x30]
shl r10, 0x38
movabs rcx, 0x100000000000000
add r10, rcx
add rdx, r8
rol r8, 0xd
or r10, rax
xor r8, rdx
rol rdx, 0x20
xor rbp, r10
add r13, rbp
rol rbp, 0x10
xor rbp, r13
add rdx, rbp
rol rbp, 0x15
add r13, r8
rol r8, 0x11
xor rbp, rdx
xor r8, r13
rol r13, 0x20
xor rdx, r10
add rdx, r8
rol r8, 0xd
xor r8, rdx
rol rdx, 0x20
xor r13, 0xff
add r13, rbp
rol rbp, 0x10
xor rbp, r13
add rdx, rbp
rol rbp, 0x15
add r13, r8
rol r8, 0x11
xor r8, r13
rol r13, 0x20
xor rbp, rdx
add rdx, r8
rol r8, 0xd
xor r8, rdx
rol rdx, 0x20
add r13, rbp
rol rbp, 0x10
xor rbp, r13
add rdx, rbp
rol rbp, 0x15
add r13, r8
rol r8, 0x11
xor r8, r13
rol r13, 0x20
xor rbp, rdx
add rdx, r8
rol r8, 0xd
add r13, rbp
rol rbp, 0x10
xor rbp, r13
rol rbp, 0x15
xor r8, rdx
add r13, r8
rol r8, 0x11
mov rax, r13
rol rax, 0x20
xor rax, r8
xor rax, rbp
xor rax, r13
mov rcx, rdi
and rcx, rax
movdqu xmm0, xmmword [rbx + rcx]
pmovmskb edx, xmm0
mov r8, rcx
test edx, edx
jne 0x14007f678
mov r9d, 0x10
mov r8, rcx
nop word cs:[rax + rax]
add r8, r9
and r8, rdi
movdqu xmm0, xmmword [rbx + r8]
pmovmskb edx, xmm0
add r9, 0x10
test edx, edx
je 0x14007f660
tzcnt edx, edx
add rdx, r8
and rdx, rdi
cmp byte [rbx + rdx], 0
js 0x14007f694
movdqa xmm0, xmmword [rbx]
pmovmskb edx, xmm0
tzcnt edx, edx
mov r8, r11
sub r8, rcx
mov r9, rdx
sub r9, rcx
xor r9, r8
and r9, rdi
cmp r9, 0x10
jb 0x14007f350
lea rcx, [rdx*8]
lea rcx, [rcx + rcx*2]
movzx r8d, byte [rbx + rdx]
shr rax, 0x39
lea r9, [rdx - 0x10]
and r9, rdi
mov byte [rbx + rdx], al
mov byte [rbx + r9 + 0x10], al
cmp r8b, 0xff
je 0x14007f720
mov rax, rbx
sub rax, rcx
mov r8, qword [rsp + 0x48]
mov rcx, qword [r8 - 0x18]
mov rdx, qword [rax - 0x18]
mov qword [r8 - 0x18], rdx
mov qword [rax - 0x18], rcx
mov rcx, qword [r8 - 0x10]
mov rdx, qword [rax - 0x10]
mov qword [r8 - 0x10], rdx
mov qword [rax - 0x10], rcx
mov rcx, qword [r8 - 8]
mov rdx, qword [rax - 8]
mov qword [r8 - 8], rdx
mov qword [rax - 8], rcx
jmp 0x14007f3c0
neg rcx
lea rax, [rbx + rcx]
add rax, 0xffffffffffffffe8
lea rcx, [r11 - 0x10]
and rcx, rdi
mov byte [rbx + r11], 0xff
mov byte [rbx + rcx + 0x10], 0xff
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdx + 0x10]
mov qword [rax + 0x10], rcx
movdqu xmm0, xmmword [rdx]
movdqu xmmword [rax], xmm0
jmp 0x14007f363
mov r8, qword [rsp + 0x38]
mov rcx, qword [r8 + 8]
lea rax, [rcx + 1]
mov rdx, rax
shr rdx, 3
and rax, 0xfffffffffffffff8
sub rax, rdx
cmp rcx, 8
cmovb rax, rcx
sub rax, qword [r8 + 0x18]
mov qword [r8 + 0x10], rax
movabs rax, 0x7ffffffffffffff0
add rax, 0x11
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret