Function at 0x640d40
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 0x7b7434
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x360
mov eax, dword [0x831184]
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.00640c70
cmp byte [esi], 0
je 0x640fa1
lea eax, [esi + 4]
push eax
push 0x7dc428
push 1
push 0
push 0x7cf2c4
mov dword [ebp - 0x180], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x6413e2
push 0xb0
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8], 0x7d6f90
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xb8], 0x7d7228
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], 0x7c81a4
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], 0x7c8164
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 2
xor eax, eax
movaps xmm0, xmmword [0x7e5f00]
movups xmmword [ebp - 0x1a8], xmm0
mov dword [ebp - 0x1ac], 0x27
movaps xmm0, xmmword [0x7e5b60]
movups xmmword [ebp - 0x198], xmm0
mov dword [ebp - 0x188], 0xafa5abbd
mov dword [ebp - 0x184], 0xd0e6e6a8
lea ecx, [eax - 0x57]
xor byte [ebp + eax - 0x1a8], cl
inc eax
mov ecx, dword [ebp - 0x1ac]
cmp eax, ecx
jb 0x640eb5
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.004345f0
mov edi, eax
lea eax, [ebp - 0x370]
push eax
call fcn.00641550
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.00641400
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.00469f50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], 0x7c81a4
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 0x6413e2
mov dword [eax], 0
mov dword [ebp - 4], 4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x6413e2
add esi, 8
push esi
push 0x7cf2a4
push 1
push 0
push 0x7cf2b4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x641183
push 0xb0
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8], 0x7d6f90
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xb8], 0x7d7228
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], 0x7c81a4
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], 0x7c8164
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x1ac]
movaps xmm0, xmmword [0x7e5d90]
movups xmmword [ebp - 0x1a8], xmm0
mov dword [ebp - 0x1ac], 0x25
movaps xmm0, xmmword [0x7e5970]
movups xmmword [ebp - 0x198], xmm0
mov dword [ebp - 0x188], 0xe4aea9a7
mov dword [ebp - 0x184], 0xcee4
call fcn.004131e0
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00413580
add esp, 8
call fcn.004345f0
mov edi, eax
lea eax, [ebp - 0x370]
push eax
call fcn.006416b0
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.00641400
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.00469f50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], 0x7c81a4
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 0x6413e2
mov dword [esi + 8], 0
mov dword [ebp - 4], 9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x6413e2
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 0x6413e2
push 0xb0
lea eax, [ebp - 0x178]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x178], 0x7d6f90
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x168], 0x7d7228
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 - 0x178], 0x7c81a4
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], 0x7c8164
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x1a4]
movaps xmm0, xmmword [0x7e5d90]
movups xmmword [ebp - 0x1a0], xmm0
mov dword [ebp - 0x1a4], 0x1d
movaps xmm0, xmmword [0x7e5590]
movups xmmword [ebp - 0x190], xmm0
call fcn.004131e0
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.00413580
add esp, 8
call fcn.004345f0
mov edi, eax
lea eax, [ebp - 0x370]
push eax
call fcn.00641810
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.00641400
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.00469f50
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 0x6413d9
mov dword [esi + 8], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ecx
lea ecx, [esi + 8]
call fcn.00645c10
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.0076eb7e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret