Function at 0x1401cd770
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 [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, qword [rsp + 0xe8]
mov rdi, r8
mov r8, qword [rsp + 0xe0]
mov r14d, r9d
mov qword [rsp + 0x40], r8
mov r15, rdx
mov rsi, rcx
test r9d, r9d
je 0x1401cda14
test rdi, rdi
jne 0x1401cd7d6
mov rax, qword [rbx]
lea rdx, str.NULL_passed_to_OFB_decryptor
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x1401cda16
mov ecx, dword [rcx + 0xa8]
cmp ecx, 1
ja 0x1401cd7fc
mov rax, qword [rsi]
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r8
mov r8, rdi
call qword [rax + 0x38]
jmp 0x1401cda16
xor edx, edx
mov eax, r14d
div ecx
mov ebp, eax
test edx, edx
je 0x1401cd820
mov rax, qword [rbx]
lea rdx, str.OFB_decrypt_input_not_a_multiple_of_the_cipher_block_size.
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x1401cda16
test eax, eax
je 0x1401cd7cf
movzx r13d, byte [0x1402cb9e0]
mov rcx, r8
call fcn.140043080
mov rcx, qword [rsp + 0x40]
mov r12d, eax
add eax, r14d
mov dword [rsp + 0x30], eax
lea edx, [rax + 0x20]
call fcn.140042800
test al, al
jne 0x1401cd866
mov rax, qword [rbx]
lea rdx, str.Unable_to_allocate_OFB_decrypt_output_buffer.
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x1401cda16
mov edx, r12d
mov r12, qword [rsp + 0x40]
mov rcx, r12
call fcn.140042d20
mov r14, rax
mov eax, dword [rsi + 0xa8]
test r13b, r13b
je 0x1401cd939
test eax, eax
je 0x1401cd8b0
mov r8d, eax
lea rdx, [r15 + 8]
lea rcx, [rsp + 0x40]
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
mov r8d, ebx
lea rdx, [r15 + 8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
xor ebx, ebx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rsi]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [rax + 0x20]
mov ecx, dword [rsi + 0xa8]
mov edx, ebx
test ecx, ecx
je 0x1401cd903
nop
mov ecx, edx
inc edx
movzx eax, byte [rcx + rdi]
xor al, byte [rsp + rcx + 0x50]
mov byte [r14 + rcx], al
movzx eax, byte [rsp + rcx + 0x50]
mov byte [rsp + rcx + 0x40], al
mov ecx, dword [rsi + 0xa8]
cmp edx, ecx
jb 0x1401cd8e0
mov eax, ecx
add rdi, rax
add r14, rax
add ebp, 0xffffffff
jne 0x1401cd8c0
test ecx, ecx
je 0x1401cda08
nop dword [rax + rax]
movzx eax, byte [rsp + rbx + 0x50]
mov byte [r15 + rbx + 8], al
inc ebx
cmp ebx, dword [rsi + 0xa8]
jb 0x1401cd920
jmp 0x1401cda08
cmp eax, 0x10
jne 0x1401cd9b3
mov rax, qword [r15 + 8]
sub r14, rdi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov rax, qword [r15 + 0x10]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rax
nop dword [rax]
mov rax, qword [rsi]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x50]
lea rdi, [rdi + 0x10]
mov rdx, qword [rsp + 0x58]
mov rax, rcx
xor rax, qword [rdi - 0x10]
movaps xmm0, xmmword [rsp + 0x50]
mov qword [r14 + rdi - 0x10], rax
mov rax, rdx
xor rax, qword [rdi - 8]
mov qword [r14 + rdi - 8], rax
movdqa xmmword [rsp + 0x40], xmm0
add ebp, 0xffffffff
jne 0x1401cd960
mov qword [r15 + 8], rcx
mov qword [r15 + 0x10], rdx
jmp 0x1401cda08
cmp eax, 8
jne 0x1401cda14
mov rax, qword [r15 + 8]
mov qword [rsp + 0x40], rax
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rsi]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x50]
lea r14, [r14 + 8]
mov rax, rcx
mov qword [rsp + 0x40], rcx
xor rax, qword [rdi]
lea rdi, [rdi + 8]
mov qword [r14 - 8], rax
add ebp, 0xffffffff
jne 0x1401cd9d0
mov qword [r15 + 8], rcx
mov edx, dword [rsp + 0x30]
mov rcx, r12
call fcn.140044dc0
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret