Function at 0x1800014c0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push r12
push r15
sub rsp, 0x68
mov rax, qword [0x1800548e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rdx
mov r12, rcx
movsxd rax, r8d
test r8d, r8d
jle 0x18000176c
mov qword [r11 + 0x18], rbx
mov qword [r11 - 0x18], rbp
mov qword [r11 - 0x20], rsi
mov qword [r11 - 0x28], rdi
mov qword [r11 - 0x30], r13
mov qword [r11 - 0x38], r14
lea r14, [rax - 1]
lea rcx, [r11 - 0x50]
mov rbp, r12
shr r14, 4
sub rbp, rcx
mov r13, rdx
inc r14
nop
lea rsi, [r13 + 4]
lea rdx, [rsp + 0x29]
mov r8d, 4
mov rcx, rsi
movzx eax, byte [rcx - 4]
add rdx, 4
inc rcx
dec r8
mov byte [rdx - 5], al
movzx eax, byte [rcx - 1]
mov byte [rdx - 4], al
movzx eax, byte [rcx + 3]
mov byte [rdx - 3], al
movzx eax, byte [rcx + 7]
mov byte [rdx - 2], al
jne 0x180001532
xor edx, edx
nop dword [rax]
lea rcx, [rsp + rdx + 0x28]
inc rdx
movzx eax, byte [rcx + rbp + 0x2a8]
xor byte [rcx], al
movzx eax, byte [rcx + rbp + 0x2ac]
xor byte [rcx + 4], al
movzx eax, byte [rcx + rbp + 0x2b0]
xor byte [rcx + 8], al
movzx eax, byte [rcx + rbp + 0x2b4]
xor byte [rcx + 0xc], al
cmp rdx, 4
jl 0x180001560
mov edi, 9
lea rbx, [rbp + 0x29c]
nop word [rax + rax]
mov edx, 4
mov ecx, edx
nop word [rax + rax]
lea r9d, [rcx - 1]
mov eax, r9d
and eax, 0x80000003
jge 0x1800015d5
dec eax
or eax, 0xfffffffc
inc eax
cdqe
add rax, rdx
movzx r11d, byte [rsp + rax + 0x28]
mov eax, ecx
and eax, 0x80000003
jge 0x1800015f0
dec eax
or eax, 0xfffffffc
inc eax
cdqe
add rax, rdx
movzx r10d, byte [rsp + rax + 0x28]
lea eax, [rcx + 1]
and eax, 0x80000003
jge 0x18000160c
dec eax
or eax, 0xfffffffc
inc eax
cdqe
add rax, rdx
movzx r8d, byte [rsp + rax + 0x28]
lea eax, [rcx + 2]
and eax, 0x80000003
jge 0x180001628
dec eax
or eax, 0xfffffffc
inc eax
cdqe
add rax, rdx
add rdx, 4
movzx ecx, byte [rsp + rax + 0x28]
mov byte [rsp + rdx + 0x24], r11b
mov byte [rsp + rdx + 0x25], r10b
mov byte [rsp + rdx + 0x27], cl
mov byte [rsp + rdx + 0x26], r8b
mov ecx, r9d
cmp rdx, 0x10
jl 0x1800015c0
xor edx, edx
movzx eax, byte [rsp + rdx*4 + 0x28]
inc rdx
movzx ecx, byte [rax + r12 + 0x108]
movzx eax, byte [rsp + rdx*4 + 0x25]
mov byte [rsp + rdx*4 + 0x24], cl
movzx ecx, byte [rax + r12 + 0x108]
movzx eax, byte [rsp + rdx*4 + 0x26]
mov byte [rsp + rdx*4 + 0x25], cl
movzx ecx, byte [rax + r12 + 0x108]
movzx eax, byte [rsp + rdx*4 + 0x27]
mov byte [rsp + rdx*4 + 0x26], cl
movzx ecx, byte [rax + r12 + 0x108]
mov byte [rsp + rdx*4 + 0x27], cl
cmp rdx, 4
jl 0x180001658
xor edx, edx
nop dword [rax + rax]
lea rcx, [rsp + rdx + 0x28]
inc rdx
movzx eax, byte [rcx + rbx - 4]
xor byte [rcx], al
movzx eax, byte [rcx + rbx]
xor byte [rcx + 4], al
movzx eax, byte [rcx + rbx + 4]
xor byte [rcx + 8], al
movzx eax, byte [rcx + rbx + 8]
xor byte [rcx + 0xc], al
cmp rdx, 4
jl 0x1800016b0
test rdi, rdi
je 0x1800016eb
lea rcx, [rsp + 0x28]
call fcn.180001920
sub rbx, 0x10
dec rdi
jns 0x1800015b0
lea rdx, [rsp + 0x29]
mov r8d, 4
nop word [rax + rax]
movzx eax, byte [rdx - 1]
movzx ecx, byte [rdx + 1]
inc rsi
mov byte [rsi - 5], al
movzx eax, byte [rdx]
mov byte [rsi + 3], cl
movzx ecx, byte [rdx + 2]
mov byte [rsi - 1], al
add rdx, 4
dec r8
mov byte [rsi + 7], cl
jne 0x180001710
add r13, 0x10
dec r14
jne 0x180001520
mov rax, qword [rsp + 0x20]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x90]
jmp 0x18000176f
mov rax, rdx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800221a0
add rsp, 0x68
pop r15
pop r12
ret