Function at 0x640010
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b5d04
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x360
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x180], esi
mov dword [ebp - 0x17c], 0
call fcn.0063ff40
cmp byte [esi], 0
je 0x640271
lea eax, [esi + 4]
push eax
push 0x7da3d8
push 1
push 0
push 0x7cd2b4
mov dword [ebp - 0x180], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x6406b2
push 0xb0
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8], 0x7d4f80
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xb8], 0x7d5218
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0xb0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x17c], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable..7.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0xb0], 0x7c6164
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 2
xor eax, eax
movaps xmm0, xmmword [0x7e38f0]
movups xmmword [ebp - 0x1a8], xmm0
mov dword [ebp - 0x1ac], 0x27
movaps xmm0, xmmword [0x7e3950]
movups xmmword [ebp - 0x198], xmm0
mov dword [ebp - 0x188], 0xb8b4b8ac
mov dword [ebp - 0x184], 0xdff7f5b9
lea ecx, [eax - 0x48]
xor byte [ebp + eax - 0x1a8], cl
inc eax
mov ecx, dword [ebp - 0x1ac]
cmp eax, ecx
jb 0x640185
lea eax, [ebp - 0x1a8]
mov byte [ebp + ecx - 0x1a8], 0
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00413580
add esp, 8
call fcn.00434600
mov edi, eax
lea eax, [ebp - 0x370]
push eax
call fcn.00640820
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.006406d0
mov ecx, eax
call fcn.00403e20
lea ecx, [ebp - 0xc8]
push ecx
push esi
push 0x3d
push eax
push 0
mov ecx, edi
call fcn.00469240
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable..7.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xb0]
call fcn.004073e0
lea ecx, [ebp - 0xa8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x180]
mov ecx, dword [eax]
test ecx, ecx
je 0x6406b2
mov dword [eax], 0
mov dword [ebp - 4], 4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x6406b2
add esi, 8
push esi
push 0x7cd294
push 1
push 0
push 0x7cd2a4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x640453
push 0xb0
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8], 0x7d4f80
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xb8], 0x7d5218
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0xb0]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x17c], 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable..7.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0xb0], 0x7c6164
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x1ac]
movaps xmm0, xmmword [0x7e3af0]
movups xmmword [ebp - 0x1a8], xmm0
mov dword [ebp - 0x1ac], 0x25
movaps xmm0, xmmword [0x7e3d20]
movups xmmword [ebp - 0x198], xmm0
mov dword [ebp - 0x188], 0xf3bfbab6
mov dword [ebp - 0x184], 0xddf5
call fcn.004131e0
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00413580
add esp, 8
call fcn.00434600
mov edi, eax
lea eax, [ebp - 0x370]
push eax
call fcn.00640980
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.006406d0
mov ecx, eax
call fcn.00403e20
lea ecx, [ebp - 0xc8]
push ecx
push esi
push 0x48
push eax
push 0
mov ecx, edi
call fcn.00469240
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable..7.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xb0]
call fcn.004073e0
lea ecx, [ebp - 0xa8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov esi, dword [ebp - 0x180]
mov eax, dword [esi + 8]
test eax, eax
je 0x6406b2
mov dword [esi + 8], 0
mov dword [ebp - 4], 9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x6406b2
mov eax, dword [esi]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [ebp - 0x17c], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x28]
lea eax, [ebp - 0x1f0]
push eax
call esi
mov dword [ebp - 4], 0xa
lea eax, [ebp - 0x1e0]
movups xmm0, xmmword [ebp - 0x1f0]
push eax
movups xmmword [ebp - 0x200], xmm0
call esi
movups xmm0, xmmword [ebp - 0x1e0]
lea eax, [ebp - 0x1d0]
push eax
movups xmmword [ebp - 0x210], xmm0
call esi
movups xmm0, xmmword [ebp - 0x1d0]
lea eax, [ebp - 0x1c0]
push eax
movups xmmword [ebp - 0x220], xmm0
call esi
mov byte [ebp - 4], 0xd
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x200]
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x210]
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x220]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x1c0]
push dword [ebp - 0x17c]
movups xmmword [eax], xmm0
call edi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, eax
lea eax, [ebp - 0x1c0]
push eax
call esi
lea eax, [ebp - 0x1d0]
push eax
call esi
lea eax, [ebp - 0x1e0]
push eax
call esi
lea eax, [ebp - 0x1f0]
mov dword [ebp - 4], 0xffffffff
push eax
call esi
test edi, edi
jns 0x6406b2
push 0xb0
lea eax, [ebp - 0x178]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x178], 0x7d4f80
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x168], 0x7d5218
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0x160]
mov dword [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x17c], 4
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [ebp - 4], 0xf
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x17c], eax
lea ecx, [ebp - 0x160]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0x160], 0x7c6164
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x1a4]
movaps xmm0, xmmword [0x7e3af0]
movups xmmword [ebp - 0x1a0], xmm0
mov dword [ebp - 0x1a4], 0x1d
movaps xmm0, xmmword [0x7e3500]
movups xmmword [ebp - 0x190], xmm0
call fcn.004131e0
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.00413580
add esp, 8
call fcn.00434600
mov edi, eax
lea eax, [ebp - 0x370]
push eax
call fcn.00640ae0
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.006406d0
mov ecx, eax
call fcn.00403e20
lea ecx, [ebp - 0x178]
push ecx
push esi
push 0x51
push eax
push 0
mov ecx, edi
call fcn.00469240
lea ecx, [ebp - 0x178]
call fcn.00406480
mov esi, dword [ebp - 0x180]
mov dword [ebp - 4], 0x11
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x6406a9
mov dword [esi + 8], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ecx
lea ecx, [esi + 8]
call fcn.00644ee0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret