Function at 0x140142710
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x918]
sub rsp, 0xa18
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rbp + 0x900], rax
mov r13, r9
mov rdi, r8
mov qword [rsp + 0x48], r8
mov rsi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.14008eae0
xor edx, edx
mov r8d, 0x2b8
lea rcx, [rbp + 0x640]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x640]
call fcn.140145f50
nop
xor edx, edx
mov r8d, 0x128
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea r12, vtable._ckSymSettings.0
mov qword [rbp - 0x80], r12
xor r14d, r14d
mov qword [rbp - 0x78], r14
mov dword [rbp - 0x70], 0x100
lea rcx, [rbp - 0x68]
call fcn.14008c670
nop
mov dword [rbp - 0x38], r14d
lea rcx, [rbp - 0x30]
call fcn.14008c670
nop
lea rcx, [rbp]
call fcn.14008c670
nop
lea rcx, [rbp + 0x30]
call fcn.14008c670
mov dword [rbp + 0x60], r14d
mov byte [rbp + 0x84], 1
mov qword [rbp + 0x88], r14
mov dword [rbp + 0xa0], 0x80
mov byte [rbp + 0xa4], r14b
mov byte [rbp - 0x40], 1
mov byte [rbp - 8], 1
xor edx, edx
mov r8d, 0x588
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll_memset
lea rax, vtable._ckCryptContext.0
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xc8], r14
lea rcx, [rbp + 0xd0]
call fcn.14008c670
nop
lea rcx, [rbp + 0x100]
call fcn.1401e1440
nop
lea rcx, [rbp + 0x550]
call fcn.1401e1410
nop
lea r15, vtable._ckGcmContext.0
mov qword [rbp + 0x5a0], r15
mov ecx, 0x10008
call fcn.1401fe120
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140142875
lea rcx, vtable._ckGcmContextTables.0
mov qword [rax], rcx
jmp 0x140142878
mov rax, r14
mov qword [rbp + 0x620], rax
mov qword [rbp + 0x5a8], 1
mov qword [rbp + 0xb8], r14
mov qword [rbp + 0xc0], r14
mov dword [rbp - 0x78], 1
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.14008cc80
lea rcx, [rbp - 0x68]
call fcn.140091190
shl eax, 3
mov dword [rbp - 0x70], eax
mov dword [rbp - 0x74], 3
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0xb0]
lea r8, [rbp - 0x80]
mov dl, 1
lea rcx, [rbp + 0x640]
call fcn.140141220
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x50]
call fcn.14008c670
nop
mov byte [rsp + 0x78], 1
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14008cc80
lea rcx, [rsp + 0x50]
call fcn.140091190
mov ebx, eax
mov dword [rsp + 0x30], eax
cmp eax, 2
jb 0x140142a45
test bl, 7
jne 0x140142a45
mov r8d, 8
mov dl, 0xa6
mov rcx, rdi
call fcn.14008cff0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14008cc80
mov r15d, ebx
shr r15d, 3
mov rcx, rdi
call fcn.140090e60
mov rsi, rax
mov r12d, r14d
add rax, 8
nop word [rax + rax]
mov rdi, rax
mov ebx, 1
cmp r15d, ebx
jb 0x1401429e2
movzx ecx, r12b
movzx r14d, r15b
imul r14d, ecx
nop dword [rax]
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x640]
call fcn.1401449e0
mov rax, qword [rsp + 0x38]
mov qword [rsi], rax
lea ecx, [rbx + r14]
shr rax, 0x38
xor cl, al
mov byte [rsi + 7], cl
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
lea rdi, [rdi + 8]
inc ebx
cmp ebx, r15d
jle 0x140142990
lea rax, [rsi + 8]
inc r12d
cmp r12d, 5
jle 0x140142970
mov bl, 1
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call fcn.140091190
mov edx, dword [rsp + 0x30]
add edx, 8
cmp eax, edx
je 0x140142a32
mov rax, qword [r13]
lea rdx, str.Output_is_not_the_expected_size.
mov rcx, r13
call qword [rax + 0x28]
mov rcx, rdi
call fcn.140091190
mov r8d, eax
lea rdx, str.outNumBytes
mov rcx, r13
call fcn.1400a12d0
xor bl, bl
xor r14d, r14d
lea r15, vtable._ckGcmContext.0
lea r12, vtable._ckSymSettings.0
jmp 0x140142a6a
mov rax, qword [r13]
lea rdx, str.Key_data_must_be_a_multiple_of_8_bytes_in_length.
mov rcx, r13
call qword [rax + 0x28]
mov r8d, ebx
lea rdx, str.keyDataLen
mov rcx, r13
call fcn.1400a12d0
xor bl, bl
lea rcx, [rsp + 0x50]
call fcn.14008c820
nop
lea rax, vtable._ckCryptContext.0
mov qword [rbp + 0xb0], rax
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x140142a9b
call fcn.14007e620
mov qword [rbp + 0xc8], r14
mov qword [rbp + 0x5a0], r15
mov rcx, qword [rbp + 0x620]
test rcx, rcx
je 0x140142ab8
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbp + 0x620], r14
mov qword [rbp + 0x5a8], r14
lea rcx, [rbp + 0x550]
call fcn.1401e1480
lea rcx, [rbp + 0x100]
call fcn.1401e1490
lea rcx, [rbp + 0xd0]
call fcn.14008c820
nop
mov qword [rbp - 0x80], r12
lea rcx, [rbp + 0x30]
call fcn.14008c820
lea rcx, [rbp]
call fcn.14008c820
lea rcx, [rbp - 0x30]
call fcn.14008c820
lea rcx, [rbp - 0x68]
call fcn.14008c820
nop
lea rcx, [rbp + 0x640]
call fcn.140145fb0
movzx eax, bl
mov rcx, qword [rbp + 0x900]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0xa18
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret