Function at 0x14015d260
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov r13, qword [rdx]
mov rax, r8
mov rsi, r8
mov r8d, r9d
mov rdi, rdx
mov r14, rcx
mov rcx, rax
xor edx, edx
lea r15, [r8 + rax]
call sub.ntdll.dll_memset
mov rax, qword [r14 + 0x18]
lea rcx, [rax + rax*2]
mov rax, qword [r14 + 0x10]
lea rcx, [rax + rcx*8]
cmp r13, rcx
jae 0x14015d4b7
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r12
nop
mov rbp, qword [r13]
test rbp, rbp
je 0x14015d474
cmp qword [str.system.posix_acl_default], 0
lea rbx, [0x14042d4e0]
je 0x14015d312
nop
mov rdx, qword [rbx + 8]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbp
call qword [sym.imp.ntdll.dll_strncmp]
test eax, eax
je 0x14015d430
add rbx, 0x10
cmp qword [rbx + 8], 0
jne 0x14015d2e0
mov r11d, dword [rsp + 0x78]
xor ebx, ebx
mov r9d, ebx
mov r8d, dword [r13 + 0x10]
xor eax, eax
or rcx, 0xffffffffffffffff
add r8d, 3
mov rdi, rbp
mov r12d, 0xfffffffc
repne scasb al, byte [rdi]
and r8d, 0xfffffffc
not rcx
mov eax, r8d
lea r10, [rcx - 1]
mov rcx, r15
sub rcx, rax
lea eax, [r10 + 0x13]
and rax, r12
lea rax, [rax + rsi + 4]
cmp rax, rcx
ja 0x14015d491
movzx eax, r11b
mov edx, ebx
test r9d, r9d
cmovne edx, eax
movzx eax, word [rsp + 0x80]
mov byte [rsi], r10b
sub ax, r8w
mov byte [rsi + 1], dl
mov dword [rsi + 4], ebx
sub ax, word [rsp + 0x70]
lea rdi, [rsi + 0x10]
movzx r8d, r10b
add ax, r15w
mov r15, rcx
mov rdx, rbp
mov word [rsi + 2], ax
mov eax, dword [r13 + 0x10]
mov rcx, rdi
mov dword [rsi + 8], eax
call sub.ntdll.dll_memcpy
mov r8d, dword [rsi + 8]
mov rdx, qword [r13 + 8]
mov rcx, r15
call sub.ntdll.dll_memcpy
cmp dword [rsp + 0x88], 0
je 0x14015d457
cmp byte [rsi], 0
mov edx, ebx
jbe 0x14015d3f0
movzx r8d, byte [rsi]
mov ecx, edx
mov eax, edx
add rdi, 1
shl eax, 5
shr ecx, 0x1b
mov edx, ecx
xor edx, eax
movsx eax, byte [rdi - 1]
xor edx, eax
sub r8, 1
jne 0x14015d3d2
cmp dword [rsi + 4], 0
jne 0x14015d42b
mov r8d, dword [rsi + 8]
test r8d, r8d
je 0x14015d42b
add r8d, 3
mov rdi, r15
shr r8d, 2
je 0x14015d42b
nop
mov ecx, edx
mov eax, edx
add rdi, 4
shr ecx, 0x10
shl eax, 0x10
mov edx, ecx
xor edx, eax
xor edx, dword [rdi - 4]
sub r8d, 1
jne 0x14015d410
mov dword [rsi + 0xc], edx
jmp 0x14015d45a
mov rdi, qword [rbx + 8]
mov r11d, dword [rbx]
xor eax, eax
or rcx, 0xffffffffffffffff
lea r9d, [rax + 1]
mov dword [rsp + 0x78], r11d
repne scasb al, byte [rdi]
xor ebx, ebx
not rcx
lea rbp, [rbp + rcx - 1]
jmp 0x14015d31c
mov dword [rsi + 0xc], ebx
movzx ecx, byte [rsi]
add ecx, 3
add rcx, 0x10
and rcx, r12
lea rax, [rcx + rcx*2]
prefetcht1 byte [rsi + rax*2]
add rsi, rcx
mov dword [rsi], ebx
mov rax, qword [r14 + 0x18]
add r13, 0x18
lea rcx, [rax + rax*2]
mov rax, qword [r14 + 0x10]
lea rcx, [rax + rcx*8]
cmp r13, rcx
jb 0x14015d2c0
mov rax, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
mov r12, qword [rsp + 0x20]
mov qword [rax], r13
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov qword [rdi], r13
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret