Function at 0x1402d3960
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x14040f040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [rsp + 0xe8]
mov rbx, r8
mov r8, qword [rsp + 0xe0]
mov r14d, r9d
mov qword [rsp + 0x38], r8
mov r15, rdx
mov rdi, rcx
test r9d, r9d
je 0x1402d3c90
test rbx, rbx
jne 0x1402d39c6
mov rax, qword [rsi]
lea rdx, str.NULL_passed_to_CBC_decryptor
mov rcx, rsi
call qword [rax + 0x28]
xor al, al
jmp 0x1402d3c92
mov ecx, dword [rcx + 0xa8]
cmp ecx, 1
ja 0x1402d39ec
mov rax, qword [rdi]
mov rcx, rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r8
mov r8, rbx
call qword [rax + 0x38]
jmp 0x1402d3c92
xor edx, edx
mov eax, r14d
div ecx
mov ebp, eax
test edx, edx
je 0x1402d3a38
mov rax, qword [rsi]
lea rdx, str.CBC_decrypt_input_not_a_multiple_of_the_cipher_block_size.
mov rcx, rsi
call qword [rax + 0x28]
mov r8d, r14d
lea rdx, str.inputLen
mov rcx, rsi
call fcn.14015cc20
mov r8d, dword [rdi + 0xa8]
lea rdx, str.cipherBlockSize
mov rcx, rsi
call fcn.14015cc20
xor al, al
jmp 0x1402d3c92
movzx r13d, byte [0x140549324]
mov rcx, r8
call fcn.14014b850
mov rcx, qword [rsp + 0x38]
mov r12d, eax
add eax, r14d
mov dword [rsp + 0x30], eax
lea edx, [rax + 0x20]
call fcn.14014afd0
test al, al
jne 0x1402d3a7a
mov rax, qword [rsi]
lea rdx, str.Unable_to_allocate_CBC_decrypt_output_buffer.
mov rcx, rsi
call qword [rax + 0x28]
xor al, al
jmp 0x1402d3c92
mov edx, r12d
mov r12, qword [rsp + 0x38]
mov rcx, r12
call fcn.14014b4f0
mov rsi, rax
mov eax, dword [rdi + 0xa8]
test r13b, r13b
je 0x1402d3b8f
mov r8d, eax
lea rcx, [rsp + 0x48]
mov rdx, rbx
lea r12, [r15 + 8]
call sub.VCRUNTIME140.dll_memcpy
mov r9, qword [rdi]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [r9 + 0x28]
mov ecx, dword [rdi + 0xa8]
xor r14d, r14d
mov edx, r14d
test ecx, ecx
je 0x1402d3afa
nop dword [rax]
nop dword [rax + rax]
mov ecx, edx
inc edx
movzx eax, byte [rcx + r12]
xor al, byte [rsp + rcx + 0x58]
mov byte [rsi + rcx], al
mov ecx, dword [rdi + 0xa8]
cmp edx, ecx
jb 0x1402d3ae0
mov eax, ecx
add rsi, rax
lea r15, [rax + rbx]
add ebp, 0xffffffff
je 0x1402d3b69
nop dword [rax + rax]
mov r8d, ecx
mov rdx, r15
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [rax + 0x28]
mov ecx, dword [rdi + 0xa8]
mov eax, r14d
test ecx, ecx
je 0x1402d3b59
mov edx, eax
inc eax
movzx ecx, byte [rdx + rbx]
xor cl, byte [rsp + rdx + 0x58]
mov byte [rsi + rdx], cl
mov ecx, dword [rdi + 0xa8]
cmp eax, ecx
jb 0x1402d3b40
mov eax, ecx
mov rbx, r15
add r15, rax
add rsi, rax
add ebp, 0xffffffff
jne 0x1402d3b10
test ecx, ecx
je 0x1402d3b85
nop dword [rax]
movzx eax, byte [r14 + rbx]
mov byte [r14 + r12], al
inc r14d
cmp r14d, dword [rdi + 0xa8]
jb 0x1402d3b70
mov rcx, qword [rsp + 0x38]
jmp 0x1402d3c87
cmp eax, 0x10
jne 0x1402d3c21
mov rax, qword [rdi]
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x28]
mov rax, qword [rsp + 0x38]
lea r14, [rbx + 0x10]
xor rax, qword [r15 + 8]
mov qword [rsi], rax
mov rax, qword [rsp + 0x40]
xor rax, qword [r15 + 0x10]
mov qword [rsi + 8], rax
add rsi, 0x10
add ebp, 0xffffffff
je 0x1402d3c10
nop
mov rax, qword [rdi]
lea r8, [rsp + 0x38]
mov rdx, r14
mov rcx, rdi
call qword [rax + 0x28]
mov rax, qword [rsp + 0x38]
lea rsi, [rsi + 0x10]
xor rax, qword [rbx]
mov qword [rsi - 0x10], rax
mov rax, qword [rsp + 0x40]
xor rax, qword [rbx + 8]
mov rbx, r14
add r14, 0x10
mov qword [rsi - 8], rax
add ebp, 0xffffffff
jne 0x1402d3bd0
nop word [rax + rax]
mov rax, qword [rbx]
mov qword [r15 + 8], rax
mov rax, qword [rbx + 8]
mov qword [r15 + 0x10], rax
jmp 0x1402d3c84
cmp eax, 8
jne 0x1402d3c90
mov rax, qword [rdi]
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x28]
mov rax, qword [rsp + 0x38]
lea r14, [rbx + 8]
xor rax, qword [r15 + 8]
mov qword [rsi], rax
add rsi, 8
add ebp, 0xffffffff
je 0x1402d3c7d
mov rax, qword [rdi]
lea r8, [rsp + 0x38]
mov rdx, r14
mov rcx, rdi
call qword [rax + 0x28]
mov rax, qword [rsp + 0x38]
lea rsi, [rsi + 8]
xor rax, qword [rbx]
mov rbx, r14
add r14, 8
mov qword [rsi - 8], rax
add ebp, 0xffffffff
jne 0x1402d3c50
mov rax, qword [rbx]
mov qword [r15 + 8], rax
mov rcx, r12
mov edx, dword [rsp + 0x30]
call fcn.14014d590
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140109210
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret