Function at 0x5d4d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ab6d4
mov eax, dword fs:[0]
push eax
sub esp, 0x364
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, ecx
mov dword [ebp - 0x188], eax
xor ecx, ecx
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x184], ecx
cmp byte [eax + 0x10], cl
jne 0x5d5056
push 0xb0
push ecx
lea eax, [ebp - 0xc8]
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 dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x17c], 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 - 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 dword [ebp - 4], 2
xor ecx, ecx
mov dword [ebp - 0x208], 0x25
mov dword [ebp - 0x204], 0xd100ec
mov dword [ebp - 0x200], 0xc800d3
mov dword [ebp - 0x1fc], 0xd8009c
mov dword [ebp - 0x1f8], 0xcb00c6
mov dword [ebp - 0x1f4], 0xaf00a5
mov dword [ebp - 0x1f0], 0xaa00b1
mov dword [ebp - 0x1ec], 0xab00ab
mov dword [ebp - 0x1e8], 0xe700b5
mov dword [ebp - 0x1e4], 0xa600a6
mov dword [ebp - 0x1e0], 0xeb00be
mov dword [ebp - 0x1dc], 0xb800bf
mov dword [ebp - 0x1d8], 0xbf00be
mov dword [ebp - 0x1d4], 0xa300bf
mov dword [ebp - 0x1d0], 0xb600a6
mov dword [ebp - 0x1cc], 0xf500b0
mov dword [ebp - 0x1c8], 0xb800b0
mov dword [ebp - 0x1c4], 0xf900aa
mov dword [ebp - 0x1c0], 0xb400b4
mov dword [ebp - 0x1bc], 0xdd00ab
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x204], ax
inc ecx
mov eax, dword [ebp - 0x208]
cmp ecx, eax
jb 0x5d4f40
xor ecx, ecx
mov word [ebp + eax*2 - 0x204], cx
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00404740
add esp, 8
call fcn.00434600
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x2c4]
push eax
call fcn.005d55b0
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
mov dword [ebp - 0x188], edi
test edx, edx
je 0x5d4fb4
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5d4fa3
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0x370]
push eax
call fcn.005d5450
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
test edx, edx
je 0x5d4fe4
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5d4fd3
mov ecx, dword [ebp - 0x180]
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 0x188]
push 0xc3
push edi
push 0
call fcn.00469240
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_]
jmp 0x5d5424
mov esi, dword [eax + 4]
mov dword [ebp - 0x190], esi
cmp esi, dword [eax + 8]
je 0x5d5424
nop dword [eax + eax]
mov edi, dword [esi + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test edi, edi
je 0x5d5094
lock inc dword [edi + 4]
mov edi, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 3
mov al, byte [eax + 0xd]
test al, al
je 0x5d53d9
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], 4
lea ecx, [ebp - 0x178]
mov eax, dword [ebp - 0x184]
or eax, 2
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x17c], 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], 5
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
mov byte [ebp - 4], 6
mov ecx, 0xe
mov dword [ebp - 0x1b8], ecx
xor eax, eax
mov dword [ebp - 0x1b4], 0xdc00ea
mov dword [ebp - 0x1b0], 0xd400d7
mov dword [ebp - 0x1ac], 0xd400ca
mov dword [ebp - 0x1a8], 0xd800d0
mov dword [ebp - 0x1a4], 0xa400e0
mov dword [ebp - 0x1a0], 0xb700ba
mov dword [ebp - 0x19c], 0xe500fe
mov dword [ebp - 0x198], 0xc6
nop dword [eax + eax]
lea ecx, [eax + 0xb8]
xor word [ebp + eax*2 - 0x1b4], cx
inc eax
mov ecx, dword [ebp - 0x1b8]
cmp eax, ecx
jb 0x5d51d0
xor eax, eax
mov word [ebp + ecx*2 - 0x1b4], ax
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.00404740
mov ecx, dword [ebp - 0x18]
add esp, 8
add ecx, 0x1c
mov edi, eax
push ecx
lea ecx, [ebp - 0x220]
call fcn.00404120
or dword [ebp - 0x184], 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x220]
cmp dword [ebp - 0x20c], 8
push dword [ebp - 0x210]
cmovae ecx, dword [ebp - 0x220]
push ecx
push edi
call fcn.00404c80
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x220]
call fcn.00404490
mov edx, dword [0x83df60]
mov dword [ebp - 0x18c], edx
test edx, edx
jne 0x5d52ac
push 0x20
call fcn.0076d2e3
mov edx, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x18c], edx
xor eax, eax
mov dword [ebp - 0x194], 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 - 0x2c4]
push eax
call fcn.005d5700
mov dword [ebp - 0x180], eax
mov edi, dword [eax]
lea ecx, [eax + 4]
mov dword [ebp - 0x17c], ecx
xor ecx, ecx
test edi, edi
je 0x5d52fd
mov edx, dword [ebp - 0x17c]
mov esi, eax
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [edx + ecx*2], ax
inc ecx
mov edi, dword [esi]
cmp ecx, edi
jb 0x5d52e0
mov esi, dword [ebp - 0x190]
mov edx, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x17c]
xor ecx, ecx
mov word [eax + edi*2], cx
lea eax, [ebp - 0x370]
push eax
call fcn.005d5450
mov dword [ebp - 0x194], eax
mov edi, dword [eax]
lea ecx, [eax + 4]
mov dword [ebp - 0x180], ecx
xor ecx, ecx
test edi, edi
je 0x5d5351
mov edx, dword [ebp - 0x180]
mov esi, eax
lea eax, [ecx + 0xb8]
xor word [edx + ecx*2], ax
inc ecx
mov edi, dword [esi]
cmp ecx, edi
jb 0x5d5334
mov esi, dword [ebp - 0x190]
mov edx, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x180]
xor ecx, ecx
mov word [eax + edi*2], cx
lea ecx, [ebp - 0x178]
push ecx
push dword [ebp - 0x17c]
mov ecx, edx
push 0xcd
push eax
push 1
call fcn.00469240
mov byte [ebp - 4], 3
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 ecx, dword [ebp - 0x188]
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], 8
test edi, edi
je 0x5d5405
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x5d5405
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x5d5405
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x188]
add esi, 8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x190], esi
cmp esi, dword [eax + 8]
jne 0x5d5070
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 4