Function at 0x1402d7880
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 + 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 0x1402d7b24
test rdi, rdi
jne 0x1402d78e6
mov rax, qword [rbx]
lea rdx, str.NULL_passed_to_OFB_encryptor
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x1402d7b26
mov ecx, dword [rcx + 0xa8]
cmp ecx, 1
ja 0x1402d790c
mov rax, qword [rsi]
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r8
mov r8, rdi
call qword [rax + 0x30]
jmp 0x1402d7b26
xor edx, edx
mov eax, r14d
div ecx
mov ebp, eax
test edx, edx
je 0x1402d7930
mov rax, qword [rbx]
lea rdx, str.OFB_input_not_a_multiple_of_the_cipher_block_size.
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x1402d7b26
test eax, eax
je 0x1402d78df
movzx r13d, byte [0x140549324]
mov rcx, r8
call fcn.14014b850
mov rcx, qword [rsp + 0x40]
mov r12d, eax
add eax, r14d
mov dword [rsp + 0x30], eax
lea edx, [rax + 0x20]
call fcn.14014afd0
test al, al
jne 0x1402d7976
mov rax, qword [rbx]
lea rdx, str.Unable_to_allocate_OFB_encrypt_output_buffer.
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x1402d7b26
mov edx, r12d
mov r12, qword [rsp + 0x40]
mov rcx, r12
call fcn.14014b4f0
mov r14, rax
mov eax, dword [rsi + 0xa8]
test r13b, r13b
je 0x1402d7a49
test eax, eax
je 0x1402d79c0
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 0x1402d7a13
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 0x1402d79f0
mov eax, ecx
add rdi, rax
add r14, rax
add ebp, 0xffffffff
jne 0x1402d79d0
test ecx, ecx
je 0x1402d7b18
nop dword [rax + rax]
movzx eax, byte [rsp + rbx + 0x50]
mov byte [r15 + rbx + 8], al
inc ebx
cmp ebx, dword [rsi + 0xa8]
jb 0x1402d7a30
jmp 0x1402d7b18
cmp eax, 0x10
jne 0x1402d7ac3
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 0x1402d7a70
mov qword [r15 + 8], rcx
mov qword [r15 + 0x10], rdx
jmp 0x1402d7b18
cmp eax, 8
jne 0x1402d7b24
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 0x1402d7ae0
mov qword [r15 + 8], rcx
mov edx, dword [rsp + 0x30]
mov rcx, r12
call fcn.14014d590
mov al, 1
mov rcx, qword [rsp + 0x60]
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