Function at 0x1401423d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xc0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rsp + 0x108], rbx
mov rax, qword [0x14026be10]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov qword [rbp - 0x61], r9
mov rbx, r8
mov qword [rbp - 0x59], rbx
mov r13, rcx
mov qword [rbp - 0x69], rcx
mov rsi, qword [rbp + 0x7f]
xor eax, eax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
lea r8, [0x1402074e0]
mov rdx, rsi
lea rcx, [rbp - 0x41]
call fcn.140071270
nop
mov eax, dword [rbx + 0x10]
cdq
and edx, 7
lea edi, [rdx + rax]
sar edi, 3
add rbx, 0x18
mov rcx, rbx
call fcn.140036f60
mov r14, rax
mov rcx, rbx
call fcn.1400372d0
cmp eax, edi
jae 0x14014247d
mov rax, qword [rsi]
lea rdx, str.Not_enough_key_material_for_twofish.
mov rcx, rsi
call qword [rax + 0x28]
xor bl, bl
jmp 0x140142a51
mov eax, edi
cdq
and edx, 7
lea r12d, [rdx + rax]
sar r12d, 3
test edi, edi
jle 0x14014249e
mov r8, rdi
mov rdx, r14
lea rcx, [rbp - 0x11]
call fcn.14016a920
lea r11, [0x140000000]
test r12d, r12d
jle 0x140142552
lea r9, [rbp - 0x27]
lea rax, [rbp - 0xb]
mov r10, r12
nop dword [rax]
movzx edx, byte [rax + 1]
movzx ecx, byte [rax - 1]
mov r8d, dword [r11 + rdx*4 + 0x2070e0]
xor r8d, dword [r11 + rcx*4 + 0x2068e0]
movzx ecx, byte [rax - 2]
xor r8d, dword [r11 + rcx*4 + 0x2064e0]
movzx ecx, byte [rax - 3]
xor r8d, dword [r11 + rcx*4 + 0x2060e0]
movzx ecx, byte [rax - 4]
xor r8d, dword [r11 + rcx*4 + 0x205ce0]
movzx ecx, byte [rax - 5]
xor r8d, dword [r11 + rcx*4 + 0x2058e0]
movzx ecx, byte [rax - 6]
xor r8d, dword [r11 + rcx*4 + 0x2054e0]
movzx ecx, byte [rax]
xor r8d, dword [r11 + rcx*4 + 0x206ce0]
mov ecx, r8d
shr ecx, 0x18
mov byte [r9 + 1], cl
mov ecx, r8d
shr ecx, 0x10
mov byte [r9], cl
mov ecx, r8d
shr ecx, 8
mov byte [r9 - 1], cl
mov byte [r9 - 2], r8b
lea r9, [r9 + 4]
lea rax, [rax + 8]
sub r10, 1
jne 0x1401424c0
xor esi, esi
mov r14d, esi
lea r15, [r13 + 0x10b0]
nop
movzx ebx, r14b
add bl, bl
mov byte [rbp - 0x49], bl
mov byte [rbp - 0x48], bl
mov byte [rbp - 0x47], bl
mov byte [rbp - 0x46], bl
mov dword [rsp + 0x20], esi
mov r9d, r12d
lea r8, [rbp - 0x11]
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x49]
call fcn.140143010
movzx edi, byte [rbp - 0x6e]
shl edi, 8
movzx eax, byte [rbp - 0x6f]
or edi, eax
shl edi, 8
movzx eax, byte [rbp - 0x70]
or edi, eax
shl edi, 8
movzx eax, byte [rbp - 0x71]
or edi, eax
inc bl
mov byte [rbp - 0x49], bl
mov byte [rbp - 0x48], bl
mov byte [rbp - 0x47], bl
mov byte [rbp - 0x46], bl
mov dword [rsp + 0x20], 1
mov r9d, r12d
lea r8, [rbp - 0x11]
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x49]
call fcn.140143010
movzx ecx, byte [rbp - 0x6e]
shl ecx, 8
movzx eax, byte [rbp - 0x6f]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp - 0x70]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp - 0x71]
or ecx, eax
rol ecx, 8
lea eax, [rcx + rdi]
mov dword [r15], eax
lea eax, [rdi + rcx*2]
rol eax, 9
mov dword [r15 + 4], eax
inc r14d
lea r15, [r15 + 8]
cmp r14d, 0x14
jl 0x140142560
mov r10d, 0x100
cmp r12d, 2
jne 0x140142733
lea r9, [r13 + 0x4b0]
mov r11, qword [rbp - 0x22]
mov rbx, qword [rbp - 0x23]
mov rdi, qword [rbp - 0x24]
mov r14, qword [rbp - 0x25]
mov r15, qword [rbp - 0x26]
mov r12, qword [rbp - 0x27]
lea r13, [0x140000000]
nop dword [rax]
movzx eax, sil
movzx edx, byte [rax + r13 + 0x2042e0]
movzx r8d, byte [rax + r13 + 0x2043e0]
movzx eax, byte [rbp - 0x29]
xor rax, rdx
movzx ecx, byte [rax + r13 + 0x2042e0]
movzx eax, r14b
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x2043e0]
mov eax, dword [r13 + rax*4 + 0x2044e0]
mov dword [r9 - 0x400], eax
movzx eax, byte [rbp - 0x28]
xor rax, r8
movzx ecx, byte [rax + r13 + 0x2042e0]
movzx eax, dil
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x2042e0]
mov eax, dword [r13 + rax*4 + 0x2048e0]
mov dword [r9], eax
movzx eax, r12b
xor rax, rdx
movzx ecx, byte [rax + r13 + 0x2043e0]
movzx eax, bl
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x2043e0]
mov eax, dword [r13 + rax*4 + 0x204ce0]
mov dword [r9 + 0x400], eax
movzx eax, r15b
xor rax, r8
movzx ecx, byte [rax + r13 + 0x2043e0]
movzx eax, r11b
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x2042e0]
mov eax, dword [r13 + rax*4 + 0x2050e0]
mov dword [r9 + 0x800], eax
inc rsi
lea r9, [r9 + 4]
sub r10, 1
jne 0x140142650
jmp 0x140142a04
lea r11, [r13 + 0x4b0]
lea r13, [0x140000000]
cmp r12d, 3
jne 0x140142883
mov rbx, qword [rbp - 0x1e]
mov rdi, qword [rbp - 0x1f]
mov r14, qword [rbp - 0x20]
mov r15, qword [rbp - 0x21]
mov r12, qword [rbp - 0x22]
nop
movzx eax, sil
movzx r9d, byte [rax + r13 + 0x2042e0]
movzx r8d, byte [rax + r13 + 0x2043e0]
movzx eax, byte [rbp - 0x29]
xor rax, r8
movzx ecx, byte [rax + r13 + 0x2042e0]
movzx eax, byte [rbp - 0x25]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2042e0]
movzx eax, r15b
xor rdx, rax
movzx eax, byte [rdx + r13 + 0x2043e0]
mov eax, dword [r13 + rax*4 + 0x2044e0]
mov dword [r11 - 0x400], eax
movzx eax, byte [rbp - 0x28]
xor rax, r8
movzx ecx, byte [rax + r13 + 0x2043e0]
movzx eax, byte [rbp - 0x24]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2042e0]
movzx eax, r14b
xor rdx, rax
movzx eax, byte [rdx + r13 + 0x2042e0]
mov eax, dword [r13 + rax*4 + 0x2048e0]
mov dword [r11], eax
movzx eax, byte [rbp - 0x27]
xor rax, r9
movzx ecx, byte [rax + r13 + 0x2042e0]
movzx eax, byte [rbp - 0x23]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2043e0]
movzx eax, dil
xor rdx, rax
movzx eax, byte [rdx + r13 + 0x2043e0]
mov eax, dword [r13 + rax*4 + 0x204ce0]
mov dword [r11 + 0x400], eax
movzx eax, byte [rbp - 0x26]
xor rax, r9
movzx ecx, byte [rax + r13 + 0x2043e0]
movzx eax, r12b
xor rcx, rax
movzx ecx, byte [rcx + r13 + 0x2043e0]
movzx eax, bl
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x2042e0]
mov eax, dword [r13 + rax*4 + 0x2050e0]
mov dword [r11 + 0x800], eax
inc rsi
lea r11, [r11 + 4]
sub r10, 1
jne 0x140142760
jmp 0x140142a04
mov rbx, qword [rbp - 0x1a]
mov rdi, qword [rbp - 0x1b]
mov r14, qword [rbp - 0x1c]
mov r15, qword [rbp - 0x1d]
mov r12, qword [rbp - 0x1e]
nop word [rax + rax]
movzx eax, sil
movzx r8d, byte [rax + r13 + 0x2042e0]
movzx r9d, byte [rax + r13 + 0x2043e0]
mov ecx, r9d
movzx eax, byte [rbp - 0x29]
xor rcx, rax
movzx ecx, byte [rcx + r13 + 0x2043e0]
movzx eax, byte [rbp - 0x25]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2042e0]
movzx eax, byte [rbp - 0x21]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2042e0]
movzx eax, r15b
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x2043e0]
mov eax, dword [r13 + rax*4 + 0x2044e0]
mov dword [r11 - 0x400], eax
mov ecx, r8d
movzx eax, byte [rbp - 0x28]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2043e0]
movzx eax, byte [rbp - 0x24]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2043e0]
movzx eax, byte [rbp - 0x20]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2042e0]
movzx eax, r14b
xor rdx, rax
movzx eax, byte [rdx + r13 + 0x2042e0]
mov eax, dword [r13 + rax*4 + 0x2048e0]
mov dword [r11], eax
movzx eax, byte [rbp - 0x27]
xor r8, rax
movzx ecx, byte [r8 + r13 + 0x2042e0]
movzx eax, byte [rbp - 0x23]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2042e0]
movzx eax, byte [rbp - 0x1f]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2043e0]
movzx eax, dil
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x2043e0]
mov eax, dword [r13 + rax*4 + 0x204ce0]
mov dword [r11 + 0x400], eax
movzx eax, byte [rbp - 0x26]
xor r9, rax
movzx ecx, byte [r9 + r13 + 0x2042e0]
movzx eax, byte [rbp - 0x22]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x2043e0]
movzx eax, r12b
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x2043e0]
movzx eax, bl
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x2042e0]
mov eax, dword [r13 + rax*4 + 0x2050e0]
mov dword [r11 + 0x800], eax
inc rsi
lea r11, [r11 + 4]
sub r10, 1
jne 0x1401428a0
mov r13, qword [rbp - 0x69]
mov rsi, qword [rbp - 0x61]
test rsi, rsi
je 0x140142a4f
mov rbx, qword [rbp - 0x59]
mov eax, dword [rbx + 8]
sub eax, 3
cmp eax, 1
ja 0x140142a4f
add rbx, 0x50
mov rcx, rbx
call fcn.1400372d0
mov edi, eax
mov rcx, rbx
call fcn.140036f60
mov rdx, rax
lea rcx, [rsi + 0x4a0]
mov r9d, dword [r13 + 0xa8]
mov r8d, edi
call fcn.14013ed70
mov bl, 1
lea rcx, [rbp - 0x41]
call fcn.140071380
movzx eax, bl
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140168e10
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret