Function at 0x1400b89b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push r14
push r15
sub rsp, 0x68
cmp byte [rcx + 8], 0
mov r15, r8
mov r14, rcx
je 0x1400b8987
mov qword [rax + 0x10], rbx
movzx ebx, byte [rdx]
mov qword [rax - 0x18], rbp
movzx ebp, byte [rdx + 0xe]
mov qword [rax - 0x20], rsi
movzx esi, byte [rdx + 8]
mov qword [rax - 0x28], rdi
movzx edi, byte [rdx + 4]
mov qword [rax - 0x30], r12
mov qword [rax - 0x38], r13
movzx eax, byte [rdx + 1]
movsxd r13, dword [r14 + 0x3d4]
shl eax, 0x10
shl ebx, 0x18
shl edi, 0x18
or ebx, eax
movzx eax, byte [rdx + 2]
shl esi, 0x18
shl eax, 8
shl ebp, 8
lea r12, [0x140000000]
or ebx, eax
movzx eax, byte [rdx + 3]
or ebx, eax
movzx eax, byte [rdx + 5]
xor ebx, dword [rcx + 0xc]
shl eax, 0x10
or edi, eax
movzx eax, byte [rdx + 6]
shl eax, 8
or edi, eax
movzx eax, byte [rdx + 7]
or edi, eax
movzx eax, byte [rdx + 9]
xor edi, dword [rcx + 0x10]
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 ebp, eax
or ebp, ecx
xor ebp, dword [r14 + 0x18]
cmp r13, 1
jle 0x1400b8782
lea r15, [r14 + 0x34]
lea r12, [r13 - 1]
lea r14, [0x140000000]
nop word [rax + rax]
movsxd r9, edi
movsxd r10, esi
movsxd r11, ebp
movsxd r8, ebx
mov rax, r9
lea r15, [r15 + 0x20]
sar rax, 0x18
movzx edx, al
mov rax, r10
mov edi, dword [r14 + rdx*4 + 0xeb310]
sar rax, 0x10
movzx ecx, al
mov rax, r11
xor edi, dword [r14 + rcx*4 + 0xeb710]
sar rax, 8
movzx ecx, al
movzx eax, r8b
xor edi, dword [r14 + rcx*4 + 0xebb10]
xor edi, dword [r14 + rax*4 + 0xebf10]
mov rax, r8
xor edi, dword [r15 - 0x24]
sar rax, 8
movzx edx, al
mov rax, r10
mov esi, dword [r14 + rdx*4 + 0xebb10]
sar rax, 0x18
movzx ecx, al
mov rax, r11
xor esi, dword [r14 + rcx*4 + 0xeb310]
sar rax, 0x10
movzx ecx, al
movzx eax, r9b
xor esi, dword [r14 + rcx*4 + 0xeb710]
xor esi, dword [r14 + rax*4 + 0xebf10]
mov rax, r8
sar r8, 0x18
xor esi, dword [r15 - 0x20]
sar rax, 0x10
movzx edx, al
mov rax, r9
sar r9, 0x10
mov ebp, dword [r14 + rdx*4 + 0xeb710]
sar rax, 8
movzx ecx, al
mov rax, r11
xor ebp, dword [r14 + rcx*4 + 0xebb10]
sar rax, 0x18
movzx ecx, al
movzx eax, r10b
sar r10, 8
xor ebp, dword [r14 + rcx*4 + 0xeb310]
movzx ecx, r8b
xor ebp, dword [r14 + rax*4 + 0xebf10]
mov ebx, dword [r14 + rcx*4 + 0xeb310]
movzx eax, r9b
xor ebx, dword [r14 + rax*4 + 0xeb710]
xor ebp, dword [r15 - 0x1c]
movzx eax, r10b
xor ebx, dword [r14 + rax*4 + 0xebb10]
movzx eax, r11b
xor ebx, dword [r14 + rax*4 + 0xebf10]
xor ebx, dword [r15 - 0x28]
dec r12
jne 0x1400b8640
mov r14, qword [rsp + 0x80]
mov r15, qword [rsp + 0x90]
lea r12, [0x140000000]
shl r13, 5
movsxd rbx, ebx
movsxd r10, esi
mov r8d, dword [r13 + r14 + 0xc]
movsxd r11, edi
movsxd r9, ebp
mov ecx, r8d
mov rax, rbx
sar rax, 0x18
sar ecx, 0x18
movzx edx, al
movzx eax, byte [rdx + r12 + 0xeb110]
xor al, cl
mov ecx, r8d
mov byte [r15], al
sar ecx, 0x10
mov rax, r11
sar rax, 0x10
movzx edx, al
movzx eax, byte [rdx + r12 + 0xeb110]
xor al, cl
mov ecx, r8d
mov byte [r15 + 1], al
sar ecx, 8
mov rax, r10
sar rax, 8
movzx edx, al
movzx eax, byte [rdx + r12 + 0xeb110]
xor al, cl
mov byte [r15 + 2], al
movzx eax, r9b
movzx eax, byte [rax + r12 + 0xeb110]
xor al, r8b
mov byte [r15 + 3], al
mov r8d, dword [r13 + r14 + 0x10]
mov rax, r11
sar rax, 0x18
mov ecx, r8d
movzx edx, al
sar ecx, 0x18
movzx eax, byte [rdx + r12 + 0xeb110]
xor al, cl
mov ecx, r8d
mov byte [r15 + 4], al
sar ecx, 0x10
mov rax, r10
sar rax, 0x10
movzx edx, al
movzx eax, byte [rdx + r12 + 0xeb110]
xor al, cl
mov ecx, r8d
mov byte [r15 + 5], al
sar ecx, 8
mov rax, r9
sar rax, 8
movzx edx, al
movzx eax, byte [rdx + r12 + 0xeb110]
xor al, cl
mov byte [r15 + 6], al
movzx eax, bl
movzx eax, byte [rax + r12 + 0xeb110]
xor al, r8b
mov byte [r15 + 7], al
mov r8d, dword [r13 + r14 + 0x14]
mov rax, r10
sar rax, 0x18
mov ecx, r8d
movzx edx, al
sar ecx, 0x18
movzx eax, byte [rdx + r12 + 0xeb110]
xor al, cl
mov ecx, r8d
mov byte [r15 + 8], al
mov rax, r9
sar ecx, 0x10
sar rax, 0x10
movzx edx, al
movzx eax, byte [rdx + r12 + 0xeb110]
xor al, cl
mov byte [r15 + 9], al
mov rax, rbx
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
sar rax, 8
sar rbx, 0x10
sar r9, 0x18
movzx edx, al
mov ecx, r8d
movzx eax, byte [rdx + r12 + 0xeb110]
sar ecx, 8
xor al, cl
mov byte [r15 + 0xa], al
movzx eax, r11b
sar r11, 8
movzx eax, byte [rax + r12 + 0xeb110]
xor al, r8b
mov byte [r15 + 0xb], al
mov edx, dword [r13 + r14 + 0x18]
mov r13, qword [rsp + 0x40]
movzx eax, r9b
mov ecx, edx
movzx eax, byte [rax + r12 + 0xeb110]
sar ecx, 0x18
xor al, cl
mov ecx, edx
mov byte [r15 + 0xc], al
sar ecx, 0x10
movzx eax, bl
movzx eax, byte [rax + r12 + 0xeb110]
mov rbx, qword [rsp + 0x88]
xor al, cl
mov ecx, edx
mov byte [r15 + 0xd], al
movzx eax, r11b
sar ecx, 8
movzx eax, byte [rax + r12 + 0xeb110]
xor al, cl
mov byte [r15 + 0xe], al
movzx eax, r10b
movzx eax, byte [rax + r12 + 0xeb110]
mov r12, qword [rsp + 0x48]
xor al, dl
mov byte [r15 + 0xf], al
add rsp, 0x68
pop r15
pop r14
ret
lea rdx, [0x14010a030]
lea rcx, [rsp + 0x20]
call fcn.1400d01c4
lea rdx, [0x140108b50]
lea rcx, [rsp + 0x20]
call fcn.1400cdcf8
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 0x1400b8d24
mov eax, dword [rcx + 0x3d0]
cmp eax, 0x10
jne 0x1400b89e8
add rsp, 0x80
pop rbx
jmp 0x1400b8550
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x78], rsi
cdq
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r12
and edx, 3
add eax, edx
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r14
sar eax, 2
mov qword [rsp + 0x50], r15
movsxd rsi, eax
xor eax, eax
cmp esi, 4
je 0x1400b8a29
cmp esi, 6
setne al
inc eax
lea rcx, [0x140000000]
cdqe
lea r15, [rbx + 0x458]
shl rax, 5
mov rdx, r15
mov rbp, rsi
mov r14d, dword [rax + rcx + 0xee338]
mov edi, dword [rax + rcx + 0xee340]
mov r13d, dword [rax + rcx + 0xee348]
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0xa8], edi
mov dword [rsp + 0x20], r13d
test esi, esi
jle 0x1400b8ac2
lea r8, [rbx + 0xc]
mov r10, rsi
nop word [rax + rax]
movzx eax, byte [r9]
mov rcx, rdx
add rdx, 4
shl eax, 0x18
lea r9, [r9 + 4]
lea r8, [r8 + 4]
mov dword [rdx - 4], eax
movzx eax, byte [r9 - 3]
shl eax, 0x10
or dword [rdx - 4], eax
movzx eax, byte [r9 - 2]
shl eax, 8
or dword [rdx - 4], eax
movzx eax, byte [r9 - 1]
or dword [rdx - 4], eax
mov eax, dword [r8 - 4]
xor dword [rcx], eax
dec r10
jne 0x1400b8a80
mov r12d, 1
mov dword [rsp + 0x90], r12d
cmp dword [rbx + 0x3d4], r12d
jle 0x1400b8c1c
lea eax, [rsi*4]
lea rcx, [rbx + 0x438]
mov edi, 0x40c
cdqe
lea r13, [rbx + 0x2c]
mov qword [rsp + 0x28], rax
nop dword [rax + rax]
test rbp, rbp
jle 0x1400b8bce
mov r10d, dword [rsp + 0xa8]
mov r11d, dword [rsp + 0x20]
mov ebp, r14d
sub r10d, r14d
sub r11d, r14d
mov r15, r13
mov r14, rsi
lea r12, [0x140000000]
nop dword [rax]
lea eax, [r10 + rbp]
lea r15, [r15 + 4]
cdq
idiv esi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
lea eax, [r11 + rbp]
cdq
sar rcx, 8
movzx r8d, cl
idiv esi
mov r9d, dword [r12 + r8*4 + 0xebb10]
movsxd rax, edx
movzx ecx, byte [rbx + rax*4 + 0x458]
mov eax, ebp
inc ebp
xor r9d, dword [r12 + rcx*4 + 0xebf10]
cdq
idiv esi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [r12 + rax*4 + 0xeb710]
movzx eax, byte [r15 + rdi + 0x1f]
xor r9d, dword [r12 + rax*4 + 0xeb310]
xor r9d, dword [r15 - 4]
mov dword [r15 + rdi - 4], r9d
dec r14
jne 0x1400b8b30
mov r14d, dword [rsp + 0x24]
mov r12d, dword [rsp + 0x90]
mov rax, qword [rsp + 0x28]
mov rbp, rsi
lea r15, [rbx + 0x458]
lea rcx, [rbx + 0x438]
mov rdx, rcx
mov r8, rax
mov rcx, r15
call fcn.1400cd790
mov rax, qword [rsp + 0x28]
inc r12d
add r13, 0x20
sub rdi, 0x20
mov dword [rsp + 0x90], r12d
lea rcx, [rbx + 0x438]
cmp r12d, dword [rbx + 0x3d4]
jl 0x1400b8b00
mov r11, qword [rsp + 0xa0]
mov edi, dword [rsp + 0xa8]
mov r13d, dword [rsp + 0x20]
mov r12, qword [rsp + 0x68]
test rbp, rbp
jle 0x1400b8cfa
sub r14d, edi
sub r13d, edi
lea r10, [0x140000000]
xor r9d, r9d
nop word [rax + rax]
movsxd rax, dword [rbx + 0x3d4]
lea r11, [r11 + 4]
lea r15, [r15 + 4]
lea rcx, [r9 + rax*8]
movzx eax, byte [r15 - 1]
inc r9
movzx eax, byte [rax + r10 + 0xeb110]
mov r8d, dword [rbx + rcx*4 + 0xc]
mov ecx, r8d
sar ecx, 0x18
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
movzx eax, byte [rax + r10 + 0xeb110]
sar ecx, 0x10
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
movzx eax, byte [rax + r10 + 0xeb110]
sar ecx, 8
xor al, cl
mov byte [r11 - 2], al
lea eax, [rdi + r13]
inc edi
cdq
idiv esi
movsxd rax, edx
movzx ecx, byte [rbx + rax*4 + 0x458]
movzx eax, byte [rcx + r10 + 0xeb110]
xor al, r8b
mov byte [r11 - 1], al
cmp r9, rbp
jl 0x1400b8c40
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x98]
mov r15, qword [rsp + 0x50]
add rsp, 0x80
pop rbx
ret
lea rdx, [0x14010a030]
lea rcx, [rsp + 0x30]
call fcn.1400d01c4
lea rdx, [0x140108b50]
lea rcx, [rsp + 0x30]
call fcn.1400cdcf8
int3