Function at 0x140142270
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 - 0x928]
sub rsp, 0xa28
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rbp + 0x918], rax
mov r13, r9
mov r14, r8
mov qword [rsp + 0x50], r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.14008eae0
xor edx, edx
mov r8d, 0x2b8
lea rcx, [rbp + 0x650]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x650]
call fcn.140145f50
nop
xor edx, edx
mov r8d, 0x128
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, vtable._ckSymSettings.0
mov qword [rbp - 0x70], rax
xor esi, esi
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x60], 0x100
lea rcx, [rbp - 0x58]
call fcn.14008c670
nop
mov dword [rbp - 0x28], esi
lea rcx, [rbp - 0x20]
call fcn.14008c670
nop
lea rcx, [rbp + 0x10]
call fcn.14008c670
nop
lea rcx, [rbp + 0x40]
call fcn.14008c670
mov dword [rbp + 0x70], esi
mov byte [rbp + 0x94], 1
mov qword [rbp + 0x98], rsi
mov dword [rbp + 0xb0], 0x80
mov byte [rbp + 0xb4], sil
mov byte [rbp - 0x30], 1
mov byte [rbp + 8], 1
xor edx, edx
mov r8d, 0x588
lea rcx, [rbp + 0xc0]
call sub.VCRUNTIME140.dll_memset
lea rax, vtable._ckCryptContext.0
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xd8], rsi
lea rcx, [rbp + 0xe0]
call fcn.14008c670
nop
lea rcx, [rbp + 0x110]
call fcn.1401e1440
nop
lea rcx, [rbp + 0x560]
call fcn.1401e1410
nop
lea r12, vtable._ckGcmContext.0
mov qword [rbp + 0x5b0], r12
mov ecx, 0x10008
call fcn.1401fe120
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1401423d2
lea rcx, vtable._ckGcmContextTables.0
mov qword [rax], rcx
jmp 0x1401423d5
mov rax, rsi
mov qword [rbp + 0x630], rax
mov qword [rbp + 0x5b8], 1
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0xd0], rsi
mov dword [rbp - 0x68], 1
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.14008cc80
lea rcx, [rbp - 0x58]
call fcn.140091190
shl eax, 3
mov dword [rbp - 0x60], eax
mov dword [rbp - 0x64], 3
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0xc0]
lea r8, [rbp - 0x70]
xor edx, edx
lea rcx, [rbp + 0x650]
call fcn.140141220
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
lea rcx, [rsp + 0x58]
call fcn.14008c670
nop
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14008cc80
lea rcx, [rsp + 0x58]
call fcn.140091190
mov r15d, eax
cmp eax, 0x10
jb 0x1401425f9
test r15b, 7
jne 0x1401425f9
shr r15d, 3
dec r15d
lea edi, [r15*8]
mov dword [rsp + 0x30], edi
mov r8d, edi
xor edx, edx
mov rcx, r14
call fcn.14008cff0
lea rcx, [rsp + 0x58]
call fcn.140090e60
mov rsi, rax
mov rcx, r14
call fcn.140090e60
mov r14, rax
mov rbx, qword [rsi]
mov qword [rbp + 0x910], rbx
movsxd rdi, edi
lea rdx, [rsi + 8]
mov r8, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r12d, 5
lea rax, [r14 - 8]
add rax, rdi
mov qword [rsp + 0x48], rax
nop dword [rax]
mov rsi, rax
mov edi, r15d
cmp r15d, 1
jl 0x140142565
movzx eax, r12b
movzx r14d, r15b
imul r14d, eax
nop dword [rax + rax]
mov qword [rsp + 0x38], rbx
lea eax, [rdi + r14]
shr rbx, 0x38
xor al, bl
mov byte [rsp + 0x3f], al
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x650]
call fcn.140143280
mov rbx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
lea rsi, [rsi - 8]
dec edi
cmp edi, 1
jge 0x140142510
mov qword [rbp + 0x910], rbx
mov rax, qword [rsp + 0x48]
sub r12d, 1
jns 0x1401424f0
mov bl, 1
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call fcn.140091190
cmp eax, dword [rsp + 0x30]
je 0x1401425b8
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 esi, esi
lea r12, vtable._ckGcmContext.0
jmp 0x14014261e
xor esi, esi
mov ecx, esi
nop dword [rax]
movsxd rax, ecx
cmp byte [rbp + rax + 0x910], 0xa6
jne 0x1401425dd
inc ecx
cmp ecx, 8
jl 0x1401425c0
lea r12, vtable._ckGcmContext.0
jmp 0x14014261e
mov rax, qword [r13]
lea rdx, str.KEK_is_not_the_correct_key.
mov rcx, r13
call qword [rax + 0x28]
xor bl, bl
lea r12, vtable._ckGcmContext.0
jmp 0x14014261e
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, r15d
lea rdx, str.keyDataLen
mov rcx, r13
call fcn.1400a12d0
xor bl, bl
lea rcx, [rsp + 0x58]
call fcn.14008c820
nop
lea rax, vtable._ckCryptContext.0
mov qword [rbp + 0xc0], rax
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x14014264f
call fcn.14007e620
mov qword [rbp + 0xd8], rsi
mov qword [rbp + 0x5b0], r12
mov rcx, qword [rbp + 0x630]
test rcx, rcx
je 0x14014266c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbp + 0x630], rsi
mov qword [rbp + 0x5b8], rsi
lea rcx, [rbp + 0x560]
call fcn.1401e1480
lea rcx, [rbp + 0x110]
call fcn.1401e1490
lea rcx, [rbp + 0xe0]
call fcn.14008c820
nop
lea rax, vtable._ckSymSettings.0
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x40]
call fcn.14008c820
lea rcx, [rbp + 0x10]
call fcn.14008c820
lea rcx, [rbp - 0x20]
call fcn.14008c820
lea rcx, [rbp - 0x58]
call fcn.14008c820
nop
lea rcx, [rbp + 0x650]
call fcn.140145fb0
movzx eax, bl
mov rcx, qword [rbp + 0x918]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0xa28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret