joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6405ee10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x6408fceb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x640df444]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x2c]
mov edi, dword [sym.imp.QtCore4.dll_public:_class_QByteArray___thiscall_QString::toLatin1_void_]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esi + 4]
mov byte [eax], 0
call edi
lea edx, [esp + 0x10]
push edx
lea ecx, [esi + 8]
mov dword [esp + 0x24], 0
call edi
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QByteArray::size_void_const]
lea ecx, [esp + 0x30]
mov esi, eax
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QByteArray::size_void_const]
lea eax, [esi + eax + 3]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QByteArray::constructor_int__char_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 2
call dword [sym.imp.QtCore4.dll_public:_char____thiscall_QByteArray::data_void_]
mov esi, eax
lea ecx, [esp + 0x2c]
mov byte [esi], 1
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QByteArray::size_void_const]
lea ecx, [esp + 0x2c]
mov byte [esi + 1], al
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QByteArray::size_void_const]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.QtCore4.dll_public:_char____thiscall_QByteArray::data_void_]
push eax
lea ecx, [esi + 2]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0x2c]
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QByteArray::size_void_const]
mov edi, eax
lea ecx, [esp + 0x10]
add edi, 2
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QByteArray::size_void_const]
mov byte [edi + esi], al
lea ecx, [esp + 0x10]
inc edi
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QByteArray::size_void_const]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.QtCore4.dll_public:_char____thiscall_QByteArray::data_void_]
push eax
add edi, esi
push edi
call sub.MSVCR90.dll_memcpy
mov ecx, dword [esp + 0x34]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.QtCore4.dll_public:_long_long___int64____thiscall_QIODevice::write_class_QByteArray_const__]
lea ecx, [esp + 0x14]
mov esi, eax
mov edi, edx
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QByteArray::size_void_const]
cdq
cmp esi, eax
jne 0x6405ef38
cmp edi, edx
jne 0x6405ef38
mov bl, 1
jmp 0x6405ef3a
xor bl, bl
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x64061ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6408f922
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x640df444]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + 0x90]
test eax, eax
je 0x64061bae
cmp dword [eax], 0
je 0x64061bae
mov ecx, dword [esp + 0x38]
cmp ecx, 7
jne 0x64061b60
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [eax]
call sym.QtNetwork4.dll_public:_class_QVariant___thiscall_QAbstractSocket::socketOption_enum_QAbstractSocket::SocketOption_
push 0
mov ecx, eax
mov dword [esp + 0x34], 0
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QVariant::toInt_bool__const]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 4
cmp ecx, 8
jne 0x64061bae
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x1c]
push edx
call sym.QtNetwork4.dll_public:_class_QVariant___thiscall_QAbstractSocket::socketOption_enum_QAbstractSocket::SocketOption_
push 0
mov ecx, eax
mov dword [esp + 0x34], 1
call dword [sym.imp.QtCore4.dll_public:_int___thiscall_QVariant::toInt_bool__const]
lea ecx, [esp + 0x18]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QVariant::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 4
Function at 0x6406af50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x640911cb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x640df444]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [ecx + 4]
lea ecx, [esi + 0x5c]
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QString::isEmpty_void_const]
test al, al
jne 0x6406afa9
push str.QLocalServer::listen___called_when_already_listening
call dword [sym.imp.QtCore4.dll_void___cdecl_qWarning_char_const__]
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
mov edi, dword [esp + 0x2c]
mov ecx, edi
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QString::isEmpty_void_const]
test al, al
je 0x6406b081
push str.QLocalServer::listen
lea ecx, [esp + 0x1c]
mov dword [esi + 0x70], 2
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QLatin1String::constructor_char_const__]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QLatin1String_const__]
mov byte [esp + 0x2c], 0x20
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0
lea ecx, [esp + 0x18]
push str._1:_Name_error
push ecx
call sym.QtNetwork4.dll_public:_static_class_QString___cdecl_QLocalServer::tr_char_const___char_const__
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
mov byte [esp + 0x34], 1
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::arg_class_QString_const___int__class_QChar_const__]
push eax
lea ecx, [esi + 0x6c]
mov byte [esp + 0x28], 2
call dword [0x6409517c]
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
push edi
mov ecx, esi
call fcn.6406ed00
lea ecx, [esi + 0x5c]
test al, al
jne 0x6406b0b5
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::clear_void_]
lea ecx, [esi + 0x60]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::clear_void_]
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
push edi
call dword [0x6409517c]
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 4
Function at 0x6406ba80
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x640df444]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
push 2
mov dword [esi], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x6406bad4
push 0x640a9edc
call dword [sym.imp.QtCore4.dll_void___cdecl_qWarning_char_const__]
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.64082938
add esp, 0x194
ret
mov ecx, dword [esp + 0x194]
mov dword [esi], 0x20
mov eax, esi
pop esi
xor ecx, esp
call fcn.64082938
add esp, 0x194
ret

Function at 0x6406bb10
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x10]
dec eax
neg eax
sbb eax, eax
push 1
dec ecx
push 0
add eax, 2
neg ecx
push 0
sbb ecx, ecx
push 0
and ecx, 0xffffffeb
push eax
add ecx, 0x17
push ecx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6406bb88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8da
cmp eax, 0x21
ja case.0x6406bb5d.10023
movzx edx, byte [eax + 0x6406bbdc]
jmp dword [edx*4 + 0x6406bbd0]
push 7
push 0xa
mov ecx, edi
call fcn.6405aa70
pop edi
xor al, al
pop esi
ret 8
push 5
push 4
mov ecx, edi
call fcn.6405aa70
pop edi
xor al, al
pop esi
ret 8
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x9800000c
push esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x6406bbc3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x7c], esi
pop edi
mov al, 1
pop esi
ret 8

Function at 0x6406bd3f
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [ecx + 4]
jmp 0x6406bd10
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
test al, al
je 0x6406bdd3
mov edx, dword [esp + 0x10]
xor eax, eax
mov ecx, 0xffff
cmp edx, 8
ja case.default.0x6406bd38
jmp dword [edx*4 + 0x6406bddc]
mov eax, 0x1002
jmp case.default.0x6406bd38
mov eax, 0x1001
jmp case.default.0x6406bd38
mov eax, 0x20
jmp case.default.0x6406bd38
mov ecx, dword [esp + 0x14]
push eax
push eax
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x7c]
push 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 4
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x6406bdcd
mov al, 1
pop esi
add esp, 8
ret 8
mov eax, 4
jmp case.default.0x6406bd38
mov eax, 0xfffffffb
jmp case.default.0x6406bd38
mov eax, 0x100
jmp case.default.0x6406bd38
mov ecx, 6
lea eax, [ecx - 5]
jmp case.default.0x6406bd38
mov eax, 8
push 4
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi + 0x7c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x6406bd89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
pop esi
add esp, 8
ret 8
Function at 0x6406bd46
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [ecx + 4]
jmp 0x6406bd10
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
test al, al
je 0x6406bdd3
mov edx, dword [esp + 0x10]
xor eax, eax
mov ecx, 0xffff
cmp edx, 8
ja case.default.0x6406bd38
jmp dword [edx*4 + 0x6406bddc]
mov eax, 0x1002
jmp case.default.0x6406bd38
mov eax, 0x1001
jmp case.default.0x6406bd38
mov eax, 0x20
jmp case.default.0x6406bd38
mov ecx, dword [esp + 0x14]
push eax
push eax
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x7c]
push 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 4
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x6406bdcd
mov al, 1
pop esi
add esp, 8
ret 8
mov eax, 4
jmp case.default.0x6406bd38
mov eax, 0xfffffffb
jmp case.default.0x6406bd38
mov eax, 0x100
jmp case.default.0x6406bd38
mov ecx, 6
lea eax, [ecx - 5]
jmp case.default.0x6406bd38
mov eax, 8
push 4
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi + 0x7c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x6406bd89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
pop esi
add esp, 8
ret 8

Function at 0x6406bd4d
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [ecx + 4]
jmp 0x6406bd10
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
test al, al
je 0x6406bdd3
mov edx, dword [esp + 0x10]
xor eax, eax
mov ecx, 0xffff
cmp edx, 8
ja case.default.0x6406bd38
jmp dword [edx*4 + 0x6406bddc]
mov eax, 0x1002
jmp case.default.0x6406bd38
mov eax, 0x1001
jmp case.default.0x6406bd38
mov eax, 0x20
jmp case.default.0x6406bd38
mov ecx, dword [esp + 0x14]
push eax
push eax
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x7c]
push 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 4
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x6406bdcd
mov al, 1
pop esi
add esp, 8
ret 8
mov eax, 4
jmp case.default.0x6406bd38
mov eax, 0xfffffffb
jmp case.default.0x6406bd38
mov eax, 0x100
jmp case.default.0x6406bd38
mov ecx, 6
lea eax, [ecx - 5]
jmp case.default.0x6406bd38
mov eax, 8
push 4
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi + 0x7c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x6406bd89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
pop esi
add esp, 8
ret 8
Function at 0x6406bd92
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [ecx + 4]
jmp 0x6406bd10
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
test al, al
je 0x6406bdd3
mov edx, dword [esp + 0x10]
xor eax, eax
mov ecx, 0xffff
cmp edx, 8
ja case.default.0x6406bd38
jmp dword [edx*4 + 0x6406bddc]
mov eax, 0x1002
jmp case.default.0x6406bd38
mov eax, 0x1001
jmp case.default.0x6406bd38
mov eax, 0x20
jmp case.default.0x6406bd38
mov ecx, dword [esp + 0x14]
push eax
push eax
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x7c]
push 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 4
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x6406bdcd
mov al, 1
pop esi
add esp, 8
ret 8
mov eax, 4
jmp case.default.0x6406bd38
mov eax, 0xfffffffb
jmp case.default.0x6406bd38
mov eax, 0x100
jmp case.default.0x6406bd38
mov ecx, 6
lea eax, [ecx - 5]
jmp case.default.0x6406bd38
mov eax, 8
push 4
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi + 0x7c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x6406bd89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
pop esi
add esp, 8
ret 8

Function at 0x6406bd99
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [ecx + 4]
jmp 0x6406bd10
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
test al, al
je 0x6406bdd3
mov edx, dword [esp + 0x10]
xor eax, eax
mov ecx, 0xffff
cmp edx, 8
ja case.default.0x6406bd38
jmp dword [edx*4 + 0x6406bddc]
mov eax, 0x1002
jmp case.default.0x6406bd38
mov eax, 0x1001
jmp case.default.0x6406bd38
mov eax, 0x20
jmp case.default.0x6406bd38
mov ecx, dword [esp + 0x14]
push eax
push eax
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x7c]
push 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 4
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x6406bdcd
mov al, 1
pop esi
add esp, 8
ret 8
mov eax, 4
jmp case.default.0x6406bd38
mov eax, 0xfffffffb
jmp case.default.0x6406bd38
mov eax, 0x100
jmp case.default.0x6406bd38
mov ecx, 6
lea eax, [ecx - 5]
jmp case.default.0x6406bd38
mov eax, 8
push 4
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi + 0x7c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x6406bd89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
pop esi
add esp, 8
ret 8
Function at 0x6406bda0
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [ecx + 4]
jmp 0x6406bd10
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
test al, al
je 0x6406bdd3
mov edx, dword [esp + 0x10]
xor eax, eax
mov ecx, 0xffff
cmp edx, 8
ja case.default.0x6406bd38
jmp dword [edx*4 + 0x6406bddc]
mov eax, 0x1002
jmp case.default.0x6406bd38
mov eax, 0x1001
jmp case.default.0x6406bd38
mov eax, 0x20
jmp case.default.0x6406bd38
mov ecx, dword [esp + 0x14]
push eax
push eax
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x7c]
push 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 4
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x6406bdcd
mov al, 1
pop esi
add esp, 8
ret 8
mov eax, 4
jmp case.default.0x6406bd38
mov eax, 0xfffffffb
jmp case.default.0x6406bd38
mov eax, 0x100
jmp case.default.0x6406bd38
mov ecx, 6
lea eax, [ecx - 5]
jmp case.default.0x6406bd38
mov eax, 8
push 4
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi + 0x7c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x6406bd89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
pop esi
add esp, 8
ret 8

Function at 0x6406bda7
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [ecx + 4]
jmp 0x6406bd10
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
test al, al
je 0x6406bdd3
mov edx, dword [esp + 0x10]
xor eax, eax
mov ecx, 0xffff
cmp edx, 8
ja case.default.0x6406bd38
jmp dword [edx*4 + 0x6406bddc]
mov eax, 0x1002
jmp case.default.0x6406bd38
mov eax, 0x1001
jmp case.default.0x6406bd38
mov eax, 0x20
jmp case.default.0x6406bd38
mov ecx, dword [esp + 0x14]
push eax
push eax
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x7c]
push 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 4
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x6406bdcd
mov al, 1
pop esi
add esp, 8
ret 8
mov eax, 4
jmp case.default.0x6406bd38
mov eax, 0xfffffffb
jmp case.default.0x6406bd38
mov eax, 0x100
jmp case.default.0x6406bd38
mov ecx, 6
lea eax, [ecx - 5]
jmp case.default.0x6406bd38
mov eax, 8
push 4
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi + 0x7c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x6406bd89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
pop esi
add esp, 8
ret 8
Function at 0x6406bdb1
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [ecx + 4]
jmp 0x6406bd10
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
test al, al
je 0x6406bdd3
mov edx, dword [esp + 0x10]
xor eax, eax
mov ecx, 0xffff
cmp edx, 8
ja case.default.0x6406bd38
jmp dword [edx*4 + 0x6406bddc]
mov eax, 0x1002
jmp case.default.0x6406bd38
mov eax, 0x1001
jmp case.default.0x6406bd38
mov eax, 0x20
jmp case.default.0x6406bd38
mov ecx, dword [esp + 0x14]
push eax
push eax
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x7c]
push 4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 4
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x6406bdcd
mov al, 1
pop esi
add esp, 8
ret 8
mov eax, 4
jmp case.default.0x6406bd38
mov eax, 0xfffffffb
jmp case.default.0x6406bd38
mov eax, 0x100
jmp case.default.0x6406bd38
mov ecx, 6
lea eax, [ecx - 5]
jmp case.default.0x6406bd38
mov eax, 8
push 4
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi + 0x7c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x6406bd89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor al, al
pop esi
add esp, 8
ret 8
Function at 0x6406be00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x640df444]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor eax, eax
lea edi, [ebp + 0x68]
lea ebx, [ebp + 0x6c]
mov ecx, edi
mov word [ebx], ax
call sym.QtNetwork4.dll_public:_void___thiscall_QHostAddress::clear_void_
xor ecx, ecx
mov word [ebp + 0x74], cx
lea ecx, [ebp + 0x70]
call sym.QtNetwork4.dll_public:_void___thiscall_QHostAddress::clear_void_
mov esi, dword [ebp + 0x7c]
cmp esi, 0xffffffff
je 0x6406bf0b
push 0x80
lea edx, [esp + 0x18]
push 0
push edx
mov dword [esp + 0x1c], 0x80
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x6406bef3
mov edx, dword [ebp + 0x7c]
push edx
lea esi, [esp + 0x18]
call fcn.6406b780
movzx eax, word [esp + 0x18]
add esp, 4
sub eax, 2
je 0x6406beea
sub eax, 0x15
je 0x6406bee1
mov dword [ebp + 0x64], 0xffffffff
push 0x80
lea eax, [esp + 0x18]
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 0x7c]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x6406bf0f
mov ecx, dword [ebp + 0x7c]
push ecx
lea edi, [ebp + 0x70]
lea ebx, [ebp + 0x74]
lea esi, [esp + 0x18]
call fcn.6406b780
add esp, 4
jmp 0x6406bf15
mov dword [ebp + 0x64], 1
jmp 0x6406be9d
mov dword [ebp + 0x64], 0
jmp 0x6406be9d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2736
jne 0x6406be9d
push 8
push 0xa
mov ecx, ebp
call fcn.6405aa70
xor al, al
jmp 0x6406bf22
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp + 0x7c]
call fcn.6406ba20
mov dword [ebp + 0x60], eax
mov al, 1
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.64082938
add esp, 0x88
ret
Function at 0x6406bf40
Capabilities:
Connect socket

Disassembly:
sub esp, 0x38
mov eax, dword [0x640df444]
xor eax, esp
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x7c]
lea ecx, [esp + 0x14]
push ecx
push edx
xor ebp, ebp
push eax
lea ecx, [esp + 0x38]
lea edi, [esp + 0x28]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.6406b8b0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x7c]
add esp, 0x10
push ebp
push ebp
push ebp
push ebp
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
lea edi, [ebp + 3]
cmp eax, 0xffffffff
jne 0x6406c0af
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8e3
cmp eax, 0x34
ja case.0x6406bfc4.10014
movzx ecx, byte [eax + 0x6406c0f8]
jmp dword [ecx*4 + 0x6406c0cc]
mov dword [esi + 0x5c], edi
jmp case.0x6406bfc4.10014
mov ecx, dword [esi + 0x7c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x1007
push 0xffff
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne case.0x6406bfc4.10036
mov eax, dword [esp + 0x10]
cmp eax, 0x274d
jne 0x6406c01b
push 0xd
push ebp
mov ecx, esi
call fcn.6405aa70
mov dword [esi + 0x5c], ebp
jmp case.0x6406bfc4.10014
cmp eax, 0x274c
jne 0x6406c032
push 0xc
push 7
mov ecx, esi
call fcn.6405aa70
mov dword [esi + 0x5c], ebp
jmp case.0x6406bfc4.10014
cmp eax, 0x2751
jne case.0x6406bfc4.10036
push 9
push 7
mov ecx, esi
call fcn.6405aa70
mov dword [esi + 0x5c], ebp
jmp case.0x6406bfc4.10014
push 8
push 0xb
mov ecx, esi
call fcn.6405aa70
mov dword [esi + 0x5c], 2
jmp case.0x6406bfc4.10014
push 0xe
push 7
jmp 0x6406c08c
push 0xc
push 7
jmp 0x6406c08c
push 0xb
push edi
mov ecx, esi
call fcn.6405aa70
mov dword [esi + 0x5c], ebp
jmp case.0x6406bfc4.10014
push 0xa
push 7
mov ecx, esi
call fcn.6405aa70
mov dword [esi + 0x5c], ebp
jmp case.0x6406bfc4.10014
push 8
push 0xb
mov ecx, esi
call fcn.6405aa70
cmp dword [esi + 0x5c], edi
je 0x6406c0af
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.64082938
add esp, 0x38
ret 8
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x5c], edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.64082938
add esp, 0x38
ret 8