Function at 0x10059cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100708b0
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x100af010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xb8
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ecx
lea ecx, [ebp - 0xc8]
call fcn.1005b3b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xbc], 6
je 0x10059d36
push 0x10
push str.FreedomFactory_Tools
push str.Cant_open_LFS.exe_as_a_file
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 0xc9], 0
jmp 0x10059f45
push 2
push 0
push 0
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xd0], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
push 0
push 0
push 0
mov edi, dword [eax + 8]
lea ecx, [ebp - 0xc8]
add edi, dword [eax]
mov dword [ebp - 0xdc], edi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
push edi
call fcn.1006e449
add esp, 4
lea ecx, [ebp - 0xc8]
mov esi, eax
mov eax, edi
cdq
push edx
push eax
push esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea ecx, [ebp - 0xb8]
call fcn.1005ba60
test eax, eax
jne 0x10059dc8
push eax
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
push 2
mov eax, dword [eax + 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_]
xor edx, edx
test edi, edi
jle 0x10059e6a
cmp edi, 8
jb 0x10059e6a
cmp dword [0x100afef8], 2
jl 0x10059e6a
mov eax, edi
and eax, 0x80000007
jns 0x10059df6
dec eax
or eax, 0xfffffff8
inc eax
movaps xmm3, xmmword [0x100aa340]
mov ecx, edi
movaps xmm4, xmmword [0x100aa350]
sub ecx, eax
xorps xmm2, xmm2
xorps xmm1, xmm1
nop
movd xmm0, dword [edx + esi]
pmovsxbd xmm0, xmm0
pxor xmm0, xmm4
pmulld xmm0, xmm3
paddd xmm2, xmm0
movd xmm0, dword [edx + esi + 4]
pmovsxbd xmm0, xmm0
pxor xmm0, xmm4
add edx, 8
pmulld xmm0, xmm3
paddd xmm1, xmm0
cmp edx, ecx
jl 0x10059e10
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd dword [ebp - 0xd0], xmm1
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
cmp edx, edi
jge 0x10059f2b
mov eax, edi
sub eax, edx
cmp eax, 2
jl 0x10059ef4
lea eax, [edi - 1]
xor edi, edi
mov dword [ebp - 0xd8], eax
nop word [eax + eax]
movsx ecx, byte [edx + esi]
xor ecx, 0xaa
mov eax, ecx
shl eax, 5
sub eax, ecx
movsx ecx, byte [edx + esi + 1]
xor ecx, 0xaa
add edi, eax
mov eax, ecx
add edx, 2
shl eax, 5
sub eax, ecx
mov ecx, dword [ebp - 0xd4]
add ecx, eax
mov eax, edx
mov dword [ebp - 0xd4], ecx
cmp edx, dword [ebp - 0xd8]
jl 0x10059ea0
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xd4], ecx
cmp eax, dword [ebp - 0xdc]
jge 0x10059f15
movsx ecx, byte [edx + esi]
mov edx, dword [ebp - 0xd0]
xor ecx, 0xaa
mov eax, ecx
shl eax, 5
sub eax, ecx
mov ecx, dword [ebp - 0xd4]
add edx, eax
jmp 0x10059f1b
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xd8]
add eax, ecx
add edx, eax
mov dword [ebp - 0xd0], edx
push esi
call fcn.1006e444
add esp, 4
cmp dword [ebp - 0xd0], 0xd0328829
sete byte [ebp - 0xc9]
lea ecx, [ebp - 0xc8]
call fcn.10059f80
mov al, byte [ebp - 0xc9]
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.1006dc26
mov esp, ebp
pop ebp
ret