Function at 0x10056590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x100a7010]
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, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x10
push str.RevLimiter
push str.ValidateChecksum1
push 0
call esi
push 0xb8
lea eax, [ebp - 0xe0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea ecx, [ebp - 0xe0]
push 0x20
push str.LFS.exe
call fcn.10057920
push 0x10
push str.RevLimiter
push str.ValidateChecksum2
push 0
mov dword [ebp - 4], 0
call esi
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd4], 6
je 0x10056641
push 0x10
push str.RevLimiter
push str.Cant_open_LFS.exe_as_a_file
push 0
call esi
mov byte [ebp - 0xe1], 0
jmp 0x1005691f
xor ecx, ecx
push 2
push ecx
mov dword [ebp - 0xec], ecx
push ecx
lea ecx, [ebp - 0xe0]
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 - 0x10c]
push eax
lea ecx, [ebp - 0xe0]
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 esi, dword [eax + 8]
lea ecx, [ebp - 0xe0]
add esi, dword [eax]
mov dword [ebp - 0xf4], 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__::seekg_long_long___int64___int_]
push esi
call fcn.10068a83
add esp, 4
lea ecx, [ebp - 0xe0]
mov edi, eax
mov eax, esi
cdq
push edx
push eax
push 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__::read_char___long_long___int64__]
lea ecx, [ebp - 0xd0]
call fcn.10057cc0
test eax, eax
jne 0x100566d0
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
push 0
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 esi, esi
jle 0x1005677e
cmp esi, 8
jb 0x1005677e
cmp dword [0x100a7978], 2
jl 0x1005677e
mov eax, esi
and eax, 0x80000007
jns 0x100566fe
dec eax
or eax, 0xfffffff8
inc eax
movaps xmm2, xmmword [0x100a2df0]
mov ecx, esi
movaps xmm3, xmmword [0x100a2e00]
sub ecx, eax
xorps xmm1, xmm1
xorps xmm4, xmm4
nop word [eax + eax]
movd xmm0, dword [edx + edi]
pmovsxbd xmm0, xmm0
pxor xmm0, xmm3
pmulld xmm0, xmm2
paddd xmm1, xmm0
movd xmm0, dword [edx + edi + 4]
pmovsxbd xmm0, xmm0
pxor xmm0, xmm3
add edx, 8
pmulld xmm0, xmm2
paddd xmm4, xmm0
cmp edx, ecx
jl 0x10056720
paddd xmm1, xmm4
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd ecx, xmm1
mov dword [ebp - 0xec], ecx
jmp 0x10056780
xor ecx, ecx
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xe8], 0
cmp edx, esi
jge 0x10056837
mov eax, esi
sub eax, edx
cmp eax, 2
jl 0x10056804
lea eax, [esi - 1]
xor esi, esi
mov dword [ebp - 0xf0], eax
movsx ecx, byte [edx + edi]
xor ecx, 0xaa
mov eax, ecx
shl eax, 5
sub eax, ecx
movsx ecx, byte [edx + edi + 1]
xor ecx, 0xaa
add esi, eax
mov eax, ecx
add edx, 2
shl eax, 5
sub eax, ecx
mov ecx, dword [ebp - 0xe8]
add ecx, eax
mov eax, edx
mov dword [ebp - 0xe8], ecx
cmp edx, dword [ebp - 0xf0]
jl 0x100567b0
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xf0], esi
cmp eax, dword [ebp - 0xf4]
jge 0x10056821
movsx ecx, byte [edx + edi]
xor ecx, 0xaa
mov eax, ecx
shl eax, 5
sub eax, ecx
mov ecx, dword [ebp - 0xe8]
add dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xf0]
add eax, ecx
mov ecx, dword [ebp - 0xec]
add ecx, eax
mov dword [ebp - 0xec], ecx
lea esi, [ebp - 0x13]
mov dword [ebp - 0xe8], ecx
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0xe8]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0xe8], eax
test eax, eax
jne 0x10056840
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
lea eax, [ebp - 0x13]
mov dword [ebp - 0xfc], ecx
mov byte [ebp - 4], cl
mov edx, 0xf
mov dword [ebp - 0xf8], edx
cmp esi, eax
je 0x100568ad
sub eax, esi
lea ecx, [ebp - 0x10c]
push eax
push esi
call fcn.10053ef0
mov edx, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0x10c]
push 0
cmp edx, 0x10
lea eax, [ebp - 0x10c]
push str.checksum
cmovae eax, ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0xf8]
cmp edx, 0x10
jb 0x10056905
mov ecx, dword [ebp - 0x10c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100568fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100568fb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100689a4
add esp, 8
push edi
call fcn.10068a7e
add esp, 4
cmp dword [ebp - 0xec], 0xced1b37c
sete byte [ebp - 0xe1]
lea ecx, [ebp - 0xe0]
call fcn.10056950
mov al, byte [ebp - 0xe1]
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.10068185
mov esp, ebp
pop ebp
ret