Function at 0x140021ea0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r13, rdx
mov r14, rcx
mov rdi, rdx
shr rdi, 2
lea r12, [rdi + 6]
xor esi, esi
mov qword [rax - 0x58], rsi
mov qword [rax - 0x50], rsi
mov qword [rax - 0x48], rsi
mov qword [rax - 0x40], rsi
mov cl, 1
call fcn.14001ce70
mov qword [rsp + 0x78], rax
lea rdx, [r13 + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400bf580
nop
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov cl, 1
call fcn.14001ce70
mov qword [rsp + 0x58], rax
lea rdx, [r13 + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400bf580
nop
lea rax, [rdi - 4]
test rax, 0xfffffffffffffff9
jne 0x140022302
cmp rdi, 0xa
je 0x140022302
mov rbx, qword [rsp + 0x60]
test rdi, rdi
je 0x140021f91
mov rdx, rbx
sub r14, rbx
mov r8, rdi
nop word [rax + rax]
mov ecx, dword [r14 + rdx]
mov eax, ecx
ror eax, 8
rol ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor ecx, eax
mov dword [rdx], ecx
lea rdx, [rdx + 4]
dec r8
jne 0x140021f70
mov r10, rdi
lea rbp, [r12*4 + 4]
mov r15d, 4
lea r11, [0x140000000]
cmp rdi, rbp
jae 0x140022125
lea r14, [rdi*4]
lea r11, [rbx - 4]
add r11, r14
mov r13d, r15d
sub r13, r14
mov r9, rdi
neg r9
mov qword [rsp + 0x30], r9
lea rsi, [0x140000000]
nop dword [rax]
mov edx, dword [r11]
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx r8d, byte [rcx + rsi + 0x2fa260]
shl r8d, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + rsi + 0x2fa260]
or r8d, eax
shl r8d, 8
movzx eax, dl
movzx eax, byte [rax + rsi + 0x2fa260]
or r8d, eax
shl r8d, 8
shr edx, 0x18
movzx eax, dl
movzx eax, byte [rax + rsi + 0x2fa260]
or r8d, eax
lea rax, [r9 + r10]
xor edx, edx
div rdi
xor r8d, dword [rsi + rax*4 + 0x321860]
xor r8d, dword [r11 + r13]
mov dword [r11 + 4], r8d
mov eax, 1
cmp rax, rdi
je 0x140022105
lea rbp, [0x140000000]
lea rcx, [rax + r10]
lea rdx, [rbx + rcx*4]
mov rcx, rax
sub rcx, rdi
add rcx, r10
mov ecx, dword [rbx + rcx*4]
mov dword [rdx], ecx
cmp rdi, 8
jne 0x1400220e0
cmp rax, r15
jne 0x1400220e0
mov r8d, dword [r11 + 0x10]
mov ecx, r8d
shr ecx, 0x18
movzx edx, cl
movzx r9d, byte [rdx + rbp + 0x2fa260]
shl r9d, 8
mov ecx, r8d
shr ecx, 0x10
movzx edx, cl
movzx ecx, byte [rdx + rbp + 0x2fa260]
or r9d, ecx
shl r9d, 8
shr r8d, 8
movzx ecx, r8b
movzx ecx, byte [rcx + rbp + 0x2fa260]
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r11 + 0x10]
movzx ecx, byte [rcx + rbp + 0x2fa260]
or r9d, ecx
xor dword [r11 + 0x14], r9d
jmp 0x1400220e5
mov ecx, dword [rdx - 4]
xor dword [rdx], ecx
inc rax
cmp rax, rdi
jne 0x140022060
lea rbp, [r12*4 + 4]
mov r9, qword [rsp + 0x30]
lea rsi, [0x140000000]
add r10, rdi
add r11, r14
cmp r10, rbp
jb 0x140021fe0
xor esi, esi
mov r13, qword [rsp + 0xc8]
lea r11, [0x140000000]
mov r8, rsi
mov rdi, qword [rsp + 0x40]
test rbp, rbp
je 0x140022176
lea rcx, [rdi + 8]
mov rax, r12
shl rax, 4
lea rdx, [rbx + 8]
add rdx, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rdx - 8]
mov dword [rcx - 8], eax
mov eax, dword [rdx - 4]
mov dword [rcx - 4], eax
mov eax, dword [rdx]
mov dword [rcx], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 4], eax
add r8, r15
lea rcx, [rcx + 0x10]
lea rdx, [rdx - 0x10]
cmp r8, rbp
jne 0x140022150
lea rbp, [r13 + 0x18]
cmp r15, rbp
je 0x1400221f3
nop
mov r9d, dword [rdi + r15*4]
mov eax, r9d
shr eax, 0x18
movzx ecx, al
movzx edx, byte [rcx + r11 + 0x2fa260]
mov eax, r9d
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r11 + 0x2fa260]
mov r8d, dword [r11 + rdx*4 + 0x2f7860]
xor r8d, dword [r11 + rax*4 + 0x2f7c60]
shr r9d, 8
movzx eax, r9b
movzx ecx, byte [rax + r11 + 0x2fa260]
xor r8d, dword [r11 + rcx*4 + 0x2f8060]
movzx eax, byte [rdi + r15*4]
movzx ecx, byte [rax + r11 + 0x2fa260]
xor r8d, dword [r11 + rcx*4 + 0x2f8460]
mov dword [rdi + r15*4], r8d
inc r15
cmp r15, rbp
jne 0x140022180
add r12, r12
mov r10, qword [rsp + 0xe8]
mov r11, qword [rsp + 0xe0]
nop word [rax + rax]
mov rdx, qword [r11]
lea r9, [rsi + rbx]
mov ecx, dword [r9 + r12*8]
mov eax, ecx
ror eax, 8
rol ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor ecx, eax
mov dword [rsi + rdx], ecx
mov r8, qword [r10]
mov ecx, dword [r9]
mov eax, ecx
ror eax, 8
rol ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor ecx, eax
mov dword [rsi + r8], ecx
add rsi, 4
cmp rsi, 0x10
jne 0x140022210
mov rdx, rbp
mov r14, qword [rsp + 0xd0]
mov rcx, r14
call fcn.1400bf580
mov rdx, rbp
mov rsi, qword [rsp + 0xd8]
mov rcx, rsi
call fcn.1400bf580
mov r8, qword [r14 + 8]
lea r8, [r8*4]
mov rdx, rbx
mov rcx, qword [r14]
call fcn.140298710
mov r8, qword [rsi + 8]
lea r8, [r8*4]
mov rdx, rdi
mov rcx, qword [rsi]
call fcn.140298710
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400222d6
test rdi, rdi
je 0x1400222d6
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x1400222d6
mov rax, qword [rcx]
lea r8, [r8*4]
mov rdx, rdi
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140022325
test rbx, rbx
je 0x140022325
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x140022325
mov rax, qword [rcx]
lea r8, [r8*4]
mov rdx, rbx
call qword [rax + 8]
jmp 0x140022325
mov dword [rsp + 0x20], 0x17e1
lea r8, str.Botan::_anonymous_namespace::aes_key_schedule
lea rdx, str.Known_AES_key_size
lea rcx, str.X__4__X__6__X__8
call fcn.1400b6520
nop
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret