Function at 0x1400220e0
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.14001d0b0
mov qword [rsp + 0x78], rax
lea rdx, [r13 + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400bfba0
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.14001d0b0
mov qword [rsp + 0x58], rax
lea rdx, [r13 + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400bfba0
nop
lea rax, [rdi - 4]
test rax, 0xfffffffffffffff9
jne 0x140022542
cmp rdi, 0xa
je 0x140022542
mov rbx, qword [rsp + 0x60]
test rdi, rdi
je 0x1400221d1
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 0x1400221b0
mov r10, rdi
lea rbp, [r12*4 + 4]
mov r15d, 4
lea r11, [0x140000000]
cmp rdi, rbp
jae 0x140022365
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 + 0x313c70]
shl r8d, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + rsi + 0x313c70]
or r8d, eax
shl r8d, 8
movzx eax, dl
movzx eax, byte [rax + rsi + 0x313c70]
or r8d, eax
shl r8d, 8
shr edx, 0x18
movzx eax, dl
movzx eax, byte [rax + rsi + 0x313c70]
or r8d, eax
lea rax, [r9 + r10]
xor edx, edx
div rdi
xor r8d, dword [rsi + rax*4 + 0x345940]
xor r8d, dword [r11 + r13]
mov dword [r11 + 4], r8d
mov eax, 1
cmp rax, rdi
je 0x140022345
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 0x140022320
cmp rax, r15
jne 0x140022320
mov r8d, dword [r11 + 0x10]
mov ecx, r8d
shr ecx, 0x18
movzx edx, cl
movzx r9d, byte [rdx + rbp + 0x313c70]
shl r9d, 8
mov ecx, r8d
shr ecx, 0x10
movzx edx, cl
movzx ecx, byte [rdx + rbp + 0x313c70]
or r9d, ecx
shl r9d, 8
shr r8d, 8
movzx ecx, r8b
movzx ecx, byte [rcx + rbp + 0x313c70]
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r11 + 0x10]
movzx ecx, byte [rcx + rbp + 0x313c70]
or r9d, ecx
xor dword [r11 + 0x14], r9d
jmp 0x140022325
mov ecx, dword [rdx - 4]
xor dword [rdx], ecx
inc rax
cmp rax, rdi
jne 0x1400222a0
lea rbp, [r12*4 + 4]
mov r9, qword [rsp + 0x30]
lea rsi, [0x140000000]
add r10, rdi
add r11, r14
cmp r10, rbp
jb 0x140022220
xor esi, esi
mov r13, qword [rsp + 0xc8]
lea r11, [0x140000000]
mov r8, rsi
mov rdi, qword [rsp + 0x40]
test rbp, rbp
je 0x1400223b6
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 0x140022390
lea rbp, [r13 + 0x18]
cmp r15, rbp
je 0x140022433
nop
mov r9d, dword [rdi + r15*4]
mov eax, r9d
shr eax, 0x18
movzx ecx, al
movzx edx, byte [rcx + r11 + 0x313c70]
mov eax, r9d
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r11 + 0x313c70]
mov r8d, dword [r11 + rdx*4 + 0x311290]
xor r8d, dword [r11 + rax*4 + 0x311690]
shr r9d, 8
movzx eax, r9b
movzx ecx, byte [rax + r11 + 0x313c70]
xor r8d, dword [r11 + rcx*4 + 0x311a90]
movzx eax, byte [rdi + r15*4]
movzx ecx, byte [rax + r11 + 0x313c70]
xor r8d, dword [r11 + rcx*4 + 0x311e90]
mov dword [rdi + r15*4], r8d
inc r15
cmp r15, rbp
jne 0x1400223c0
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 0x140022450
mov rdx, rbp
mov r14, qword [rsp + 0xd0]
mov rcx, r14
call fcn.1400bfba0
mov rdx, rbp
mov rsi, qword [rsp + 0xd8]
mov rcx, rsi
call fcn.1400bfba0
mov r8, qword [r14 + 8]
lea r8, [r8*4]
mov rdx, rbx
mov rcx, qword [r14]
call fcn.1402b9d30
mov r8, qword [rsi + 8]
lea r8, [r8*4]
mov rdx, rdi
mov rcx, qword [rsi]
call fcn.1402b9d30
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140022516
test rdi, rdi
je 0x140022516
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x140022516
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 0x140022565
test rbx, rbx
je 0x140022565
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x140022565
mov rax, qword [rcx]
lea r8, [r8*4]
mov rdx, rbx
call qword [rax + 8]
jmp 0x140022565
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.1400b6760
nop
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret