Function at 0x5f12f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7afb1d
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
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
push 0
mov dword [ebp - 0xfc], 0
call fcn.005f28d0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x5f142d
mov eax, 4
mov dword [ebp - 0xec], 0x870089
mov dword [ebp - 0xf0], eax
xor ecx, ecx
mov dword [ebp - 0xe8], 0x8c0095
mov dword [ebp - 0xe4], 0xad
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xec], ax
inc ecx
mov eax, dword [ebp - 0xf0]
cmp ecx, eax
jb 0x5f1370
xor ecx, ecx
xor edx, edx
mov word [ebp + eax*2 - 0xec], cx
lea ecx, [ebp - 0x158]
call fcn.005d93e0
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.005a1320
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.005f28d0
test al, al
jne 0x5f152e
mov eax, 4
mov dword [ebp - 0xec], 0x870089
mov dword [ebp - 0xf0], eax
xor ecx, ecx
mov dword [ebp - 0xe8], 0x8c0095
mov dword [ebp - 0xe4], 0xad
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0xec], ax
inc ecx
mov eax, dword [ebp - 0xf0]
cmp ecx, eax
jb 0x5f1470
xor ecx, ecx
mov word [ebp + eax*2 - 0xec], cx
lea edx, [ecx + 1]
lea ecx, [ebp - 0x170]
call fcn.005d93e0
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.005a1320
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 0x5f1875
push 0xb0
lea eax, [ebp - 0xe0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xe0], 0x7d6f90
lea ecx, [ebp - 0x78]
mov dword [ebp - 0xd0], 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 - 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], 0x7c81a4
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], 0x7c8164
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], 0xcf0089
mov dword [ebp - 0x130], 0xc900d3
mov dword [ebp - 0x12c], 0xdb00ce
mov dword [ebp - 0x128], 0xd900db
mov dword [ebp - 0x124], 0xd500df
mov dword [ebp - 0x120], 0xf30093
mov dword [ebp - 0x11c], 0xd900c7
mov dword [ebp - 0x118], 0xc800c2
mov dword [ebp - 0x114], 0xca0099
mov dword [ebp - 0x110], 0xd000d4
mov dword [ebp - 0x10c], 0xdd00d4
mov dword [ebp - 0x108], 0xe000c6
mov dword [ebp - 0x104], 0xec00ef
mov dword [ebp - 0x100], 0xc400ed
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x134], ax
inc ecx
mov eax, dword [ebp - 0x138]
cmp ecx, eax
jb 0x5f1690
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 0x5f16f8
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.004345f0
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.005f1890
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
mov dword [ebp - 0x13c], edi
test edx, edx
je 0x5f1761
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x5f1750
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0x230]
push eax
call fcn.005e0770
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea eax, [esi + 4]
mov dword [ebp - 0xfc], eax
test edx, edx
je 0x5f17ad
mov edi, 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 0x5f1790
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.00469f50
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], 0x7c81a4
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.006579f0
lea ecx, [ebp - 0x30]
call fcn.0065a240
lea ecx, [ebp - 0x28]
call fcn.00404490
mov dword [ebp - 4], 0xf
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x5f1875
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.0076eb7e
mov esp, ebp
pop ebp
ret