Function at 0x1401f7af0
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 r12, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x38]
add rcx, r12
setb dl
xor eax, eax
movabs r8, 0xfffffffe0
cmp rcx, r8
ja 0x1401f7da6
test dl, dl
jne 0x1401f7da6
mov rbx, 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 0x1401f7b7d
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov rax, r13
call qword [case.0x1401e7f70.0]
mov dword [rsi + 0x184], 0
mov eax, dword [rsi + 0x180]
test eax, eax
je 0x1401f7bd4
test r12, r12
je 0x1401f7d9b
mov ecx, eax
mov dl, byte [rsi + rcx + 0x10]
xor dl, byte [rdi]
inc rdi
mov byte [rbx], dl
xor byte [rsi + rcx + 0x40], dl
inc rbx
lea rbp, [r12 - 1]
inc eax
and eax, 0xf
je 0x1401f7bb9
cmp r12, 1
mov r12, rbp
jne 0x1401f7b90
test eax, eax
jne 0x1401f7d9b
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov rax, r13
call qword [case.0x1401e7f70.0]
jmp 0x1401f7bd7
mov rbp, r12
mov qword [rsp + 0x28], r14
mov r12d, dword [rsi + 0xc]
bswap r12d
cmp rbp, 0xc00
jb 0x1401f7ccd
mov qword [rsp + 0x20], rbp
lea r13, [rsi + 0x10]
lea rax, [rsi + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsi + 0x40]
mov qword [rsp + 0x38], rax
mov r14, 0xfffffffffffff400
mov rbp, qword [rsp + 0x28]
mov rcx, rsi
mov rdx, r13
mov r8, rbp
mov rax, r15
call qword [case.0x1401e7f70.0]
inc r12d
mov eax, r12d
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rdi + r14 + 0xc00]
mov qword [rbx + r14 + 0xc00], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rdi + r14 + 0xc08]
mov qword [rbx + r14 + 0xc08], rax
add r14, 0x10
jne 0x1401f7c17
mov rbp, rbx
add rbp, r14
mov r9d, 0xc00
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov r8, rbp
mov rax, qword [rsp + 0x30]
call qword [case.0x1401e7f70.0]
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffff400
mov rax, rdi
add rax, r14
mov edx, 0xc00
lea rdi, [rax + rdx]
lea rbx, [rdx + rbp]
mov qword [rsp + 0x20], rcx
cmp rcx, 0xbff
ja 0x1401f7c0b
mov ecx, 0xc00
add rax, rcx
add rbp, rcx
mov rbx, rbp
mov rdi, rax
mov rbp, qword [rsp + 0x20]
mov rax, rbp
and rbp, 0xff0
je 0x1401f7d8f
mov qword [rsp + 0x20], rbp
lea r13, [rsi + 0x10]
mov r14, qword [rsp + 0x28]
mov rbp, rax
mov rcx, rsi
mov rdx, r13
mov r8, r14
mov rax, r15
call qword [case.0x1401e7f70.0]
inc r12d
mov eax, r12d
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rdi]
mov qword [rbx], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rdi + 8]
mov qword [rbx + 8], rax
add rbx, 0x10
add rdi, 0x10
add rbp, 0xfffffffffffffff0
cmp rbp, 0xf
ja 0x1401f7cee
mov r8, rbx
mov r9, qword [rsp + 0x20]
sub r8, r9
lea rdx, [rsi + 0x60]
lea rcx, [rsi + 0x40]
mov rax, qword [rsp + 0x30]
call qword [case.0x1401e7f70.0]
test rbp, rbp
je 0x1401f7d99
lea rdx, [rsi + 0x10]
mov rcx, rsi
mov r8, r14
mov rax, r15
call qword [case.0x1401e7f70.0]
inc r12d
bswap r12d
mov dword [rsi + 0xc], r12d
xor eax, eax
mov ecx, eax
mov dl, byte [rsi + rcx + 0x10]
xor dl, byte [rdi + rcx]
mov byte [rbx + rcx], dl
xor byte [rsi + rcx + 0x40], dl
inc rax
cmp rbp, rax
jne 0x1401f7d75
jmp 0x1401f7d9b
mov r14, qword [rsp + 0x28]
mov rbp, rax
jmp 0x1401f7d51
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