Function at 0x14015c980
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp], 0xfffffffffffffffe
mov eax, dword [rcx + 0x160]
not eax
or eax, 0xfffffeff
mov dil, 1
cmp eax, 0xffffffff
je 0x14015cd41
mov rsi, rcx
mov rbx, qword [rcx + 0x128]
mov r8d, dword [0x1405429f4]
lea ecx, [r8 + 0x656bf597]
lea edx, [r8 + 0x3ee9451a]
add r8d, 0x5cd648d
call fcn.140168650
cmp rbx, rax
jbe 0x14015c9fa
movabs rax, 0x3906b5a114600f37
add rax, qword [0x1405429f8]
mov qword [rsi + 0x128], rax
mov r8d, dword [0x1405429f4]
lea eax, [r8 - 0x12b4315c]
lea ebx, [r8 - 0x12b444e4]
test byte [rsi + 0x120], 4
cmovne ebx, eax
lea ecx, [r8 + 0x656bf597]
mov eax, r8d
xor eax, 0x3ee9451a
mov edx, r8d
and edx, 0x3ee9451a
lea edx, [rax + rdx*2]
add r8d, 0x5cd648d
call fcn.140168650
mov rcx, qword [rsi + 0x128]
sub rax, rcx
mov ecx, dword [rsi + 0x134]
lea ecx, [rbx + rcx*2]
cmp rax, rcx
jb 0x14015cd41
mov byte [0x1405a99d0], 1
mov rdi, qword [0x1405a9748]
test rdi, rdi
je 0x14015cac1
lea rcx, [rdi + 0x20]
mov rbx, qword [rdi + 0x20]
mov r8, qword [rbx + 8]
mov rdx, rcx
call fcn.1400a81b0
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [rdi + 0x28], 0
lea rcx, [rdi + 0x30]
mov rbx, qword [rdi + 0x30]
mov r8, qword [rbx + 8]
mov rdx, rcx
call fcn.1400a7a40
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [rdi + 0x38], 0
mov byte [rdi + 0x11], 0
movaps xmm0, xmmword [0x140462c50]
movups xmmword [0x14059cd9f], xmm0
movups xmmword [0x14059cd8f], xmm0
movups xmmword [0x14059cd7f], xmm0
movups xmmword [0x14059cd6f], xmm0
cmp qword [0x1405a9810], 0
jne 0x14015cb1a
mov ecx, 0x700
mov edx, 0x561d6b40
mov r8d, 0x23275d95
call fcn.1400a8fb0
mov qword [rbp - 8], rax
mov rcx, rax
call fcn.140097070
mov rax, qword [rbp - 8]
mov qword [0x1405a9810], rax
mov rbx, qword [0x1405a9810]
mov rdi, qword [rbx + 0x3b0]
test rdi, rdi
je 0x14015cb3d
mov rcx, rdi
call fcn.140099800
mov rcx, rdi
call fcn.1400a82d0
mov qword [rbx + 0x3b0], 0
mov rcx, qword [0x1405a9ac8]
test rcx, rcx
je 0x14015cb70
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x14013008b.0]
mov qword [0x1405a9ac8], 0
cmp qword [0x1405a9810], 0
jne 0x14015cba6
mov ecx, 0x700
mov edx, 0x561d6b40
mov r8d, 0x23275d95
call fcn.1400a8fb0
mov qword [rbp - 8], rax
mov rcx, rax
call fcn.140097070
mov rax, qword [rbp - 8]
mov qword [0x1405a9810], rax
mov rax, qword [0x1405a9810]
mov r8, qword [rax + 0x560]
test r8, r8
je 0x14015cbfd
mov rcx, qword [rax + 0x558]
mov dl, 1
call fcn.140446830
cmp qword [0x1405a9810], 0
jne 0x14015cbfd
mov ecx, 0x700
mov edx, 0x561d6b40
mov r8d, 0x23275d95
call fcn.1400a8fb0
mov qword [rbp - 8], rax
mov rcx, rax
call fcn.140097070
mov rax, qword [rbp - 8]
mov qword [0x1405a9810], rax
mov rdi, qword [0x1405a9810]
mov r8, qword [rdi + 0x370]
mov rax, qword [rdi + 0x378]
sub rax, r8
shr rax, 5
imul eax, eax, 0xcccccccd
test eax, eax
jle 0x14015ccc2
mov ebx, 0x80
mov r14d, 1
movabs r15, 0xadb4d3bf80ca9b1e
cmp dword [r8 + rbx + 8], 0
jne 0x14015cc58
nop word cs:[rax + rax]
cmp qword [r8 + rbx + 8], 0
je 0x14015cc76
mov edx, dword [r8 + rbx - 0x5c]
add r8, rbx
mov dword [rsp + 0x20], 0x27629e7b
mov rcx, rdi
mov r9d, 0x16330c59
call fcn.1400a8da0
mov r8, qword [rdi + 0x370]
mov rax, qword [rdi + 0x378]
sub rax, r8
add rax, r15
mov rcx, rax
xor rcx, 0x7f3564e2
and eax, 0x7f3564e2
lea rax, [rcx + rax*2]
shr rax, 5
imul eax, eax, 0xcccccccd
cdqe
cmp r14, rax
jge 0x14015ccc2
add rbx, 0xa0
inc r14
cmp dword [r8 + rbx + 8], 0
je 0x14015cc50
jmp 0x14015cc58
mov rax, qword [rdi + 0x398]
sub rax, qword [rdi + 0x390]
shr rax, 2
test eax, eax
jle 0x14015cd2f
xor ebx, ebx
nop word [rax + rax]
mov dword [rsp + 0x20], 0x27629e7b
mov rcx, rdi
mov edx, ebx
xor r8d, r8d
mov r9d, 0x16330c59
call fcn.1400a8da0
mov eax, dword [0x1405429f4]
mov ecx, eax
xor ecx, 0xe25731bf
and eax, 0x625731bf
lea eax, [rcx + rax*2]
add ebx, eax
add ebx, 0xaf4818e
mov rax, qword [rdi + 0x398]
sub rax, qword [rdi + 0x390]
shr rax, 2
cmp ebx, eax
jl 0x14015cce0
mov rax, qword [rsi]
mov rax, qword [rax + 0x30]
mov rcx, rsi
call qword [case.0x14013008b.0]
xor edi, edi
mov eax, edi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret