Function at 0x640a7e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.Qt5CoreKso.dll_public:_static_int___cdecl_kso_qt::QCryptographicHash::hashLength_enum_kso_qt::QCryptographicHash::Algorithm_]
cdq
mov ebx, 0xfffffffe
mov ecx, eax
add esp, 4
mov eax, edx
mul ebx
mov esi, eax
mov eax, ecx
mov ecx, dword [ebp + 0x20]
mul ebx
add esi, edx
mov ebx, eax
mov eax, dword [ebp + 0x1c]
cmp ecx, esi
jb 0x640a7f21
ja 0x640a7e64
cmp eax, ebx
jbe 0x640a7f21
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x38]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QDebug___thiscall_kso_qt::QMessageLogger::warning_void_]
push str._was_requested.
mov ecx, dword [eax]
mov byte [ecx + 0x14], 0
mov ecx, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
push ecx
push str._but
push esi
push ebx
push str._was_chosen_which_produces_output_of_length
push str.Derived_key_too_long:_n
mov ecx, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QDebug____thiscall_kso_qt::QDebug::operator___char_const__]
push str.Algorithm
mov eax, dword [eax]
mov dword [ebp + 0x20], eax
inc dword [eax + 0xc]
lea eax, [ebp + 0x20]
push dword [sym.imp.Qt5CoreKso.dll_struct_kso_qt::QMetaObject_const_kso_qt::QCryptographicHash::staticMetaObject]
push edi
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.Qt5CoreKso.dll_class_kso_qt::QDebug___cdecl_kso_qt::qt_QMetaEnum_debugOperator_class_kso_qt::QDebug___int__struct_kso_qt::QMetaObject_const___char_const__]
mov esi, dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QDebug::destructor_void_]
lea ecx, [ebp + 0x20]
add esp, 0x14
call esi
lea ecx, [ebp - 0xc]
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QDebug____thiscall_kso_qt::QDebug::operator___char_const__]
mov ecx, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QDebug____thiscall_kso_qt::QDebug::operator___unsigned_long_long_unsigned___int64__]
mov ecx, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QDebug____thiscall_kso_qt::QDebug::operator___char_const__]
mov ecx, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QDebug____thiscall_kso_qt::QDebug::operator___unsigned_long_long_unsigned___int64__]
mov ecx, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QDebug____thiscall_kso_qt::QDebug::operator___char_const__]
lea ecx, [ebp - 0xc]
call esi
lea ecx, [ebp - 0x20]
call esi
mov ecx, dword [ebp + 8]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QByteArray::constructor_void_]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 1
jl 0x640a7f0e
test ecx, ecx
jne 0x640a7f30
cmp eax, 1
jb 0x640a7f0e
lea ecx, [ebp - 0x10]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QByteArray::constructor_void_]
push dword [ebp + 0x10]
mov esi, 1
lea ecx, [ebp - 4]
push edi
mov dword [ebp - 0x20], esi
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QMessageAuthenticationCode::constructor_enum_kso_qt::QCryptographicHash::Algorithm__class_kso_qt::QByteArray_const__]
push 0
push 4
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QByteArray::constructor_int__enum_kso_qt::Qt::Initialization_]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
cdq
cmp edx, dword [ebp + 0x20]
ja 0x640a812e
jb 0x640a7f76
cmp eax, dword [ebp + 0x1c]
jae 0x640a812e
mov ebx, dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QMessageAuthenticationCode::addData_class_kso_qt::QByteArray_const__]
mov edi, dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QByteArray___thiscall_kso_qt::QMessageAuthenticationCode::result_void_]
push dword [ebp + 0x14]
lea ecx, [ebp - 4]
call ebx
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5CoreKso.dll_public:_char____thiscall_kso_qt::QByteArray::data_void_]
mov ecx, esi
bswap ecx
mov dword [eax], ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call ebx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
call edi
lea ecx, [ebp - 4]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QMessageAuthenticationCode::reset_void_]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QByteArray::constructor_class_kso_qt::QByteArray_const__]
mov eax, dword [ebp + 0x18]
cmp eax, 1
jle 0x640a80f0
dec eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
call ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 4]
call edi
push eax
lea ecx, [ebp - 0xc]
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QByteArray____thiscall_kso_qt::QByteArray::operator_class_kso_qt::QByteArray__]
lea ecx, [ebp - 0x24]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QByteArray::destructor_void_]
lea ecx, [ebp - 4]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QMessageAuthenticationCode::reset_void_]
lea ecx, [ebp - 8]
call dword [sym.imp.Qt5CoreKso.dll_public:_char____thiscall_kso_qt::QByteArray::begin_void_]
lea ecx, [ebp - 0xc]
mov edi, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_char_const____thiscall_kso_qt::QByteArray::cbegin_void_const]
lea ecx, [ebp - 8]
mov esi, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_char_const____thiscall_kso_qt::QByteArray::cend_void_const]
mov ebx, eax
lea ecx, [ebp - 8]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.Qt5CoreKso.dll_public:_char_const____thiscall_kso_qt::QByteArray::cbegin_void_const]
sub ebx, eax
xor ecx, ecx
xor edx, edx
cmp eax, dword [ebp - 0x18]
cmova ebx, ecx
test ebx, ebx
je 0x640a80bd
cmp ebx, 0x40
jb 0x640a80bd
lea ecx, [eax - 1]
add ecx, ebx
cmp edi, ecx
ja 0x640a8057
lea ecx, [ebx - 1]
add ecx, edi
cmp ecx, eax
jae 0x640a80bd
lea ecx, [esi - 1]
add ecx, ebx
cmp edi, ecx
ja 0x640a8069
lea ecx, [ebx - 1]
add ecx, edi
cmp ecx, esi
jae 0x640a80bd
and ebx, 0xffffffc0
nop dword [eax]
movups xmm0, xmmword [eax]
add edx, 0x40
movups xmm1, xmmword [esi]
pxor xmm1, xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi], xmm1
movups xmm1, xmmword [esi + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edi + 0x10], xmm1
movups xmm1, xmmword [esi + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax + 0x30]
add eax, 0x40
movups xmmword [edi + 0x20], xmm1
movups xmm1, xmmword [esi + 0x30]
add esi, 0x40
pxor xmm1, xmm0
movups xmmword [edi + 0x30], xmm1
add edi, 0x40
cmp edx, ebx
jne 0x640a8070
mov edx, dword [ebp - 0x18]
cmp eax, edx
je 0x640a80d7
sub edi, esi
mov cl, byte [eax]
lea esi, [esi + 1]
xor cl, byte [esi - 1]
inc eax
mov byte [esi + edi - 1], cl
cmp eax, edx
jne 0x640a80c6
sub dword [ebp - 0x1c], 1
mov ebx, dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QMessageAuthenticationCode::addData_class_kso_qt::QByteArray_const__]
mov edi, dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QByteArray___thiscall_kso_qt::QMessageAuthenticationCode::result_void_]
jne 0x640a7fd1
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QByteArray____thiscall_kso_qt::QByteArray::append_class_kso_qt::QByteArray_const__]
inc esi
lea ecx, [ebp - 8]
mov dword [ebp - 0x20], esi
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QByteArray::destructor_void_]
lea ecx, [ebp - 0xc]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QByteArray::destructor_void_]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
cdq
cmp edx, dword [ebp + 0x20]
jb 0x640a7f82
ja 0x640a812e
cmp eax, dword [ebp + 0x1c]
jb 0x640a7f82
push dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push esi
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QByteArray___thiscall_kso_qt::QByteArray::left_int_]
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QByteArray::destructor_void_]
lea ecx, [ebp - 4]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QMessageAuthenticationCode::destructor_void_]
lea ecx, [ebp - 0x10]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QByteArray::destructor_void_]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret