joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6407a860
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x640ee650]
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 + 0x64]
lea ebx, [ebp + 0x68]
mov ecx, edi
mov word [ebx], ax
call sym.QtNetwork4.dll_public:_void___thiscall_QHostAddress::clear_void_
xor ecx, ecx
mov word [ebp + 0x70], cx
lea ecx, [ebp + 0x6c]
call sym.QtNetwork4.dll_public:_void___thiscall_QHostAddress::clear_void_
mov esi, dword [ebp + 0x78]
cmp esi, 0xffffffff
je 0x6407a96b
push 0x80
lea edx, [esp + 0x18]
push 0
push edx
mov dword [esp + 0x1c], 0x80
call sub.MSVCR100.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 0x6407a953
mov edx, dword [ebp + 0x78]
push edx
lea esi, [esp + 0x18]
call fcn.6407a110
movzx eax, word [esp + 0x18]
add esp, 4
sub eax, 2
je 0x6407a94a
sub eax, 0x15
je 0x6407a941
mov dword [ebp + 0x60], 0xffffffff
push 0x80
lea eax, [esp + 0x18]
push 0
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0x78]
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 0x6407a96f
mov ecx, dword [ebp + 0x78]
push ecx
lea edi, [ebp + 0x6c]
lea ebx, [ebp + 0x70]
lea esi, [esp + 0x18]
call fcn.6407a110
add esp, 4
jmp 0x6407a975
mov dword [ebp + 0x60], 1
jmp 0x6407a8fd
mov dword [ebp + 0x60], 0
jmp 0x6407a8fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2736
jne 0x6407a8fd
push 8
push 0xa
mov ecx, ebp
call fcn.640783c0
xor al, al
jmp 0x6407a982
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp + 0x78]
call fcn.6407a3f0
mov dword [ebp + 0x5c], eax
mov al, 1
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.640943f8
add esp, 0x88
ret
Function at 0x6407a9a0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x38
mov eax, dword [0x640ee650]
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 + 0x78]
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.6407a280
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x78]
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 0x6407ab29
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8e3
cmp eax, 0x34
ja case.0x6407aa24.10014
movzx ecx, byte [eax + 0x6407ab70]
jmp dword [ecx*4 + 0x6407ab44]
mov dword [esi + 0x58], edi
jmp case.0x6407aa24.10014
mov ecx, dword [esi + 0x78]
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.0x6407aa24.10036
mov eax, dword [esp + 0x10]
cmp eax, 0x274d
jne 0x6407aa7e
push 0xd
push ebp
mov ecx, esi
call fcn.640783c0
mov dword [esi + 0x58], ebp
jmp case.0x6407aa24.10014
cmp eax, 0x274c
jne 0x6407aa95
push 0xc
push 7
mov ecx, esi
call fcn.640783c0
mov dword [esi + 0x58], ebp
jmp case.0x6407aa24.10014
cmp eax, 0x2751
jne 0x6407aaac
push 9
push 7
mov ecx, esi
call fcn.640783c0
mov dword [esi + 0x58], ebp
jmp case.0x6407aa24.10014
cmp eax, 0x2741
jne case.0x6407aa24.10036
push 0xf
push 7
mov ecx, esi
call fcn.640783c0
mov dword [esi + 0x58], ebp
jmp case.0x6407aa24.10014
push 8
push 0xb
mov ecx, esi
call fcn.640783c0
mov dword [esi + 0x58], 2
jmp case.0x6407aa24.10014
push 0xe
push 7
jmp 0x6407ab06
push 0xc
push 7
jmp 0x6407ab06
push 0xb
push edi
mov ecx, esi
call fcn.640783c0
mov dword [esi + 0x58], ebp
jmp case.0x6407aa24.10014
push 0xa
push 7
mov ecx, esi
call fcn.640783c0
mov dword [esi + 0x58], ebp
jmp case.0x6407aa24.10014
push 8
push 0xb
mov ecx, esi
call fcn.640783c0
cmp dword [esi + 0x58], edi
je 0x6407ab29
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.640943f8
add esp, 0x38
ret 8
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x58], edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.640943f8
add esp, 0x38
ret 8
Function at 0x6407af30
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
push esi
mov esi, dword [ecx + 4]
call edx
test al, al
jne 0x64079111
push str.QNativeSocketEngine::hasPendingDatagrams___was_called_on_an_uninitialized_socket_device
call dword [sym.imp.QtCore4.dll_void___cdecl_qWarning_char_const__]
add esp, 4
xor al, al
pop esi
ret
cmp dword [esi + 0x58], 0
jne 0x64079129
push str.QNativeSocketEngine::hasPendingDatagrams___was_called_in_QAbstractSocket::UnconnectedState
call dword [sym.imp.QtCore4.dll_void___cdecl_qWarning_char_const__]
add esp, 4
xor al, al
pop esi
ret
cmp dword [esi + 0x5c], 1
je 0x64079141
push str.QNativeSocketEngine::hasPendingDatagrams___was_called_by_a_socket_other_than_QAbstractSocket::UdpSocket
call dword [sym.imp.QtCore4.dll_void___cdecl_qWarning_char_const__]
add esp, 4
xor al, al
pop esi
ret
mov ecx, esi
pop esi
jmp 0x6407af30
sub esp, 0x9c
mov eax, dword [0x640ee650]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
push 0x80
xor ebx, ebx
lea eax, [esp + 0x2c]
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x24], 0x80
call sub.MSVCR100.dll_memset
mov ebp, dword [sym.imp.WS2_32.dll_WSARecvFrom]
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1f]
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi + 0x78]
lea edx, [esp + 0x30]
push edx
push 1
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x44], 1
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], 2
call ebp
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp edi, 0xffffffff
jne 0x6407b009
cmp eax, 0x2738
je 0x6407b009
cmp eax, 0x2746
jne 0x6407afee
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi + 0x78]
lea edx, [esp + 0x30]
push edx
push 1
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x38], ebx
call ebp
mov al, bl
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.640943f8
add esp, 0x9c
ret
mov al, 1
jmp 0x6407aff0
Function at 0x6407b0e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xa4
mov eax, dword [0x640ee650]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
mov ebp, dword [esp + 0xb0]
push esi
push edi
push 0x80
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x34]
push edi
push ecx
mov dword [esp + 0x28], eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x78]
lea edx, [esp + 0x24]
push edx
push 1
lea eax, [esp + 0x44]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0xd8]
push eax
push ecx
mov dword [esp + 0x48], 0x80
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x6407b1b9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
jne 0x6407b1a5
mov edx, dword [esp + 0xc0]
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp eax, edx
jl 0x6407b19d
jg 0x6407b197
cmp ecx, ebp
jbe 0x6407b19d
mov dword [esp + 0x18], edx
jmp 0x6407b1c1
mov ebp, ecx
mov dword [esp + 0x18], eax
jmp 0x6407b1c1
push 0x13
push 7
mov ecx, esi
call fcn.640783c0
or ebp, 0xffffffff
mov dword [esp + 0x18], ebp
jmp 0x6407b1c1
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x18], edi
mov edx, dword [esi + 0x78]
mov edi, ebx
mov ebx, dword [esp + 0x1c]
push edx
lea esi, [esp + 0x34]
call fcn.6407a110
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.640943f8
add esp, 0xa4
ret 0x14
Function at 0x6407b200
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x48
mov eax, dword [0x640ee650]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x78]
lea edx, [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
push edx
push eax
xor ebp, ebp
push ecx
lea ecx, [esp + 0x48]
lea edi, [esp + 0x38]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.6407a280
mov eax, dword [esp + 0x70]
mov edx, eax
add esp, 0x10
or edx, dword [esp + 0x64]
je 0x6407b263
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
jmp 0x6407b267
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x14]
push ebp
push ebp
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esi + 0x78]
push ebp
lea ecx, [esp + 0x2c]
push ecx
push 1
lea edx, [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x3c], ebp
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x6407b2ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, esi
cmp eax, 0x2738
je 0x6407b2c9
push 0x12
push 7
call fcn.640783c0
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.640943f8
add esp, 0x48
ret 0x14
push 0x11
push 6
call fcn.640783c0
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.640943f8
add esp, 0x48
ret 0x14
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor edx, edx
call fcn.640943f8
add esp, 0x48
ret 0x14

Function at 0x6407b310
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x78]
push esi
push edi
push 0
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x14], edx
lea edx, [esp + 0x20]
push edx
push 1
lea eax, [esp + 0x1c]
push eax
or esi, 0xffffffff
push ecx
or edi, esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, esi
jne 0x6407b384
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x6407b391
add eax, 0xffffd8bb
cmp eax, 1
ja 0x6407b3ab
xor esi, esi
xor edi, edi
mov edx, edi
pop edi
mov eax, esi
pop esi
add esp, 8
ret 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x6407b3a5
or edi, 0xffffffff
mov esi, 0xfffffffe
mov edx, edi
pop edi
mov eax, esi
pop esi
add esp, 8
ret 0xc
mov esi, dword [esp + 0x14]
xor edi, edi
mov edx, edi
pop edi
mov eax, esi
pop esi
add esp, 8
ret 0xc
Function at 0x6407b3c0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x218
mov eax, dword [0x640ee650]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov bl, byte [esp + 0x224]
push esi
mov esi, dword [esp + 0x224]
push edi
mov edi, ecx
test bl, bl
je 0x6407b485
mov ecx, dword [edi + 0x7c]
test ecx, ecx
je 0x6407b485
cmp byte [ecx + 0x10], 0
je 0x6407b485
push 0
mov byte [esp + 0x13], 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSocketNotifier::setEnabled_bool_]
push 0x104
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR100.dll_memset
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov ecx, dword [edi + 0x78]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
add esp, 0xc
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
test bl, bl
je 0x6407b48c
test esi, esi
sets al
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
dec eax
and eax, ecx
push eax
push 0
push 0
push edx
push 0
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
jmp 0x6407b4de
mov byte [esp + 0xf], 0
jmp 0x6407b411
test esi, esi
sets al
mov dword [esp + 0x120], ecx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x11c]
mov dword [esp + 0x11c], 1
dec eax
and eax, ecx
push eax
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jle 0x6407b4de
mov edx, dword [edi + 0x78]
lea ecx, [esp + 0x11c]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x6407b4de
dec esi
cmp byte [esp + 0xf], 0
je 0x6407b4f0
mov ecx, dword [edi + 0x7c]
push 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSocketNotifier::setEnabled_bool_]
mov ecx, dword [esp + 0x220]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.640943f8
add esp, 0x218
ret 8
Function at 0x6407b510
Capabilities:
Get socket status

Disassembly:
sub esp, 0x320
mov eax, dword [0x640ee650]
xor eax, esp
mov dword [esp + 0x31c], eax
mov eax, dword [esp + 0x334]
push ebx
mov bl, byte [esp + 0x32c]
push ebp
mov ebp, dword [esp + 0x338]
push esi
push edi
mov edi, dword [esp + 0x334]
mov esi, ecx
mov dword [esp + 0x14], eax
test bl, bl
je 0x6407b6c1
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x6407b6c1
cmp byte [ecx + 0x10], 0
je 0x6407b6c1
push 0
mov byte [esp + 0x17], 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSocketNotifier::setEnabled_bool_]
push 0x104
lea ecx, [esp + 0x24]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
test bl, bl
mov ebx, 1
je 0x6407b59c
mov edx, dword [esi + 0x78]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edx
push 0x104
lea eax, [esp + 0x22c]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp byte [esp + 0x33c], 0
mov dword [esp + 0x124], 0
je 0x6407b5e7
mov eax, dword [esi + 0x78]
mov dword [esp + 0x228], ebx
mov dword [esp + 0x22c], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x124], ebx
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
xor edx, edx
mov ecx, edi
sub ecx, eax
imul ecx, ecx, 0x3e8
test edi, edi
sets dl
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x124]
dec edx
and edx, eax
push edx
push ecx
mov ecx, dword [esi + 0x78]
lea edx, [esp + 0x230]
push edx
lea eax, [esp + 0x2c]
push eax
add ecx, ebx
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
test edi, edi
jle 0x6407b65d
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x124]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x6407b65d
sub edi, ebx
cmp byte [esp + 0x13], 0
je 0x6407b66e
mov ecx, dword [esi + 0x7c]
push ebx
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QSocketNotifier::setEnabled_bool_]
test edi, edi
jle 0x6407b6a4
mov edx, dword [esi + 0x78]
lea ecx, [esp + 0x20]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
setne al
lea ecx, [esp + 0x228]
mov byte [ebp], al
mov edx, dword [esi + 0x78]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [esp + 0x14]
test eax, eax
setne al
mov byte [ecx], al
mov ecx, dword [esp + 0x32c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.640943f8
add esp, 0x320
ret 0x14
mov byte [esp + 0x13], 0
jmp 0x6407b574
Function at 0x6407b6e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, ecx
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x38]
push esi
push edi
xor esi, esi
mov dword [esp + 0x18], eax
xor edi, edi
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x38]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esi + edx]
push 1
lea edx, [esp + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x78]
push edx
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.WS2_32.dll_WSASend]
add esi, dword [esp + 0x10]
adc edi, 0
cmp eax, 0xffffffff
je 0x6407b751
cmp esi, dword [esp + 0x3c]
jne 0x6407b700
cmp edi, dword [esp + 0x40]
je 0x6407b7e5
jmp 0x6407b700
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x6407b7e5
cmp eax, 0x2747
jne 0x6407b7bc
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
sub eax, esi
sbb ecx, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], 0xc000
mov dword [esp + 0x28], 0
js 0x6407b7aa
jg 0x6407b798
cmp eax, 0xc000
jbe 0x6407b7aa
lea eax, [esp + 0x24]
mov edx, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp + 0x14], edx
jmp 0x6407b700
lea eax, [esp + 0x2c]
mov edx, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp + 0x14], edx
jmp 0x6407b700
cmp eax, 0x2745
jl 0x6407b7e5
cmp eax, 0x2746
jg 0x6407b7e5
push 0x14
or esi, 0xffffffff
push 7
mov ecx, ebp
or edi, esi
call fcn.640783c0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x50]
call edx
mov edx, edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
Function at 0x6407ce30
Capabilities:
Read file on windows
Read pipe

Disassembly:
push 0xffffffffffffffff
push 0x640a5569
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x640ee650]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea esp, [esp]
mov ecx, dword [esi + 0x90]
mov edi, dword [esi + 4]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x6407ce87
mov ebp, dword [esp + 0x18]
jmp 0x6407cebb
cmp byte [esi + 0xde], 0
jne 0x6407ceb9
mov ecx, edi
mov byte [esi + 0xde], 1
call dword [sym.imp.QtCore4.dll_protected:_void___thiscall_QIODevice::readChannelFinished_void_]
cmp dword [esi + 0xd0], 0
jne 0x6407ceb9
push str.1_q_pipeClosed__
push edi
push 0
call dword [sym.imp.QtCore4.dll_public:_static_void___cdecl_QTimer::singleShot_int__class_QObject___char_const__]
add esp, 0xc
xor ebp, ebp
cmp byte [esi + 0xde], 0
jne 0x6407cfe0
test ebp, ebp
jne 0x6407ced1
mov ebp, 0x1000
mov ecx, dword [esi + 0xb0]
mov edi, dword [esi + 0xb4]
mov edx, ecx
or edx, edi
je 0x6407cf0a
mov ebx, dword [esi + 0xcc]
mov eax, ebx
cdq
sub ecx, eax
sbb edi, edx
xor eax, eax
cmp eax, edi
jl 0x6407cf0a
jg 0x6407cefc
cmp ebp, ecx
jbe 0x6407cf0a
mov ebp, dword [esi + 0xb0]
sub ebp, ebx
je 0x6407cfe0
push ebp
lea ecx, [esi + 0xb8]
call fcn.6400e660
mov edx, dword [esi + 0x90]
lea ecx, [esi + 0x94]
push ecx
push 0
push ebp
push eax
push edx
mov byte [esi + 0xdc], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6407cf4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xe9
je 0x6407cfd0
dec eax
jne 0x6407cf75
mov ecx, esi
call fcn.6407cd30
cmp byte [esi + 0xdc], 0
je 0x6407ce60
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
sub eax, 0x2fb
je 0x6407cfe0
push str.QLocalSocketPrivate::startAsyncRead
lea ecx, [esp + 0x20]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QLatin1String::constructor_char_const__]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QLatin1String_const__]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.6407bfa0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esi + 4]
mov byte [esi + 0xde], 1
call dword [sym.imp.QtCore4.dll_protected:_void___thiscall_QIODevice::readChannelFinished_void_]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x6407e510
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x640a57c3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x640ee650]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], 1
cmp eax, 5
ja case.default.0x6407e54b
jmp dword [eax*4 + 0x6407e5bc]
push str.Organization
jmp 0x6407e57a
push str.CommonName
jmp 0x6407e57a
push str.CountryName
jmp 0x6407e57a
push str.LocalityName
jmp 0x6407e57a
push str.OrganizationalUnitName
jmp 0x6407e57a
push str.StateOrProvinceName
lea ecx, [esp + 0x24]
call dword [sym.imp.QtCore4.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov dword [esi], eax
inc dword [eax + 0xc]
lea ecx, [esp + 0x20]
mov dword [esp + 8], 1
mov byte [esp + 0x14], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDebug::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x6407fbd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x640a5bec
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x640ee650]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], 0
mov eax, dword [esi]
push eax
call dword [sym.imp.QtCore4.dll_public:_static_class_QMutex____cdecl_QMutexPool::globalInstanceGet_void_const__]
add esp, 4
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QMutexLocker::constructor_class_QMutex__]
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
cmp dword [ecx + 0x3c], 0
mov dword [esp + 0x24], 1
jne 0x6407fc76
cmp dword [eax + 0x1c], 0
je 0x6407fc76
mov edx, dword [eax + 0x1c]
push edx
call fcn.6408f0e0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.6407f9f0
mov ecx, dword [esi]
mov edi, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ecx + 0xc], edi
mov dword [eax], edx
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x6407fc76
lea ecx, [eax + 0x34]
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QBasicAtomicInt::deref_void_]
test al, al
jne 0x6407fc76
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x14]
call fcn.6407eb10
mov ebx, dword [esp + 0x30]
lea edx, [esp + 0x30]
push edx
call fcn.6407e3c0
add esp, 4
mov ecx, dword [esi]
mov edi, dword [esp + 0x2c]
push eax
push edi
lea ecx, [ecx + 0xc]
mov byte [esp + 0x2c], 2
call fcn.6407ee00
mov eax, 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], eax
mov byte [esp + 0x24], al
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QMutexLocker::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8