Function at 0x588e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a3e06
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x180]
mov dword [ebp - 0x140], edi
push eax
mov dword [ebp - 0x148], edx
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], edi
call fcn.00587da0
mov edx, eax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x58]
call fcn.00588690
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 2
call fcn.00407a10
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x58]
sub eax, esi
sar eax, 2
mov dword [ebp - 0x150], eax
test eax, eax
je 0x58965c
xor eax, eax
mov dword [ebp - 0x78], edi
push eax
push 0x7cd378
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.004044f0
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x7cd378
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.004044f0
mov byte [ebp - 4], 4
cmp esi, dword [ebp - 0x54]
je 0x5890bd
mov eax, dword [esi]
test eax, eax
jns 0x588f29
neg eax
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.00413b90
add esp, 8
mov ecx, 0x2d
sub eax, 2
mov word [eax], cx
jmp 0x588f36
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.00413b90
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x158], 0
mov word [ebp - 0x168], cx
lea ecx, [ebp - 0x12]
mov dword [ebp - 0x154], 7
cmp eax, ecx
je 0x588f6b
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x168]
call fcn.004044f0
or edi, 3
push 1
push 0x7d55cc
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 5
call fcn.00407c50
xor ecx, ecx
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movups xmmword [ebp - 0x198], xmm1
mov word [eax], cx
movq qword [ebp - 0x188], xmm0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x198]
cmp dword [ebp - 0x184], 8
push dword [ebp - 0x188]
movd eax, xmm1
cmovae ecx, eax
push ecx
lea ecx, [ebp - 0x88]
call fcn.00407c50
lea ecx, [ebp - 0x198]
call fcn.00404490
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 4
call fcn.00404490
mov eax, dword [esi]
mov ecx, dword [ebp - 0x13c]
lea eax, [eax + eax*2]
shl eax, 4
add eax, 0x18
add eax, dword [ecx]
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.004057b0
add esp, 8
push 2
push 0x7d8290
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00407c50
xor ecx, ecx
or edi, 0xc
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movups xmmword [ebp - 0x180], xmm1
mov word [eax], cx
movq qword [ebp - 0x170], xmm0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x180]
cmp dword [ebp - 0x16c], 8
push dword [ebp - 0x170]
movd eax, xmm1
cmovae ecx, eax
push ecx
lea ecx, [ebp - 0x70]
call fcn.00407c50
lea ecx, [ebp - 0x180]
call fcn.00404490
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 4
call fcn.00404490
mov eax, dword [esi]
mov ecx, dword [ebp - 0x13c]
push dword [ebp - 0x148]
lea eax, [eax + eax*2]
shl eax, 4
add eax, dword [ecx]
push eax
call fcn.00588af0
add esi, 4
cmp esi, dword [ebp - 0x54]
jne 0x588f07
push 0xb0
lea eax, [ebp - 0x138]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x138], 0x7d4f80
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x128], 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 - 0x120]
mov byte [ebp - 4], 9
or edi, 0x10
lea ecx, [ebp - 0x138]
push eax
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x140], edi
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], 0xa
mov eax, dword [ebp - 0x138]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x13c], eax
lea ecx, [ebp - 0x120]
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 - 0x120], 0x7c6164
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov byte [ebp - 4], 0xb
xor ecx, ecx
mov dword [ebp - 0x4c], 0x1b
mov dword [ebp - 0x48], 0xfa00e3
mov dword [ebp - 0x44], 0xd400d6
mov dword [ebp - 0x40], 0xd900c9
mov dword [ebp - 0x3c], 0xc900ff
mov dword [ebp - 0x38], 0xe1009d
mov dword [ebp - 0x34], 0xa2008f
mov dword [ebp - 0x30], 0xa600b0
mov dword [ebp - 0x2c], 0xa200ae
mov dword [ebp - 0x28], 0xe900ac
mov dword [ebp - 0x24], 0xa500a3
mov dword [ebp - 0x20], 0xa800a8
mov dword [ebp - 0x1c], 0xaa00b6
mov dword [ebp - 0x18], 0xeb00a3
mov dword [ebp - 0x14], 0xd300f2
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x48], ax
inc ecx
mov eax, dword [ebp - 0x4c]
cmp ecx, eax
jb 0x5891e2
xor ecx, ecx
mov word [ebp + eax*2 - 0x48], cx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00404740
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x88]
push dword [ebp - 0x78]
cmovae ecx, dword [ebp - 0x88]
push ecx
push eax
call fcn.00404c80
mov edx, dword [0x83df60]
add esp, 0x14
mov dword [ebp - 0x144], edx
test edx, edx
jne 0x58927b
push 0x20
call fcn.0076d2e3
mov edx, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x144], edx
xor eax, eax
mov dword [ebp - 0x14c], 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 [0x83df60], edx
lea eax, [ebp - 0x300]
push eax
call fcn.005897d0
mov dword [ebp - 0x140], eax
mov esi, dword [eax]
lea ecx, [eax + 4]
mov dword [ebp - 0x13c], ecx
xor ecx, ecx
test esi, esi
je 0x5892cd
mov edx, dword [ebp - 0x13c]
mov edi, eax
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x5892b0
mov edi, dword [ebp - 0x148]
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x13c]
xor ecx, ecx
mov word [eax + esi*2], cx
lea eax, [ebp - 0x238]
push eax
call fcn.00589690
mov dword [ebp - 0x14c], eax
mov esi, dword [eax]
lea ecx, [eax + 4]
mov dword [ebp - 0x140], ecx
xor ecx, ecx
test esi, esi
je 0x589321
mov edx, dword [ebp - 0x140]
mov edi, eax
lea eax, [ecx + 0xb8]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x589304
mov edi, dword [ebp - 0x148]
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x140]
xor ecx, ecx
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x138]
push ecx
push dword [ebp - 0x13c]
mov ecx, edx
push 0x9a
push eax
push 1
call fcn.00469240
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x138]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x13c], eax
lea ecx, [ebp - 0x120]
call fcn.004073e0
lea ecx, [ebp - 0x118]
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 - 0xd0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
push 0xb0
lea eax, [ebp - 0x138]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x138], 0x7d4f80
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x128], 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 - 0x120]
mov byte [ebp - 4], 0xc
or edi, 0x20
lea ecx, [ebp - 0x138]
push eax
mov dword [ebp - 0x140], edi
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], 0xd
mov eax, dword [ebp - 0x138]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x13c], eax
lea ecx, [ebp - 0x120]
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 - 0x120], 0x7c6164
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov byte [ebp - 4], 0xe
mov eax, 0x1a
mov dword [ebp - 0x4c], eax
xor ecx, ecx
mov dword [ebp - 0x48], 0xfa00e3
mov dword [ebp - 0x44], 0xd400d6
mov dword [ebp - 0x40], 0xd900c9
mov dword [ebp - 0x3c], 0xc900ff
mov dword [ebp - 0x38], 0xe1009d
mov dword [ebp - 0x34], 0xa2008f
mov dword [ebp - 0x30], 0xa600b0
mov dword [ebp - 0x2c], 0xa200ae
mov dword [ebp - 0x28], 0xe900ac
mov dword [ebp - 0x24], 0xaa00a2
mov dword [ebp - 0x20], 0xa500bf
mov dword [ebp - 0x1c], 0xbc00ab
mov dword [ebp - 0x18], 0xf100ea
mov dword [ebp - 0x14], 0xd2
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x48], ax
inc ecx
mov eax, dword [ebp - 0x4c]
cmp ecx, eax
jb 0x5894c0
xor ecx, ecx
mov word [ebp + eax*2 - 0x48], cx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00404740
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae ecx, dword [ebp - 0x70]
push ecx
push eax
call fcn.00404c80
mov edx, dword [0x83df60]
add esp, 0x14
mov dword [ebp - 0x13c], edx
test edx, edx
jne 0x589553
push 0x20
call fcn.0076d2e3
mov edx, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x13c], edx
xor eax, eax
mov dword [ebp - 0x14c], 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 [0x83df60], edx
lea eax, [ebp - 0x300]
push eax
call fcn.00589980
mov edi, eax
xor ecx, ecx
mov esi, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x144], eax
test esi, esi
je 0x589591
mov edx, eax
lea eax, [ecx + 0xb8]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x589574
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x144]
xor ecx, ecx
mov word [eax + esi*2], cx
lea eax, [ebp - 0x238]
push eax
call fcn.00589690
mov edi, eax
mov esi, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x140], eax
test esi, esi
je 0x5895dd
mov edx, eax
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x5895c0
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x140]
xor ecx, ecx
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x138]
push ecx
push dword [ebp - 0x144]
mov ecx, edx
push 0x9b
push eax
push 1
call fcn.00469240
mov eax, dword [ebp - 0x138]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x13c], eax
lea ecx, [ebp - 0x120]
call fcn.004073e0
lea ecx, [ebp - 0x118]
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 - 0xd0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x70]
call fcn.00404490
lea ecx, [ebp - 0x88]
call fcn.00404490
lea ecx, [ebp - 0x58]
call fcn.004097f0
mov eax, dword [ebp - 0x150]
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.0076d59e
mov esp, ebp
pop ebp
ret 8