Function at 0x140012440
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140025040]
xor rax, rsp
mov qword [rbp + 0x37], rax
cmp qword [0x140026008], 0
je 0x14001283f
test cl, cl
je 0x14001263a
mov edx, 0x64
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Beep_2]
mov edx, 0x64
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Beep_2]
call fcn.140012870
mov r9, rax
mov r8, 0xffffffffffffffff
cmp byte [rax + 0xc6], 0
je 0x14001251f
lea rdx, [rax + 1]
mov r10, r8
sub r10, rax
movabs r11, 0x4529a72fe73125d9
nop word [rax + rax]
lea ecx, [rdx + r10]
and cl, 7
shl cl, 3
mov rax, r11
shr rax, cl
xor byte [rdx - 1], al
movzx ecx, dl
sub cl, r9b
and cl, 7
shl cl, 3
mov rax, r11
shr rax, cl
xor byte [rdx], al
add rdx, 2
lea rax, [r10 + rdx]
cmp rax, 0xc6
jb 0x1400124e0
mov byte [r9 + 0xc6], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xor r12d, r12d
mov qword [rbp - 9], r12
mov qword [rbp - 1], r12
inc r8
cmp byte [r9 + r8], r12b
jne 0x140012531
mov rdx, r9
lea rcx, [rbp - 0x19]
call fcn.140004c40
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.140006020
mov rdi, rax
mov r14, qword [0x140026008]
mov r15, qword [0x140026010]
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
movsxd rbx, ecx
mov rcx, rbx
call fcn.1400169c4
mov rsi, rax
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
sub r8, rdx
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x20], r12
mov r9, rbx
mov r8, rsi
mov rdx, r14
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_HeapLock]
mov rcx, rsi
call fcn.140016980
nop
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x1400125f5
mov rdx, qword [rbp + 0x17]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400125e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400125e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140016980
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r12
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x14001283f
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001283a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001283a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movdqa xmm0, xmmword [0x14001db40]
mov dword [rbp + 0x2f], 0xbbb44501
mov dword [rbp + 0x33], 0x152d8af9
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov ecx, 0x190
mov eax, dword [rcx + rdi]
mov ebx, 0x8f8
test al, 1
jne 0x1400126ba
or eax, 1
mov dword [rcx + rdi], eax
lea rax, [rbx + rdi]
mov byte [rax + 0x18], 1
lea rcx, [rax + 0x17]
lea rdx, [rbp + 0x36]
cmp rax, rdx
ja 0x1400126a0
lea rdx, [rbp + 0x1f]
cmp rcx, rdx
jb 0x1400126a0
movups xmmword [rax], xmm0
movsd xmm0, qword [rbp + 0x2f]
movsd qword [rax + 0x10], xmm0
jmp 0x1400126ad
movups xmmword [rax], xmm0
movsd xmm0, qword [rbp + 0x2f]
movsd qword [rax + 0x10], xmm0
lea rcx, [0x14001b6e0]
call fcn.140016ec4
nop
lea rdx, [rbx + rdi]
cmp byte [rdx + 0x18], 0
je 0x140012727
xor byte [rdx], 0x31
xor byte [rdx + 1], 0x65
xor byte [rdx + 2], 0x8d
xor byte [rdx + 3], 0x8b
xor byte [rdx + 4], 0xd9
xor byte [rdx + 5], 0xb3
xor byte [rdx + 6], 0x1d
xor byte [rdx + 7], 0x15
xor byte [rdx + 8], 0x31
xor byte [rdx + 9], 0x65
xor byte [rdx + 0xa], 0x8d
xor byte [rdx + 0xb], 0x8b
xor byte [rdx + 0xc], 0xd9
xor byte [rdx + 0xd], 0xb3
xor byte [rdx + 0xe], 0x1d
xor byte [rdx + 0xf], 0x15
xor byte [rdx + 0x10], 0x31
xor byte [rdx + 0x11], 0x65
xor byte [rdx + 0x12], 0x8d
xor byte [rdx + 0x13], 0x8b
xor byte [rdx + 0x14], 0xd9
xor byte [rdx + 0x15], 0xb3
xor byte [rdx + 0x16], 0x1d
xor byte [rdx + 0x17], 0x15
mov byte [rdx + 0x18], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xor r12d, r12d
mov qword [rbp - 9], r12
mov qword [rbp - 1], r12
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r12b
jne 0x140012740
lea rcx, [rbp - 0x19]
call fcn.140004c40
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.140006020
mov rdi, rax
mov r14, qword [0x140026008]
mov r15, qword [0x140026010]
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
movsxd rbx, ecx
mov rcx, rbx
call fcn.1400169c4
mov rsi, rax
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
sub r8, rdx
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x20], r12
mov r9, rbx
mov r8, rsi
mov rdx, r14
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_HeapLock]
mov rcx, rsi
call fcn.140016980
nop
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140012801
mov rdx, qword [rbp + 0x17]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400127f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400127f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140016980
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r12
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x14001283f
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001283a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001283a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140016980
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140016960
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret