Function at 0x1400a89e0
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
push rbx
push rsi
push r13
push r15
sub rsp, 0x68
mov eax, r8d
mov r13d, edx
mov rdx, qword [rsp + 0xb8]
mov r15d, r9d
mov esi, ecx
lea rbx, [rdx + rax*4]
cmp r9d, 1
ja 0x1400a8a1e
xor eax, eax
add rsp, 0x68
pop r15
pop r13
pop rsi
pop rbx
ret
mov r8d, dword [rsp + 0xb0]
mov ecx, r8d
mov qword [rsp + 0x90], rbp
mov ebp, 1
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], r12
lea r12, [rdx + 0x40000]
shl ebp, cl
lea r12, [r12 + rsi*4]
mov qword [rsp + 0x50], r14
mov r14d, dword [rsp + 0xc8]
mov dword [rsp + 0x40], ebp
cmp r15d, ebp
ja 0x1400a8c7b
cmp r15d, r14d
ja 0x1400a8c7b
mov ecx, dword [rbx]
lea rdi, [rdx + rsi*4]
xor eax, eax
add ecx, r13d
mov dword [rsp + 0xb8], eax
mov r11d, eax
mov eax, ecx
mov r9d, 1
sub eax, esi
cmp ecx, esi
cmovb eax, ecx
mov ecx, r8d
mov r15d, dword [r12 + rax*4]
mov eax, r15d
shl eax, cl
mov ecx, dword [rsp + 0xa8]
mov dword [rdi], eax
cmp ecx, r9d
jbe 0x1400a8c5f
mov r14d, dword [rsp + 0xb0]
lea r8, [rdi + 4]
mov r10, rbx
mov ebp, ecx
sub r10, rdi
nop word [rax + rax]
mov ecx, dword [r10 + r8]
lea r8, [r8 + 4]
add ecx, r13d
mov eax, ecx
sub eax, esi
cmp ecx, esi
cmovb eax, ecx
mov ecx, r14d
mov edx, dword [r12 + rax*4]
mov eax, edx
shl eax, cl
xor edx, r15d
or eax, r9d
or r11d, edx
inc r9d
mov dword [r8 - 4], eax
cmp r9d, ebp
jb 0x1400a8ad0
mov ebp, dword [rsp + 0x40]
lea r14, [rdi + 4]
test r11d, r11d
je 0x1400a8c58
mov r13d, dword [rsp + 0xa8]
mov rcx, rdi
mov edx, r13d
call fcn.1400bf650
mov edx, dword [rdi]
lea r15d, [rbp - 1]
mov esi, dword [rsp + 0xb0]
mov r11d, edx
mov r8d, dword [rsp + 0xa0]
mov ecx, esi
mov eax, r15d
mov ebp, r8d
and rax, rdx
shr r11d, cl
xor r9d, r9d
mov eax, dword [rbx + rax*4]
lea edx, [r9 + 1]
mov dword [rdi], eax
jmp 0x1400a8b68
mov r8d, dword [rsp + 0xa0]
mov r10d, dword [r14]
mov ecx, esi
mov eax, r10d
shr eax, cl
cmp eax, r11d
je 0x1400a8bcd
mov r11d, eax
lea ebp, [rdx + r8]
mov eax, r9d
lea r8, [rdi + rax*4]
mov eax, edx
sub eax, r9d
sub eax, 1
je 0x1400a8bc0
mov ecx, eax
and ecx, 0x3ff
or ecx, 0xfffff800
shl ecx, 0x14
or ecx, dword [r8]
mov dword [r8], ecx
cmp eax, 0x400
jb 0x1400a8bc0
and eax, 0xfffffc00
bts ecx, 0x1e
shl eax, 0xa
mov dword [r8], ecx
or dword [r8 + 4], eax
mov r8d, dword [rsp + 0xb8]
mov r9d, edx
jmp 0x1400a8bdb
mov r8d, 1
mov dword [rsp + 0xb8], r8d
mov ecx, r15d
inc edx
and rcx, r10
mov eax, dword [rbx + rcx*4]
mov dword [r14], eax
add r14, 4
mov dword [r12 + rax*4], ebp
cmp edx, r13d
jb 0x1400a8b60
mov eax, r9d
sub edx, r9d
mov rsi, r13
lea rcx, [rdi + rax*4]
sub edx, 1
je 0x1400a8c39
mov eax, edx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, dword [rcx]
mov dword [rcx], eax
cmp edx, 0x400
jb 0x1400a8c39
and edx, 0xfffffc00
bts eax, 0x1e
shl edx, 0xa
mov dword [rcx], eax
or dword [rcx + 4], edx
test r13d, r13d
je 0x1400a8c50
sub rdi, rbx
mov eax, dword [rdi + rbx]
mov dword [rbx], eax
lea rbx, [rbx + 4]
sub rsi, 1
jne 0x1400a8c41
mov eax, r8d
jmp 0x1400a8e2d
mov ecx, dword [rsp + 0xa8]
sub ecx, 1
je 0x1400a8e28
mov eax, ecx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, dword [rbx]
jmp 0x1400a8ce3
mov r10d, dword [rbx]
mov edx, 1
lea ecx, [r10 + r13]
mov eax, ecx
sub eax, esi
cmp ecx, esi
cmovb eax, ecx
mov r9d, dword [r12 + rax*4]
cmp edx, r15d
jae 0x1400a8cc3
lea r8, [rbx + 4]
nop dword [rax]
mov ecx, dword [r8]
add ecx, r13d
mov eax, ecx
sub eax, esi
cmp ecx, esi
cmovb eax, ecx
cmp dword [r12 + rax*4], r9d
jne 0x1400a8cc0
inc edx
add r8, 4
cmp edx, r15d
jb 0x1400a8ca0
cmp edx, r15d
jne 0x1400a8d08
lea ecx, [r15 - 1]
test ecx, ecx
je 0x1400a8e28
mov eax, ecx
and eax, 0x3ff
or eax, 0xfffff800
shl eax, 0x14
or eax, r10d
mov dword [rbx], eax
cmp ecx, 0x400
jb 0x1400a8e28
and ecx, 0xfffffc00
bts eax, 0x1e
shl ecx, 0xa
or dword [rbx + 4], ecx
mov dword [rbx], eax
jmp 0x1400a8e28
cmp r14d, 1
jbe 0x1400a8df1
mov r8d, dword [rsp + 0xc0]
xor ecx, ecx
nop dword [rax]
lea r9d, [r14 + 1]
mov eax, r15d
shr r9d, 1
mov edi, ecx
mov dword [rsp + 0xa8], r9d
lea ebp, [r9 + r8]
nop dword [rax + rax]
mov ecx, edi
mov r11d, dword [rbx + rcx*4]
lea r10, [rbx + rcx*4]
lea edx, [r11 + r13]
mov ecx, edx
sub ecx, esi
cmp edx, esi
cmovb ecx, edx
cmp dword [r12 + rcx*4], ebp
jb 0x1400a8d9d
dec eax
cmp eax, edi
jbe 0x1400a8da3
lea r8, [rbx + rax*4]
nop word [rax + rax]
mov r9d, dword [r8]
lea edx, [r9 + r13]
mov ecx, edx
sub ecx, esi
cmp edx, esi
cmovb ecx, edx
cmp dword [r12 + rcx*4], ebp
jb 0x1400a8d92
dec eax
sub r8, 4
cmp eax, edi
ja 0x1400a8d70
jmp 0x1400a8da3
mov dword [r10], r9d
mov dword [rbx + rax*4], r11d
cmp edi, eax
jae 0x1400a8da3
inc edi
cmp edi, eax
jb 0x1400a8d40
test edi, edi
jne 0x1400a8dc1
mov r8d, dword [rsp + 0xc0]
sub r8d, ebp
mov dword [rsp + 0xc0], ebp
add r14d, r8d
mov r8d, ebp
jmp 0x1400a8dda
cmp edi, r15d
jne 0x1400a8e4f
mov r14d, dword [rsp + 0xa8]
mov r8d, dword [rsp + 0xc0]
mov dword [rsp + 0xc8], r14d
mov ecx, 0
cmp r14d, 1
ja 0x1400a8d20
lea edx, [r15 - 1]
test edx, edx
je 0x1400a8e28
mov ecx, edx
and ecx, 0x3ff
or ecx, 0xfffff800
shl ecx, 0x14
or ecx, dword [rbx]
mov dword [rbx], ecx
cmp edx, 0x400
jb 0x1400a8e28
and edx, 0xfffffc00
bts ecx, 0x1e
shl edx, 0xa
or dword [rbx + 4], edx
mov dword [rbx], ecx
mov eax, 1
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x90]
mov r14, qword [rsp + 0x50]
add rsp, 0x68
pop r15
pop r13
pop rsi
pop rbx
ret
mov r8d, dword [rsp + 0xa0]
lea r14d, [r8 + rdi]
jae 0x1400a8e80
mov eax, edi
mov edx, r15d
sub edx, edi
lea rcx, [rbx + rax*4]
nop dword [rax + rax]
mov eax, dword [rcx]
lea rcx, [rcx + 4]
mov dword [r12 + rax*4], r14d
sub rdx, 1
jne 0x1400a8e70
mov eax, dword [rsp + 0xa8]
mov r9d, edi
mov r12d, dword [rsp + 0xc0]
mov edx, r13d
mov dword [rsp + 0x38], eax
mov ecx, esi
mov rax, qword [rsp + 0xb8]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x20], eax
call fcn.1400a89e0
mov ebx, eax
sub r12d, ebp
mov rax, qword [rsp + 0xb8]
sub r15d, edi
add r12d, dword [rsp + 0xc8]
mov r9d, r15d
mov dword [rsp + 0x38], r12d
mov r8d, r14d
mov dword [rsp + 0x30], ebp
mov edx, r13d
mov qword [rsp + 0x28], rax
mov ecx, esi
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x20], eax
call fcn.1400a89e0
or eax, ebx
jmp 0x1400a8e2d