Function at 0x140017d90
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
push rbp
push r13
sub rsp, 0x58
cmp byte [rcx + 8], 0
mov r13, r8
mov rbp, rcx
je 0x140006cd2
movzx eax, byte [rdx + 1]
movzx r8d, byte [rdx + 0xe]
shl eax, 0x10
mov qword [r11 + 8], rbx
movzx ebx, byte [rdx]
mov qword [r11 + 0x10], rsi
movzx esi, byte [rdx + 8]
mov qword [r11 + 0x20], rdi
movzx edi, byte [rdx + 4]
shl ebx, 0x18
or ebx, eax
shl edi, 0x18
movzx eax, byte [rdx + 2]
shl eax, 8
or ebx, eax
shl esi, 0x18
movzx eax, byte [rdx + 3]
or ebx, eax
shl r8d, 8
xor ebx, dword [rcx + 0x1ec]
movzx eax, byte [rdx + 5]
shl eax, 0x10
or edi, eax
mov qword [r11 - 0x20], r14
movzx eax, byte [rdx + 6]
lea r14, [0x140000000]
shl eax, 8
or edi, eax
mov qword [r11 - 0x28], r15
movzx eax, byte [rdx + 7]
movsxd r15, dword [rbp + 0x3d4]
or edi, eax
xor edi, dword [rcx + 0x1f0]
movzx eax, byte [rdx + 9]
shl eax, 0x10
or esi, eax
movzx eax, byte [rdx + 0xa]
shl eax, 8
or esi, eax
movzx eax, byte [rdx + 0xb]
or esi, eax
movzx eax, byte [rdx + 0xd]
xor esi, dword [rcx + 0x1f4]
movzx ecx, byte [rdx + 0xc]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [rdx + 0xf]
or r8d, eax
or r8d, ecx
xor r8d, dword [rbp + 0x1f8]
cmp r15, 1
jle 0x140006b00
mov qword [r11 - 0x18], r12
lea r14, [rbp + 0x214]
lea r12, [r15 - 1]
lea r13, [0x140000000]
nop dword [rax + rax]
movsxd r9, r8d
lea r14, [r14 + 0x20]
movsxd r11, ebx
movsxd r10, esi
mov rax, r11
sar rax, 0x18
movzx edx, al
mov rax, r9
sar rax, 0x10
movzx ecx, al
mov rax, r10
sar rax, 8
mov ebx, dword [r13 + rdx*4 + 0xb7c50]
movsxd r8, edi
xor ebx, dword [r13 + rcx*4 + 0xb7850]
movzx ecx, al
movzx eax, r8b
xor ebx, dword [r13 + rcx*4 + 0xb7450]
xor ebx, dword [r13 + rax*4 + 0xb7050]
mov rax, r11
xor ebx, dword [r14 - 0x28]
sar rax, 0x10
movzx edx, al
mov rax, r8
sar rax, 0x18
movzx ecx, al
mov rax, r9
sar rax, 8
mov edi, dword [r13 + rdx*4 + 0xb7850]
xor edi, dword [r13 + rcx*4 + 0xb7c50]
movzx ecx, al
movzx eax, r10b
xor edi, dword [r13 + rcx*4 + 0xb7450]
xor edi, dword [r13 + rax*4 + 0xb7050]
mov rax, r11
xor edi, dword [r14 - 0x24]
sar rax, 8
movzx edx, al
mov rax, r8
sar rax, 0x10
movzx ecx, al
mov rax, r10
sar r8, 8
mov esi, dword [r13 + rdx*4 + 0xb7450]
sar rax, 0x18
xor esi, dword [r13 + rcx*4 + 0xb7850]
movzx ecx, al
movzx eax, r9b
sar r9, 0x18
sar r10, 0x10
xor esi, dword [r13 + rcx*4 + 0xb7c50]
xor esi, dword [r13 + rax*4 + 0xb7050]
xor esi, dword [r14 - 0x20]
movzx ecx, r8b
movzx eax, r9b
mov r8d, dword [r13 + rcx*4 + 0xb7450]
xor r8d, dword [r13 + rax*4 + 0xb7c50]
movzx eax, r10b
xor r8d, dword [r13 + rax*4 + 0xb7850]
movzx eax, r11b
xor r8d, dword [r13 + rax*4 + 0xb7050]
xor r8d, dword [r14 - 0x1c]
sub r12, 1
jne 0x1400069c0
mov r13, qword [rsp + 0x80]
lea r14, [0x140000000]
mov r12, qword [rsp + 0x50]
shl r15, 5
movsxd r10, r8d
movsxd r11, ebx
movsxd r9, esi
mov rax, r11
mov edx, dword [r15 + rbp + 0x1ec]
sar rax, 0x18
movzx ecx, al
mov eax, edx
sar eax, 0x18
movsxd r8, edi
xor al, byte [rcx + r14 + 0xb9050]
mov byte [r13], al
mov rax, r10
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r14 + 0xb9050]
mov byte [r13 + 1], al
mov rax, r9
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r14 + 0xb9050]
mov byte [r13 + 2], al
movzx eax, r8b
xor dl, byte [rax + r14 + 0xb9050]
mov rax, r8
sar rax, 0x18
movzx ecx, al
mov byte [r13 + 3], dl
mov edx, dword [r15 + rbp + 0x1f0]
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + r14 + 0xb9050]
mov byte [r13 + 4], al
mov rax, r11
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r14 + 0xb9050]
mov byte [r13 + 5], al
mov rax, r10
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r14 + 0xb9050]
mov byte [r13 + 6], al
movzx eax, r9b
xor dl, byte [rax + r14 + 0xb9050]
mov rax, r9
sar rax, 0x18
movzx ecx, al
mov byte [r13 + 7], dl
mov edx, dword [r15 + rbp + 0x1f4]
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + r14 + 0xb9050]
mov byte [r13 + 8], al
mov rax, r8
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r14 + 0xb9050]
mov byte [r13 + 9], al
mov rax, r11
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r14 + 0xb9050]
mov byte [r13 + 0xa], al
movzx eax, r10b
xor dl, byte [rax + r14 + 0xb9050]
mov byte [r13 + 0xb], dl
mov edx, dword [r15 + rbp + 0x1f8]
mov r15, qword [rsp + 0x40]
mov eax, edx
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
sar eax, 0x18
sar r10, 0x18
movzx ecx, r10b
sar r9, 0x10
sar r8, 8
xor al, byte [rcx + r14 + 0xb9050]
mov byte [r13 + 0xc], al
mov eax, edx
sar eax, 0x10
movzx ecx, r9b
xor al, byte [rcx + r14 + 0xb9050]
mov byte [r13 + 0xd], al
mov eax, edx
sar eax, 8
movzx ecx, r8b
xor al, byte [rcx + r14 + 0xb9050]
mov byte [r13 + 0xe], al
movzx eax, r11b
xor dl, byte [rax + r14 + 0xb9050]
mov r14, qword [rsp + 0x48]
mov byte [r13 + 0xf], dl
add rsp, 0x58
pop r13
pop rbp
ret
mov rdx, qword [0x1400ce7e8]
lea rcx, [rsp + 0x20]
call fcn.14001a130
lea rdx, [0x1400cb2c8]
lea rcx, [rsp + 0x20]
call fcn.140063d68
int3
mov qword [rsp + 0x18], r8
push rbx
push rsi
sub rsp, 0x78
cmp byte [rcx + 8], 0
mov rsi, r8
mov r9, rdx
mov rbx, rcx
je 0x1400180ef
mov eax, dword [rcx + 0x3d0]
cmp eax, 0x10
jne 0x140017dc4
add rsp, 0x78
pop rsi
pop rbx
jmp 0x1400068c0
mov qword [rsp + 0x98], rbp
cdq
mov qword [rsp + 0x68], r12
and edx, 3
add eax, edx
mov qword [rsp + 0x60], r13
sar eax, 2
xor ecx, ecx
movsxd rbp, eax
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
cmp ebp, 4
je 0x140017dfc
cmp ebp, 6
setne cl
inc rcx
shl rcx, 5
lea rax, [0x140000000]
mov qword [rsp + 0x70], rdi
lea r11, [rbx + 0x458]
mov r8, r11
mov r13, rbp
mov r14d, dword [rcx + rax + 0xb5fdc]
mov r15d, dword [rcx + rax + 0xb5fe4]
mov ecx, dword [rcx + rax + 0xb5fec]
mov dword [rsp + 0x90], ecx
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0xa8], r15d
test ebp, ebp
jle 0x140017eb0
lea r10, [rbx + 0x1ec]
mov rdi, rbp
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9]
lea r9, [r9 + 4]
shl eax, 0x18
lea r10, [r10 + 4]
mov dword [r8], eax
movzx edx, byte [r9 - 3]
shl edx, 0x10
or edx, eax
mov dword [r8], edx
movzx ecx, byte [r9 - 2]
shl ecx, 8
or ecx, edx
mov rdx, r8
mov dword [r8], ecx
movzx eax, byte [r9 - 1]
or eax, ecx
mov dword [r8], eax
add r8, 4
xor eax, dword [r10 - 4]
mov dword [rdx], eax
sub rdi, 1
jne 0x140017e60
mov ecx, dword [rsp + 0x90]
mov r12d, 1
cmp dword [rbx + 0x3d4], r12d
jle 0x140017ff5
lea eax, [rbp*4]
mov r15, 0xfffffffffffffdb4
cdqe
lea rdx, [rbx + 0x438]
mov qword [rsp + 0x28], rax
nop
test r13, r13
jle 0x140017fa5
mov r10d, dword [rsp + 0xa8]
mov rsi, r11
sub r10d, r14d
mov r11d, ecx
sub r11d, r14d
mov edi, r14d
lea r14, [0x140000000]
nop word [rax + rax]
lea eax, [rdi + r10]
cdq
lea rsi, [rsi + 4]
idiv ebp
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
lea eax, [rdi + r11]
cdq
sar rcx, 8
idiv ebp
movzx r8d, cl
movsxd rax, edx
mov r9d, dword [r14 + r8*4 + 0xb7450]
movzx ecx, byte [rbx + rax*4 + 0x458]
mov eax, edi
cdq
inc edi
idiv ebp
xor r9d, dword [r14 + rcx*4 + 0xb7050]
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [r14 + rax*4 + 0xb7850]
movzx eax, byte [rsi - 1]
xor r9d, dword [r14 + rax*4 + 0xb7c50]
xor r9d, dword [r15 + rsi - 4]
mov dword [rsi - 0x24], r9d
sub r13, 1
jne 0x140017f10
mov r14d, dword [rsp + 0x20]
lea r11, [rbx + 0x458]
mov rax, qword [rsp + 0x28]
lea rdx, [rbx + 0x438]
mov r13, rbp
mov r8, rax
mov rcx, r11
call fcn.140062140
mov ecx, dword [rsp + 0x90]
lea r11, [rbx + 0x458]
mov rax, qword [rsp + 0x28]
lea rdx, [rbx + 0x438]
inc r12d
add r15, 0x20
cmp r12d, dword [rbx + 0x3d4]
jl 0x140017ee0
mov rsi, qword [rsp + 0xa0]
lea r11, [rbx + 0x458]
mov r15d, dword [rsp + 0xa8]
mov r12, qword [rsp + 0x68]
test r13, r13
jle 0x1400180cc
mov r10d, dword [rsp + 0x90]
lea rdi, [0x140000000]
sub r10d, r15d
sub r14d, r15d
xor r9d, r9d
nop dword [rax + rax]
movsxd rax, dword [rbx + 0x3d4]
lea rsi, [rsi + 4]
lea r11, [r11 + 4]
lea rcx, [r9 + rax*8]
inc r9
mov r8d, dword [rbx + rcx*4 + 0x1ec]
mov eax, r8d
movzx ecx, byte [r11 - 1]
sar eax, 0x18
xor al, byte [rcx + rdi + 0xb9050]
mov byte [rsi - 4], al
lea eax, [r14 + r15]
cdq
idiv ebp
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
mov eax, r8d
sar eax, 0x10
sar rcx, 0x10
movzx edx, cl
xor al, byte [rdx + rdi + 0xb9050]
mov byte [rsi - 3], al
mov eax, r15d
cdq
idiv ebp
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
mov eax, r8d
sar eax, 8
sar rcx, 8
movzx edx, cl
xor al, byte [rdx + rdi + 0xb9050]
mov byte [rsi - 2], al
lea eax, [r10 + r15]
cdq
inc r15d
idiv ebp
movsxd rax, edx
movzx ecx, byte [rbx + rax*4 + 0x458]
xor r8b, byte [rcx + rdi + 0xb9050]
mov byte [rsi - 1], r8b
cmp r9, r13
jl 0x140018020
mov rdi, qword [rsp + 0x70]
mov r13, qword [rsp + 0x60]
mov r14, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x98]
mov r15, qword [rsp + 0x50]
add rsp, 0x78
pop rsi
pop rbx
ret
mov rdx, qword [0x1400ce7e8]
lea rcx, [rsp + 0x38]
call fcn.14001a130
lea rdx, [0x1400cb2c8]
lea rcx, [rsp + 0x38]
call fcn.140063d68
int3