Function at 0x1400be110
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
push rbp
push r13
sub rsp, 0x68
cmp byte [rcx + 8], 0
mov r13, r8
mov rbp, rcx
je 0x1400bdc06
movzx eax, byte [rdx + 1]
movzx r9d, 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 r9d, 8
xor ebx, dword [rcx + 0xc]
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 + 0x10]
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 + 0x14]
movzx ecx, byte [rdx + 0xc]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [rdx + 0xf]
or r9d, eax
or r9d, ecx
xor r9d, dword [rbp + 0x18]
cmp r15, 1
jle 0x1400bda00
mov qword [r11 - 0x18], r12
lea r14, [rbp + 0x34]
lea r12, [r15 - 1]
lea r13, [0x140000000]
nop dword [rax]
movsxd r10, r9d
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 + 0xf7480]
mov rax, r11
sar rax, 8
xor ebx, dword [r13 + rcx*4 + 0xf7880]
movzx ecx, al
movzx eax, r10b
xor ebx, dword [r13 + rcx*4 + 0xf7c80]
xor ebx, dword [r13 + rax*4 + 0xf8080]
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 + 0xf7480]
xor edi, dword [r13 + rcx*4 + 0xf7880]
movzx ecx, al
movzx eax, r8b
xor edi, dword [r13 + rcx*4 + 0xf7c80]
xor edi, dword [r13 + rax*4 + 0xf8080]
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 + 0xf7c80]
sar r8, 0x10
xor esi, dword [r13 + rcx*4 + 0xf7480]
movzx ecx, al
movzx eax, r9b
sar r9, 8
sar r10, 0x18
xor esi, dword [r13 + rcx*4 + 0xf7880]
xor esi, dword [r13 + rax*4 + 0xf8080]
xor esi, dword [r14 - 0x20]
movzx eax, r9b
movzx ecx, r8b
mov r9d, dword [r13 + rcx*4 + 0xf7880]
xor r9d, dword [r13 + rax*4 + 0xf7c80]
movzx eax, r10b
xor r9d, dword [r13 + rax*4 + 0xf7480]
movzx eax, r11b
xor r9d, dword [r13 + rax*4 + 0xf8080]
xor r9d, dword [r14 - 0x1c]
sub r12, 1
jne 0x1400bd8c0
mov r13, qword [rsp + 0x90]
lea r14, [0x140000000]
mov r12, qword [rsp + 0x60]
shl r15, 5
movsxd rbx, ebx
movsxd r10, esi
mov rax, rbx
sar rax, 0x18
mov r8d, dword [r15 + rbp + 0xc]
mov ecx, r8d
movzx edx, al
sar ecx, 0x18
movsxd r9, r9d
movsxd r11, edi
movzx eax, byte [rdx + r14 + 0xf7280]
xor al, cl
mov ecx, r8d
mov byte [r13], al
mov rax, r11
sar rax, 0x10
movzx edx, al
sar ecx, 0x10
movzx eax, byte [rdx + r14 + 0xf7280]
xor al, cl
mov ecx, r8d
mov byte [r13 + 1], al
mov rax, r10
sar rax, 8
movzx edx, al
sar ecx, 8
movzx eax, byte [rdx + r14 + 0xf7280]
xor al, cl
mov byte [r13 + 2], al
movzx eax, r9b
movzx eax, byte [rax + r14 + 0xf7280]
xor al, r8b
mov byte [r13 + 3], al
mov rax, r11
mov r8d, dword [r15 + rbp + 0x10]
mov ecx, r8d
sar rax, 0x18
movzx edx, al
sar ecx, 0x18
movzx eax, byte [rdx + r14 + 0xf7280]
xor al, cl
mov ecx, r8d
mov byte [r13 + 4], al
mov rax, r10
sar rax, 0x10
movzx edx, al
sar ecx, 0x10
movzx eax, byte [rdx + r14 + 0xf7280]
xor al, cl
mov ecx, r8d
mov byte [r13 + 5], al
mov rax, r9
sar rax, 8
movzx edx, al
sar ecx, 8
movzx eax, byte [rdx + r14 + 0xf7280]
xor al, cl
mov byte [r13 + 6], al
movzx eax, bl
movzx eax, byte [rax + r14 + 0xf7280]
xor al, r8b
mov byte [r13 + 7], al
mov rax, r10
mov r8d, dword [r15 + rbp + 0x14]
mov ecx, r8d
sar rax, 0x18
movzx edx, al
sar ecx, 0x18
movzx eax, byte [rdx + r14 + 0xf7280]
xor al, cl
mov ecx, r8d
mov byte [r13 + 8], al
mov rax, r9
sar rax, 0x10
movzx edx, al
sar ecx, 0x10
movzx eax, byte [rdx + r14 + 0xf7280]
xor al, cl
mov byte [r13 + 9], al
mov rax, rbx
mov rdi, qword [rsp + 0x98]
mov ecx, r8d
mov rsi, qword [rsp + 0x88]
sar rax, 8
movzx edx, al
sar ecx, 8
sar rbx, 0x10
sar r9, 0x18
movzx eax, byte [rdx + r14 + 0xf7280]
xor al, cl
mov byte [r13 + 0xa], al
movzx eax, r11b
sar r11, 8
movzx eax, byte [rax + r14 + 0xf7280]
xor al, r8b
mov byte [r13 + 0xb], al
mov edx, dword [r15 + rbp + 0x18]
mov ecx, edx
mov r15, qword [rsp + 0x50]
sar ecx, 0x18
movzx eax, r9b
movzx eax, byte [rax + r14 + 0xf7280]
xor al, cl
mov ecx, edx
mov byte [r13 + 0xc], al
sar ecx, 0x10
movzx eax, bl
mov rbx, qword [rsp + 0x80]
movzx eax, byte [rax + r14 + 0xf7280]
xor al, cl
mov ecx, edx
mov byte [r13 + 0xd], al
movzx eax, r11b
sar ecx, 8
movzx eax, byte [rax + r14 + 0xf7280]
xor al, cl
mov byte [r13 + 0xe], al
movzx eax, r10b
movzx eax, byte [rax + r14 + 0xf7280]
mov r14, qword [rsp + 0x58]
xor al, dl
mov byte [r13 + 0xf], al
add rsp, 0x68
pop r13
pop rbp
ret
lea rax, vtable.std::exception.0
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x38]
xor eax, eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov rax, qword [0x140116050]
mov qword [rsp + 0x20], rax
call fcn.1400d8d3c
lea rdx, [0x1401140e8]
lea rcx, [rsp + 0x30]
call fcn.1400d8308
int3
mov qword [rsp + 0x18], r8
push rbx
sub rsp, 0x80
cmp byte [rcx + 8], 0
mov r11, r8
mov r9, rdx
mov rbx, rcx
je 0x1400be473
mov eax, dword [rcx + 0x3d0]
cmp eax, 0x10
jne 0x1400be148
add rsp, 0x80
pop rbx
jmp 0x1400bd7d0
mov qword [rsp + 0x98], rbp
cdq
mov qword [rsp + 0x78], rsi
and edx, 3
mov qword [rsp + 0x70], rdi
add eax, edx
sar eax, 2
mov qword [rsp + 0x68], r12
movsxd rsi, eax
xor eax, eax
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
cmp esi, 4
je 0x1400be18a
cmp esi, 6
setne al
inc rax
shl rax, 5
lea rcx, [0x140000000]
lea r12, [rbx + 0x458]
mov r15, rsi
mov rdx, r12
mov r14d, dword [rax + rcx + 0xfa4a8]
mov edi, dword [rax + rcx + 0xfa4b0]
mov r13d, dword [rax + rcx + 0xfa4b8]
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0xa8], edi
mov dword [rsp + 0x20], r13d
test esi, esi
jle 0x1400be21f
lea r8, [rbx + 0xc]
mov r10, rsi
nop word [rax + rax]
movzx eax, byte [r9]
lea r9, [r9 + 4]
shl eax, 0x18
lea r8, [r8 + 4]
mov dword [rdx], eax
mov rcx, rdx
movzx eax, byte [r9 - 3]
shl eax, 0x10
or dword [rdx], eax
movzx eax, byte [r9 - 2]
shl eax, 8
or dword [rdx], eax
movzx eax, byte [r9 - 1]
or dword [rdx], eax
add rdx, 4
mov eax, dword [r8 - 4]
xor dword [rcx], eax
sub r10, 1
jne 0x1400be1e0
mov ebp, 1
mov dword [rsp + 0x90], ebp
cmp dword [rbx + 0x3d4], ebp
jle 0x1400be36e
lea eax, [rsi*4]
mov edi, 0x40c
cdqe
lea rcx, [rbx + 0x438]
mov qword [rsp + 0x28], rax
lea r13, [rbx + 0x2c]
test r15, r15
jle 0x1400be323
mov r10d, dword [rsp + 0xa8]
lea rbp, [0x140000000]
mov r11d, dword [rsp + 0x20]
sub r10d, r14d
sub r11d, r14d
mov r15d, r14d
mov r14, rsi
mov r12, r13
lea eax, [r15 + r10]
cdq
lea r12, [r12 + 4]
idiv esi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
lea eax, [r15 + r11]
cdq
sar rcx, 8
idiv esi
movzx r8d, cl
movsxd rax, edx
mov r9d, dword [rbp + r8*4 + 0xf7c80]
movzx ecx, byte [rbx + rax*4 + 0x458]
mov eax, r15d
cdq
inc r15d
idiv esi
xor r9d, dword [rbp + rcx*4 + 0xf8080]
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [rbp + rax*4 + 0xf7880]
movzx eax, byte [r12 + rdi + 0x1f]
xor r9d, dword [rbp + rax*4 + 0xf7480]
xor r9d, dword [r12 - 4]
mov dword [r12 + rdi - 4], r9d
sub r14, 1
jne 0x1400be281
mov r14d, dword [rsp + 0x24]
lea r12, [rbx + 0x458]
mov ebp, dword [rsp + 0x90]
lea rcx, [rbx + 0x438]
mov rax, qword [rsp + 0x28]
mov r15, rsi
mov rdx, rcx
mov r8, rax
mov rcx, r12
call fcn.1400d7ed0
mov rax, qword [rsp + 0x28]
lea rcx, [rbx + 0x438]
inc ebp
add r13, 0x20
sub rdi, 0x20
mov dword [rsp + 0x90], ebp
cmp ebp, dword [rbx + 0x3d4]
jl 0x1400be255
mov r11, qword [rsp + 0xa0]
mov edi, dword [rsp + 0xa8]
mov r13d, dword [rsp + 0x20]
mov rbp, qword [rsp + 0x98]
test r15, r15
jle 0x1400be44c
sub r14d, edi
lea r10, [0x140000000]
sub r13d, edi
xor r9d, r9d
nop
movsxd rax, dword [rbx + 0x3d4]
lea r11, [r11 + 4]
lea r12, [r12 + 4]
lea rcx, [r9 + rax*8]
movzx eax, byte [r12 - 1]
mov r8d, dword [rbx + rcx*4 + 0xc]
inc r9
mov ecx, r8d
sar ecx, 0x18
movzx eax, byte [rax + r10 + 0xf7280]
xor al, cl
mov byte [r11 - 4], al
lea eax, [r14 + rdi]
cdq
idiv esi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
sar rcx, 0x10
movzx eax, cl
mov ecx, r8d
sar ecx, 0x10
movzx eax, byte [rax + r10 + 0xf7280]
xor al, cl
mov byte [r11 - 3], al
mov eax, edi
cdq
idiv esi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
sar rcx, 8
movzx eax, cl
mov ecx, r8d
sar ecx, 8
movzx eax, byte [rax + r10 + 0xf7280]
xor al, cl
mov byte [r11 - 2], al
lea eax, [rdi + r13]
cdq
inc edi
idiv esi
movsxd rax, edx
movzx ecx, byte [rbx + rax*4 + 0x458]
movzx eax, byte [rcx + r10 + 0xf7280]
xor al, r8b
mov byte [r11 - 1], al
cmp r9, r15
jl 0x1400be390
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x50]
add rsp, 0x80
pop rbx
ret
lea rax, vtable.std::exception.0
mov byte [rsp + 0x30], 1
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x40]
xor eax, eax
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov rax, qword [0x140116050]
mov qword [rsp + 0x28], rax
call fcn.1400d8d3c
lea rdx, [0x1401140e8]
lea rcx, [rsp + 0x38]
call fcn.1400d8308
int3