Function at 0x555ac0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2d3d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x62700c]
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 - 0x54], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x44], esi
movzx edi, word [esi + 4]
mov edx, edi
lea eax, [edx - 6]
and eax, reloc.WS2_32.dll_getsockopt
jns 0x555b0a
dec eax
or eax, 0xfffffff8
add eax, 1
je 0x555b99
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
mov edx, str._Failure___Protocol::XTEA_decrypt__Not_valid_encrypted_message_size
call fcn.004064c0
mov ecx, dword [ebp - 0x54]
call fcn.00556150
test eax, eax
je 0x555b81
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.005907d0
mov esi, eax
mov dword [ebp - 4], 0
mov edx, str.__IP:
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
call fcn.004064c0
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x555b59
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.004073f0
add esp, 4
mov edx, 0x5f0f7c
mov ecx, eax
call fcn.004064c0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00405b30
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
push 0x406700
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor al, al
jmp 0x555d4a
movups xmm0, xmmword [ecx + 0x1c]
movzx ecx, word [esi + 6]
lea eax, [edx - 6]
cdq
add ecx, 8
and edx, 3
add ecx, esi
add edx, eax
mov dword [ebp - 0x50], ecx
sar edx, 2
xor eax, eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x4c], eax
movups xmmword [ebp - 0x20], xmm0
test edx, edx
jle 0x555c62
nop dword [eax]
mov esi, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x58], ecx
lea eax, [eax + 1]
mov ecx, dword [ebp - 0x50]
mov edi, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x5c], eax
mov eax, 0xc6ef3720
mov dword [ebp - 0x48], 0x20
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebp + ecx*4 - 0x20]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebp + ecx*4 - 0x20]
add ecx, eax
xor edx, ecx
sub esi, edx
sub dword [ebp - 0x48], 1
jne 0x555bf4
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
mov dword [eax], esi
mov eax, dword [ebp - 0x5c]
mov dword [eax], edi
mov eax, dword [ebp - 0x4c]
add eax, 2
mov dword [ebp - 0x4c], eax
cmp eax, dword [ebp - 0x60]
jl 0x555bd0
mov esi, dword [ebp - 0x44]
movzx edi, word [esi + 4]
movzx ecx, word [esi + 6]
movzx edx, word [ecx + esi + 8]
mov eax, edx
mov dword [ebp - 0x44], eax
lea eax, [ecx + 2]
mov word [esi + 6], ax
mov ecx, edx
movzx eax, di
sub eax, 8
cmp ecx, eax
jle 0x555d41
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
mov edx, str._Failure___Protocol::XTEA_decrypt__Not_valid_unencrypted_message_size
call fcn.004064c0
mov ecx, dword [ebp - 0x54]
call fcn.00556150
test eax, eax
je 0x555b81
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.005907d0
mov esi, eax
mov dword [ebp - 4], 1
mov edx, 0x5f0ea8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
call fcn.004064c0
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x555cd4
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.004073f0
add esp, 4
mov edx, 0x5f0fcc
mov ecx, eax
call fcn.004064c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x555d2a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x555d20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x555d20
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x555b81
mov eax, dword [ebp - 0x44]
mov word [esi + 4], ax
mov al, 1
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.0045ad9e
mov esp, ebp
pop ebp
ret 4