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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x2e8]
sub rsp, 0x3e0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x14012d010]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov rdi, rcx
lea rdx, [rbp + 0xa0]
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
xor esi, esi
mov edx, esi
test eax, eax
je 0x1400508ec
mov r8d, 0x81
nop dword [rax + rax]
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 0x1400508d0
mov word [rsp + rax*2 + 0x34], si
mov qword [rsp + 0x70], rsi
movdqa xmm0, xmmword [0x140120aa0]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], si
lea rax, [rbp + 0xa0]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], si
jne 0x140050920
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x70]
call fcn.140051700
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140050949
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x70]
call fcn.140051820
mov qword [rsp + 0x50], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rax, [rsp + 0x34]
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140050990
mov r8, rbx
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x50]
call fcn.140051820
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x30], xmm6
movups xmm7, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x40], xmm7
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rbx, [rdi + 0x20]
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x1400509fd
mov rcx, rbx
call fcn.140051690
movups xmmword [rbx], xmm6
movups xmmword [rbx + 0x10], xmm7
movdqa xmm0, xmmword [0x140120aa0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], si
lea rcx, [rsp + 0x30]
call fcn.140051690
nop
lea rcx, [rsp + 0x50]
call fcn.140051690
nop
lea rcx, [rsp + 0x70]
call fcn.140051690
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x70]
call fcn.14010faca
cmp qword [rbx + 0x18], 8
jb 0x140050a38
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140051520
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rbx
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
mov r8d, 0x8708
lea rdx, [0x140117250]
lea rcx, [rbp - 0x70]
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 - 0x68]
call fcn.14004eed0
test rax, rax
jne 0x140050aac
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 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 [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], rbx
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.14004e9c0
lea rcx, [rbp - 0x60]
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 + 0x38]
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 + 0x2b0]
xor rcx, rsp
call fcn.14010ea20
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rbp
ret