Function at 0x1400cff40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rax, qword [rcx]
nop word cs:[rax + rax]
mov ecx, dword [0x141dd8228]
imul ecx, dword [0x141dd822c]
imul ecx, ecx, 0x8a16db9d
add ecx, 0x403594f2
or ecx, 0x9576489b
cmp ecx, 0xccaab565
jb 0x1400cff60
test rax, rax
je 0x1400d0240
cmp eax, 1
jne 0x1400d01a7
mov r13, qword [rsi + 8]
test r13, r13
je 0x1400d0240
lea r9, [rsi + 0x10]
mov rax, qword [rsi + 0x18]
xor r8d, r8d
mov qword [rsp + 0x20], r9
nop word cs:[rax + rax]
mov ecx, dword [0x141dd8248]
add ecx, dword [0x141dd824c]
or ecx, 0xb4ec84fc
cmp ecx, 0x30c9b7ba
jne 0x1400d0000
mov rcx, qword [r13 + 0x18]
lea rdx, [rcx + 0x20]
test rcx, rcx
cmove rdx, r9
mov qword [rsi + 8], rcx
mov qword [rdx], 0
lea rcx, [rax - 1]
mov qword [rsi + 0x18], rcx
nop dword [rax]
mov rdi, qword [r13 + 0x18]
mov qword [rsi + 8], rdi
lea rcx, [rdi + 0x20]
test rdi, rdi
cmove rcx, r9
mov qword [rcx], 0
lea rbp, [rax - 1]
mov qword [rsi + 0x18], rbp
test r8b, r8b
jne 0x1400d0000
mov rbx, qword [r13 + 8]
mov r12, qword [r13 + 0x10]
test r12, r12
je 0x1400d0060
mov r14, rbx
nop word [rax + rax]
mov rcx, r14
call fcn.1400ca8e0
add r14, 0x158
dec r12
jne 0x1400d0040
nop word cs:[rax + rax]
mov eax, dword [0x141dd8250]
sub eax, dword [0x141dd8254]
xor eax, 0xa13039fd
add eax, 0xe5779b5e
cmp eax, 0x29dde0a8
jb 0x1400d0060
mov rax, qword [r13]
mov ecx, dword [0x141dd8258]
or ecx, dword [0x141dd825c]
and ecx, 0x6fbb948b
add ecx, 0x5f913edf
cmp ecx, 0x2fceebc6
jb 0x1400d0081
test rax, rax
mov r15, qword [sym.imp.KERNEL32.dll_HeapFree]
je 0x1400d011c
mov r14, qword [0x141ddc4e0]
mov eax, dword [0x141dd8260]
imul eax, dword [0x141dd8264]
mov ecx, 0xa7ba4089
imul rax, rcx
shr rax, 0x3f
imul eax, eax, 0x39c772d7
cmp eax, 0x3c655f47
jne 0x1400d00e9
mov rcx, r14
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r15, qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x141dd8268]
xor eax, dword [0x141dd826c]
and eax, 0x75ec1cd7
imul r12d, eax, 0x94542f13
mov rcx, r14
xor edx, edx
mov r8, rbx
call r15
cmp r12d, 0x7ff8c1f1
je 0x1400d00f0
mov rbx, qword [0x141ddc4e0]
mov eax, dword [0x141dd8270]
imul eax, dword [0x141dd8274]
and eax, 0xe0ca0388
add eax, 0xc634348
cmp eax, 0x814941a5
jae 0x1400d0150
mov rcx, rbx
xor edx, edx
mov r8, r13
call r15
nop dword [rax]
mov eax, dword [0x141dd8278]
imul eax, dword [0x141dd827c]
xor eax, 0xeeee3176
imul r14, rax, 0x645eea4b
shr r14, 0x3e
xor r14d, 0xf872eccb
mov rcx, rbx
xor edx, edx
mov r8, r13
call r15
cmp r14d, 0x4bce3539
jb 0x1400d0150
mov r13, rdi
mov rax, rbp
test rdi, rdi
mov r8d, 0
mov r9, qword [rsp + 0x20]
jne 0x1400cffc0
jmp 0x1400d0240
mov rdi, qword [rsi + 8]
mov rsi, qword [rsi + 0x10]
mov rax, qword [rsi]
nop word cs:[rax + rax]
mov ecx, dword [0x141dd8230]
sub ecx, dword [0x141dd8234]
imul ecx, ecx, 0x8778f214
add ecx, 0x2c48f668
and ecx, 0xa239f89c
cmp ecx, 0x916fd120
ja 0x1400d01c0
test rax, rax
je 0x1400d01f0
mov rcx, rdi
call rax
mov eax, dword [0x141dd8238]
sub eax, dword [0x141dd823c]
xor eax, 0x48c13200
or eax, 0xa42a0cef
xor eax, 0x8303fb9e
cmp eax, 0xb936af6c
ja 0x1400d01f0
cmp qword [rsi + 8], 0
je 0x1400d0240
cmp qword [rsi + 0x10], 0x11
jb 0x1400d0224
mov rdi, qword [rdi - 8]
mov rcx, qword [0x141ddc4e0]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop word cs:[rax + rax]
mov eax, dword [0x141dd8240]
xor edx, edx
div dword [0x141dd8244]
add eax, 0x533476e0
and eax, 0x7d2d3bc6
cmp eax, 0x4289e02a
jb 0x1400d0240
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret