Function at 0x1400d0470
Capabilities:
Encode data using xor

Disassembly:
push rbx
push r12
push r14
push r15
mov eax, 0x58
call fcn.140168660
sub rsp, rax
mov rax, qword [rcx + 0x180]
mov rbx, rcx
mov rcx, qword [rcx + 0x38]
mov r14, r9
mov qword [rsp + 0x30], rax
add rcx, r9
movabs rax, 0xfffffffe0
mov r15, r8
mov r12, rdx
cmp rcx, rax
ja 0x1400d071e
cmp rcx, r9
jb 0x1400d071e
cmp dword [rbx + 0x174], 0
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x50], rsi
mov qword [rbx + 0x38], rcx
je 0x1400d04f1
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call fcn.1400d0e70
mov dword [rbx + 0x174], 0
movzx eax, byte [rbx + 0xd]
mov esi, dword [rbx + 0x170]
movzx ebp, byte [rbx + 0xc]
shl ebp, 8
or ebp, eax
mov dword [rsp + 0x80], esi
movzx eax, byte [rbx + 0xe]
shl ebp, 8
or ebp, eax
movzx eax, byte [rbx + 0xf]
shl ebp, 8
or ebp, eax
test esi, esi
je 0x1400d0566
test r14, r14
je 0x1400d0551
mov ecx, esi
dec r14
movzx eax, byte [rcx + rbx + 0x10]
xor al, byte [r12]
inc r12
mov byte [r15], al
inc r15
xor byte [rcx + rbx + 0x40], al
inc esi
and esi, 0xf
mov dword [rsp + 0x80], esi
jne 0x1400d0521
jmp 0x1400d0559
test esi, esi
jne 0x1400d0714
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call fcn.1400d0e70
mov r10, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r13
cmp r14, 0xc00
jb 0x1400d062a
movabs rax, 0xaaaaaaaaaaaaaaab
mul r14
mov rdi, rdx
shr rdi, 0xb
imul rax, rdi, 0xfffffffffffff400
add r14, rax
mov qword [rsp + 0x98], r14
mov r14, qword [rsp + 0x30]
mov r9, r14
mov qword [rsp + 0x20], rbx
mov r8d, 0xc0
mov rdx, r15
mov rcx, r12
call r10
add ebp, 0xc0
lea rdx, [rbx + 0x60]
mov eax, ebp
mov byte [rbx + 0xf], bpl
shr eax, 0x18
lea rcx, [rbx + 0x40]
mov byte [rbx + 0xc], al
mov r9d, 0xc00
mov eax, ebp
mov r8, r15
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, ebp
shr eax, 8
mov byte [rbx + 0xe], al
call fcn.1400d0ca0
mov r10, qword [rsp + 0xa0]
add r15, 0xc00
add r12, 0xc00
sub rdi, 1
jne 0x1400d05b0
mov esi, dword [rsp + 0x80]
mov r14, qword [rsp + 0x98]
mov r13, r14
and r13, 0xfffffffffffffff0
je 0x1400d068a
mov r9, qword [rsp + 0x30]
mov rdi, r13
shr rdi, 4
mov rdx, r15
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rcx, r12
call r10
add ebp, edi
lea rdx, [rbx + 0x60]
mov eax, ebp
mov byte [rbx + 0xf], bpl
shr eax, 0x18
lea rcx, [rbx + 0x40]
mov byte [rbx + 0xc], al
mov r9, r13
mov eax, ebp
mov r8, r15
shr eax, 0x10
add r12, r13
mov byte [rbx + 0xd], al
sub r14, r13
mov eax, ebp
shr eax, 8
mov byte [rbx + 0xe], al
call fcn.1400d0ca0
add r15, r13
mov r13, qword [rsp + 0x40]
test r14, r14
je 0x1400d06ee
mov r8, qword [rsp + 0x30]
lea rdx, [rbx + 0x10]
mov rcx, rbx
call qword [rbx + 0x178]
inc ebp
mov eax, ebp
mov byte [rbx + 0xf], bpl
shr eax, 0x18
mov byte [rbx + 0xc], al
mov eax, ebp
shr eax, 0x10
mov byte [rbx + 0xd], al
mov eax, ebp
shr eax, 8
mov byte [rbx + 0xe], al
nop dword [rax]
nop dword [rax + rax]
mov ecx, esi
inc esi
movzx edx, byte [rcx + r12]
movzx eax, byte [rbx + rcx + 0x10]
xor edx, eax
mov byte [rcx + r15], dl
xor byte [rcx + rbx + 0x40], dl
sub r14, 1
jne 0x1400d06d0
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov dword [rbx + 0x170], esi
mov rbp, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x50]
add rsp, 0x58
pop r15
pop r14
pop r12
pop rbx
ret
mov dword [rbx + 0x170], esi
xor eax, eax
jmp 0x1400d06fb
or eax, 0xffffffff
add rsp, 0x58
pop r15
pop r14
pop r12
pop rbx
ret