Function at 0x1400d5b60
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push r14
mov eax, 0x58
call fcn.14016df80
sub rsp, rax
mov rax, qword [rcx + 0x178]
mov rbx, rcx
mov qword [rsp + 0x28], rax
mov r14, r9
mov rax, qword [rcx + 0x180]
mov rsi, r8
mov rcx, qword [rcx + 0x38]
mov rbp, rdx
mov qword [rsp + 0x20], rax
add rcx, r9
movabs rax, 0xfffffffe0
cmp rcx, rax
ja 0x1400d5e9e
cmp rcx, r9
jb 0x1400d5e9e
cmp dword [rbx + 0x174], 0
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x40], r15
mov qword [rbx + 0x38], rcx
je 0x1400d5beb
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call fcn.1400d68b0
mov dword [rbx + 0x174], 0
movzx eax, byte [rbx + 0xd]
mov r15d, dword [rbx + 0x170]
movzx edi, byte [rbx + 0xc]
shl edi, 8
or edi, eax
mov dword [rsp + 0x80], r15d
movzx eax, byte [rbx + 0xe]
shl edi, 8
or edi, eax
movzx eax, byte [rbx + 0xf]
shl edi, 8
or edi, eax
test r15d, r15d
je 0x1400d5c68
nop
test r14, r14
je 0x1400d5c52
mov ecx, r15d
dec r14
movzx eax, byte [rcx + rbx + 0x10]
xor al, byte [rbp]
inc rbp
mov byte [rsi], al
inc rsi
xor byte [rcx + rbx + 0x40], al
inc r15d
and r15d, 0xf
mov dword [rsp + 0x80], r15d
jne 0x1400d5c20
jmp 0x1400d5c5b
test r15d, r15d
jne 0x1400d5e93
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call fcn.1400d68b0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
cmp r14, 0xc00
jb 0x1400d5d56
mov r15, qword [rsp + 0x28]
movabs rax, 0xaaaaaaaaaaaaaaab
mul r14
mov rcx, rdx
shr rcx, 0xb
imul rax, rcx, 0xfffffffffffff400
mov qword [rsp + 0x30], rcx
add r14, rax
mov qword [rsp + 0x98], r14
mov r14, qword [rsp + 0x20]
nop dword [rax]
nop dword [rax + rax]
mov r12d, 0xc0
nop word [rax + rax]
mov r8, r14
lea rdx, [rbx + 0x10]
mov rcx, rbx
call r15
inc edi
mov byte [rbx + 0xf], dil
mov eax, edi
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, edi
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, edi
shr eax, 8
mov byte [rbx + 0xe], al
mov rax, qword [rbx + 0x10]
xor rax, qword [rbp]
mov qword [rsi], rax
mov rax, qword [rbp + 8]
add rbp, 0x10
xor rax, qword [rbx + 0x18]
mov qword [rsi + 8], rax
add rsi, 0x10
sub r12, 1
jne 0x1400d5cd0
lea r8, [rsi - 0xc00]
mov r9d, 0xc00
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call fcn.1400d66e0
sub qword [rsp + 0x30], 1
jne 0x1400d5cc0
mov r14, qword [rsp + 0x98]
mov r15d, dword [rsp + 0x80]
mov rax, r14
and rax, 0xfffffffffffffff0
mov qword [rsp + 0x30], rax
je 0x1400d5e0d
cmp r14, 0x10
jb 0x1400d5df7
mov r15, qword [rsp + 0x28]
mov r12, r14
shr r12, 4
imul rax, r12, 0xfffffffffffffff0
add r14, rax
mov qword [rsp + 0x98], r14
mov r14, qword [rsp + 0x20]
mov r8, r14
lea rdx, [rbx + 0x10]
mov rcx, rbx
call r15
inc edi
mov byte [rbx + 0xf], dil
mov eax, edi
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, edi
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, edi
shr eax, 8
mov byte [rbx + 0xe], al
mov rax, qword [rbx + 0x10]
xor rax, qword [rbp]
mov qword [rsi], rax
mov rax, qword [rbp + 8]
add rbp, 0x10
xor rax, qword [rbx + 0x18]
mov qword [rsi + 8], rax
add rsi, 0x10
sub r12, 1
jne 0x1400d5d92
mov r14, qword [rsp + 0x98]
mov r15d, dword [rsp + 0x80]
mov rax, qword [rsp + 0x30]
mov r8, rsi
lea rdx, [rbx + 0x60]
sub r8, rax
lea rcx, [rbx + 0x40]
mov r9, rax
call fcn.1400d66e0
mov r13, qword [rsp + 0x48]
test r14, r14
je 0x1400d5e6e
mov r8, qword [rsp + 0x20]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rsp + 0x28]
inc edi
mov eax, edi
mov byte [rbx + 0xf], dil
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, edi
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, edi
shr eax, 8
mov byte [rbx + 0xe], al
nop word [rax + rax]
mov ecx, r15d
inc r15d
movzx edx, byte [rcx + rbp]
movzx eax, byte [rbx + rcx + 0x10]
xor edx, eax
mov byte [rcx + rsi], dl
xor byte [rcx + rbx + 0x40], dl
sub r14, 1
jne 0x1400d5e50
mov r12, qword [rsp + 0x50]
xor eax, eax
mov dword [rbx + 0x170], r15d
mov rdi, qword [rsp + 0x88]
mov r15, qword [rsp + 0x40]
add rsp, 0x58
pop r14
pop rsi
pop rbp
pop rbx
ret
mov dword [rbx + 0x170], r15d
xor eax, eax
jmp 0x1400d5e7c
or eax, 0xffffffff
add rsp, 0x58
pop r14
pop rsi
pop rbp
pop rbx
ret