Function at 0x1400138f0
Capabilities:
Encode data using xor
Encrypt data using dpapi

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2e0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x50], rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 0xf
jbe 0x140013956
mov rbx, qword [rbx]
mov r8d, 1
mov rdx, rbx
lea rcx, [rbp + 0xb0]
call fcn.1400237a0
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xb0], r12
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xac], edx
cmp qword [rbp + 0x140], 0
jne 0x1400139e4
mov qword [rsi], r15
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], r15
mov rcx, qword [rbp + 0xb0]
movsxd rdx, dword [rcx + 4]
mov qword [rbp + rdx + 0xb0], r12
mov rcx, qword [rbp + 0xb0]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb0]
mov dword [rbp + rdx + 0xac], r8d
jmp 0x1400140c4
mov qword [rbp - 0x40], r15
mov word [rbp - 0x38], 1
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx + 0xf8]
mov qword [rbp - 0x50], rcx
test rcx, rcx
sete byte [rbp - 0x48]
mov byte [rbp - 0x47], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x28], xmm1
movaps xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp - 0x50], xmm0
movaps xmm6, xmmword [rbp - 0x40]
test rcx, rcx
je 0x140013a5d
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140013a4c
mov byte [rbp - 0x47], al
mov rax, qword [rbp - 0x50]
mov byte [rbp - 0x48], 1
movaps xmm0, xmmword [rbp - 0x50]
jmp 0x140013a62
mov rax, r15
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], 1
movaps xmm0, xmmword [rbp - 0x50]
jmp 0x140013a62
movq rax, xmm0
test rax, rax
movq rax, xmm6
jne 0x140013e19
test rax, rax
je 0x140013e22
movdqa xmmword [rbp - 0x40], xmm6
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x18]
call fcn.14002b960
nop
lea rcx, [rbp + 0xc0]
call fcn.1400236e0
test rax, rax
jne 0x140013ac9
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xb0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov qword [rbp - 0x80], r15
lea r8, [rsp + 0x48]
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0x38]
call fcn.140025380
nop
movsd xmm0, qword [str._BmPFLFC8]
movsd qword [rbp - 0x50], xmm0
movzx eax, byte [0x140051df0]
mov byte [rbp - 0x50], 0x6f
xor byte [rbp - 0x4f], 0x31
xor byte [rbp - 0x4e], 0x32
xor byte [rbp - 0x4d], 0x33
xor byte [rbp - 0x4c], 0x34
xor byte [rbp - 0x4b], 0x35
xor byte [rbp - 0x4a], 0x36
xor byte [rbp - 0x49], 0x37
xor al, 0x38
mov byte [rbp - 0x48], al
xorps xmm0, xmm0
movups xmmword [rbp + 0x88], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x98], xmm1
lea rax, [rbp - 0x50]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140013b40
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x88]
call fcn.140026770
nop
movsd xmm0, qword [str.U_QAMEBR_fQE]
movsd qword [rbp - 0x50], xmm0
mov edx, dword [0x140052cf0]
mov dword [rbp - 0x48], edx
movzx eax, word [0x140052cf4]
mov word [rbp - 0x44], ax
cmp byte [0x140052cf5], 0
je 0x140013d1e
mov ecx, r15d
cmp dword [0x140060090], 2
jl 0x140013ce7
movdqa xmm5, xmmword [0x140053790]
movdqa xmm6, xmmword [str.::::]
movdqa xmm2, xmmword [0x140053670]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movdqa xmm4, xmmword [0x140053760]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.0000000000000000]
movd xmm0, dword [str.U_QAMEBR_fQE]
xorps xmm2, xmm0
movd dword [rbp - 0x50], xmm2
movdqa xmm2, xmmword [0x140053690]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.0000000000000000]
movd xmm0, dword [rbp - 0x4c]
xorps xmm2, xmm0
movd dword [rbp - 0x4c], xmm2
movdqa xmm3, xmmword [0x1400536d0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [str.0000000000000000]
movd xmm0, edx
xorps xmm3, xmm0
movd dword [rbp - 0x48], xmm3
mov ecx, 0xc
mov eax, ecx
lea r8, [rbp - 0x50]
add r8, rax
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
sub al, dl
add al, 0x30
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xe
jl 0x140013cf0
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x78], xmm1
lea rax, [rbp - 0x50]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140013d31
mov r8, rbx
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x68]
call fcn.140026770
nop
lea rdx, [rbp + 0x88]
lea rcx, [rbp - 8]
call fcn.140022040
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.140020bc0
mov rbx, rax
lea rdx, [rbp + 0x68]
lea rcx, [rbp - 0x40]
call fcn.140022040
mov rdx, rax
mov rcx, rbx
call fcn.140020bc0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
movdqa xmm1, xmmword [0x140053650]
movdqu xmmword [rbp + 0x58], xmm1
mov byte [rbp + 0x48], 0
mov dword [rsp + 0x40], 0x10
cmp byte [rax], 3
jne 0x140014123
mov rdx, qword [rax + 8]
lea rax, [rbp + 0x48]
cmp rax, rdx
je 0x140013dd1
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140013dc7
mov rdx, qword [rdx]
lea rcx, [rbp + 0x48]
call fcn.140024850
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x20]
call fcn.1400132a0
nop
mov rdi, qword [rbp - 0x20]
lea rdx, [rdi + 5]
cmp rdi, rdx
je 0x140013e38
mov rbx, qword [rbp - 0x18]
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + rdi]
mov qword [rbp - 0x18], rax
mov rdi, qword [rbp - 0x20]
jmp 0x140013e3c
test rax, rax
je 0x140013a79
movdqa xmm0, xmmword [0x140053650]
movdqu xmmword [rbp + 0x28], xmm0
mov byte [rbp + 0x18], 0
jmp 0x140013a95
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x48], rdi
sub eax, edi
mov dword [rbp - 0x50], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x140013f1c
mov edi, dword [rbp - 0x40]
mov r14, qword [rbp - 0x38]
add rdi, r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
mov qword [rbp + 8], r15
sub rdi, r14
je 0x140013f02
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x14001415c
cmp rdi, 0x1000
jb 0x140013ed8
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x14001411d
call fcn.1400480c0
mov rcx, rax
test rax, rax
je 0x140013ed1
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140013ee0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400480c0
mov qword [rbp - 8], rax
lea rbx, [rax + rdi]
mov qword [rbp + 8], rbx
mov r8, rdi
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp], rbx
mov r14, qword [rbp - 0x38]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp]
mov rax, qword [rbp - 8]
mov qword [rsi], rax
jmp 0x140013f25
mov qword [rsi], r15
mov rcx, r15
mov rdx, r15
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], rcx
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140013f76
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013f65
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013f65
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140048104
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r15
mov rdx, qword [rbp + 0x60]
cmp rdx, 0xf
jbe 0x140013fb5
inc rdx
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013faf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013faf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140048104
nop
mov rdx, qword [rbp + 0x80]
cmp rdx, 0xf
jbe 0x140013ff7
inc rdx
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013ff1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013ff1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140048104
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 0xf
jbe 0x14001403c
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014036
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014036
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140048104
nop
movzx edx, byte [rbp + 0x38]
lea rcx, [rbp + 0x40]
call fcn.140024320
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 0xf
jbe 0x140014088
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014083
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014083
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140048104
movdqa xmm0, xmmword [0x140053650]
movdqu xmmword [rbp + 0x28], xmm0
mov byte [rbp + 0x18], 0
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xb0], r12
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xac], edx
lea rcx, [rbp + 0xc0]
call fcn.140020a80
lea rcx, [rbp + 0xc8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x160]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, rsi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400480a0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140001180
nop
mov rcx, rax
call fcn.140023a30
mov qword [rbp - 0x50], rax
lea r8, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.14003c3d0
nop
mov r8, rax
lea rcx, [rsp + 0x48]
call fcn.14003c490
lea rdx, [0x14005ccf8]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.14000d040
int3