Function at 0x140045170
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x4a0
mov rax, qword [0x1400c9948]
xor rax, rsp
mov qword [rsp + 0x490], rax
cmp dword [rcx + 0x148], 1
mov r14, rdx
mov rax, qword [rsp + 0x518]
mov rbx, rcx
mov r12, qword [rsp + 0x508]
mov r9, qword [rsp + 0x510]
mov qword [rsp + 0x48], rax
jne 0x1400454dc
mov rsi, qword [rcx + 8]
lea rax, [rsi - 0x10]
cmp rax, 0x3f0
ja 0x1400454dc
mov ecx, dword [rcx + 0x14c]
call fcn.140013fa0
mov rbp, rax
test rax, rax
je 0x1400454dc
movzx edi, byte [rax + 0xc]
lea r13d, [rdi + rdi]
lea r11d, [r13 + 2]
cmp r11, rsi
ja 0x1400454dc
lea rax, [rsp + 0x90]
mov rdx, r14
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400430e0
mov ebx, eax
test eax, eax
jne 0x1400454ab
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
xor eax, eax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
call fcn.140014100
mov ebx, eax
test eax, eax
je 0x14004525a
lea rcx, [rsp + 0x30]
call fcn.140014020
jmp 0x1400454ab
mov qword [rsp + 0x4f8], r15
lea rax, [rsp + 0x30]
mov r14, rsi
mov qword [rsp + 0x20], rax
sub r14, rdi
lea r15, [rsp + 0x91]
add r15, rdi
lea rcx, [rsp + 0x91]
mov r8, r15
mov rdx, rdi
lea r9, [r14 - 1]
call fcn.140044a90
mov ebx, eax
test eax, eax
jne 0x140045499
lea rax, [rsp + 0x30]
mov r9, rdi
lea r8, [rsp + 0x91]
mov qword [rsp + 0x20], rax
lea rdx, [r14 - 1]
mov rcx, r15
call fcn.140044a90
mov ebx, eax
test eax, eax
jne 0x140045499
lea rcx, [rsp + 0x30]
call fcn.140014020
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.1400146c0
mov ebx, eax
test eax, eax
jne 0x1400454a3
movzx r9d, byte [rsp + 0x90]
lea rdx, [rsp + 0x91]
xor ebx, ebx
add rdx, rdi
mov ecx, ebx
test rdi, rdi
je 0x1400453c5
cmp rdi, 0x20
jb 0x1400453b0
mov rax, rdi
xorps xmm2, xmm2
and rax, 0xffffffffffffffe0
xorps xmm3, xmm3
nop word [rax + rax]
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rsp + rcx + 0x50]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + 0x10]
add rdx, 0x20
por xmm2, xmm1
movdqu xmm1, xmmword [rsp + rcx + 0x60]
add rcx, 0x20
pxor xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
cmp rcx, rax
jb 0x140045330
por xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or r9b, al
cmp rcx, rdi
jae 0x1400453c5
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x50]
inc rcx
xor al, byte [rdx]
inc rdx
or r9b, al
cmp rcx, rdi
jb 0x1400453b0
mov eax, r13d
mov r14, rsi
sub r14, rax
xor r8b, r8b
add r14, 0xfffffffffffffffe
mov r10, rbx
mov r11, rbx
mov rdi, rbx
mov rcx, rbx
cmp r14, 2
jb 0x14004542c
lea rbp, [r14 - 1]
nop dword [rax + rax]
or r8b, byte [rcx + rdx]
movzx eax, r8b
neg al
or al, r8b
or r8b, byte [rcx + rdx + 1]
not al
add rcx, 2
movzx eax, al
shr rax, 7
add r10, rax
movzx eax, r8b
neg al
or al, r8b
not al
movzx eax, al
shr rax, 7
add r11, rax
cmp rcx, rbp
jb 0x1400453f0
cmp rcx, r14
jae 0x140045447
or r8b, byte [rcx + rdx]
movzx eax, r8b
neg al
or al, r8b
not al
movzx edi, al
shr rdi, 7
lea rax, [r11 + r10]
add rax, rdi
add rdx, rax
movzx eax, byte [rdx]
inc rdx
xor al, 1
or r9b, al
je 0x140045465
mov ebx, 0xffffbf00
jmp 0x1400454a3
sub rsi, rdx
lea r8, [rsp + 0x90]
add r8, rsi
cmp r8, qword [rsp + 0x520]
jbe 0x140045484
mov ebx, 0xffffbc00
jmp 0x1400454a3
mov qword [r12], r8
test r8, r8
je 0x1400454a3
mov rcx, qword [rsp + 0x48]
call fcn.140080780
jmp 0x1400454a3
lea rcx, [rsp + 0x30]
call fcn.140014020
mov r15, qword [rsp + 0x4f8]
mov rax, qword [fcn.140080540]
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8d, 0x400
call rax
mov rax, qword [fcn.140080540]
lea rcx, [rsp + 0x50]
xor edx, edx
lea r8d, [rdx + 0x40]
call rax
mov eax, ebx
jmp 0x1400454e1
mov eax, 0xffffbf80
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1400946f0
add rsp, 0x4a0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret