Function at 0x5a5780
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a807d
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x11c], ebx
xor edi, edi
mov dword [ebp - 0xc4], edi
push ecx
mov ecx, dword [ebx + 0x1bc]
mov dword [ebp - 0x100], edi
call fcn.005d5da0
mov eax, dword [ebx + 0x1c4]
mov al, byte [eax + 0xd]
test al, al
je 0x5a5a76
push 0xb0
lea eax, [ebp - 0xc0]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc0], 0x7d6f90
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xb0], 0x7d7228
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push edi
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc4], 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 - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], 0x7c81a4
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xa8]
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 - 0xa8], 0x7c8164
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 4], 2
xor ecx, ecx
mov dword [ebp - 0xec], 0x11
mov dword [ebp - 0xe8], 0xc600ea
mov dword [ebp - 0xe4], 0xcd00ce
mov dword [ebp - 0xe0], 0x8e00c3
mov dword [ebp - 0xdc], 0xdf00e7
mov dword [ebp - 0xd8], 0xd700dc
mov dword [ebp - 0xd4], 0xc40093
mov dword [ebp - 0xd0], 0xd100d4
mov dword [ebp - 0xcc], 0x8200d2
mov dword [ebp - 0xc8], 0xba0099
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xe8], ax
inc ecx
mov eax, dword [ebp - 0xec]
cmp ecx, eax
jb 0x5a58f0
xor ecx, ecx
mov word [ebp + eax*2 - 0xe8], cx
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00404740
mov ecx, dword [ebx + 0x1c4]
add esp, 8
add ecx, 0x1c
mov esi, eax
push ecx
lea ecx, [ebp - 0x118]
call fcn.00404120
mov eax, 3
mov dword [ebp - 0x100], eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x118]
cmp dword [ebp - 0x104], 8
push dword [ebp - 0x108]
cmovae ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.00404c80
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.00404490
call fcn.004345f0
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x1c0]
push eax
call fcn.005a62b0
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
mov dword [ebp - 0xc4], edi
test edx, edx
je 0x5a59c1
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5a59b0
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0x26c]
push eax
call fcn.005a4fe0
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
test edx, edx
je 0x5a59f1
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5a59e0
mov ecx, dword [ebp - 0xfc]
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0xc4]
push 0xb3
push edi
push 1
call fcn.00469f50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], 0x7c81a4
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xa8]
call fcn.004073e0
lea ecx, [ebp - 0xa0]
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 - 0x58]
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 [ebx + 0x1c4]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, dword [ebp - 0x100]
mov eax, dword [ebx + 0x1cc]
mov al, byte [eax + 0xd]
test al, al
je 0x5a5d40
push 0xb0
lea eax, [ebp - 0xc0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc0], 0x7d6f90
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xb0], 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 - 0xa8]
mov dword [ebp - 4], 4
or edi, 4
lea ecx, [ebp - 0xc0]
push eax
mov dword [ebp - 0xc4], 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], 5
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], 0x7c81a4
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xa8]
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 - 0xa8], 0x7c8164
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 6
xor ecx, ecx
mov dword [ebp - 0xf4], 0x15
mov dword [ebp - 0xf0], 0xc600ea
mov dword [ebp - 0xec], 0xcd00ce
mov dword [ebp - 0xe8], 0x8e00c3
mov dword [ebp - 0xe4], 0xd500fc
mov dword [ebp - 0xe0], 0xc000d0
mov dword [ebp - 0xdc], 0xdc00d0
mov dword [ebp - 0xd8], 0xe50095
mov dword [ebp - 0xd4], 0xcb00ce
mov dword [ebp - 0xd0], 0xdf00cd
mov dword [ebp - 0xcc], 0x8600d6
mov dword [ebp - 0xc8], 0xbe009d
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xf0], ax
inc ecx
mov eax, dword [ebp - 0xf4]
cmp ecx, eax
jb 0x5a5bc0
xor ecx, ecx
mov word [ebp + eax*2 - 0xf0], cx
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00404740
mov ecx, dword [ebx + 0x1cc]
add esp, 8
add ecx, 0x1c
mov esi, eax
push ecx
lea ecx, [ebp - 0x118]
call fcn.00404120
or edi, 8
mov dword [ebp - 0x100], edi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x118]
cmp dword [ebp - 0x104], 8
push dword [ebp - 0x108]
cmovae ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.00404c80
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x118]
call fcn.00404490
call fcn.004345f0
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0x1c0]
push eax
call fcn.005a6400
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
mov dword [ebp - 0xfc], edi
test edx, edx
je 0x5a5c91
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5a5c80
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0x26c]
push eax
call fcn.005a4fe0
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
test edx, edx
je 0x5a5cc1
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5a5cb0
mov ecx, dword [ebp - 0xc4]
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0xfc]
push 0xb9
push edi
push 1
call fcn.00469f50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], 0x7c81a4
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xa8]
call fcn.004073e0
lea ecx, [ebp - 0xa0]
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 - 0x58]
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 [ebx + 0x1cc]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebx + 0x1d4]
mov al, byte [eax + 0xd]
test al, al
je 0x5a6010
push 0xb0
lea eax, [ebp - 0xc0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc0], 0x7d6f90
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xb0], 0x7d7228
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 4], 8
lea eax, [ebp - 0xa8]
mov edi, dword [ebp - 0x100]
lea ecx, [ebp - 0xc0]
push 0
or edi, 0x10
push eax
mov dword [ebp - 0xc4], 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], 9
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], 0x7c81a4
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xa8]
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 - 0xa8], 0x7c8164
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0xa
xor ecx, ecx
mov dword [ebp - 0xf8], 0x17
mov dword [ebp - 0xf4], 0xc600ea
mov dword [ebp - 0xf0], 0xcd00ce
mov dword [ebp - 0xec], 0x8e00c3
mov dword [ebp - 0xe8], 0xc400fc
mov dword [ebp - 0xe4], 0xc000d0
mov dword [ebp - 0xe0], 0x9400c7
mov dword [ebp - 0xdc], 0xd700e5
mov dword [ebp - 0xd8], 0xd900c5
mov dword [ebp - 0xd4], 0xdf00d4
mov dword [ebp - 0xd0], 0xd900cf
mov dword [ebp - 0xcc], 0x8400cf
mov dword [ebp - 0xc8], 0xc0009f
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xf4], ax
inc ecx
mov eax, dword [ebp - 0xf8]
cmp ecx, eax
jb 0x5a5e90
xor ecx, ecx
mov word [ebp + eax*2 - 0xf4], cx
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00404740
mov ecx, dword [ebx + 0x1d4]
add esp, 8
add ecx, 0x1c
mov esi, eax
push ecx
lea ecx, [ebp - 0x118]
call fcn.00404120
or edi, 0x20
mov dword [ebp - 0x100], edi
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x118]
cmp dword [ebp - 0x104], 8
push dword [ebp - 0x108]
cmovae ecx, dword [ebp - 0x118]
push ecx
push esi
call fcn.00404c80
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x118]
call fcn.00404490
call fcn.004345f0
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0x1c0]
push eax
call fcn.005a6550
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
mov dword [ebp - 0xfc], edi
test edx, edx
je 0x5a5f61
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5a5f50
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0x26c]
push eax
call fcn.005a4fe0
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
test edx, edx
je 0x5a5f91
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5a5f80
mov ecx, dword [ebp - 0xc4]
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0xfc]
push 0xbf
push edi
push 1
call fcn.00469f50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], 0x7c81a4
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xa8]
call fcn.004073e0
lea ecx, [ebp - 0xa0]
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 - 0x58]
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 [ebx + 0x1d4]
call fcn.0064f8f0
mov eax, dword [ebx + 0x1dc]
mov al, byte [eax + 0xd]
test al, al
je 0x5a6271
push 0xb0
lea eax, [ebp - 0xc0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc0], 0x7d6f90
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xb0], 0x7d7228
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0xc0]
mov eax, dword [ebp - 0x100]
or eax, 0x40
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xa8]
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], 0xd
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], 0x7c81a4
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xa8]
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 - 0xa8], 0x7c8164
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0xe
xor ecx, ecx
mov dword [ebp - 0xf0], 0x13
mov dword [ebp - 0xec], 0xc600ea
mov dword [ebp - 0xe8], 0xcd00ce
mov dword [ebp - 0xe4], 0x8e00c3
mov dword [ebp - 0xe0], 0xc000fa
mov dword [ebp - 0xdc], 0xd300d5
mov dword [ebp - 0xd8], 0xd100c7
mov dword [ebp - 0xd4], 0xe50095
mov dword [ebp - 0xd0], 0xcb00ce
mov dword [ebp - 0xcc], 0xdf00cd
mov dword [ebp - 0xc8], 0xbc00d6
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xec], ax
inc ecx
mov eax, dword [ebp - 0xf0]
cmp ecx, eax
jb 0x5a6150
xor ecx, ecx
mov word [ebp + eax*2 - 0xec], cx
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00404740
add esp, 8
call fcn.004345f0
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x1c0]
push eax
call fcn.005a66a0
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
test edx, edx
je 0x5a61c1
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5a61b0
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0x26c]
push eax
call fcn.005a4fe0
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea ebx, [esi + 4]
test edx, edx
je 0x5a61f1
lea eax, [ecx + 0xa9]
xor word [ebx + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5a61e0
mov ecx, dword [ebp - 0xfc]
xor eax, eax
mov word [ebx + edx*2], ax
lea eax, [ebp - 0xc0]
push eax
push edi
push 0xc5
push ebx
push 1
call fcn.00469f50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], 0x7c81a4
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xa8]
call fcn.004073e0
lea ecx, [ebp - 0xa0]
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 - 0x58]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov ebx, dword [ebp - 0x11c]
mov ecx, dword [ebx + 0x1dc]
mov eax, dword [ecx]
call dword [eax + 8]
lea eax, [ebp - 0x118]
mov ecx, ebx
push eax
call fcn.005a2950
lea ecx, [ebp - 0x118]
call fcn.00404490
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret