Function at 0x180037210
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov r12, r8
mov r14, rdx
mov r13, rcx
mov dword [rbp - 0x48], 0
mov rax, qword [rcx + 8]
cmp dword [rax + 4], 0
jne 0x1800372a7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMessageLogger::constructor_char_const____ptr64__int__char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rbp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::warning_void____ptr64]
nop
lea rdx, str.No_key_set.
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
mov dword [r13 + 0x18], 1
mov rcx, r14
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::constructor_void____ptr64]
mov dword [rbp - 0x48], 1
jmp 0x1800375f7
mov rdx, r8
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::constructor_class_QByteArray_const____ptr64____ptr64]
nop
xor edx, edx
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_char___cdecl_QByteArray::at_int_const___ptr64]
cmp al, 3
je 0x180037316
mov dword [r13 + 0x18], 2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMessageLogger::constructor_char_const____ptr64__int__char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rbp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::warning_void____ptr64]
nop
lea rdx, str.Invalid_version_or_not_a_cyphertext.
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
mov rcx, r14
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::constructor_void____ptr64]
jmp 0x1800375e5
mov edx, 1
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_char___cdecl_QByteArray::at_int_const___ptr64]
movsx ebx, al
or r9d, 0xffffffff
lea r8d, [r9 + 3]
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_class_QByteArray___cdecl_QByteArray::mid_int__int____ptr64]
mov rdx, rax
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_class_QByteArray____ptr64___cdecl_QByteArray::operator_class_QByteArray____ptr64____ptr64]
lea rcx, [rbp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
mov rax, qword [rbp + 0x60]
mov eax, dword [rax + 4]
xor r15d, r15d
test eax, eax
jle 0x1800373d9
xor r12b, r12b
mov r14d, eax
nop dword [rax]
lea rax, [rbp + 0x60]
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], r15d
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt5Core.dll_public:_char___cdecl_QByteRef::operator_char_void_const___ptr64]
movzx esi, al
mov rcx, qword [r13 + 8]
mov edi, r15d
and edi, 7
add rdi, qword [rcx + 0x10]
add rdi, rcx
lea rax, [rbp + 0x60]
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], r15d
mov edx, r15d
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_char___cdecl_QByteArray::at_int_const___ptr64]
xor al, byte [rdi]
xor al, r12b
movzx edx, al
lea rcx, [rbp - 0x40]
call qword [sym.imp.Qt5Core.dll_public:_class_QByteRef____ptr64___cdecl_QByteRef::operator_char____ptr64]
movzx r12d, sil
inc r15d
cmp r15d, r14d
jl 0x180037370
mov r14, qword [rbp + 0x50]
mov r12, qword [rbp + 0x58]
or r9d, 0xffffffff
lea r8d, [r9 + 2]
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_class_QByteArray___cdecl_QByteArray::mid_int__int____ptr64]
mov rdx, rax
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_class_QByteArray____ptr64___cdecl_QByteArray::operator_class_QByteArray____ptr64____ptr64]
lea rcx, [rbp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
test bl, 2
je 0x1800374b3
mov rax, qword [rbp + 0x60]
cmp dword [rax + 4], 2
jge 0x18003742f
mov dword [r13 + 0x18], 3
mov rcx, r14
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::constructor_void____ptr64]
jmp 0x1800375e5
mov r8d, 1
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDataStream::constructor_class_QByteArray____ptr64__class_QFlags_enum_QIODevice::OpenModeFlag_____ptr64]
nop
lea rdx, [rbp + 0x48]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt5Core.dll_public:_class_QDataStream____ptr64___cdecl_QDataStream::operator___short_int____ptr64____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDataStream::destructor_void____ptr64]
or r9d, 0xffffffff
lea r8d, [r9 + 3]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_class_QByteArray___cdecl_QByteArray::mid_int__int____ptr64]
mov rdx, rax
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_class_QByteArray____ptr64___cdecl_QByteArray::operator_class_QByteArray____ptr64____ptr64]
lea rcx, [rbp - 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
mov rax, qword [rbp + 0x60]
mov edi, dword [rax + 4]
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::constData_void_const___ptr64]
mov rcx, rax
mov edx, edi
call qword [sym.imp.Qt5Core.dll_unsigned_short_int___cdecl_qChecksum_char_const____ptr64__unsigned_int_]
cmp ax, word [rbp + 0x48]
sete dil
jmp 0x18003759e
test bl, 4
je 0x1800375a7
mov rax, qword [rbp + 0x60]
cmp dword [rax + 4], 0x14
jl 0x180037419
mov r8d, socket
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_class_QByteArray___cdecl_QByteArray::left_int____ptr64]
nop
or r9d, 0xffffffff
lea r8d, [r9 + 0x15]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_class_QByteArray___cdecl_QByteArray::mid_int__int____ptr64]
mov rdx, rax
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_class_QByteArray____ptr64___cdecl_QByteArray::operator_class_QByteArray____ptr64____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
mov edx, 2
lea rcx, [rbp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QCryptographicHash::constructor_enum_QCryptographicHash::Algorithm____ptr64]
nop
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QCryptographicHash::addData_class_QByteArray_const____ptr64____ptr64]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_class_QByteArray___cdecl_QCryptographicHash::result_void____ptr64]
mov r15, rax
mov rcx, qword [rax]
movsxd rax, dword [rcx + 4]
mov rcx, qword [rbp - 0x40]
cmp eax, dword [rcx + 4]
jne 0x18003757b
mov rsi, rax
lea rcx, [rbp - 0x40]
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::constData_void_const___ptr64]
mov rdi, rax
mov rcx, r15
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::constData_void_const___ptr64]
mov rcx, rax
mov r8, rsi
mov rdx, rdi
call sub.MSVCR120.dll_memcmp
test eax, eax
jne 0x18003757b
mov dil, 1
jmp 0x18003757e
xor dil, dil
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QCryptographicHash::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
test dil, dil
je 0x180037419
test bl, 1
je 0x1800375d0
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x48]
call fcn.1800379c0
mov rdx, rax
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_class_QByteArray____ptr64___cdecl_QByteArray::operator_class_QByteArray____ptr64____ptr64]
lea rcx, [rbp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
mov dword [r13 + 0x18], 0
lea rdx, [rbp + 0x60]
mov rcx, r14
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::constructor_class_QByteArray____ptr64____ptr64]
mov dword [rbp - 0x48], 1
lea rcx, [rbp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
nop
mov rcx, r12
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
mov rax, r14
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret