Function at 0x5f0280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ae38d
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
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
push 0
mov dword [ebp - 0xfc], 0
call fcn.005f1860
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x5f03bd
mov eax, 4
mov dword [ebp - 0xec], 0x940098
mov dword [ebp - 0xf0], eax
xor ecx, ecx
mov dword [ebp - 0xe8], 0x9b0084
mov dword [ebp - 0xe4], 0xbc
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xec], ax
inc ecx
mov eax, dword [ebp - 0xf0]
cmp ecx, eax
jb 0x5f0300
xor ecx, ecx
xor edx, edx
mov word [ebp + eax*2 - 0xec], cx
lea ecx, [ebp - 0x158]
call fcn.005d83b0
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], 0
push ecx
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.00408060
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x170]
call fcn.00413520
add esp, 0x10
push eax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 2
call fcn.00404120
mov byte [ebp - 4], 3
call edi
push eax
lea eax, [ebp - 0xf8]
mov ecx, esi
push eax
push 0xa
call fcn.005a0320
lea ecx, [ebp - 0xf8]
call fcn.00404490
lea ecx, [ebp - 0x170]
call fcn.00404490
lea ecx, [ebp - 0x188]
call fcn.00404490
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
push 1
mov ecx, esi
call fcn.005f1860
test al, al
jne 0x5f04be
mov eax, 4
mov dword [ebp - 0xec], 0x940098
mov dword [ebp - 0xf0], eax
xor ecx, ecx
mov dword [ebp - 0xe8], 0x9b0084
mov dword [ebp - 0xe4], 0xbc
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xec], ax
inc ecx
mov eax, dword [ebp - 0xf0]
cmp ecx, eax
jb 0x5f0400
xor ecx, ecx
mov word [ebp + eax*2 - 0xec], cx
lea edx, [ecx + 1]
lea ecx, [ebp - 0x170]
call fcn.005d83b0
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.00408060
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x158]
call fcn.00413520
add esp, 0x10
push eax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 6
call fcn.00404120
mov byte [ebp - 4], 7
call edi
push eax
lea eax, [ebp - 0xf8]
mov ecx, esi
push eax
push 0xa
call fcn.005a0320
lea ecx, [ebp - 0xf8]
call fcn.00404490
lea ecx, [ebp - 0x158]
call fcn.00404490
lea ecx, [ebp - 0x188]
call fcn.00404490
lea ecx, [ebp - 0x170]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
cmp byte [esi + 0xbf], 0
je 0x5f0805
push 0xb0
lea eax, [ebp - 0xe0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xe0], 0x7d4f80
lea ecx, [ebp - 0x78]
mov dword [ebp - 0xd0], 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 - 0xc8]
mov dword [ebp - 4], 8
push eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xfc], 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], 9
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable..7.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe4], eax
lea ecx, [ebp - 0xc8]
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 - 0xc8], 0x7c6164
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 4], 0xa
xor ecx, ecx
mov dword [ebp - 0x138], 0x1b
mov dword [ebp - 0x134], 0xdc0098
mov dword [ebp - 0x130], 0xde00c2
mov dword [ebp - 0x12c], 0xc800df
mov dword [ebp - 0x128], 0xd600ca
mov dword [ebp - 0x124], 0xa600ae
mov dword [ebp - 0x120], 0x8400e2
mov dword [ebp - 0x11c], 0xaa00b6
mov dword [ebp - 0x118], 0xb700b3
mov dword [ebp - 0x114], 0xb900e8
mov dword [ebp - 0x110], 0xa700a5
mov dword [ebp - 0x10c], 0xae00a5
mov dword [ebp - 0x108], 0xef00b7
mov dword [ebp - 0x104], 0xff00fe
mov dword [ebp - 0x100], 0xd300fc
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x134], ax
inc ecx
mov eax, dword [ebp - 0x138]
cmp ecx, eax
jb 0x5f0620
xor ecx, ecx
mov word [ebp + eax*2 - 0x134], cx
lea ecx, [ebp - 0xf8]
mov eax, dword [esi + 0xb8]
add eax, 0xc
push eax
call fcn.00404120
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00408060
add esp, 0xc
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x5f0688
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00404c80
add esp, 0xc
lea ecx, [ebp - 0x158]
call fcn.00404490
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xa
call fcn.00404490
call fcn.00434600
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.005f0820
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
mov dword [ebp - 0x13c], edi
test edx, edx
je 0x5f06f1
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5f06e0
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0x230]
push eax
call fcn.005df700
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea eax, [esi + 4]
mov dword [ebp - 0xfc], eax
test edx, edx
je 0x5f073d
mov edi, 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 0x5f0720
mov edi, dword [ebp - 0x13c]
mov eax, dword [ebp - 0xfc]
xor ecx, ecx
mov word [eax + edx*2], cx
lea ecx, [ebp - 0xe0]
push ecx
mov ecx, dword [ebp - 0x140]
push edi
push 0x777
push eax
push 1
call fcn.00469240
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable..7.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe4], eax
lea ecx, [ebp - 0xc8]
call fcn.004073e0
lea ecx, [ebp - 0xc0]
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 - 0x78]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xe
call fcn.00656cb0
lea ecx, [ebp - 0x30]
call fcn.00659530
lea ecx, [ebp - 0x28]
call fcn.00404490
mov dword [ebp - 4], 0xf
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x5f0805
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
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