Function at 0x65e310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b8e86
mov eax, dword fs:[0]
push eax
sub esp, 0x280
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 dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], 0
xor eax, eax
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 7
mov word [ebp - 0x164], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
push ecx
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 1
call fcn.00403b80
lea eax, [ebp - 0x164]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00418020
add esp, 8
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 4
call fcn.00404220
lea ecx, [ebp - 0x164]
call fcn.00404490
cmp dword [ebp - 0x44], 0
jne 0x65e3d5
mov byte [ebp - 0x105], 0
jmp 0x65e90f
mov eax, dword [0x83df68]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
test eax, eax
jne 0x65e422
push 0x10
call fcn.0076d2e3
mov dword [ebp - 0x110], eax
xorps xmm0, xmm0
add esp, 4
mov dword [0x83df68], eax
movups xmmword [eax], xmm0
mov word [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
add eax, 4
lea ecx, [ebp - 0x1c]
push eax
call fcn.0065eb90
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x118], ecx
cmp eax, ecx
je 0x65e523
or esi, 0xffffffff
nop
mov edi, dword [eax + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x11c], edi
test edi, edi
je 0x65e472
lock inc dword [edi + 4]
mov edi, dword [eax + 4]
mov dword [ebp - 0x11c], edi
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 6
cmp byte [ecx], 0
je 0x65e48d
mov byte [ebp - 4], 7
test edi, edi
je 0x65e507
jmp 0x65e4e2
mov eax, dword [ecx + 0x20]
mov esi, dword [ecx + 0x1c]
mov dword [ebp - 0x110], eax
cmp esi, eax
je 0x65e4d7
nop dword [eax]
push esi
lea ecx, [ebp - 0x3c]
call fcn.00406bb0
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3c]
call fcn.00574840
test al, al
jne 0x65e573
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.00407a10
add esi, 0x18
cmp esi, dword [ebp - 0x110]
jne 0x65e4a0
or esi, 0xffffffff
mov byte [ebp - 4], 0xe
test edi, edi
je 0x65e501
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x65e501
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x65e501
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x10c]
add eax, 8
mov byte [ebp - 4], 5
mov dword [ebp - 0x10c], eax
cmp eax, dword [ebp - 0x118]
jne 0x65e450
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0x105], 0
test eax, eax
je 0x65e90f
mov edx, dword [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.00413a10
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, dword [ebp - 0x1c]
sub ecx, edx
and ecx, 0xfffffff8
mov eax, edx
cmp ecx, 0x1000
jb 0x65e8f0
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x65e8f0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0xb0
lea eax, [ebp - 0x104]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x104], 0x7d4f80
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0xf4], 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 - 0xec]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x110], 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], 0xa
mov eax, dword [ebp - 0x104]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x108], eax
lea ecx, [ebp - 0xec]
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 - 0xec], 0x7c6164
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov byte [ebp - 4], 0xb
xor ecx, ecx
mov dword [ebp - 0x140], 7
mov dword [ebp - 0x13c], 0xd600fe
mov dword [ebp - 0x138], 0xd500cf
mov dword [ebp - 0x134], 0x9d00d8
mov dword [ebp - 0x130], 0xbf009c
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x13c], ax
inc ecx
mov eax, dword [ebp - 0x140]
cmp ecx, eax
jb 0x65e660
xor ecx, ecx
mov word [ebp + eax*2 - 0x13c], cx
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.00404740
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.004057b0
add esp, 0x10
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x65e6ba
mov eax, dword [eax]
push ecx
push eax
push esi
call fcn.00404c80
add esp, 0xc
mov dword [ebp - 0x12c], 5
mov edx, eax
mov dword [ebp - 0x128], 0x99009a
mov dword [ebp - 0x124], 0xd500d3
xor ecx, ecx
mov dword [ebp - 0x120], 0xbd009c
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x128], ax
inc ecx
mov eax, dword [ebp - 0x12c]
cmp ecx, eax
jb 0x65e6f1
xor ecx, ecx
mov word [ebp + eax*2 - 0x128], cx
lea eax, [ebp - 0x128]
push eax
push edx
call fcn.00404740
mov edx, dword [ebp - 0x114]
add esp, 8
cmp dword [edx + 0x14], 8
mov ecx, dword [edx + 0x10]
jb 0x65e735
mov edx, dword [edx]
push ecx
push edx
push eax
call fcn.00404c80
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x158]
call fcn.00404490
mov edx, dword [0x83df60]
mov dword [ebp - 0x10c], edx
test edx, edx
jne 0x65e7a0
push 0x20
call fcn.0076d2e3
mov edx, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x10c], edx
xor eax, eax
mov dword [ebp - 0x114], 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 [0x83df60], edx
lea eax, [ebp - 0x1f4]
push eax
call fcn.0065ea70
mov dword [ebp - 0x114], eax
mov esi, dword [eax]
lea ecx, [eax + 4]
mov dword [ebp - 0x118], ecx
xor ecx, ecx
test esi, esi
je 0x65e7ed
mov edi, dword [ebp - 0x118]
mov edx, eax
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov esi, dword [edx]
cmp ecx, esi
jb 0x65e7d0
mov edi, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x118]
xor ecx, ecx
mov word [eax + esi*2], cx
lea eax, [ebp - 0x28c]
push eax
call fcn.0065e940
mov dword [ebp - 0x114], eax
mov esi, dword [eax]
lea ecx, [eax + 4]
mov dword [ebp - 0x110], ecx
xor ecx, ecx
test esi, esi
je 0x65e841
mov edi, dword [ebp - 0x110]
mov edx, eax
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov esi, dword [edx]
cmp ecx, esi
jb 0x65e824
mov edi, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x110]
xor ecx, ecx
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x104]
push ecx
push dword [ebp - 0x118]
mov ecx, edx
push 0x24
push eax
push 1
call fcn.00469240
mov eax, dword [ebp - 0x104]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x108], eax
lea ecx, [ebp - 0xec]
call fcn.004073e0
lea ecx, [ebp - 0xe4]
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 - 0x9c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x3c]
call fcn.00407a10
mov byte [ebp - 4], 0xd
test edi, edi
je 0x65e8e1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x65e8e1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x65e8e1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0x105], 1
jmp 0x65e52a
push ecx
push edx
call fcn.0076d313
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x54]
call fcn.00407a10
mov al, byte [ebp - 0x105]
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