Function at 0x14008ad50
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 r12, r8
mov r14, rdx
mov rsi, rcx
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x38]
add rcx, rdi
setb dl
xor eax, eax
movabs r8, 0xfffffffe0
cmp rcx, r8
ja 0x14008b0e5
test dl, dl
jne 0x14008b0e5
mov r13, r9
mov r15, qword [rsi + 0x170]
mov rbx, qword [rsi + 0x160]
mov rax, qword [rsi + 0x168]
mov qword [rsp + 0x30], rax
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x184], 0
je 0x14008addd
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov rax, rbx
call qword [case.0x140031f00.0]
mov dword [rsi + 0x184], 0
mov eax, dword [rsi + 0x180]
test eax, eax
je 0x14008ae3d
test rdi, rdi
je 0x14008b0da
movzx ecx, byte [r12]
inc r12
mov edx, eax
movzx r8d, byte [rsi + rdx + 0x10]
xor r8b, cl
mov byte [r13], r8b
xor byte [rsi + rdx + 0x40], cl
inc r13
lea rbp, [rdi - 1]
inc eax
and eax, 0xf
je 0x14008ae22
cmp rdi, 1
mov rdi, rbp
jne 0x14008adf0
test eax, eax
jne 0x14008b0da
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov rax, rbx
call qword [case.0x140031f00.0]
jmp 0x14008ae40
mov rbp, rdi
mov edi, dword [rsi + 0xc]
bswap edi
cmp rbp, 0xc00
jb 0x14008af29
mov qword [rsp + 0x28], rbp
lea rax, [rsi + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsi + 0x40]
mov qword [rsp + 0x38], rax
mov rcx, r12
lea r12, [rsi + 0x10]
mov rax, r13
nop word cs:[rax + rax]
mov rbx, rcx
mov r13, rax
mov r9d, 0xc00
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov r8, rbx
mov rax, qword [rsp + 0x30]
call qword [case.0x140031f00.0]
xor ebp, ebp
nop word cs:[rax + rax]
mov rcx, rsi
mov rdx, r12
mov r8, r14
mov rax, r15
call qword [case.0x140031f00.0]
inc edi
mov eax, edi
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rbx + rbp]
mov qword [r13 + rbp], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rbx + rbp + 8]
mov qword [r13 + rbp + 8], rax
add rbp, 0x10
cmp rbp, 0xc00
jne 0x14008aeb0
mov rdx, qword [rsp + 0x28]
add rdx, 0xfffffffffffff400
mov rax, r13
add rax, rbp
lea rcx, [rbx + rbp]
mov qword [rsp + 0x28], rdx
cmp rdx, 0xbff
ja 0x14008ae80
add r13, rbp
add rbx, rbp
mov r12, rbx
mov rbp, qword [rsp + 0x28]
mov r9, rbp
and r9, 0xff0
je 0x14008af96
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov r8, r12
mov rax, qword [rsp + 0x30]
call qword [case.0x140031f00.0]
lea rbx, [rsi + 0x10]
nop
mov rcx, rsi
mov rdx, rbx
mov r8, r14
mov rax, r15
call qword [case.0x140031f00.0]
inc edi
mov eax, edi
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [r12]
mov qword [r13], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [r12 + 8]
mov qword [r13 + 8], rax
add r13, 0x10
add r12, 0x10
add rbp, 0xfffffffffffffff0
cmp rbp, 0xf
ja 0x14008af50
test rbp, rbp
je 0x14008b0d8
lea rbx, [rsi + 0x10]
mov rcx, rsi
mov rdx, rbx
mov r8, r14
mov rax, r15
call qword [case.0x140031f00.0]
inc edi
bswap edi
mov dword [rsi + 0xc], edi
movabs rcx, 0xfffffffeffffffff
lea rdx, [rcx + rbp]
add rcx, 0x10
xor eax, eax
cmp rdx, rcx
jb 0x14008b06e
lea rdx, [rsi + rbp]
add rdx, 0x40
mov r9, r13
add r9, rbp
lea r10, [r12 + rbp]
cmp rbx, r9
setb r11b
cmp r13, rdx
setb dil
cmp rbx, r10
setb cl
cmp r12, rdx
setb r8b
cmp r13, r10
setb dl
cmp r12, r9
setb r9b
test r11b, dil
jne 0x14008b06e
and cl, r8b
jne 0x14008b06e
and dl, r9b
jne 0x14008b06e
mov rax, rbp
and rax, 0xfffffffffffffff0
mov ecx, ebp
and ecx, 0xf
xor edx, edx
movups xmm0, xmmword [r12 + rdx]
movups xmm1, xmmword [rsi + rdx + 0x10]
movups xmm2, xmmword [rsi + rdx + 0x40]
xorps xmm2, xmm0
movups xmmword [rsi + rdx + 0x40], xmm2
xorps xmm1, xmm0
movups xmmword [r13 + rdx], xmm1
add rdx, 0x10
cmp rax, rdx
jne 0x14008b030
cmp rbp, rax
je 0x14008b0da
test cl, 1
jne 0x14008b076
mov rdx, rcx
cmp rcx, 1
jne 0x14008b0a0
jmp 0x14008b0da
mov rcx, rbp
test cl, 1
je 0x14008b063
lea rdx, [rcx - 1]
mov r8d, eax
movzx r9d, byte [r12 + r8]
xor byte [rsi + r8 + 0x40], r9b
xor r9b, byte [rsi + r8 + 0x10]
mov byte [r13 + r8], r9b
inc eax
cmp rcx, 1
je 0x14008b0da
nop dword [rax]
mov ecx, eax
movzx r8d, byte [r12 + rcx]
xor byte [rsi + rcx + 0x40], r8b
xor r8b, byte [rsi + rcx + 0x10]
mov byte [r13 + rcx], r8b
lea ecx, [rax + 1]
movzx r8d, byte [r12 + rcx]
xor byte [rsi + rcx + 0x40], r8b
xor r8b, byte [rsi + rcx + 0x10]
add eax, 2
mov byte [r13 + rcx], r8b
add rdx, 0xfffffffffffffffe
jne 0x14008b0a0
jmp 0x14008b0da
xor eax, eax
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