Function at 0x58d330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a5b96
mov eax, dword fs:[0]
push eax
sub esp, 0x424
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 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.0058e9b0
mov ecx, eax
call fcn.0059eaa0
call fcn.0058e850
mov ecx, eax
call fcn.00640c50
xorps xmm0, xmm0
push 0x20
movlpd qword [ebp - 0x18], xmm0
call fcn.0076e8c3
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.0058ea10
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 0x58d468
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.00451950
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 0x58dc46
push 0xb0
lea eax, [ebp - 0x228]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x228], 0x7d6f90
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x218], 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 - 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 - 0x228], 0x7c81a4
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], 0x7c8164
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1d4], 0
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi]
test ecx, ecx
je 0x58d564
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 0x58d5a2
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x58d5a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x58d5a2
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.00632c20
test al, al
je 0x58dba0
mov edx, dword [ebp - 0x2b8]
mov ecx, dword [edx + 4]
cmp dword [edx + 8], ecx
je 0x58d5f8
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x58d5e8
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 0x58d601
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], 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 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], 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 byte [ebp - 4], 0xc
mov eax, 4
mov dword [ebp - 0x2cc], eax
xor ecx, ecx
mov dword [ebp - 0x2c8], 0xda00e8
mov dword [ebp - 0x2c4], 0x8c00db
mov dword [ebp - 0x2c0], 0xad
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x2c8], ax
inc ecx
mov eax, dword [ebp - 0x2cc]
cmp ecx, eax
jb 0x58d6e0
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], 0x900089
mov dword [ebp - 0x2e0], 0xc8008b
xor ecx, ecx
mov dword [ebp - 0x2dc], 0xda00c8
mov dword [ebp - 0x2d8], 0xd300ca
mov dword [ebp - 0x2d4], 0xd700c5
mov dword [ebp - 0x2d0], 0xb400d7
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x2e4], ax
inc ecx
mov eax, dword [ebp - 0x2e8]
cmp ecx, eax
jb 0x58d7c0
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 [0x83ff50]
mov dword [ebp - 0x29c], esi
test esi, esi
jne 0x58d853
push 0x20
call fcn.0076e8c3
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 [0x83ff50], esi
lea eax, [ebp - 0x398]
push eax
call fcn.0058de30
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 0x58d897
mov esi, eax
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x58d880
mov esi, dword [ebp - 0x29c]
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0x430]
push eax
call fcn.0058dd00
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 0x58d8f3
mov esi, dword [ebp - 0x2bc]
mov edi, eax
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x58d8d0
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.00469f50
mov byte [ebp - 4], 8
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_]
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_]
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 - 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
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 0x58da39
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 [0x83ff50]
mov dword [ebp - 0x29c], edx
test edx, edx
jne 0x58daaa
push 0x20
call fcn.0076e8c3
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 [0x83ff50], edx
lea eax, [ebp - 0x398]
push eax
call fcn.0058df60
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 0x58dae7
mov edx, eax
nop
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov esi, dword [edx]
cmp ecx, esi
jb 0x58dad0
mov edx, dword [ebp - 0x29c]
xor eax, eax
mov word [edi + esi*2], ax
lea eax, [ebp - 0x430]
push eax
call fcn.0058dd00
xor ecx, ecx
mov dword [ebp - 0x2a0], eax
mov esi, dword [eax]
lea edi, [eax + 4]
test esi, esi
je 0x58db27
mov edx, eax
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov esi, dword [edx]
cmp ecx, esi
jb 0x58db10
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.00469f50
mov byte [ebp - 4], 8
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 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 [0x7e3618]
lea ecx, [ebp - 0x298]
push eax
call fcn.00455c70
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 - 0x228], 0x7c81a4
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 0x58d4a1
call fcn.0058e850
mov ecx, eax
call fcn.00640c70
lea ecx, [ebp - 0x250]
call fcn.00404490
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x274]
test ecx, ecx
je 0x58dc88
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 0x58dcb4
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x58dcb4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x58dcb4
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 0x58dcd3
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.0076eb7e
mov esp, ebp
pop ebp
ret 0x2c