Function at 0x5d5da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ace64
mov eax, dword fs:[0]
push eax
sub esp, 0x364
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, 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 0x5d6086
push 0xb0
push ecx
lea eax, [ebp - 0xc8]
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 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], 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 dword [ebp - 4], 2
xor ecx, ecx
mov dword [ebp - 0x208], 0x25
mov dword [ebp - 0x204], 0xc200fd
mov dword [ebp - 0x200], 0xdf00c2
mov dword [ebp - 0x1fc], 0xcb008d
mov dword [ebp - 0x1f8], 0xc400d7
mov dword [ebp - 0x1f4], 0xdc00d4
mov dword [ebp - 0x1f0], 0xdd00c0
mov dword [ebp - 0x1ec], 0xd800da
mov dword [ebp - 0x1e8], 0x9800c4
mov dword [ebp - 0x1e4], 0xd500d7
mov dword [ebp - 0x1e0], 0x9c00cf
mov dword [ebp - 0x1dc], 0xcb00ce
mov dword [ebp - 0x1d8], 0xb000cf
mov dword [ebp - 0x1d4], 0xb000ae
mov dword [ebp - 0x1d0], 0xa100b7
mov dword [ebp - 0x1cc], 0xe600a1
mov dword [ebp - 0x1c8], 0xa700a1
mov dword [ebp - 0x1c4], 0xea00bb
mov dword [ebp - 0x1c0], 0xa300a5
mov dword [ebp - 0x1bc], 0xce00ba
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x204], ax
inc ecx
mov eax, dword [ebp - 0x208]
cmp ecx, eax
jb 0x5d5f70
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.004345f0
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x2c4]
push eax
call fcn.005d65e0
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
mov dword [ebp - 0x188], edi
test edx, edx
je 0x5d5fe4
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5d5fd3
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0x370]
push eax
call fcn.005d6480
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
test edx, edx
je 0x5d6014
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5d6003
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.00469f50
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_]
jmp 0x5d6454
mov esi, dword [eax + 4]
mov dword [ebp - 0x190], esi
cmp esi, dword [eax + 8]
je 0x5d6454
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 0x5d60c4
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 0x5d6409
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], 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 - 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
mov byte [ebp - 4], 6
mov ecx, 0xe
mov dword [ebp - 0x1b8], ecx
xor eax, eax
mov dword [ebp - 0x1b4], 0xcf00fb
mov dword [ebp - 0x1b0], 0xc300c6
mov dword [ebp - 0x1ac], 0xc700db
mov dword [ebp - 0x1a8], 0xd700c1
mov dword [ebp - 0x1a4], 0xd70091
mov dword [ebp - 0x1a0], 0xc000cb
mov dword [ebp - 0x19c], 0x96008f
mov dword [ebp - 0x198], 0xb7
nop dword [eax + eax]
lea ecx, [eax + 0xa9]
xor word [ebp + eax*2 - 0x1b4], cx
inc eax
mov ecx, dword [ebp - 0x1b8]
cmp eax, ecx
jb 0x5d6200
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 [0x83ff50]
mov dword [ebp - 0x18c], edx
test edx, edx
jne 0x5d62dc
push 0x20
call fcn.0076e8c3
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 [0x83ff50], edx
lea eax, [ebp - 0x2c4]
push eax
call fcn.005d6730
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 0x5d632d
mov edx, dword [ebp - 0x17c]
mov esi, eax
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov edi, dword [esi]
cmp ecx, edi
jb 0x5d6310
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.005d6480
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 0x5d6381
mov edx, dword [ebp - 0x180]
mov esi, eax
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov edi, dword [esi]
cmp ecx, edi
jb 0x5d6364
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.00469f50
mov byte [ebp - 4], 3
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 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 0x5d6435
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x5d6435
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x5d6435
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 0x5d60a0
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 4