Function at 0x1402dc9f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb0
mov rax, qword [0x14040f040]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov qword [rbp - 0x51], r9
mov rbx, r8
mov qword [rbp - 0x49], rbx
mov r13, rcx
mov qword [rbp - 0x59], rcx
mov rsi, qword [rbp + 0x7f]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], rax
lea r8, [0x1403acec0]
mov rdx, rsi
lea rcx, [rbp - 0x39]
call fcn.14015bdd0
nop
mov eax, dword [rbx + 0x10]
cdq
and edx, 7
lea edi, [rdx + rax]
sar edi, 3
lea rcx, [rbx + 0x18]
call fcn.14014b520
mov r14, rax
lea rcx, [rbx + 0x18]
call fcn.14014b850
cmp eax, edi
jae 0x1402dca8e
mov rax, qword [rsi]
lea rdx, str.Not_enough_key_material_for_twofish.
mov rcx, rsi
call qword [rax + 0x28]
xor bl, bl
jmp 0x1402dd04e
mov eax, edi
cdq
and edx, 7
lea r12d, [rdx + rax]
sar r12d, 3
test edi, edi
jle 0x1402dcaaf
mov r8, rdi
mov rdx, r14
lea rcx, [rbp - 0x11]
call sub.VCRUNTIME140.dll_memcpy
lea r11, [0x140000000]
test r12d, r12d
jle 0x1402dcb62
lea r9, [rbp - 0x1f]
lea rax, [rbp - 0xb]
mov r10, r12
nop word [rax + rax]
movzx edx, byte [rax + 1]
movzx ecx, byte [rax - 1]
mov r8d, dword [r11 + rdx*4 + 0x3acac0]
xor r8d, dword [r11 + rcx*4 + 0x3ac2c0]
movzx ecx, byte [rax - 2]
xor r8d, dword [r11 + rcx*4 + 0x3abec0]
movzx ecx, byte [rax - 3]
xor r8d, dword [r11 + rcx*4 + 0x3abac0]
movzx ecx, byte [rax - 4]
xor r8d, dword [r11 + rcx*4 + 0x3ab6c0]
movzx ecx, byte [rax - 5]
xor r8d, dword [r11 + rcx*4 + 0x3ab2c0]
movzx ecx, byte [rax - 6]
xor r8d, dword [r11 + rcx*4 + 0x3aaec0]
movzx ecx, byte [rax]
xor r8d, dword [r11 + rcx*4 + 0x3ac6c0]
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 0x1402dcad0
xor esi, esi
mov r14d, esi
lea r15, [r13 + 0x10b4]
nop
movzx ebx, r14b
add bl, bl
mov byte [rbp - 0x41], bl
mov byte [rbp - 0x40], bl
mov byte [rbp - 0x3f], bl
mov byte [rbp - 0x3e], bl
mov dword [rsp + 0x20], esi
mov r9d, r12d
lea r8, [rbp - 0x11]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.1402dde10
movzx edi, byte [rbp - 0x5e]
shl edi, 8
movzx eax, byte [rbp - 0x5f]
or edi, eax
shl edi, 8
movzx eax, byte [rbp - 0x60]
or edi, eax
shl edi, 8
movzx eax, byte [rbp - 0x61]
or edi, eax
inc bl
mov byte [rbp - 0x41], bl
mov byte [rbp - 0x40], bl
mov byte [rbp - 0x3f], bl
mov byte [rbp - 0x3e], bl
mov dword [rsp + 0x20], 1
mov r9d, r12d
lea r8, [rbp - 0x11]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.1402dde10
movzx edx, byte [rbp - 0x5e]
shl edx, 8
movzx eax, byte [rbp - 0x5f]
or edx, eax
shl edx, 8
movzx eax, byte [rbp - 0x60]
or edx, eax
shl edx, 8
movzx eax, byte [rbp - 0x61]
or edx, eax
mov ecx, edx
shr ecx, 0x18
shl edx, 8
or ecx, edx
lea eax, [rcx + rdi]
mov dword [r15 - 4], eax
lea eax, [rdi + rcx*2]
mov ecx, eax
shl ecx, 9
shr eax, 0x17
or ecx, eax
mov dword [r15], ecx
inc r14d
lea r15, [r15 + 8]
cmp r14d, 0x14
jl 0x1402dcb70
lea r10, [r13 + 0x4b0]
mov r11d, 0x100
lea r13, [0x140000000]
cmp r12d, 2
jne 0x1402dcd56
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 + 0x3a9cc0]
movzx r9d, byte [rax + r13 + 0x3a9dc0]
mov ecx, r8d
movzx eax, byte [rbp - 0x21]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x3a9cc0]
movzx eax, r15b
xor rdx, rax
movzx eax, byte [rdx + r13 + 0x3a9dc0]
mov eax, dword [r13 + rax*4 + 0x3a9ec0]
mov dword [r10 - 0x400], eax
movzx eax, byte [rbp - 0x20]
xor rax, r9
movzx ecx, byte [rax + r13 + 0x3a9cc0]
movzx eax, r14b
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x3a9cc0]
mov eax, dword [r13 + rax*4 + 0x3aa2c0]
mov dword [r10], eax
movzx eax, byte [rbp - 0x1f]
xor rax, r8
movzx ecx, byte [rax + r13 + 0x3a9dc0]
movzx eax, dil
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x3a9dc0]
mov eax, dword [r13 + rax*4 + 0x3aa6c0]
mov dword [r10 + 0x400], eax
movzx eax, r12b
xor rax, r9
movzx ecx, byte [rax + r13 + 0x3a9dc0]
movzx eax, bl
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x3a9cc0]
mov eax, dword [r13 + rax*4 + 0x3aaac0]
mov dword [r10 + 0x800], eax
inc rsi
lea r10, [r10 + 4]
sub r11, 1
jne 0x1402dcc70
jmp 0x1402dd003
cmp r12d, 3
jne 0x1402dce9b
movzx ebx, byte [rbp - 0x16]
movzx edi, byte [rbp - 0x17]
movzx r14d, byte [rbp - 0x18]
mov r15, qword [rbp - 0x19]
mov r12, qword [rbp - 0x1a]
nop word [rax + rax]
movzx eax, sil
movzx r9d, byte [rax + r13 + 0x3a9cc0]
movzx r8d, byte [rax + r13 + 0x3a9dc0]
mov ecx, r8d
movzx eax, byte [rbp - 0x21]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x3a9cc0]
movzx eax, byte [rbp - 0x1d]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x3a9cc0]
movzx eax, r15b
xor rcx, rax
movzx eax, byte [rcx + r13 + 0x3a9dc0]
mov eax, dword [r13 + rax*4 + 0x3a9ec0]
mov dword [r10 - 0x400], eax
movzx eax, byte [rbp - 0x20]
xor rax, r8
movzx ecx, byte [rax + r13 + 0x3a9dc0]
movzx eax, byte [rbp - 0x1c]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x3a9cc0]
xor rdx, r14
movzx eax, byte [rdx + r13 + 0x3a9cc0]
mov eax, dword [r13 + rax*4 + 0x3aa2c0]
mov dword [r10], eax
movzx eax, byte [rbp - 0x1f]
xor rax, r9
movzx ecx, byte [rax + r13 + 0x3a9cc0]
movzx eax, byte [rbp - 0x1b]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x3a9dc0]
xor rdx, rdi
movzx eax, byte [rdx + r13 + 0x3a9dc0]
mov eax, dword [r13 + rax*4 + 0x3aa6c0]
mov dword [r10 + 0x400], eax
movzx eax, byte [rbp - 0x1e]
xor rax, r9
movzx ecx, byte [rax + r13 + 0x3a9dc0]
movzx eax, r12b
xor rcx, rax
movzx ecx, byte [rcx + r13 + 0x3a9dc0]
xor rcx, rbx
movzx eax, byte [rcx + r13 + 0x3a9cc0]
mov eax, dword [r13 + rax*4 + 0x3aaac0]
mov dword [r10 + 0x800], eax
inc rsi
lea r10, [r10 + 4]
sub r11, 1
jne 0x1402dcd80
jmp 0x1402dd003
movzx ebx, byte [rbp - 0x12]
movzx edi, byte [rbp - 0x13]
movzx r14d, byte [rbp - 0x14]
movzx r15d, byte [rbp - 0x15]
movzx r12d, byte [rbp - 0x16]
movzx eax, sil
movzx r8d, byte [rax + r13 + 0x3a9cc0]
movzx r9d, byte [rax + r13 + 0x3a9dc0]
mov ecx, r9d
movzx eax, byte [rbp - 0x21]
xor rcx, rax
movzx ecx, byte [rcx + r13 + 0x3a9dc0]
movzx eax, byte [rbp - 0x1d]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x3a9cc0]
movzx eax, byte [rbp - 0x19]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x3a9cc0]
xor rcx, r15
movzx eax, byte [rcx + r13 + 0x3a9dc0]
mov eax, dword [r13 + rax*4 + 0x3a9ec0]
mov dword [r10 - 0x400], eax
mov ecx, r8d
movzx eax, byte [rbp - 0x20]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x3a9dc0]
movzx eax, byte [rbp - 0x1c]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x3a9dc0]
movzx eax, byte [rbp - 0x18]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x3a9cc0]
xor rdx, r14
movzx eax, byte [rdx + r13 + 0x3a9cc0]
mov eax, dword [r13 + rax*4 + 0x3aa2c0]
mov dword [r10], eax
movzx eax, byte [rbp - 0x1f]
xor r8, rax
movzx ecx, byte [r8 + r13 + 0x3a9cc0]
movzx eax, byte [rbp - 0x1b]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x3a9cc0]
movzx eax, byte [rbp - 0x17]
xor rdx, rax
movzx ecx, byte [rdx + r13 + 0x3a9dc0]
xor rcx, rdi
movzx eax, byte [rcx + r13 + 0x3a9dc0]
mov eax, dword [r13 + rax*4 + 0x3aa6c0]
mov dword [r10 + 0x400], eax
movzx eax, byte [rbp - 0x1e]
xor r9, rax
movzx ecx, byte [r9 + r13 + 0x3a9cc0]
movzx eax, byte [rbp - 0x1a]
xor rcx, rax
movzx edx, byte [rcx + r13 + 0x3a9dc0]
xor rdx, r12
movzx ecx, byte [rdx + r13 + 0x3a9dc0]
xor rcx, rbx
movzx eax, byte [rcx + r13 + 0x3a9cc0]
mov eax, dword [r13 + rax*4 + 0x3aaac0]
mov dword [r10 + 0x800], eax
inc rsi
lea r10, [r10 + 4]
sub r11, 1
jne 0x1402dceb2
mov r13, qword [rbp - 0x59]
mov rsi, qword [rbp - 0x51]
test rsi, rsi
je 0x1402dd04c
mov rbx, qword [rbp - 0x49]
mov eax, dword [rbx + 8]
sub eax, 3
cmp eax, 1
ja 0x1402dd04c
lea rcx, [rbx + 0x50]
call fcn.14014b850
mov edi, eax
lea rcx, [rbx + 0x50]
call fcn.14014b520
mov rdx, rax
lea rcx, [rsi + 0x4a0]
mov r9d, dword [r13 + 0xa8]
mov r8d, edi
call fcn.1402d74d0
mov bl, 1
lea rcx, [rbp - 0x39]
call fcn.14015bf80
movzx eax, bl
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.140109210
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret