Function at 0x140004050
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x1400dc040]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], r8
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov r15, qword [rdx + 0x10]
mov r14, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x1400040af
mov r14, qword [rdx]
call fcn.14009a2e4
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r15
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140002840
nop
lea rcx, [rsp + 0x70]
call fcn.1400032e0
movzx r14d, al
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140004122
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000411d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000411d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009aa84
test r14b, r14b
jne 0x1400043a7
movsd xmm0, qword [str.PV]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x1400a3b28]
mov dword [rsp + 0x38], eax
movzx eax, word [0x1400a3b2c]
mov word [rsp + 0x3c], ax
movzx eax, byte [0x1400a3b2e]
mov byte [rsp + 0x3e], al
mov ecx, r12d
cmp dword [0x1400dc090], 2
jl 0x14000426d
movdqa xmm4, xmmword [0x1400ca770]
movdqa xmm2, xmmword [0x1400ca490]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400ca500]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400ca5c0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.8888888888888888]
movd xmm0, dword [str.PV]
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm3, xmmword [0x1400ca4e0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400ca500]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400ca5c0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.8888888888888888]
movd xmm0, dword [rsp + 0x34]
xorps xmm2, xmm0
movd dword [rsp + 0x34], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax + rax]
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
sub al, dl
add al, 0x38
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xf
jl 0x140004280
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400042d0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400126c0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140004322
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000431d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004671
mov rcx, r8
call fcn.14009aa84
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14000436b
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140004366
add rdx, 0x27
mov rax, qword [rcx - 8]
sub rcx, rax
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x140004678
mov rcx, rax
call fcn.14009aa84
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r12
mov rax, rsi
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.14009aa20
mov rbx, qword [rsp + 0x288]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400043c5
mov rdx, qword [rbx]
lea rcx, [rbp + 0x10]
call fcn.14000da30
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x10], r13
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xc], edx
mov qword [rbp - 0x38], r12
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x10]
lea rcx, [rbp]
call fcn.1400116f0
nop
cmp byte [rbp], 1
jne 0x14000457f
mov r15, qword [rbp + 8]
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.1400190c0
mov r14, qword [rsp + 0x60]
cmp byte [r14 + 0x19], 0
jne 0x140004447
lea r8, [r14 + 0x20]
mov rdx, rdi
mov rcx, r15
call fcn.14001d420
test al, al
je 0x14000444a
mov r14, qword [r15]
mov rax, qword [rbp + 8]
cmp r14, qword [rax]
je 0x14000457f
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.14000bf30
mov rdx, rax
lea rcx, [rbp]
call fcn.14000b860
nop
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov dword [rsp + 0x40], 0x26
cmp byte [rax], 3
jne 0x14000467f
mov rdx, qword [rax + 8]
mov rcx, rsi
call fcn.14000bd70
nop
movzx edx, byte [rbp]
lea rcx, [rbp + 8]
call fcn.14000db40
nop
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x10], r13
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xc], edx
lea rcx, [rbp + 0x20]
call fcn.14000b7f0
lea rcx, [rbp + 0x28]
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 + 0xc0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140004528
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140004523
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004578
mov rcx, r8
call fcn.14009aa84
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14000436b
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140004366
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140004669
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
xor r8d, r8d
lea rdx, [0x1400a1921]
mov rcx, rsi
call fcn.1400126c0
nop
movzx edx, byte [rbp]
lea rcx, [rbp + 8]
call fcn.14000db40
nop
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x10], r13
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0xc], edx
lea rcx, [rbp + 0x20]
call fcn.14000b7f0
lea rcx, [rbp + 0x28]
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 + 0xc0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140004624
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000461f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004671
mov rcx, r8
call fcn.14009aa84
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14000436b
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140004366
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004678
mov rcx, r8
jmp 0x140004366
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rax
call fcn.14000e040
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
lea rdx, str.type_must_be_string__but_is
lea rcx, [rbp - 0x30]
call fcn.14001f190
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rbp - 0x70]
call fcn.140012040
lea rdx, [0x1400d8158]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3