Function at 0x419350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4802f2
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x49d980]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 8
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x44]
movups xmmword [ebp - 0x44], xmm0
call fcn.00419110
push 0xb8
lea eax, [ebp - 0xfc]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edi, esi
cmp dword [esi + 0x14], 0xf
jbe 0x4193c6
mov edi, dword [esi]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xfc], 0x48ec44
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x14], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xfc], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x100], eax
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xec], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0xa4], 0
mov byte [ebp - 0xaf], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x49f8e4]
mov ecx, dword [0x49f8e8]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xb4], 0
push ecx
push 0x21
push edi
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 3
call fcn.0041a640
test eax, eax
jne 0x4194b7
mov eax, dword [ebp - 0xfc]
lea ecx, [ebp - 0xfc]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xfc], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x100], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0xa0], 0
je 0x4197c3
mov eax, dword [ebp - 0xfc]
mov word [ebp - 0x28], 1
mov byte [ebp - 0x13], 0
mov esi, dword [eax + 4]
mov ax, word [ebp - 0x26]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x104], eax
mov esi, dword [ebp + esi - 0xc4]
test esi, esi
sete cl
xor edi, edi
mov byte [ebp - 0x14], cl
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 0x13]
mov byte [ebp - 0xfd], al
test cl, cl
je 0x41955e
mov al, byte [ebp - 0x14]
mov byte [ebp - 0xfe], al
mov al, byte [ebp - 0x28]
mov byte [ebp - 0xff], al
jmp 0x419590
mov al, byte [ebp - 0x28]
mov byte [ebp - 0xff], al
test esi, esi
je 0x419580
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void_]
cmp eax, 0xffffffff
je 0x419580
mov byte [ebp - 0xfd], al
jmp 0x419582
xor esi, esi
mov al, byte [ebp - 0xff]
mov byte [ebp - 0xfe], 1
nop
test al, al
jne 0x4195ae
test edi, edi
je 0x4195a5
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void_]
cmp eax, 0xffffffff
jne 0x4195a7
xor edi, edi
mov byte [ebp - 0xff], 1
test esi, esi
jne 0x41971e
test edi, edi
jne 0x419726
mov byte [ebp - 4], 4
mov esi, 0
mov edi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x40]
sub edi, dword [ebp - 0x24]
je 0x4195ec
mov eax, dword [ebp - 0x24]
movzx ecx, byte [esi + eax]
inc esi
movzx eax, dl
xor ecx, eax
shr edx, 8
mov eax, dword [ebp - 0x3c]
xor edx, dword [eax + ecx*4]
cmp esi, edi
jb 0x4195d2
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], edx
not edx
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x41963d
mov edx, dword [ebp - 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x41961e
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419718
push edx
push ecx
call fcn.0047cd98
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xfc], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x100], eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0xa0], 0
mov dword [ebp - 0xec], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x4196ab
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xb0]
cmp dword [eax], ecx
jne 0x4196ab
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xd0]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc0]
mov dword [eax], edx
cmp byte [ebp - 0xa4], 0
je 0x4196bf
lea ecx, [ebp - 0xec]
call fcn.0041a5b0
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x8c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x4197a5
mov ecx, dword [ebp - 0x34]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x41979b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41979b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test edi, edi
jne 0x4195be
cmp byte [ebp - 0xfe], 0
jne 0x41974c
test esi, esi
je 0x41974a
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void_]
cmp eax, 0xffffffff
je 0x41974a
mov cl, al
mov byte [ebp - 0xfd], cl
jmp 0x419752
xor esi, esi
mov cl, byte [ebp - 0xfd]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0xfe], cl
cmp eax, dword [ebp - 0x1c]
je 0x419767
mov byte [eax], cl
inc dword [ebp - 0x20]
jmp 0x419779
lea eax, [ebp - 0xfe]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
call fcn.0041a8e0
test esi, esi
je 0x419580
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void_]
cmp eax, 0xffffffff
je 0x419580
mov byte [ebp - 0x14], 0
jmp 0x419567
push ecx
push edx
call fcn.0047cd98
add esp, 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047cd55
mov esp, ebp
pop ebp
ret
push esi
mov edx, str.Could_not_open_file:
lea ecx, [ebp - 0x11c]
call fcn.0040c170
add esp, 4
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00402070
push 0x4993b0
lea eax, [ebp - 0x30]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3