Function at 0x5f8680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b0797
mov eax, dword fs:[0]
push eax
sub esp, 0x518
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 dword [ebp - 0x394], ecx
mov edi, dword [ebp + 8]
mov eax, 6
mov dword [ebp - 0x360], 0
xor ecx, ecx
mov dword [ebp - 0x354], eax
mov dword [ebp - 0x350], 0xcb00d0
mov dword [ebp - 0x34c], 0xc800c5
mov dword [ebp - 0x348], 0xd600c8
mov dword [ebp - 0x344], 0xaf
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x350], ax
inc ecx
mov eax, dword [ebp - 0x354]
cmp ecx, eax
jb 0x5f8700
xor ecx, ecx
mov word [ebp + eax*2 - 0x350], cx
lea ecx, [ebp - 0x350]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f8730
mov eax, dword [edi + 0x10]
sub ecx, edx
sar ecx, 1
mov edx, edi
cmp dword [edi + 0x14], 8
jb 0x5f874c
mov edx, dword [edi]
cmp eax, ecx
jne 0x5f8769
push eax
lea eax, [ebp - 0x350]
push eax
push edx
call fcn.004090d0
add esp, 0xc
test eax, eax
je 0x5f8f91
push edi
lea ecx, [ebp - 0x64]
call fcn.00404120
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x7cf388
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.004044f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3ac]
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor eax, eax
movq qword [ebp - 0x1c], xmm0
push 0x7d77a0
mov dword [ebp - 0x39c], 0
mov dword [ebp - 0x398], 7
mov word [ebp - 0x3ac], ax
call fcn.004044f0
lea eax, [ebp - 0x3ac]
mov byte [ebp - 4], 2
push eax
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.00575f30
add esp, 4
lea ecx, [ebp - 0x3ac]
mov byte [ebp - 4], 4
call fcn.00404490
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x5f8860
lea eax, [ebp - 0x64]
cmp eax, esi
je 0x5f8841
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x5f8834
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x64]
call fcn.004044f0
mov esi, dword [ebp - 0x1c]
add esi, 0x18
lea eax, [ebp - 0x34]
cmp eax, esi
je 0x5f8860
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x5f8856
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.004044f0
mov eax, 6
mov dword [ebp - 0x350], 0xcb00d0
mov dword [ebp - 0x354], eax
xor ecx, ecx
mov dword [ebp - 0x34c], 0xc800c5
mov dword [ebp - 0x348], 0xd600c8
mov dword [ebp - 0x344], 0xaf
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x350], ax
inc ecx
mov eax, dword [ebp - 0x354]
cmp ecx, eax
jb 0x5f88a0
xor ecx, ecx
mov word [ebp + eax*2 - 0x350], cx
lea ecx, [ebp - 0x350]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5f88d0
sub ecx, edx
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x24]
sar ecx, 1
cmp dword [ebp - 0x20], 8
cmovae eax, dword [ebp - 0x34]
cmp edx, ecx
jne 0x5f890a
push edx
lea ecx, [ebp - 0x350]
push ecx
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
je 0x5f8f79
xor edx, edx
lea ecx, [ebp - 0x378]
call fcn.005d93e0
mov esi, eax
mov ecx, dword [ebp - 0x394]
mov byte [ebp - 4], 5
mov ecx, dword [ecx + 0xb8]
add ecx, 0x84
push ecx
lea ecx, [ebp - 0x358]
call fcn.00404120
push 0x7cf384
lea eax, [ebp - 0x358]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x3c4]
push eax
call fcn.00408060
push esi
push eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 7
push eax
call fcn.00413490
add esp, 0x18
lea ecx, [ebp - 0x3c4]
call fcn.00404490
lea ecx, [ebp - 0x358]
call fcn.00404490
lea ecx, [ebp - 0x378]
mov byte [ebp - 4], 0xb
call fcn.00404490
push 0xb8
lea eax, [ebp - 0x290]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x290]
push 1
push eax
call fcn.0041a550
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x290]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x284]
shr eax, 2
test al, 1
jne 0x5f8f66
xorps xmm0, xmm0
lea ecx, [ebp - 0x4c]
push 0
movups xmmword [ebp - 0x4c], xmm0
movq qword [ebp - 0x3c], xmm0
call fcn.007725c0
push 0x74
lea eax, [ebp - 0x1d8]
mov byte [ebp - 4], 0xd
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x1d8]
call fcn.00774c70
push 1
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.007762f0
lea ecx, [ebp - 0x280]
mov byte [ebp - 0x359], al
call fcn.0041b620
test eax, eax
jne 0x5f8a58
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x290]
push 0
push 2
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
cmp byte [ebp - 0x359], 0
je 0x5f8f53
lea ecx, [ebp - 0x4c]
call fcn.007740b0
test al, al
je 0x5f8f53
movaps xmm0, xmmword [0x7e5bf0]
lea ecx, [ebp - 0x37c]
mov dword [ebp - 0x37c], 0x17
movups xmmword [ebp - 0x378], xmm0
mov dword [ebp - 0x368], 0xd5cdd5cb
mov dword [ebp - 0x364], 0xc0cddbd9
call fcn.004131e0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00772ae0
sub esp, 0x18
mov esi, eax
mov ecx, esp
mov dword [ebp - 0x360], esp
push 0
call fcn.007725c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x34c]
mov dword [ebp - 0x34c], 7
mov dword [ebp - 0x348], 0xdbd2cfc2
mov dword [ebp - 0x344], 0xb0cbdcc2
call fcn.004131e0
push eax
mov ecx, esi
call fcn.00772ae0
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00772890
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x360], esp
push 0
call fcn.007725c0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x350]
mov dword [ebp - 0x350], 0xa
mov dword [ebp - 0x34c], 0xdecacfda
mov dword [ebp - 0x348], 0xc5f0c6ce
mov dword [ebp - 0x344], 0xb3dec3
call fcn.004131e0
push eax
mov ecx, esi
call fcn.00772ae0
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00772890
sub esp, 0x18
lea eax, [ebp - 0x64]
mov ecx, esp
mov dword [ebp - 0x360], esp
push eax
call fcn.007722a0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x350]
mov dword [ebp - 0x350], 0xb
mov dword [ebp - 0x34c], 0xcfc5d3da
mov dword [ebp - 0x348], 0xd7f0cac8
mov dword [ebp - 0x344], 0xb4d7dbc4
call fcn.004131e0
push eax
mov ecx, esi
call fcn.00772ae0
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00772890
movaps xmm0, xmmword [0x7e5bf0]
lea ecx, [ebp - 0x384]
movups xmmword [ebp - 0x380], xmm0
mov dword [ebp - 0x384], 0x1c
movaps xmm0, xmmword [0x7e5410]
movups xmmword [ebp - 0x370], xmm0
call fcn.004131e0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00772ae0
mov esi, eax
mov ecx, esi
call fcn.007740b0
test al, al
je 0x5f8cc4
movaps xmm0, xmmword [0x7e5d20]
lea ecx, [ebp - 0x3ac]
mov dword [ebp - 0x3ac], 0x11
movups xmmword [ebp - 0x3a8], xmm0
mov dword [ebp - 0x398], 0xbad8
call fcn.004131e0
push eax
mov ecx, esi
call fcn.00772ae0
sub esp, 0x18
mov esi, eax
mov ecx, esp
mov dword [ebp - 0x360], esp
push 0
call fcn.007725c0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x34c]
mov dword [ebp - 0x34c], 7
mov dword [ebp - 0x348], 0xdbd2cfc2
mov dword [ebp - 0x344], 0xb0cbdcc2
call fcn.004131e0
push eax
mov ecx, esi
call fcn.00772ae0
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00772890
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x360], esp
push 0
call fcn.007725c0
push 0x7da6c4
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.00772ae0
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00772890
lea ecx, [ebp - 0x164]
call fcn.0076f7c0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x164]
call fcn.00770250
push 0xb0
lea eax, [ebp - 0x340]
mov byte [ebp - 4], 0x15
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x340]
call fcn.00587130
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x340]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x334]
shr eax, 2
test al, 1
jne 0x5f8f32
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.004521a0
add esp, 8
lea ecx, [ebp - 0x340]
call fcn.00587100
push 0xb0
lea eax, [ebp - 0x144]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x144], 0x7d6f90
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x134], 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 - 0x12c]
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x360], 3
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], 0x18
mov eax, dword [ebp - 0x144]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x144], 0x7c81a4
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x148], eax
lea ecx, [ebp - 0x12c]
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 - 0x12c], 0x7c8164
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0x394]
lea ecx, [ebp - 0x3ac]
mov byte [ebp - 4], 0x19
mov eax, dword [eax + 0xb8]
add eax, 0xc
push eax
call fcn.00404120
lea eax, [ebp - 0x3ac]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00404930
add esp, 8
mov dword [ebp - 0x390], 0x14
lea ecx, [ebp - 0x390]
mov dword [ebp - 0x38c], 0xd90089
mov esi, eax
mov dword [ebp - 0x388], 0xd800ce
mov dword [ebp - 0x384], 0xdd008d
mov dword [ebp - 0x380], 0xd100ca
mov dword [ebp - 0x37c], 0xd100c3
mov dword [ebp - 0x378], 0x9400db
mov dword [ebp - 0x374], 0xcf00c6
mov dword [ebp - 0x370], 0xcc00c4
mov dword [ebp - 0x36c], 0xd700dc
mov dword [ebp - 0x368], 0x9c0081
mov dword [ebp - 0x364], 0xbd
call fcn.00403e20
push edi
push eax
push esi
call fcn.00404740
add esp, 8
push eax
call fcn.00404930
add esp, 8
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x3ac]
call fcn.00404490
call fcn.004345f0
mov edi, eax
lea eax, [ebp - 0x524]
push eax
call fcn.005f8fb0
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea eax, [ebp - 0x46c]
push eax
call fcn.005e0770
mov ecx, eax
call fcn.00403e20
lea ecx, [ebp - 0x144]
push ecx
push esi
push 0x9bc
push eax
push 1
mov ecx, edi
call fcn.00469f50
lea ecx, [ebp - 0x144]
call fcn.00406480
lea ecx, [ebp - 0x340]
call fcn.005866b0
lea ecx, [ebp - 0x94]
call fcn.00407a10
lea ecx, [ebp - 0x164]
call fcn.0042fe10
lea ecx, [ebp - 0x1d8]
call fcn.00430850
lea ecx, [ebp - 0x4c]
call fcn.007727c0
lea ecx, [ebp - 0x290]
call fcn.00417f70
lea ecx, [ebp - 0x7c]
call fcn.00404490
lea ecx, [ebp - 0x1c]
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
lea ecx, [ebp - 0x64]
call fcn.00404490
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