Function at 0x1800795c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x18017a408]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov rdi, qword [rbp + 0x58]
mov rsi, rcx
mov rcx, qword [rbp + 0x50]
mov r15, r8
mov qword [rbp - 0x48], rcx
mov r14, rdx
mov dword [rbp - 0x50], r9d
test r9d, r9d
jne 0x180079602
mov al, 1
jmp 0x180079963
test r15, r15
jne 0x18007961e
mov rax, qword [rdi]
lea rdx, str.NULL_passed_to_CBC_encryptor
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x180079963
xor edx, edx
mov qword [rsp + 0x68], r12
mov eax, r9d
div dword [rsi + 0xa8]
mov r12d, eax
test edx, edx
je 0x18007964c
mov rax, qword [rdi]
lea rdx, str.AES_CBC_input_not_a_multiple_of_the_cipher_block_size.
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x18007995e
cmp byte [0x18017fda8], 0
mov edx, r9d
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0x60], r13
je 0x1800798aa
lea r13, [r14 + 8]
call fcn.180015ab0
mov rbx, rax
test rax, rax
je 0x1800798b7
mov r8d, dword [rsi + 0xa8]
xor r14d, r14d
mov edx, r14d
test r8d, r8d
je 0x180079745
cmp r8d, 0x20
jb 0x18007970a
lea eax, [r8 - 1]
mov ecx, eax
lea r9, [rbp - 0x40]
add r9, rcx
lea r10, [rbp - 0x40]
add rax, r13
cmp r10, rax
ja 0x1800796b8
cmp r9, r13
jae 0x18007970a
lea rax, [rcx + r15]
lea rcx, [rbp - 0x40]
cmp rcx, rax
ja 0x1800796ca
cmp r9, r15
jae 0x18007970a
mov r9d, r8d
and r9d, 0xffffffe0
mov eax, edx
movdqu xmm0, xmmword [rax + r15]
movdqu xmm1, xmmword [rax + r13]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x40], xmm1
lea eax, [rdx + 0x10]
add edx, 0x20
movdqu xmm1, xmmword [rax + r13]
movdqu xmm0, xmmword [rax + r15]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x40], xmm1
cmp edx, r9d
jb 0x1800796d1
cmp edx, r8d
jae 0x180079745
mov ecx, edx
lea r10, [rbp - 0x40]
mov r9, r15
add rcx, r13
sub r9, r13
sub r10, r13
sub r8d, edx
mov edx, r8d
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 0x180079730
mov rax, qword [rsi]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [rax + 0x20]
mov r8d, dword [rsi + 0xa8]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.1800caa00
mov r8d, dword [rsi + 0xa8]
mov r11d, r8d
lea rdi, [r8 + r15]
add r12d, 0xffffffff
je 0x180079883
mov edx, r14d
test r8d, r8d
je 0x180079845
cmp r8d, 0x20
jb 0x180079805
lea eax, [r8 - 1]
mov ecx, eax
lea r9, [rbp - 0x40]
add r9, rcx
lea r10, [rbp - 0x40]
add rax, rdi
cmp r10, rax
ja 0x1800797b1
cmp r9, rdi
jae 0x180079805
lea rax, [rcx + rbx]
lea rcx, [rbp - 0x40]
cmp rcx, rax
ja 0x1800797c3
cmp r9, rbx
jae 0x180079805
mov r9d, r8d
and r9d, 0xffffffe0
nop word [rax + rax]
mov eax, edx
movdqu xmm0, xmmword [rax + rdi]
movdqu xmm1, xmmword [rax + rbx]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x40], xmm1
lea eax, [rdx + 0x10]
add edx, 0x20
movdqu xmm1, xmmword [rax + rbx]
movdqu xmm0, xmmword [rax + rdi]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x40], xmm1
cmp edx, r9d
jb 0x1800797d0
cmp edx, r8d
jae 0x180079845
mov eax, edx
lea r10, [rbp - 0x40]
mov r9, rbx
add rax, rdi
sub r9, rdi
sub r10, rdi
sub r8d, edx
mov edx, r8d
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r9 + rax]
xor cl, byte [rax]
mov byte [r10 + rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x180079830
mov rax, qword [rsi]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov rcx, rsi
add rbx, r11
call qword [rax + 0x20]
mov r8d, dword [rsi + 0xa8]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.1800caa00
mov r8d, dword [rsi + 0xa8]
add rdi, r8
mov r11d, r8d
add r12d, 0xffffffff
jne 0x180079781
cmp dword [rsi + 0xa8], r14d
jbe 0x180079943
movzx eax, byte [r14 + rbx]
mov byte [r14 + r13], al
inc r14d
cmp r14d, dword [rsi + 0xa8]
jb 0x180079890
jmp 0x180079943
call fcn.180015ab0
mov rbx, rax
test rax, rax
jne 0x1800798ce
mov rax, qword [rdi]
lea rdx, str.Unable_to_allocate_CBC_encrypt_output_buffer.
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x180079951
mov rax, qword [r14 + 8]
lea rdx, [rbp - 0x40]
xor rax, qword [r15]
mov r8, rbx
mov qword [rbp - 0x40], rax
mov rcx, rsi
mov rax, qword [r15 + 8]
xor rax, qword [r14 + 0x10]
mov qword [rbp - 0x38], rax
mov rax, qword [rsi]
call qword [rax + 0x20]
lea rdi, [r15 + 0x10]
add r12d, 0xffffffff
je 0x180079934
sub rdi, rbx
mov rax, qword [rdi + rbx]
lea rdx, [rbp - 0x40]
xor rax, qword [rbx]
mov rcx, rsi
mov qword [rbp - 0x40], rax
mov rax, qword [rdi + rbx + 8]
xor rax, qword [rbx + 8]
add rbx, 0x10
mov qword [rbp - 0x38], rax
mov r8, rbx
mov rax, qword [rsi]
call qword [rax + 0x20]
add r12d, 0xffffffff
jne 0x180079902
mov rax, qword [rbx]
mov qword [r14 + 8], rax
mov rax, qword [rbx + 8]
mov qword [r14 + 0x10], rax
mov edx, dword [rbp - 0x50]
mov rcx, qword [rbp - 0x48]
call fcn.180013550
mov al, 1
mov rbx, qword [rsp + 0xb0]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret