Function at 0x140002e10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140066040]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, rdx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov r8d, dword [0x1400e88b0]
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.1400012b0
nop
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 0xf
jbe 0x140002e72
mov rdi, qword [rdi]
lea rax, [0x140056aa0]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x78], rax
mov byte [rbp - 0xc], 0
mov byte [rbp - 0x17], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 8], rbx
mov rax, qword [0x1400e94b0]
mov qword [rbp - 0x14], rax
mov qword [rbp - 0x20], rbx
mov r8d, 2
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.140004d70
test rax, rax
jne 0x140002f44
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
cmp qword [rbp - 8], 0
je 0x1400030ae
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.140005a90
lea rcx, [rsp + 0x78]
call fcn.140004c00
test rax, rax
jne 0x140002fbd
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
movups xmm0, xmmword [0x140056b28]
movups xmmword [rsp + 0x28], xmm0
mov eax, dword [0x140056b38]
mov dword [rsp + 0x38], eax
movzx eax, word [0x140056b3c]
mov word [rsp + 0x3c], ax
movzx eax, byte [0x140056b3e]
mov byte [rsp + 0x3e], al
lea r8, [rsp + 0x28]
mov r9d, 0xb
nop word [rax + rax]
movzx edx, bl
and dl, 0x3f
movsx eax, bl
imul ecx, eax, 0x38
add dl, 0x4a
add dl, cl
test bl, 1
mov eax, 0xffffffd3
cmove eax, r9d
xor dl, al
xor byte [r8], dl
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x17
jl 0x140003000
lea rax, [rsp + 0x28]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140003040
mov rax, qword [0x1400e88a8]
cmp rbx, rax
ja 0x140003085
lea rdi, [0x1400e8890]
cmp rax, 0xf
cmova rdi, qword [0x1400e8890]
mov qword [0x1400e88a0], rbx
mov r8, rbx
lea rdx, [rsp + 0x28]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], 0
jmp 0x140003099
lea r9, [rsp + 0x28]
mov rdx, rbx
lea rcx, [0x1400e8890]
call fcn.140005490
mov edx, 0x64
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Beep]
jmp 0x14000317a
movups xmm0, xmmword [0x14005b040]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [0x14005b050]
movups xmmword [rsp + 0x38], xmm1
psrldq xmm1, 0xf
movd eax, xmm1
test al, al
je 0x14000310d
lea r8, [rsp + 0x28]
mov r9d, 0xb
nop
movzx edx, bl
and dl, 0x3f
movsx eax, bl
imul ecx, eax, 0x38
add dl, 0x4a
add dl, cl
test bl, 1
mov eax, 0xffffffd3
cmove eax, r9d
xor dl, al
xor byte [r8], dl
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x20
jl 0x1400030e0
lea rax, [rsp + 0x28]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140003120
mov rax, qword [0x1400e88a8]
cmp rbx, rax
ja 0x140003165
lea rdi, [0x1400e8890]
cmp rax, 0xf
cmova rdi, qword [0x1400e8890]
mov qword [0x1400e88a0], rbx
mov r8, rbx
lea rdx, [rsp + 0x28]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], 0
jmp 0x14000317a
lea r9, [rsp + 0x28]
mov rdx, rbx
lea rcx, [0x1400e8890]
call fcn.140005490
nop
lea rcx, [rsp + 0x70]
call fcn.1400031f0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1400031c5
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400031c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400031c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140053e2c
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140053dd0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret