Function at 0x578810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a3771
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1bc], edx
mov esi, ecx
mov dword [ebp - 0x1c0], esi
push 0xb0
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x198], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xd4], 0x7d6f90
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0xc4], 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 - 0xbc]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x198], 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 - 0xd4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd4], 0x7c81a4
mov eax, dword [ebp - 0xd4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xd8], eax
lea ecx, [ebp - 0xbc]
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 - 0xbc], 0x7c8164
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 4], 2
mov eax, 0x12
movaps xmm0, xmmword [0x7e5c80]
xor ecx, ecx
mov dword [ebp - 0x1b0], eax
movups xmmword [ebp - 0x1ac], xmm0
mov dword [ebp - 0x19c], 0xbb9a83
nop
mov al, cl
sub al, 0x57
xor byte [ebp + ecx - 0x1ac], al
inc ecx
mov eax, dword [ebp - 0x1b0]
cmp ecx, eax
jb 0x578930
mov byte [ebp + eax - 0x1ac], 0
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00413580
add esp, 8
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x57896e
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.00404c80
mov edx, dword [0x83ff50]
add esp, 0xc
mov dword [ebp - 0x188], edx
test edx, edx
jne 0x5789cc
push 0x20
call fcn.0076e8c3
mov edx, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x188], edx
xor eax, eax
mov dword [ebp - 0x1cc], edx
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [0x83ff50], edx
lea eax, [ebp - 0x39c]
push eax
call fcn.00578fc0
mov edi, eax
xor ecx, ecx
mov esi, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x18c], eax
test esi, esi
je 0x578a0d
mov edx, eax
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x5789f0
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x18c]
xor ecx, ecx
mov word [eax + esi*2], cx
lea eax, [ebp - 0x264]
push eax
call fcn.00578e90
mov edi, eax
mov esi, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x194], eax
test esi, esi
je 0x578a4f
mov edx, eax
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x578a32
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x194]
xor ecx, ecx
mov word [eax + esi*2], cx
lea ecx, [ebp - 0xd4]
push ecx
push dword [ebp - 0x18c]
mov ecx, edx
push 0xbb
push eax
push 1
call fcn.00469f50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd4], 0x7c81a4
mov eax, dword [ebp - 0xd4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xd8], eax
lea ecx, [ebp - 0xbc]
call fcn.004073e0
lea ecx, [ebp - 0xb4]
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 - 0x6c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
push dword [ebp - 0x1c0]
mov ecx, dword [ebp - 0x1bc]
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push eax
movq qword [ebp - 0x1c], xmm0
call fcn.00411280
mov dword [ebp - 4], 3
xor esi, esi
mov ecx, dword [ebp - 0x18]
mov eax, ecx
mov edi, dword [ebp - 0x1c]
sub eax, edi
mov dword [ebp - 0x1cc], ecx
cmp eax, 8
jb 0x578e5e
mov dword [ebp - 0x190], esi
cmp edi, ecx
je 0x578e5e
add edi, 4
mov dword [ebp - 0x1c4], edi
nop dword [eax]
mov esi, dword [edi]
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x18c], esi
test esi, esi
je 0x578b40
lock inc dword [esi + 4]
mov esi, dword [edi]
mov dword [ebp - 0x18c], esi
mov eax, dword [edi - 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x1bc]
mov byte [ebp - 4], 4
push dword [eax]
call fcn.004123d0
test al, al
jne 0x578e13
push 0xb0
lea eax, [ebp - 0x184]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x184], 0x7d6f90
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x174], 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 - 0x16c]
mov byte [ebp - 4], 5
or dword [ebp - 0x198], 2
lea ecx, [ebp - 0x184]
push eax
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 - 0x184]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x184], 0x7c81a4
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x188], eax
lea ecx, [ebp - 0x16c]
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 - 0x16c], 0x7c8164
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov byte [ebp - 4], 7
mov ecx, 0x19
movaps xmm0, xmmword [0x7e5c80]
xor eax, eax
mov dword [ebp - 0x1b8], ecx
movups xmmword [ebp - 0x1b4], xmm0
mov dword [ebp - 0x1a4], 0xf5fafc99
mov dword [ebp - 0x1a0], 0xecfbfbf1
mov dword [ebp - 0x19c], 0xc2e1
nop dword [eax]
lea ecx, [eax - 0x57]
xor byte [ebp + eax - 0x1b4], cl
inc eax
mov ecx, dword [ebp - 0x1b8]
cmp eax, ecx
jb 0x578c50
lea eax, [ebp - 0x1b4]
mov byte [ebp + ecx - 0x1b4], 0
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.00413580
mov edx, dword [ebp - 0x1c0]
add esp, 8
mov ecx, edx
cmp dword [edx + 0x14], 8
jb 0x578c93
mov ecx, dword [edx]
push dword [edx + 0x10]
push ecx
push eax
call fcn.00404c80
mov edx, dword [0x83ff50]
add esp, 0xc
mov dword [ebp - 0x188], edx
test edx, edx
jne 0x578cf1
push 0x20
call fcn.0076e8c3
mov edx, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x188], edx
xor eax, eax
mov dword [ebp - 0x1c8], edx
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [0x83ff50], edx
lea eax, [ebp - 0x43c]
push eax
call fcn.00579100
mov dword [ebp - 0x190], eax
mov edi, dword [eax]
lea ecx, [eax + 4]
mov dword [ebp - 0x194], ecx
xor ecx, ecx
test edi, edi
je 0x578d3d
mov edx, dword [ebp - 0x194]
mov esi, eax
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov edi, dword [esi]
cmp ecx, edi
jb 0x578d20
mov esi, dword [ebp - 0x18c]
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x194]
xor ecx, ecx
mov word [eax + edi*2], cx
lea eax, [ebp - 0x2fc]
push eax
call fcn.00578e90
mov dword [ebp - 0x1c8], eax
mov edi, dword [eax]
lea ecx, [eax + 4]
mov dword [ebp - 0x190], ecx
xor ecx, ecx
test edi, edi
je 0x578d91
mov edx, dword [ebp - 0x190]
mov esi, eax
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov edi, dword [esi]
cmp ecx, edi
jb 0x578d74
mov esi, dword [ebp - 0x18c]
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x190]
xor ecx, ecx
mov word [eax + edi*2], cx
lea ecx, [ebp - 0x184]
push ecx
push dword [ebp - 0x194]
mov ecx, edx
push 0xc9
push eax
push 0
call fcn.00469f50
mov eax, dword [ebp - 0x184]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x184], 0x7c81a4
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x188], eax
lea ecx, [ebp - 0x16c]
call fcn.004073e0
lea ecx, [ebp - 0x164]
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 - 0x11c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov edi, dword [ebp - 0x1c4]
mov dword [ebp - 0x190], 2
mov byte [ebp - 4], 8
test esi, esi
je 0x578e3c
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x578e3c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x578e3c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
add edi, 8
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c4], edi
lea eax, [edi - 4]
cmp eax, dword [ebp - 0x1cc]
jne 0x578b20
mov esi, dword [ebp - 0x190]
lea ecx, [ebp - 0x1c]
call fcn.004132d0
mov eax, esi
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.0076eb7e
mov esp, ebp
pop ebp
ret