Function at 0x65f010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ba5b6
mov eax, dword fs:[0]
push eax
sub esp, 0x280
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 - 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 0x65f0d5
mov byte [ebp - 0x105], 0
jmp 0x65f60f
mov eax, dword [0x83ff58]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
test eax, eax
jne 0x65f122
push 0x10
call fcn.0076e8c3
mov dword [ebp - 0x110], eax
xorps xmm0, xmm0
add esp, 4
mov dword [0x83ff58], 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.0065f890
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 0x65f223
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 0x65f172
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 0x65f18d
mov byte [ebp - 4], 7
test edi, edi
je 0x65f207
jmp 0x65f1e2
mov eax, dword [ecx + 0x20]
mov esi, dword [ecx + 0x1c]
mov dword [ebp - 0x110], eax
cmp esi, eax
je 0x65f1d7
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.005759c0
test al, al
jne 0x65f273
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.00407a10
add esi, 0x18
cmp esi, dword [ebp - 0x110]
jne 0x65f1a0
or esi, 0xffffffff
mov byte [ebp - 4], 0xe
test edi, edi
je 0x65f201
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x65f201
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x65f201
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 0x65f150
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0x105], 0
test eax, eax
je 0x65f60f
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 0x65f5f0
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x65f5f0
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], 0x7d6f90
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0xf4], 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 - 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 - 0x104], 0x7c81a4
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], 0x7c8164
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], 0xc500ef
mov dword [ebp - 0x138], 0xc200de
mov dword [ebp - 0x134], 0x8e00c9
mov dword [ebp - 0x130], 0xb0008d
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x13c], ax
inc ecx
mov eax, dword [ebp - 0x140]
cmp ecx, eax
jb 0x65f360
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 0x65f3ba
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], 0x8a008b
mov dword [ebp - 0x124], 0xc200c2
xor ecx, ecx
mov dword [ebp - 0x120], 0xae008d
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x128], ax
inc ecx
mov eax, dword [ebp - 0x12c]
cmp ecx, eax
jb 0x65f3f1
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 0x65f435
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 [0x83ff50]
mov dword [ebp - 0x10c], edx
test edx, edx
jne 0x65f4a0
push 0x20
call fcn.0076e8c3
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 [0x83ff50], edx
lea eax, [ebp - 0x1f4]
push eax
call fcn.0065f770
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 0x65f4ed
mov edi, dword [ebp - 0x118]
mov edx, eax
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov esi, dword [edx]
cmp ecx, esi
jb 0x65f4d0
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.0065f640
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 0x65f541
mov edi, dword [ebp - 0x110]
mov edx, eax
lea eax, [ecx + 0xa9]
xor word [edi + ecx*2], ax
inc ecx
mov esi, dword [edx]
cmp ecx, esi
jb 0x65f524
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.00469f50
mov eax, dword [ebp - 0x104]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x104], 0x7c81a4
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 0x65f5e1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x65f5e1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x65f5e1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 0x105], 1
jmp 0x65f22a
push ecx
push edx
call fcn.0076e8f3
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.0076eb7e
mov esp, ebp
pop ebp
ret