Function at 0x14007c770
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 0x14007cb51
test dl, dl
jne 0x14007cb51
mov rdi, r9
mov r15, qword [rsi + 0x170]
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x184], 0
je 0x14007c7e6
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call fcn.14007bbf0
mov dword [rsi + 0x184], 0
mov eax, dword [rsi + 0x180]
test eax, eax
je 0x14007c848
test r12, r12
je 0x14007cb46
nop dword [rax]
movzx ecx, byte [rbp]
inc rbp
mov edx, eax
movzx r8d, byte [rsi + rdx + 0x10]
xor r8b, cl
mov byte [rdi], r8b
xor byte [rsi + rdx + 0x40], cl
inc rdi
lea rbx, [r12 - 1]
inc eax
and eax, 0xf
je 0x14007c831
cmp r12, 1
mov r12, rbx
jne 0x14007c800
test eax, eax
jne 0x14007cb46
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
call fcn.14007bbf0
jmp 0x14007c84b
mov rbx, r12
mov r12d, dword [rsi + 0xc]
bswap r12d
cmp rbx, 0xc00
jb 0x14007c910
mov qword [rsp + 0x20], rbx
lea rax, [rsi + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsi + 0x40]
mov qword [rsp + 0x28], rax
lea r13, [rsi + 0x10]
mov rax, rdi
mov rcx, rbp
mov rbp, rcx
mov rdi, rax
mov r9d, 0xc00
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov r8, rbp
call fcn.14007bd20
xor ebx, ebx
mov rcx, rsi
mov rdx, r13
mov r8, r14
call r15
inc r12d
mov eax, r12d
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rbp + rbx]
mov qword [rdi + rbx], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rbp + rbx + 8]
mov qword [rdi + rbx + 8], rax
add rbx, 0x10
cmp rbx, 0xc00
jne 0x14007c8a0
mov rdx, qword [rsp + 0x20]
add rdx, 0xfffffffffffff400
lea rax, [rdi + rbx]
lea rcx, [rbx + rbp]
mov qword [rsp + 0x20], rdx
cmp rdx, 0xbff
ja 0x14007c880
add rdi, rbx
add rbp, rbx
mov rbx, qword [rsp + 0x20]
mov r9, rbx
and r9, 0xff0
je 0x14007c970
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov r8, rbp
call fcn.14007bd20
lea r13, [rsi + 0x10]
mov rcx, rsi
mov rdx, r13
mov r8, r14
call r15
inc r12d
mov eax, r12d
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 0x14007c930
test rbx, rbx
je 0x14007ca13
lea r13, [rsi + 0x10]
mov rcx, rsi
mov rdx, r13
mov r8, r14
call r15
inc r12d
bswap r12d
mov dword [rsi + 0xc], r12d
movabs rcx, 0xfffffffeffffffff
lea rdx, [rbx + rcx]
add rcx, 0x10
xor eax, eax
cmp rdx, rcx
jb 0x14007ca1d
lea rdx, [rbx + rsi]
add rdx, 0x40
lea r9, [rdi + rbx]
mov r14, rbx
lea r10, [rbx + rbp]
cmp r13, r9
setb r11b
cmp rdi, rdx
setb bl
cmp r13, r10
setb cl
cmp rbp, rdx
setb r8b
cmp rdi, r10
setb dl
cmp rbp, r9
setb r9b
test r11b, bl
jne 0x14007ca1a
and cl, r8b
jne 0x14007ca1a
and dl, r9b
mov rbx, r14
jne 0x14007ca1d
lea rax, [rbx - 0x10]
mov rdx, rax
shr rdx, 4
inc rdx
cmp rax, 0x10
jae 0x14007ca38
xor ecx, ecx
jmp 0x14007caab
xor eax, eax
jmp 0x14007cb46
mov rbx, r14
test bl, 1
jne 0x14007cae6
mov rcx, rbx
cmp rbx, 1
jne 0x14007cb10
jmp 0x14007cb46
mov rax, rdx
and rax, 0xfffffffffffffffe
xor ecx, ecx
nop word cs:[rax + rax]
mov r8d, ecx
and r8d, 0xffffffe0
movups xmm0, xmmword [rbp + r8]
movups xmm1, xmmword [rsi + r8 + 0x10]
movups xmm2, xmmword [rsi + r8 + 0x40]
xorps xmm2, xmm0
movups xmmword [rsi + r8 + 0x40], xmm2
xorps xmm1, xmm0
movups xmmword [rdi + r8], xmm1
movups xmm0, xmmword [rbp + r8 + 0x10]
movups xmm1, xmmword [rsi + r8 + 0x20]
movups xmm2, xmmword [rsi + r8 + 0x50]
xorps xmm2, xmm0
movups xmmword [rsi + r8 + 0x50], xmm2
xorps xmm1, xmm0
movups xmmword [rdi + r8 + 0x10], xmm1
add rcx, 0x20
add rax, 0xfffffffffffffffe
jne 0x14007ca50
and ecx, 0xfffffff0
mov rax, rbx
and rax, 0xfffffffffffffff0
test dl, 1
je 0x14007cad5
movups xmm0, xmmword [rbp + rcx]
movups xmm1, xmmword [rsi + rcx + 0x10]
movups xmm2, xmmword [rsi + rcx + 0x40]
xorps xmm2, xmm0
movups xmmword [rsi + rcx + 0x40], xmm2
xorps xmm1, xmm0
movups xmmword [rdi + rcx], xmm1
cmp rbx, rax
je 0x14007cb46
and ebx, 0xf
test bl, 1
je 0x14007ca26
lea rcx, [rbx - 1]
mov edx, eax
movzx r8d, byte [rbp + rdx]
xor byte [rsi + rdx + 0x40], r8b
xor r8b, byte [rsi + rdx + 0x10]
mov byte [rdi + rdx], r8b
inc eax
cmp rbx, 1
je 0x14007cb46
nop dword [rax + rax]
mov edx, eax
movzx r8d, byte [rbp + rdx]
xor byte [rsi + rdx + 0x40], r8b
xor r8b, byte [rsi + rdx + 0x10]
mov byte [rdi + rdx], r8b
lea edx, [rax + 1]
movzx r8d, byte [rbp + rdx]
xor byte [rsi + rdx + 0x40], r8b
xor r8b, byte [rsi + rdx + 0x10]
add eax, 2
mov byte [rdi + rdx], r8b
add rcx, 0xfffffffffffffffe
jne 0x14007cb10
mov dword [rsi + 0x180], eax
mov eax, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret