Function at 0x140050ec0
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x328]
sub rsp, 0x400
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x14012d010]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r15, rcx
xor r12d, r12d
lea rdx, [rbp + 0xc0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 4
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], 0xf100af
mov dword [rsp + 0x38], 0xf700fa
mov dword [rsp + 0x3c], 0x85
mov edx, r12d
test eax, eax
je 0x140050f5c
mov r8d, 0x81
mov eax, edx
lea rcx, [rsp + 0x34]
lea rcx, [rcx + rax*2]
lea eax, [r8 + rdx]
xor word [rcx], ax
inc edx
mov eax, dword [rsp + 0x30]
cmp edx, eax
jb 0x140050f40
mov word [rsp + rax*2 + 0x34], r12w
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
lea rax, [rbp + 0xc0]
mov rsi, 0xffffffffffffffff
mov rbx, rsi
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x140050f85
movabs r14, 0x7ffffffffffffffe
cmp rbx, r14
ja 0x140051248
mov qword [rsp + 0x58], 7
cmp rbx, 8
jae 0x140050fd5
mov qword [rsp + 0x50], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x40], r12w
jmp 0x140051025
mov rax, rbx
or rax, 7
cmp rax, r14
ja 0x140050ff0
mov r14, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r14, rcx
lea rdx, [r14 + 1]
call fcn.140052280
mov rdi, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r14
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0xc0]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi], r12w
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x140051032
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
lea rcx, [rsp + 0x40]
call fcn.140051df0
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
lea rax, [rsp + 0x34]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140051073
mov r8, rsi
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x78]
call fcn.140051df0
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x68], xmm6
movups xmm7, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x78], xmm7
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
lea rbx, [r15 + 0x20]
lea rax, [rsp + 0x68]
cmp rbx, rax
je 0x140051120
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400510fd
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400510f8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140051241
mov rcx, r8
call fcn.14010ef38
mov qword [rbx + 0x18], 7
movups xmmword [rbx], xmm6
movups xmmword [rbx + 0x10], xmm7
movdqa xmm0, xmmword [0x140120ab0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r12w
lea rcx, [rsp + 0x68]
call fcn.140051a90
nop
lea rcx, [rbp - 0x78]
call fcn.140051a90
nop
lea rcx, [rsp + 0x40]
call fcn.140051a90
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x50]
call fcn.14010fb17
cmp qword [rbx + 0x18], 8
jb 0x14005115a
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.140051bf0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rbx
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
mov r8d, 0x8708
lea rdx, [0x140117270]
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x48]
call fcn.14004f3c0
test rax, rax
jne 0x1400511ce
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
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 [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], rbx
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call fcn.14004ee40
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov al, 1
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.14010e990
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14004c210
int3