Function at 0x589e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a55a6
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
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 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.00588d60
mov edx, eax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x58]
call fcn.00589650
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 0x58a64c
xor eax, eax
mov dword [ebp - 0x78], edi
push eax
push 0x7cf388
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 0x7cf388
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 0x58a0ad
mov eax, dword [esi]
test eax, eax
jns 0x589f19
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 0x589f26
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 0x589f5b
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x168]
call fcn.004044f0
or edi, 3
push 1
push 0x7d75dc
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 0x7da2dc
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.00589ab0
add esi, 4
cmp esi, dword [ebp - 0x54]
jne 0x589ef7
push 0xb0
lea eax, [ebp - 0x138]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x138], 0x7d6f90
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x128], 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 - 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 - 0x138], 0x7c81a4
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], 0x7c8164
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], 0xe900f2
mov dword [ebp - 0x44], 0xc300c7
mov dword [ebp - 0x40], 0xca00d8
mov dword [ebp - 0x3c], 0xc600ee
mov dword [ebp - 0x38], 0x9200ec
mov dword [ebp - 0x34], 0xd500fe
mov dword [ebp - 0x30], 0xd500c1
mov dword [ebp - 0x2c], 0xdd00df
mov dword [ebp - 0x28], 0x9a00dd
mov dword [ebp - 0x24], 0xd200d2
mov dword [ebp - 0x20], 0xdb00d9
mov dword [ebp - 0x1c], 0xa500c7
mov dword [ebp - 0x18], 0xf800b2
mov dword [ebp - 0x14], 0xc400e3
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x48], ax
inc ecx
mov eax, dword [ebp - 0x4c]
cmp ecx, eax
jb 0x58a1d2
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 [0x83ff50]
add esp, 0x14
mov dword [ebp - 0x144], edx
test edx, edx
jne 0x58a26b
push 0x20
call fcn.0076e8c3
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 [0x83ff50], edx
lea eax, [ebp - 0x300]
push eax
call fcn.0058a7c0
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 0x58a2bd
mov edx, dword [ebp - 0x13c]
mov edi, eax
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x58a2a0
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.0058a680
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 0x58a311
mov edx, dword [ebp - 0x140]
mov edi, eax
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x58a2f4
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 0x9c
push eax
push 1
call fcn.00469f50
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x138]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x138], 0x7c81a4
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], 0x7d6f90
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x128], 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 - 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 - 0x138], 0x7c81a4
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], 0x7c8164
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], 0xe900f2
mov dword [ebp - 0x44], 0xc300c7
mov dword [ebp - 0x40], 0xca00d8
mov dword [ebp - 0x3c], 0xc600ee
mov dword [ebp - 0x38], 0x9200ec
mov dword [ebp - 0x34], 0xd500fe
mov dword [ebp - 0x30], 0xd500c1
mov dword [ebp - 0x2c], 0xdd00df
mov dword [ebp - 0x28], 0x9a00dd
mov dword [ebp - 0x24], 0xdd00d3
mov dword [ebp - 0x20], 0xd600ce
mov dword [ebp - 0x1c], 0xb300da
mov dword [ebp - 0x18], 0xe200fb
mov dword [ebp - 0x14], 0xc3
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x48], ax
inc ecx
mov eax, dword [ebp - 0x4c]
cmp ecx, eax
jb 0x58a4b0
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 [0x83ff50]
add esp, 0x14
mov dword [ebp - 0x13c], edx
test edx, edx
jne 0x58a543
push 0x20
call fcn.0076e8c3
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 [0x83ff50], edx
lea eax, [ebp - 0x300]
push eax
call fcn.0058a970
mov edi, eax
xor ecx, ecx
mov esi, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x144], eax
test esi, esi
je 0x58a581
mov edx, eax
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x58a564
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.0058a680
mov edi, eax
mov esi, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x140], eax
test esi, esi
je 0x58a5cd
mov edx, eax
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x58a5b0
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 0x9d
push eax
push 1
call fcn.00469f50
mov eax, dword [ebp - 0x138]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x138], 0x7c81a4
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.0076eb7e
mov esp, ebp
pop ebp
ret 8