Function at 0x14008a970
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x38]
add rcx, rbp
setb dl
xor eax, eax
movabs r8, 0xfffffffe0
cmp rcx, r8
ja 0x14008ad3f
test dl, dl
jne 0x14008ad3f
mov r12, r9
mov r15, qword [rsi + 0x170]
mov r13, qword [rsi + 0x160]
mov rax, qword [rsi + 0x168]
mov qword [rsp + 0x30], rax
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x184], 0
je 0x14008a9fd
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov rax, r13
call qword [case.0x140031f00.0]
mov dword [rsi + 0x184], 0
mov eax, dword [rsi + 0x180]
test eax, eax
je 0x14008aa56
test rbp, rbp
je 0x14008ad34
mov ecx, eax
movzx edx, byte [rsi + rcx + 0x10]
xor dl, byte [rdi]
inc rdi
mov byte [r12], dl
xor byte [rsi + rcx + 0x40], dl
inc r12
lea rbx, [rbp - 1]
inc eax
and eax, 0xf
je 0x14008aa3b
cmp rbp, 1
mov rbp, rbx
jne 0x14008aa10
test eax, eax
jne 0x14008ad34
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov rax, r13
call qword [case.0x140031f00.0]
jmp 0x14008aa59
mov rbx, rbp
mov ebp, dword [rsi + 0xc]
bswap ebp
cmp rbx, 0xc00
jb 0x14008ab54
mov qword [rsp + 0x28], rbx
lea r13, [rsi + 0x10]
lea rax, [rsi + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsi + 0x40]
mov qword [rsp + 0x38], rax
mov rax, rdi
mov rcx, r12
nop dword [rax]
mov rbx, rcx
mov rdi, rax
mov r12, 0xfffffffffffff400
nop dword [rax]
mov rcx, rsi
mov rdx, r13
mov r8, r14
mov rax, r15
call qword [case.0x140031f00.0]
inc ebp
mov eax, ebp
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rdi + r12 + 0xc00]
mov qword [rbx + r12 + 0xc00], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rdi + r12 + 0xc08]
mov qword [rbx + r12 + 0xc08], rax
add r12, 0x10
jne 0x14008aaa0
lea r8, [rbx + r12]
mov r9d, 0xc00
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
call qword [case.0x140031f00.0]
mov rdx, qword [rsp + 0x28]
add rdx, 0xfffffffffffff400
lea rax, [rdi + r12]
add rax, 0xc00
lea rcx, [rbx + r12]
add rcx, 0xc00
mov qword [rsp + 0x28], rdx
cmp rdx, 0xbff
ja 0x14008aa90
add rdi, r12
add rdi, 0xc00
add r12, rbx
add r12, 0xc00
mov rbx, qword [rsp + 0x28]
mov rax, rbx
and rax, 0xff0
je 0x14008abd3
mov qword [rsp + 0x28], rax
lea r13, [rsi + 0x10]
nop dword [rax + rax]
mov rcx, rsi
mov rdx, r13
mov r8, r14
mov rax, r15
call qword [case.0x140031f00.0]
inc ebp
mov eax, ebp
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rdi]
mov qword [r12], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rdi + 8]
mov qword [r12 + 8], rax
add r12, 0x10
add rdi, 0x10
add rbx, 0xfffffffffffffff0
cmp rbx, 0xf
ja 0x14008ab70
mov r8, r12
mov r9, qword [rsp + 0x28]
sub r8, r9
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov rax, qword [rsp + 0x30]
call qword [case.0x140031f00.0]
test rbx, rbx
je 0x14008ac1f
lea r13, [rsi + 0x10]
mov rcx, rsi
mov rdx, r13
mov r8, r14
mov rax, r15
call qword [case.0x140031f00.0]
inc ebp
bswap ebp
mov dword [rsi + 0xc], ebp
movabs rcx, 0xfffffffeffffffff
lea rdx, [rbx + rcx]
add rcx, 0x10
xor eax, eax
cmp rdx, rcx
jae 0x14008ac26
mov rcx, rbx
test cl, 1
jne 0x14008acd9
jmp 0x14008acc6
xor eax, eax
jmp 0x14008ad34
lea rdx, [r12 + rbx]
lea r9, [rbx + rsi]
add r9, 0x40
mov r14, rbx
lea r10, [rdi + rbx]
cmp r12, r9
setb r11b
cmp r13, rdx
setb bl
cmp r12, r10
setb cl
cmp rdi, rdx
setb r8b
cmp r13, r10
setb dl
cmp rdi, r9
setb r9b
test r11b, bl
jne 0x14008acbe
and cl, r8b
jne 0x14008acbe
and dl, r9b
mov r8, r14
jne 0x14008acd1
mov rax, r8
and rax, 0xfffffffffffffff0
mov ecx, r8d
and ecx, 0xf
xor edx, edx
nop word cs:[rax + rax]
movups xmm0, xmmword [rdi + rdx]
movups xmm1, xmmword [rsi + rdx + 0x10]
xorps xmm1, xmm0
movups xmmword [r12 + rdx], xmm1
movups xmm0, xmmword [rsi + rdx + 0x40]
xorps xmm0, xmm1
movups xmmword [rsi + rdx + 0x40], xmm0
add rdx, 0x10
cmp rax, rdx
jne 0x14008ac90
cmp r8, rax
jne 0x14008acc1
jmp 0x14008ad34
mov rcx, r14
test cl, 1
jne 0x14008acd9
mov rdx, rcx
cmp rcx, 1
jne 0x14008ad00
jmp 0x14008ad34
mov rcx, r8
test cl, 1
je 0x14008acc6
lea rdx, [rcx - 1]
mov r8d, eax
movzx r9d, byte [rsi + r8 + 0x10]
xor r9b, byte [rdi + r8]
mov byte [r12 + r8], r9b
xor byte [rsi + r8 + 0x40], r9b
inc eax
cmp rcx, 1
je 0x14008ad34
nop dword [rax + rax]
mov ecx, eax
movzx r8d, byte [rsi + rcx + 0x10]
xor r8b, byte [rdi + rcx]
mov byte [r12 + rcx], r8b
xor byte [rsi + rcx + 0x40], r8b
lea ecx, [rax + 1]
movzx r8d, byte [rsi + rcx + 0x10]
xor r8b, byte [rdi + rcx]
mov byte [r12 + rcx], r8b
xor byte [rsi + rcx + 0x40], r8b
add eax, 2
add rdx, 0xfffffffffffffffe
jne 0x14008ad00
mov dword [rsi + 0x180], eax
mov eax, 1
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret