Function at 0x1400d4e50
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0xd0
mov rax, qword [0x1403f79f0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x120]
mov r13d, r9d
mov esi, dword [rsp + 0x138]
mov r14, r8
mov qword [rsp + 0x48], rcx
mov ecx, dword [rsp + 0x128]
mov qword [rsp + 0x50], rax
mov ebx, edx
mov qword [rsp + 0x40], 0
call fcn.1400bcd40
mov ebp, eax
test eax, eax
js 0x1400d4f5f
cmp ebx, eax
je 0x1400d4ebf
mov eax, 0xffffff53
jmp 0x1400d4f5f
mov ecx, dword [rsp + 0x140]
lea eax, [rcx - 1]
and eax, 7
mov dword [rsp + 0x34], eax
jne 0x1400d4edc
mov byte [r14], 0
inc r14
dec r13d
cmp esi, 0xffffffff
jne 0x1400d4ef5
mov esi, ebp
cmp ecx, 0x400
jne 0x1400d4f06
cmp ebp, 0x40
jne 0x1400d4f06
lea esi, [rbp - 2]
jmp 0x1400d4f06
cmp esi, ebp
jg 0x1400d51a3
cmp esi, 0xffffffff
jl 0x1400d51a3
mov ecx, r13d
lea eax, [rsi + 2]
sub ecx, ebp
cmp ecx, eax
jl 0x1400d51a3
lea eax, [rbx + 8]
mov qword [rsp + 0xc0], r12
add eax, esi
mov qword [rsp + 0xb8], r15
lea r15d, [rcx - 1]
mov dword [rsp + 0x30], r15d
cmp r13d, eax
jae 0x1400d4f88
mov ecx, eax
call fcn.1400ac7b0
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400d4f7e
mov eax, 0xffffff83
mov r12, qword [rsp + 0xc0]
mov r15, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400da560
add rsp, 0xd0
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
mov r12, rax
mov qword [rsp + 0x38], rax
jmp 0x1400d4f90
mov r12, r14
mov qword [rsp + 0x38], r14
mov rdx, qword [rsp + 0x48]
xor eax, eax
mov qword [rsp + 0xc8], rdi
mov r8, rbx
lea rdi, [r12 + 8]
mov qword [r12], rax
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, rbx
test esi, esi
jle 0x1400d4ff4
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov r8d, esi
call fcn.1400bf660
mov r12d, eax
test eax, eax
jne 0x1400d5181
movsxd rbx, esi
lea rdx, [rsp + 0x60]
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r12, qword [rsp + 0x38]
add rdi, rbx
jmp 0x1400d4ff7
movsxd rbx, esi
mov ecx, dword [rsp + 0x128]
sub edi, r12d
movsxd r15, r15d
mov r8d, edi
mov rdx, r12
mov dword [rsp + 0x20], ebp
lea r9, [r15 + r14]
call fcn.1400bc8c0
mov r12d, eax
test eax, eax
jne 0x1400d5181
mov ecx, dword [rsp + 0x130]
lea eax, [r13 - 1]
mov byte [rax + r14], 0xbc
lea rdx, [r15 + r14]
mov rax, qword [rsp + 0x148]
mov r9, r14
mov qword [rsp + 0x28], rax
mov r8d, ebp
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
call fcn.1400d4870
mov r12d, eax
test eax, eax
jne 0x1400d5181
mov ecx, dword [rsp + 0x34]
test ecx, ecx
je 0x1400d5075
mov eax, 1
shl al, cl
dec al
and byte [r14], al
sub r15, rbx
xor r8d, r8d
xor byte [r15 + r14 - 1], 1
lea rdx, [r15 + r14]
test esi, esi
jle 0x1400d5154
cmp esi, 0x40
jb 0x1400d5154
lea eax, [rsi - 1]
movsxd rcx, eax
lea rax, [rsp + 0x60]
add rax, rcx
lea r9, [rdx + rcx]
cmp rdx, rax
ja 0x1400d50bb
lea rax, [rsp + 0x60]
cmp r9, rax
jae 0x1400d5154
mov eax, esi
and eax, 0x8000003f
jge 0x1400d50cb
dec eax
or eax, 0xffffffc0
inc eax
sub esi, eax
lea r9, [rsp + 0x60]
lea r10, [rsp + 0x70]
movsxd rdi, esi
sub r9, rdx
lea rcx, [rdx + 0x20]
sub r10, rdx
mov r11, 0xffffffffffffffe0
sub r11, rdx
nop
movdqu xmm0, xmmword [rcx - 0x20]
add r8d, 0x40
movdqu xmm1, xmmword [r9 + rcx - 0x20]
movdqu xmm2, xmmword [rcx + r9]
lea rcx, [rcx + 0x40]
pxor xmm1, xmm0
lea rax, [rcx + r11]
movdqu xmmword [rcx - 0x60], xmm1
movdqu xmm0, xmmword [rcx - 0x50]
movdqu xmm1, xmmword [r10 + rcx - 0x60]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x50], xmm1
movdqu xmm0, xmmword [rcx - 0x40]
movdqu xmm1, xmmword [rcx + r10 - 0x40]
pxor xmm2, xmm0
movdqu xmmword [rcx - 0x40], xmm2
movdqu xmm0, xmmword [rcx - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
cmp rax, rdi
jl 0x1400d50f0
movsxd rcx, r8d
cmp rcx, rbx
jge 0x1400d5181
lea r8, [rsp + 0x60]
sub r8, rdx
lea rax, [rcx + rdx]
sub rbx, rcx
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rbx, 1
jne 0x1400d5170
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0xc8]
test rax, rax
je 0x1400d519b
mov rcx, rax
call fcn.1400ac790
mov eax, r12d
jmp 0x1400d4f4f
mov eax, 0xffffff06
jmp 0x1400d4f5f