Function at 0x140236640
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 [0x14037d7c0]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov rbx, qword [rbp + 0x70]
mov r12, r8
mov r8, qword [rbp + 0x68]
mov r14d, r9d
mov qword [rbp - 0x40], r8
mov rsi, rdx
mov rdi, rcx
test r9d, r9d
je 0x140236b08
test r12, r12
jne 0x14023669f
mov rax, qword [rbx]
lea rdx, str.NULL_passed_to_CBC_encryptor
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x140236b0a
mov ecx, dword [rcx + 0xa8]
cmp ecx, 1
ja 0x1402366c5
mov rax, qword [rdi]
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r8
mov r8, r12
call qword [rax + 0x30]
jmp 0x140236b0a
xor edx, edx
mov eax, r14d
div ecx
test edx, edx
je 0x1402366e7
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 0x140236b0a
movzx eax, byte [0x1403ce770]
xor edx, edx
mov byte [rbp - 0x48], al
mov eax, r14d
div ecx
mov rcx, r8
mov r15d, eax
call fcn.1400c0f00
mov r13d, eax
add eax, r14d
mov r14, qword [rbp - 0x40]
mov rcx, r14
mov dword [rbp - 0x44], eax
lea edx, [rax + 0x20]
call fcn.1400c06e0
test al, al
jne 0x140236736
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 0x140236b0a
mov edx, r13d
mov rcx, r14
call fcn.1400c0ba0
cmp byte [rbp - 0x48], 0
mov rbx, rax
mov edx, dword [rdi + 0xa8]
je 0x140236a0e
xor r14d, r14d
lea r13, [rsi + 8]
mov r8d, r14d
test edx, edx
je 0x140236865
cmp edx, 0x40
jb 0x14023682b
lea eax, [rdx - 1]
mov ecx, eax
lea r9, [rbp - 0x38]
add r9, rcx
lea r10, [rbp - 0x38]
add rax, r13
cmp r10, rax
ja 0x140236790
cmp r9, r13
jae 0x14023682b
lea rax, [rcx + r12]
lea rcx, [rbp - 0x38]
cmp rcx, rax
ja 0x1402367a6
cmp r9, r12
jae 0x14023682b
mov r10d, edx
and r10d, 0xffffffc0
mov r9d, 0x20
mov eax, r8d
add r8d, 0x40
movdqu xmm0, xmmword [rax + r13]
movdqu xmm1, xmmword [rax + r12]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
lea eax, [r9 - 0x10]
movdqu xmm0, xmmword [rax + r13]
movdqu xmm1, xmmword [rax + r12]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
mov eax, r9d
movdqu xmm0, xmmword [rax + r13]
movdqu xmm1, xmmword [rax + r12]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
lea eax, [r9 + 0x10]
add r9d, 0x40
movdqu xmm1, xmmword [rax + r12]
movdqu xmm0, xmmword [rax + r13]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
cmp r8d, r10d
jb 0x1402367b3
cmp r8d, edx
jae 0x140236865
mov ecx, r8d
lea r10, [rbp - 0x38]
mov r9, r12
add rcx, r13
sub r9, r13
sub r10, r13
sub edx, r8d
mov r8d, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9 + rcx]
xor al, byte [rcx]
mov byte [r10 + rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x140236850
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 r8d, dword [rdi + 0xa8]
lea rsi, [r12 + r8]
add r15d, 0xffffffff
je 0x1402369e5
nop
mov edx, r14d
test r8d, r8d
je 0x1402369a5
cmp r8d, 0x40
jb 0x14023696e
lea eax, [r8 - 1]
mov ecx, eax
lea r9, [rbp - 0x38]
add r9, rcx
lea r10, [rbp - 0x38]
add rax, rsi
cmp r10, rax
ja 0x1402368d8
cmp r9, rsi
jae 0x14023696e
lea rax, [rcx + rbx]
lea rcx, [rbp - 0x38]
cmp rcx, rax
ja 0x1402368ee
cmp r9, rbx
jae 0x14023696e
mov r9d, r8d
and r9d, 0xffffffc0
mov r10d, 0x20
nop dword [rax + rax]
mov eax, edx
add edx, 0x40
movdqu xmm0, xmmword [rax + rsi]
movdqu xmm1, xmmword [rax + rbx]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
lea eax, [r10 - 0x10]
movdqu xmm0, xmmword [rax + rsi]
movdqu xmm1, xmmword [rax + rbx]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
mov eax, r10d
movdqu xmm0, xmmword [rax + rsi]
movdqu xmm1, xmmword [rax + rbx]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
lea eax, [r10 + 0x10]
add r10d, 0x40
movdqu xmm1, xmmword [rax + rbx]
movdqu xmm0, xmmword [rax + rsi]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x38], xmm1
cmp edx, r9d
jb 0x140236900
cmp edx, r8d
jae 0x1402369a5
mov ecx, edx
lea r10, [rbp - 0x38]
mov r9, rbx
add rcx, rsi
sub r9, rsi
sub r10, rsi
mov eax, r8d
sub eax, edx
mov edx, eax
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
xor al, byte [rcx]
mov byte [r10 + rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140236990
mov eax, r8d
lea rdx, [rbp - 0x38]
add rbx, rax
lea r8, [rbp - 0x28]
mov rax, qword [rdi]
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 eax, dword [rdi + 0xa8]
add rsi, rax
mov r8d, eax
add r15d, 0xffffffff
jne 0x1402368a0
test r8d, r8d
je 0x140236a05
nop word [rax + rax]
movzx eax, byte [r14 + rbx]
mov byte [r14 + r13], al
inc r14d
cmp r14d, dword [rdi + 0xa8]
jb 0x1402369f0
mov rcx, qword [rbp - 0x40]
jmp 0x140236b00
cmp edx, 0x10
jne 0x140236aa1
mov rax, qword [r12]
lea rdx, [rbp - 0x38]
xor rax, qword [rsi + 8]
mov r8, rbx
mov qword [rbp - 0x38], rax
mov rcx, rdi
mov rax, qword [r12 + 8]
xor rax, qword [rsi + 0x10]
mov qword [rbp - 0x30], rax
mov rax, qword [rdi]
call qword [rax + 0x20]
add r15d, 0xffffffff
je 0x140236a90
sub r12, rbx
nop dword [rax]
mov rax, qword [r12 + rbx + 0x10]
lea rdx, [rbp - 0x38]
xor rax, qword [rbx]
mov rcx, rdi
mov qword [rbp - 0x38], rax
mov rax, qword [r12 + 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 0x140236a50
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx]
mov qword [rsi + 8], rax
mov rax, qword [rbx + 8]
mov qword [rsi + 0x10], rax
jmp 0x140236afd
cmp edx, 8
jne 0x140236b08
mov rax, qword [r12]
lea rdx, [rbp - 0x40]
xor rax, qword [rsi + 8]
mov r8, rbx
mov qword [rbp - 0x40], rax
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + 0x20]
add r15d, 0xffffffff
je 0x140236af6
sub r12, rbx
nop dword [rax + rax]
mov rax, qword [r12 + 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 0x140236ad0
mov rax, qword [rbx]
mov qword [rsi + 8], rax
mov rcx, r14
mov edx, dword [rbp - 0x44]
call fcn.1400c2bb0
mov al, 1
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.1402577a0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret