Function at 0x18013e3f0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x1802cd010]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov rbx, qword [rbp + 0x70]
mov rsi, r8
mov r8, qword [rbp + 0x68]
mov r12d, r9d
mov qword [rbp - 0x40], r8
mov r14, rdx
mov rdi, rcx
test r9d, r9d
je 0x18013e8a8
test rsi, rsi
jne 0x18013e44f
mov rax, qword [rbx]
lea rdx, str.NULL_passed_to_CBC_encryptor
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x18013e8aa
mov ecx, dword [rcx + 0xa8]
cmp ecx, 1
ja 0x18013e475
mov rax, qword [rdi]
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r8
mov r8, rsi
call qword [rax + 0x30]
jmp 0x18013e8aa
xor edx, edx
mov eax, r12d
div ecx
mov r15d, eax
test edx, edx
je 0x18013e49a
mov rax, qword [rbx]
lea rdx, str.CBC_input_not_a_multiple_of_the_cipher_block_size.
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x18013e8aa
movzx eax, byte [0x1802e1921]
mov rcx, r8
mov byte [rbp - 0x48], al
call fcn.18001fd80
mov r13d, eax
add eax, r12d
mov r12, qword [rbp - 0x40]
mov rcx, r12
mov dword [rbp - 0x44], eax
lea edx, [rax + 0x20]
call fcn.18001f440
test al, al
jne 0x18013e4df
mov rax, qword [rbx]
lea rdx, str.Unable_to_allocate_CBC_encrypt_output_buffer.
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x18013e8aa
mov edx, r13d
mov rcx, r12
call fcn.18001f8f0
cmp byte [rbp - 0x48], 0
mov rbx, rax
mov edx, dword [rdi + 0xa8]
je 0x18013e7ae
lea r12, [r14 + 8]
xor r14d, r14d
mov r8d, r14d
test edx, edx
je 0x18013e605
cmp edx, 0x40
jb 0x18013e5d4
lea eax, [rdx - 1]
mov ecx, eax
lea r9, [rbp - 0x38]
add r9, rcx
lea r10, [rbp - 0x38]
add rax, r12
cmp r10, rax
ja 0x18013e539
cmp r9, r12
jae 0x18013e5d4
lea rax, [rcx + rsi]
lea rcx, [rbp - 0x38]
cmp rcx, rax
ja 0x18013e54f
cmp r9, rsi
jae 0x18013e5d4
mov r10d, edx
and r10d, 0xffffffc0
mov r9d, 0x20
nop dword [rax]
mov eax, r8d
add r8d, 0x40
movdqu xmm0, xmmword [rax + r12]
movdqu xmm1, xmmword [rax + rsi]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
lea eax, [r9 - 0x10]
movdqu xmm0, xmmword [rax + r12]
movdqu xmm1, xmmword [rax + rsi]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
mov eax, r9d
movdqu xmm0, xmmword [rax + r12]
movdqu xmm1, xmmword [rax + rsi]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
lea eax, [r9 + 0x10]
add r9d, 0x40
movdqu xmm1, xmmword [rax + rsi]
movdqu xmm0, xmmword [rax + r12]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
cmp r8d, r10d
jb 0x18013e560
cmp r8d, edx
jae 0x18013e605
mov ecx, r8d
lea r10, [rbp - 0x38]
mov r9, rsi
add rcx, r12
sub r9, r12
sub r10, r12
sub edx, r8d
mov r8d, edx
nop dword [rax]
movzx eax, byte [r9 + rcx]
xor al, byte [rcx]
mov byte [r10 + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x18013e5f0
mov rax, qword [rdi]
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x38]
mov rcx, rdi
call qword [rax + 0x20]
mov r8d, dword [rdi + 0xa8]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r11d, dword [rdi + 0xa8]
add rsi, r11
add r15d, 0xffffffff
je 0x18013e783
mov edx, r11d
mov r10d, r14d
test edx, edx
je 0x18013e745
cmp edx, 0x40
jb 0x18013e710
lea eax, [rdx - 1]
mov ecx, eax
lea r8, [rbp - 0x38]
add r8, rcx
lea r9, [rbp - 0x38]
add rax, rsi
cmp r9, rax
ja 0x18013e675
cmp r8, rsi
jae 0x18013e710
lea rax, [rcx + rbx]
lea rcx, [rbp - 0x38]
cmp rcx, rax
ja 0x18013e68b
cmp r8, rbx
jae 0x18013e710
mov r8d, edx
and r8d, 0xffffffc0
mov r9d, 0x20
nop dword [rax + rax]
mov eax, r10d
add r10d, 0x40
movdqu xmm0, xmmword [rax + rsi]
movdqu xmm1, xmmword [rax + rbx]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
lea eax, [r9 - 0x10]
movdqu xmm0, xmmword [rax + rsi]
movdqu xmm1, xmmword [rax + rbx]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
mov eax, r9d
movdqu xmm0, xmmword [rax + rsi]
movdqu xmm1, xmmword [rax + rbx]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
lea eax, [r9 + 0x10]
add r9d, 0x40
movdqu xmm1, xmmword [rax + rbx]
movdqu xmm0, xmmword [rax + rsi]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
cmp r10d, r8d
jb 0x18013e6a0
cmp r10d, edx
jae 0x18013e745
mov ecx, r10d
lea r9, [rbp - 0x38]
mov r8, rbx
add rcx, rsi
sub r8, rsi
sub r9, rsi
sub edx, r10d
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
xor al, byte [rcx]
mov byte [rcx + r9], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18013e730
mov rax, qword [rdi]
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x38]
mov rcx, rdi
add rbx, r11
call qword [rax + 0x20]
mov r8d, dword [rdi + 0xa8]
lea rdx, [rbp - 0x28]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r11d, dword [rdi + 0xa8]
add rsi, r11
mov edx, r11d
add r15d, 0xffffffff
jne 0x18013e640
test r11d, r11d
je 0x18013e7a5
nop dword [rax + rax]
movzx eax, byte [r14 + rbx]
mov byte [r14 + r12], al
inc r14d
cmp r14d, dword [rdi + 0xa8]
jb 0x18013e790
mov rcx, qword [rbp - 0x40]
jmp 0x18013e8a0
cmp edx, 0x10
jne 0x18013e841
mov rax, qword [rsi]
lea rdx, [rbp - 0x38]
xor rax, qword [r14 + 8]
mov r8, rbx
mov qword [rbp - 0x38], rax
mov rcx, rdi
mov rax, qword [rsi + 8]
xor rax, qword [r14 + 0x10]
mov qword [rbp - 0x30], rax
mov rax, qword [rdi]
call qword [rax + 0x20]
add r15d, 0xffffffff
je 0x18013e830
sub rsi, rbx
nop word [rax + rax]
mov rax, qword [rsi + rbx + 0x10]
lea rdx, [rbp - 0x38]
xor rax, qword [rbx]
mov rcx, rdi
mov qword [rbp - 0x38], rax
mov rax, qword [rsi + rbx + 0x18]
xor rax, qword [rbx + 8]
add rbx, 0x10
mov qword [rbp - 0x30], rax
mov r8, rbx
mov rax, qword [rdi]
call qword [rax + 0x20]
add r15d, 0xffffffff
jne 0x18013e7f0
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx]
mov qword [r14 + 8], rax
mov rax, qword [rbx + 8]
mov qword [r14 + 0x10], rax
jmp 0x18013e89d
cmp edx, 8
jne 0x18013e8a8
mov rax, qword [rsi]
lea rdx, [rbp - 0x40]
xor rax, qword [r14 + 8]
mov r8, rbx
mov qword [rbp - 0x40], rax
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + 0x20]
add r15d, 0xffffffff
je 0x18013e896
sub rsi, rbx
nop word [rax + rax]
mov rax, qword [rsi + rbx + 8]
lea rdx, [rbp - 0x40]
xor rax, qword [rbx]
mov rcx, rdi
mov qword [rbp - 0x40], rax
add rbx, 8
mov rax, qword [rdi]
mov r8, rbx
call qword [rax + 0x20]
add r15d, 0xffffffff
jne 0x18013e870
mov rax, qword [rbx]
mov qword [r14 + 8], rax
mov rcx, r12
mov edx, dword [rbp - 0x44]
call fcn.180021cb0
mov al, 1
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.180009610
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret