Function at 0x1400994e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r13
push r14
push r15
movzx eax, byte [rdx + 1]
lea r14, [0x140000000]
movzx ebx, byte [rdx]
mov r11, rdx
movzx r9d, byte [rdx + 2]
mov rbp, rcx
movzx edi, byte [rdx + 4]
mov r13, r8
movzx r10d, byte [rdx + 3]
movzx esi, byte [r11 + 8]
movsxd r15, dword [rbp + 0x3c8]
shl ebx, 8
or ebx, eax
shl edi, 8
movzx eax, byte [rdx + 5]
or edi, eax
shl esi, 8
movzx eax, byte [r11 + 9]
or esi, eax
shl ebx, 8
movzx eax, byte [r11 + 0xc]
or ebx, r9d
shl eax, 8
shl edi, 8
shl esi, 8
shl ebx, 8
or ebx, r10d
xor ebx, dword [rcx]
movzx ecx, byte [rdx + 6]
movzx edx, byte [rdx + 7]
or edi, ecx
movzx ecx, byte [r11 + 0xa]
or esi, ecx
shl edi, 8
movzx ecx, byte [r11 + 0xd]
or edi, edx
movzx edx, byte [r11 + 0xb]
or eax, ecx
movzx ecx, byte [r11 + 0xe]
xor edi, dword [rbp + 4]
shl eax, 8
or eax, ecx
shl esi, 8
movzx ecx, byte [r11 + 0xf]
or esi, edx
xor esi, dword [rbp + 8]
shl eax, 8
or eax, ecx
xor eax, dword [rbp + 0xc]
cmp r15, 1
jle 0x140098f0d
mov qword [rsp + 0x30], r12
lea r14, [rbp + 0x28]
lea r12, [r15 - 1]
lea r13, [0x140000000]
nop
movsxd r10, eax
lea r14, [r14 + 0x20]
movsxd r8, ebx
movsxd r9, edi
mov rax, r8
sar rax, 0x18
movzx edx, al
mov rax, r9
sar rax, 0x10
movzx ecx, al
movsxd r11, esi
mov ebx, dword [r13 + rdx*4 + 0x188260]
mov rax, r11
sar rax, 8
xor ebx, dword [r13 + rcx*4 + 0x189b80]
movzx ecx, al
movzx eax, r10b
xor ebx, dword [r13 + rcx*4 + 0x189380]
xor ebx, dword [r13 + rax*4 + 0x188b60]
mov rax, r9
xor ebx, dword [r14 - 0x28]
sar rax, 0x18
movzx edx, al
mov rax, r11
sar rax, 0x10
movzx ecx, al
mov rax, r10
sar rax, 8
mov edi, dword [r13 + rdx*4 + 0x188260]
xor edi, dword [r13 + rcx*4 + 0x189b80]
movzx ecx, al
movzx eax, r8b
xor edi, dword [r13 + rcx*4 + 0x189380]
xor edi, dword [r13 + rax*4 + 0x188b60]
mov rax, r8
xor edi, dword [r14 - 0x24]
sar rax, 8
movzx edx, al
mov rax, r11
sar rax, 0x18
movzx ecx, al
mov rax, r10
sar rax, 0x10
mov esi, dword [r13 + rdx*4 + 0x189380]
sar r8, 0x10
xor esi, dword [r13 + rcx*4 + 0x188260]
movzx ecx, al
movzx eax, r9b
sar r9, 8
sar r10, 0x18
xor esi, dword [r13 + rcx*4 + 0x189b80]
xor esi, dword [r13 + rax*4 + 0x188b60]
xor esi, dword [r14 - 0x20]
movzx ecx, r9b
movzx eax, r8b
mov eax, dword [r13 + rax*4 + 0x189b80]
xor eax, dword [r13 + rcx*4 + 0x189380]
movzx ecx, r10b
xor eax, dword [r13 + rcx*4 + 0x188260]
movzx ecx, r11b
xor eax, dword [r13 + rcx*4 + 0x188b60]
xor eax, dword [r14 - 0x1c]
sub r12, 1
jne 0x140098dd0
mov r12, qword [rsp + 0x30]
lea r14, [0x140000000]
mov r13, qword [rsp + 0x40]
movsxd r9, eax
movsxd rbx, ebx
movsxd r11, edi
mov rcx, rbx
sar rcx, 0x18
movzx edx, cl
movsxd r10, esi
shl r15, 5
add r15, rbp
movzx eax, r9b
mov r8d, dword [r15]
mov ecx, r8d
sar ecx, 0x18
xor cl, byte [rdx + r14 + 0x18a3e0]
mov byte [r13], cl
mov rcx, r11
sar rcx, 0x10
movzx edx, cl
mov ecx, r8d
sar ecx, 0x10
xor cl, byte [rdx + r14 + 0x18a3e0]
mov byte [r13 + 1], cl
mov rcx, r10
sar rcx, 8
movzx edx, cl
mov ecx, r8d
xor r8b, byte [rax + r14 + 0x18a3e0]
mov rax, r11
sar rax, 0x18
sar ecx, 8
xor cl, byte [rdx + r14 + 0x18a3e0]
mov byte [r13 + 2], cl
movzx ecx, al
mov byte [r13 + 3], r8b
mov edx, dword [r15 + 4]
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + r14 + 0x18a3e0]
mov byte [r13 + 4], al
mov rax, r10
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r14 + 0x18a3e0]
mov byte [r13 + 5], al
mov rax, r9
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r14 + 0x18a3e0]
mov byte [r13 + 6], al
movzx eax, bl
xor dl, byte [rax + r14 + 0x18a3e0]
mov rax, r10
sar rax, 0x18
movzx ecx, al
mov byte [r13 + 7], dl
mov edx, dword [r15 + 8]
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + r14 + 0x18a3e0]
mov byte [r13 + 8], al
mov rax, r9
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r14 + 0x18a3e0]
mov byte [r13 + 9], al
mov rax, rbx
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r14 + 0x18a3e0]
mov byte [r13 + 0xa], al
movzx eax, r11b
xor dl, byte [rax + r14 + 0x18a3e0]
mov byte [r13 + 0xb], dl
mov edx, dword [r15 + 0xc]
mov eax, edx
mov rbp, qword [rsp + 0x48]
sar eax, 0x18
sar rbx, 0x10
sar r9, 0x18
movzx ecx, r9b
sar r11, 8
xor al, byte [rcx + r14 + 0x18a3e0]
mov byte [r13 + 0xc], al
mov eax, edx
sar eax, 0x10
movzx ecx, bl
mov rbx, qword [rsp + 0x38]
xor al, byte [rcx + r14 + 0x18a3e0]
mov byte [r13 + 0xd], al
mov eax, edx
sar eax, 8
movzx ecx, r11b
xor al, byte [rcx + r14 + 0x18a3e0]
mov byte [r13 + 0xe], al
movzx eax, r10b
xor dl, byte [rax + r14 + 0x18a3e0]
mov byte [r13 + 0xf], dl
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov qword [rsp + 0x18], r8
push rbx
push r15
sub rsp, 0x68
mov eax, dword [rcx + 0x3c4]
mov r15, r8
mov r9, rdx
mov rbx, rcx
cmp eax, 0x10
jne 0x14009950c
add rsp, 0x68
pop r15
pop rbx
jmp 0x140098cf0
mov qword [rsp + 0x88], rbp
cdq
mov qword [rsp + 0x60], rsi
and edx, 3
mov qword [rsp + 0x58], rdi
add eax, edx
sar eax, 2
xor r10d, r10d
movsxd rdi, eax
mov eax, r10d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r14
cmp edi, 4
je 0x14009954d
cmp edi, 6
setne al
inc rax
shl rax, 5
lea r12, [0x140000000]
lea rbp, [rcx + 0x44c]
mov rsi, rdi
mov r8, rbp
mov r14d, dword [rax + r12 + 0x18a388]
mov r11d, dword [rax + r12 + 0x18a390]
mov r12d, dword [rax + r12 + 0x18a398]
mov dword [rsp + 0x98], r12d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x80], r11d
test edi, edi
jle 0x1400995e4
nop word [rax + rax]
movzx eax, byte [r9]
lea r9, [r9 + 4]
shl eax, 0x18
mov dword [r8], eax
movzx ecx, byte [r9 - 3]
shl ecx, 0x10
or ecx, eax
mov dword [r8], ecx
movzx edx, byte [r9 - 2]
shl edx, 8
or edx, ecx
mov rcx, r8
mov dword [r8], edx
add r8, 4
movzx eax, byte [r9 - 1]
or edx, eax
xor edx, dword [rbx + r10*4]
inc r10
mov dword [rcx], edx
cmp r10, rdi
jl 0x1400995a0
mov r13d, 1
cmp dword [rbx + 0x3c8], r13d
jle 0x140099726
lea eax, [rdi*4]
mov ebp, 0x40c
cdqe
mov r15d, r11d
mov qword [rsp + 0x38], rax
lea rax, [rbx + 0x20]
mov qword [rsp + 0x28], rax
test rsi, rsi
jle 0x1400996cd
mov r11d, dword [rsp + 0x98]
mov r10d, r15d
sub r10d, r14d
mov r12d, r14d
sub r11d, r14d
mov r15, rsi
lea r14, [0x140000000]
mov rsi, rax
lea eax, [r12 + r10]
cdq
lea rsi, [rsi + 4]
idiv edi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x44c]
lea eax, [r12 + r11]
cdq
sar rcx, 8
idiv edi
movzx r8d, cl
movsxd rax, edx
mov r9d, dword [r14 + r8*4 + 0x189380]
movzx ecx, byte [rbx + rax*4 + 0x44c]
mov eax, r12d
cdq
inc r12d
idiv edi
xor r9d, dword [r14 + rcx*4 + 0x188b60]
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x44c]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [r14 + rax*4 + 0x189b80]
movzx eax, byte [rsi + rbp + 0x1f]
xor r9d, dword [r14 + rax*4 + 0x188260]
xor r9d, dword [rsi - 4]
mov dword [rsi + rbp - 4], r9d
sub r15, 1
jne 0x140099640
mov r14d, dword [rsp + 0x20]
mov rsi, rdi
mov r15d, dword [rsp + 0x80]
mov r8, qword [rsp + 0x38]
lea rdx, [rbx + 0x42c]
lea rcx, [rbx + 0x44c]
call fcn.1400e09b3
mov rax, qword [rsp + 0x28]
inc r13d
add rax, 0x20
sub rbp, 0x20
mov qword [rsp + 0x28], rax
cmp r13d, dword [rbx + 0x3c8]
jl 0x140099616
mov r15, qword [rsp + 0x90]
lea rbp, [rbx + 0x44c]
mov r11d, dword [rsp + 0x80]
mov r12d, dword [rsp + 0x98]
mov r13, qword [rsp + 0x48]
test rsi, rsi
jle 0x1400997fd
sub r14d, r11d
lea r10, [0x140000000]
sub r12d, r11d
xor r9d, r9d
nop dword [rax]
nop dword [rax + rax]
movsxd rax, dword [rbx + 0x3c8]
lea r15, [r15 + 4]
lea rbp, [rbp + 4]
lea rcx, [r9 + rax*8]
inc r9
mov r8d, dword [rbx + rcx*4]
mov eax, r8d
movzx ecx, byte [rbp - 1]
sar eax, 0x18
xor al, byte [rcx + r10 + 0x18a3e0]
mov byte [r15 - 4], al
lea eax, [r14 + r11]
cdq
idiv edi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x44c]
mov eax, r8d
sar eax, 0x10
sar rcx, 0x10
movzx edx, cl
xor al, byte [rdx + r10 + 0x18a3e0]
mov byte [r15 - 3], al
mov eax, r11d
cdq
idiv edi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x44c]
mov eax, r8d
sar eax, 8
sar rcx, 8
movzx edx, cl
xor al, byte [rdx + r10 + 0x18a3e0]
mov byte [r15 - 2], al
lea eax, [r12 + r11]
cdq
inc r11d
idiv edi
movsxd rax, edx
movzx ecx, byte [rbx + rax*4 + 0x44c]
xor r8b, byte [rcx + r10 + 0x18a3e0]
mov byte [r15 - 1], r8b
cmp r9, rsi
jl 0x140099750
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x88]
mov r14, qword [rsp + 0x40]
add rsp, 0x68
pop r15
pop rbx
ret