Function at 0x14006fde0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r12, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x38]
add rcx, r12
setb dl
xor eax, eax
movabs r8, 0xfffffffe0
cmp rcx, r8
ja 0x140070191
test dl, dl
jne 0x140070191
mov rdi, r9
lea r13, [rsi + 0x50]
mov r15, qword [rsi + 0x160]
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x174], 0
je 0x14006fe59
lea rcx, [rsi + 0x40]
mov rdx, r13
call fcn.14006f730
mov dword [rsi + 0x174], 0
mov eax, dword [rsi + 0x170]
test eax, eax
je 0x14006feb6
test r12, r12
je 0x140070186
nop dword [rax]
mov ecx, eax
movzx edx, byte [rsi + rcx + 0x10]
xor dl, byte [rbp]
inc rbp
mov byte [rdi], dl
xor byte [rsi + rcx + 0x40], dl
inc rdi
lea rbx, [r12 - 1]
inc eax
and eax, 0xf
je 0x14006fe9b
cmp r12, 1
mov r12, rbx
jne 0x14006fe70
test eax, eax
jne 0x140070186
lea rcx, [rsi + 0x40]
mov qword [rsp + 0x28], r13
mov rdx, r13
call fcn.14006f730
jmp 0x14006febe
mov qword [rsp + 0x28], r13
mov rbx, r12
mov r13d, dword [rsi + 0xc]
bswap r13d
cmp rbx, 0xc00
jb 0x14006ffaa
mov qword [rsp + 0x20], rbx
lea r12, [rsi + 0x10]
lea rax, [rsi + 0x40]
mov qword [rsp + 0x30], rax
mov rax, rdi
mov rcx, rbp
nop word [rax + rax]
mov rbx, rcx
mov rdi, rax
mov rbp, 0xfffffffffffff400
nop dword [rax]
mov rcx, rsi
mov rdx, r12
mov r8, r14
call r15
inc r13d
mov eax, r13d
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rbx + rbp + 0xc00]
mov qword [rdi + rbp + 0xc00], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rbx + rbp + 0xc08]
mov qword [rdi + rbp + 0xc08], rax
add rbp, 0x10
jne 0x14006ff00
lea r8, [rdi + rbp]
mov r9d, 0xc00
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
call fcn.14006f860
mov rdx, qword [rsp + 0x20]
add rdx, 0xfffffffffffff400
lea rax, [rdi + rbp]
add rax, 0xc00
lea rcx, [rbx + rbp]
add rcx, 0xc00
mov qword [rsp + 0x20], rdx
cmp rdx, 0xbff
ja 0x14006fef0
add rdi, rbp
add rdi, 0xc00
add rbp, rbx
add rbp, 0xc00
mov rbx, qword [rsp + 0x20]
mov rax, rbx
and rax, 0xff0
je 0x140070019
mov qword [rsp + 0x20], rax
lea r12, [rsi + 0x10]
nop
mov rcx, rsi
mov rdx, r12
mov r8, r14
call r15
inc r13d
mov eax, r13d
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rbp]
mov qword [rdi], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rbp + 8]
mov qword [rdi + 8], rax
add rdi, 0x10
add rbp, 0x10
add rbx, 0xfffffffffffffff0
cmp rbx, 0xf
ja 0x14006ffc0
mov r8, rdi
mov r9, qword [rsp + 0x20]
sub r8, r9
lea rcx, [rsi + 0x40]
mov rdx, qword [rsp + 0x28]
call fcn.14006f860
test rbx, rbx
je 0x14007006f
lea r12, [rsi + 0x10]
mov rcx, rsi
mov rdx, r12
mov r8, r14
call r15
inc r13d
bswap r13d
mov dword [rsi + 0xc], r13d
movabs rcx, 0xfffffffeffffffff
lea rdx, [rbx + rcx]
add rcx, 0x10
xor eax, eax
cmp rdx, rcx
jae 0x140070076
mov rcx, rbx
test cl, 1
jne 0x140070122
mov rdx, rcx
cmp rcx, 1
jne 0x140070150
jmp 0x140070186
xor eax, eax
jmp 0x140070186
lea rdx, [rdi + rbx]
lea r9, [rsi + rbx]
add r9, 0x40
mov r14, rbx
lea r10, [rbx + rbp]
cmp rdi, r9
setb r11b
cmp r12, rdx
setb bl
cmp rdi, r10
setb cl
cmp rbp, rdx
setb r8b
cmp r12, r10
setb dl
cmp rbp, r9
setb r9b
test r11b, bl
jne 0x1400701aa
and cl, r8b
jne 0x1400701aa
and dl, r9b
mov r8, r14
jne 0x1400701a2
movabs rax, 0x1fffffff0
and rax, r8
mov ecx, r8d
and ecx, 0xf
xor edx, edx
nop word cs:[rax + rax]
movups xmm0, xmmword [rbp + rdx]
movups xmm1, xmmword [rsi + rdx + 0x10]
xorps xmm1, xmm0
movups xmmword [rdi + rdx], xmm1
movups xmm0, xmmword [rsi + rdx + 0x40]
xorps xmm0, xmm1
movups xmmword [rsi + rdx + 0x40], xmm0
add rdx, 0x10
cmp rax, rdx
jne 0x1400700f0
cmp r8, rax
jne 0x140070054
jmp 0x140070186
lea rdx, [rcx - 1]
mov r8d, eax
movzx r9d, byte [rsi + r8 + 0x10]
xor r9b, byte [rbp + r8]
mov byte [rdi + r8], r9b
xor byte [rsi + r8 + 0x40], r9b
inc eax
cmp rcx, 1
je 0x140070186
nop word cs:[rax + rax]
mov ecx, eax
movzx r8d, byte [rsi + rcx + 0x10]
xor r8b, byte [rbp + rcx]
mov byte [rdi + rcx], r8b
xor byte [rsi + rcx + 0x40], r8b
lea ecx, [rax + 1]
movzx r8d, byte [rsi + rcx + 0x10]
xor r8b, byte [rbp + rcx]
mov byte [rdi + rcx], r8b
xor byte [rsi + rcx + 0x40], r8b
add eax, 2
add rdx, 0xfffffffffffffffe
jne 0x140070150
mov dword [rsi + 0x170], eax
mov eax, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r8
jmp 0x140070054
mov rcx, r14
jmp 0x140070054