Function at 0x140004950
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0xe8]
sub rsp, 0x1e0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x140069040]
xor rax, rsp
mov qword [rbp + 0xc0], rax
movups xmm0, xmmword [0x14005e710]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x14005e720]
movups xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x14005e730]
movups xmmword [rsp + 0x70], xmm0
movzx eax, word [0x14005e740]
mov word [rbp - 0x80], ax
movzx eax, byte [0x14005e742]
mov byte [rbp - 0x7e], al
xor edi, edi
mov ecx, edi
cmp dword [0x140069088], 2
jl 0x140004b02
movdqa xmm5, xmmword [0x14005fa80]
movdqa xmm4, xmmword [0x14005fc80]
movdqa xmm6, xmmword [0x14005fab0]
movdqa xmm0, xmmword [str.2222222222222222]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x50]
mov r8d, dword [rsp + 0x30]
nop dword [rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14005fac0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14005fac0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx + 4]
xorps xmm2, xmm0
movd dword [rdx + 4], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x30
jl 0x140004a00
cmp ecx, 0x33
jge 0x140004b3c
movsxd rax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop dword [rax]
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
sub al, dl
add al, 0x32
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x33
jl 0x140004b10
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], rdi
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x140004b57
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.14000bed0
nop
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x50]
call fcn.14000aff0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rsi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], edx
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
movzx ebx, al
mov rcx, qword [rbp - 0x50]
movsxd rdx, dword [rcx + 4]
mov qword [rbp + rdx - 0x50], rsi
mov rcx, qword [rbp - 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb0]
mov dword [rbp + rdx - 0x54], r8d
lea rcx, [rbp - 0x40]
call fcn.14000af10
lea rcx, [rbp - 0x38]
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 + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
test bl, bl
je 0x140004dff
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x50]
call fcn.14000aff0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], rsi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], edx
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x38], 1
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx - 8]
mov qword [rsp + 0x40], rcx
test rcx, rcx
sete byte [rsp + 0x48]
mov byte [rsp + 0x49], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
movaps xmm6, xmmword [rsp + 0x30]
test rcx, rcx
je 0x140004cd6
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 0x140004cc2
mov byte [rsp + 0x49], al
mov rax, qword [rsp + 0x40]
mov byte [rsp + 0x48], 1
movaps xmm0, xmmword [rsp + 0x40]
jmp 0x140004cdb
mov rax, rdi
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x48], 1
movaps xmm0, xmmword [rsp + 0x40]
jmp 0x140004cdb
movq rax, xmm0
test rax, rax
movq rax, xmm6
jne 0x140004d36
test rax, rax
je 0x140004d3b
movdqa xmmword [rsp + 0x30], xmm6
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14000c640
mov rcx, qword [rsp + 0x60]
inc rcx
call fcn.1400575c0
mov rbx, rax
lea rcx, [rsp + 0x50]
mov r8, qword [rsp + 0x60]
cmp qword [rsp + 0x68], 0xf
jbe 0x140004d52
mov rdx, qword [rsp + 0x50]
add r8, rdx
jmp 0x140004d5a
test rax, rax
je 0x140004cea
mov rcx, rdi
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], cl
jmp 0x140004d0f
add r8, rcx
lea rdx, [rsp + 0x50]
sub r8, rdx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rsp + 0x60]
mov byte [rax + rbx], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140004dae
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004da9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004da9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005758c
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], rsi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x40]
call fcn.14000af10
lea rcx, [rbp - 0x38]
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 + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x140004e02
mov rbx, rdi
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140004e40
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004e3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004e3b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005758c
mov rax, rbx
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400571d0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret