Function at 0x58c340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a43f6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
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 esi, ecx
mov dword [ebp - 0x2a8], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2ec], eax
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov edi, 1
mov dword [ebp - 0x2a4], edi
call fcn.0058d9c0
mov ecx, eax
call fcn.0059daa0
call fcn.0058d860
mov ecx, eax
call fcn.0063ff20
xorps xmm0, xmm0
push 0x20
movlpd qword [ebp - 0x18], xmm0
call fcn.0076d2e3
add esp, 4
mov dword [ebp - 0x2ac], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 2
movups xmmword [eax], xmm0
mov ecx, eax
movups xmmword [eax + 0x10], xmm0
call fcn.00411040
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push dword [ebp - 0x2ec]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0
call fcn.0058da20
mov ecx, dword [esi + 0x9c]
sub esp, 8
sub ecx, dword [esi + 0x98]
mov eax, esp
sar ecx, 3
push 0
push ecx
sub esp, 0x28
mov dword [eax], 0
mov esi, esp
mov dword [eax + 4], 0x64
mov dword [ebp - 0x2ac], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x30]
test ecx, ecx
sete al
test al, al
jne 0x58c478
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 3
call fcn.00450e80
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2a8]
mov esi, dword [eax + 0x98]
mov eax, dword [eax + 0x9c]
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2ac], eax
cmp esi, eax
je 0x58cc56
push 0xb0
lea eax, [ebp - 0x228]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x228], 0x7d4f80
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x218], 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 - 0x210]
mov byte [ebp - 4], 6
or edi, 2
lea ecx, [ebp - 0x228]
push eax
mov dword [ebp - 0x2a4], edi
mov dword [ebp - 0x2a8], 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], 7
mov eax, dword [ebp - 0x228]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x22c], eax
lea ecx, [ebp - 0x210]
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 - 0x210], 0x7c6164
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1d4], 0
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi]
test ecx, ecx
je 0x58c574
lock inc dword [ecx + 4]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x8c], edx
mov esi, dword [eax + 0x90]
mov dword [eax + 0x90], ecx
mov byte [ebp - 4], 9
test esi, esi
je 0x58c5b2
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x58c5b2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x58c5b2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x2b0]
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 8
push eax
mov ecx, dword [esi]
call fcn.00631f20
test al, al
je 0x58cbb0
mov edx, dword [ebp - 0x2b8]
mov ecx, dword [edx + 4]
cmp dword [edx + 8], ecx
je 0x58c608
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x58c5f8
lock inc dword [eax + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
add dword [edx + 4], 8
jmp 0x58c611
push esi
push ecx
mov ecx, edx
call fcn.00413880
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 byte [ebp - 4], 0xa
or edi, 4
lea ecx, [ebp - 0xc8]
push eax
mov dword [ebp - 0x2a4], 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], 0xb
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 byte [ebp - 4], 0xc
mov eax, 4
mov dword [ebp - 0x2cc], eax
xor ecx, ecx
mov dword [ebp - 0x2c8], 0xc900f9
mov dword [ebp - 0x2c4], 0x9b00ca
mov dword [ebp - 0x2c0], 0xbc
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x2c8], ax
inc ecx
mov eax, dword [ebp - 0x2cc]
cmp ecx, eax
jb 0x58c6f0
xor ecx, ecx
mov word [ebp + eax*2 - 0x2c8], cx
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00404740
mov esi, eax
lea ecx, [ebp - 0x304]
mov eax, dword [ebp - 0x2b0]
add esp, 8
mov eax, dword [eax]
add eax, 0x1c
push eax
call fcn.00404120
mov eax, dword [ebp - 0x2a8]
or eax, 0xc
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x304]
cmp dword [ebp - 0x2f0], 8
push dword [ebp - 0x2f4]
cmovae eax, dword [ebp - 0x304]
push eax
push esi
call fcn.00404c80
add esp, 0xc
mov dword [ebp - 0x2e8], 0xb
mov edx, eax
mov dword [ebp - 0x2e4], 0x830098
mov dword [ebp - 0x2e0], 0xdf009a
xor ecx, ecx
mov dword [ebp - 0x2dc], 0xc900d9
mov dword [ebp - 0x2d8], 0xdc00db
mov dword [ebp - 0x2d4], 0xa400b4
mov dword [ebp - 0x2d0], 0xc300a6
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x2e4], ax
inc ecx
mov eax, dword [ebp - 0x2e8]
cmp ecx, eax
jb 0x58c7d0
xor ecx, ecx
mov word [ebp + eax*2 - 0x2e4], cx
lea eax, [ebp - 0x2e4]
push eax
push edx
call fcn.00404740
add esp, 8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x304]
call fcn.00404490
mov esi, dword [0x83df60]
mov dword [ebp - 0x29c], esi
test esi, esi
jne 0x58c863
push 0x20
call fcn.0076d2e3
mov esi, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x29c], esi
xor eax, eax
mov dword [ebp - 0x2a0], esi
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [0x83df60], esi
lea eax, [ebp - 0x398]
push eax
call fcn.0058ce40
xor ecx, ecx
mov dword [ebp - 0x2b4], eax
mov edx, dword [eax]
lea edi, [eax + 4]
mov dword [ebp - 0x2a0], edi
test edx, edx
je 0x58c8a7
mov esi, eax
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x58c890
mov esi, dword [ebp - 0x29c]
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0x430]
push eax
call fcn.0058cd10
mov edx, eax
xor ecx, ecx
mov dword [ebp - 0x2bc], edx
lea eax, [edx + 4]
mov edx, dword [edx]
mov dword [ebp - 0x2b4], eax
test edx, edx
je 0x58c903
mov esi, dword [ebp - 0x2bc]
mov edi, eax
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x58c8e0
mov esi, dword [ebp - 0x29c]
mov edi, dword [ebp - 0x2a0]
mov eax, dword [ebp - 0x2b4]
xor ecx, ecx
mov word [eax + edx*2], cx
lea ecx, [ebp - 0xc8]
push ecx
push edi
push 0x3d
push eax
push 1
mov ecx, esi
call fcn.00469240
mov byte [ebp - 4], 8
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_]
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_]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x178]
mov eax, dword [ebp - 0x2a8]
or eax, 0x1c
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], eax
lea eax, [ebp - 0x160]
push 0
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], 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
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x228]
call fcn.00406c80
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x58ca49
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.00404c80
add esp, 0xc
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x304]
call fcn.00404490
mov edx, dword [0x83df60]
mov dword [ebp - 0x29c], edx
test edx, edx
jne 0x58caba
push 0x20
call fcn.0076d2e3
mov edx, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x29c], edx
xor eax, eax
mov dword [ebp - 0x2a0], 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 - 0x398]
push eax
call fcn.0058cf70
xor ecx, ecx
mov dword [ebp - 0x2a0], eax
mov esi, dword [eax]
lea edi, [eax + 4]
mov dword [ebp - 0x2bc], edi
test esi, esi
je 0x58caf7
mov edx, eax
nop
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov esi, dword [edx]
cmp ecx, esi
jb 0x58cae0
mov edx, dword [ebp - 0x29c]
xor eax, eax
mov word [edi + esi*2], ax
lea eax, [ebp - 0x430]
push eax
call fcn.0058cd10
xor ecx, ecx
mov dword [ebp - 0x2a0], eax
mov esi, dword [eax]
lea edi, [eax + 4]
test esi, esi
je 0x58cb37
mov edx, eax
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov esi, dword [edx]
cmp ecx, esi
jb 0x58cb20
mov edx, dword [ebp - 0x29c]
xor eax, eax
mov ecx, edx
mov word [edi + esi*2], ax
lea eax, [ebp - 0x178]
push eax
push dword [ebp - 0x2bc]
push 0x3e
push edi
push 1
call fcn.00469240
mov byte [ebp - 4], 8
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 fcn.004073e0
lea ecx, [ebp - 0x158]
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 - 0x110]
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 - 0x2a8]
mov esi, dword [ebp - 0x2b0]
mov eax, dword [esi]
lea ecx, [ebp - 0x304]
add eax, 0x1c
push eax
call fcn.00404120
or edi, 0x20
mov dword [ebp - 0x2a4], edi
lea eax, [ebp - 0x304]
mov byte [ebp - 4], 0x12
movsd xmm2, qword [0x7e15a8]
lea ecx, [ebp - 0x298]
push eax
call fcn.00454f70
lea ecx, [ebp - 0x304]
call fcn.00404490
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x228]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x22c], eax
lea ecx, [ebp - 0x210]
call fcn.004073e0
lea ecx, [ebp - 0x208]
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 - 0x1c0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
add esi, 8
mov dword [ebp - 0x2b0], esi
cmp esi, dword [ebp - 0x2ac]
jne 0x58c4b1
call fcn.0058d860
mov ecx, eax
call fcn.0063ff40
lea ecx, [ebp - 0x250]
call fcn.00404490
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x274]
test ecx, ecx
je 0x58cc98
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x298]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x274], 0
mov byte [ebp - 4], 0x14
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x58ccc4
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x58ccc4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x58ccc4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0x15
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x58cce3
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, dword [ebp - 0x2b8]
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 0x2c