joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d7721ec
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.ws2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x6d77222d
lea eax, [ebp - 0x104]
push str.localhost
push eax
call sub.msvcr100.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
push esi
call sub.java.dll__JNU_NewStringPlatform_8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.6d77b1da
leave
ret 8
Function at 0x6d772cb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x448], ebx
call dword [eax + 0x2ac]
lea ecx, [ebp - 0x14]
cmp eax, 4
mov eax, dword [edi]
push ecx
jne 0x6d772d46
push 4
push ebx
push esi
push edi
call dword [eax + 0x320]
movsx esi, byte [ebp - 0x14]
movzx eax, byte [ebp - 0x13]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 0x12]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 0x11]
shl esi, 8
push 0x10
or esi, eax
lea eax, [ebp - 0x428]
push ebx
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.ws2_32.dll_htonl]
push 2
mov dword [ebp - 0x424], eax
pop eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x428]
push 0x10
jmp 0x6d772d87
push 0x10
push ebx
push esi
push edi
call dword [eax + 0x320]
push 0x1c
lea eax, [ebp - 0x444]
push ebx
push eax
call sub.msvcr100.dll_memset
push 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x43c]
push eax
call sub.msvcr100.dll_memcpy
add esp, 0x18
push 0x17
pop eax
mov word [ebp - 0x444], ax
lea eax, [ebp - 0x444]
push 0x1c
pop ecx
push 4
push ebx
push ebx
push 0x401
lea edx, [ebp - 0x418]
push edx
push ecx
push eax
call dword [sym.imp.ws2_32.dll_getnameinfo]
test eax, eax
jne 0x6d772dbe
mov eax, dword [edi]
lea ecx, [ebp - 0x418]
push ecx
push edi
call dword [eax + 0x29c]
mov dword [ebp - 0x448], eax
cmp eax, ebx
jne 0x6d772dca
push ebx
push str.java_net_UnknownHostException
push edi
call sub.java.dll__JNU_ThrowByName_12
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x448]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d77b1da
leave
ret 0xc
Function at 0x6d7730a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp + 0x790], eax
mov eax, dword [ebp + 0x7a4]
mov ecx, dword [ebp + 0x7a8]
push esi
mov esi, dword [ebp + 0x79c]
push edi
mov edi, dword [ebp + 0x7b0]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], ecx
test eax, eax
jne 0x6d7730f7
push str.socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
or eax, 0xffffffff
jmp 0x6d77328b
push dword [0x6d781130]
mov ecx, dword [esi]
push eax
push esi
call dword [ecx + 0x190]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x6d77311e
push str.Socket_closed
push esi
call fcn.6d773a15
pop ecx
pop ecx
jmp 0x6d7730ef
push ebx
mov ebx, 0x800
cmp edi, ebx
jg 0x6d77312d
lea ebx, [ebp - 0x70]
jmp 0x6d773153
mov eax, 0x10000
cmp edi, eax
jle 0x6d773138
mov edi, eax
push edi
call dword [sym.imp.msvcr100.dll_malloc]
pop ecx
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x6d773150
lea eax, [ebp - 0x70]
mov edi, ebx
mov ebx, eax
jmp 0x6d773153
mov ebx, dword [ebp - 0x74]
cmp dword [ebp + 0x7b4], 0
je 0x6d7731fc
cmp dword [ebp + 0x7b4], 0x1388
jle 0x6d773179
cmp byte [section..data], 0
jne 0x6d7731fc
push dword [ebp + 0x7b4]
push dword [ebp - 0x78]
call sym.net.dll__NET_Timeout_8
test eax, eax
jg 0x6d7731c1
jne 0x6d773199
push str.Read_timed_out
push str.java_net_SocketTimeoutException
jmp 0x6d7731b9
cmp eax, 0xffffffff
jne 0x6d7731aa
push str.socket_closed
push str.java_net_SocketException
jmp 0x6d7731b9
cmp eax, 0xfffffffe
jne 0x6d7731e5
push str.Operation_interrupted
push str.java_io_InterruptedIOException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d7731e5
push dword [0x6d781130]
mov eax, dword [esi]
push dword [ebp - 0x7c]
push esi
call dword [eax + 0x190]
cmp eax, 0xffffffff
jne 0x6d7731fc
push str.Socket_Closed
push esi
call fcn.6d773a15
pop ecx
pop ecx
lea eax, [ebp - 0x70]
cmp ebx, eax
je 0x6d7731f4
push ebx
call dword [sym.imp.msvcr100.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x6d77328a
push 0
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.ws2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x6d773225
mov eax, dword [esi]
push ebx
push edi
push dword [ebp + 0x7ac]
push dword [ebp - 0x80]
push esi
call dword [eax + 0x340]
jmp 0x6d773279
jns 0x6d773279
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
sub eax, 0x2714
je 0x6d773269
sub eax, 0x32
je 0x6d77325d
sub eax, 4
je 0x6d77325d
dec eax
dec eax
je 0x6d773251
push str.recv_failed
push esi
call fcn.6d773a00
pop ecx
pop ecx
jmp 0x6d773279
push str.Read_timed_out
push str.java_net_SocketTimeoutException
jmp 0x6d773273
push 0x6d77c611
push str.sun_net_ConnectionResetException
jmp 0x6d773273
push str.socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
lea eax, [ebp - 0x70]
cmp ebx, eax
je 0x6d773288
push ebx
call dword [sym.imp.msvcr100.dll_free]
pop ecx
mov eax, edi
pop ebx
mov ecx, dword [ebp + 0x790]
pop edi
xor ecx, ebp
pop esi
call fcn.6d77b1da
add ebp, 0x794
leave
ret 0x1c
Function at 0x6d7732b6
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp + 0x798], eax
mov eax, dword [ebp + 0x7ac]
push esi
mov esi, dword [ebp + 0x7a4]
push edi
mov edi, dword [ebp + 0x7b0]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x80], edi
test eax, eax
jne 0x6d773304
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d773453
push dword [0x6d781134]
mov ecx, dword [esi]
push eax
push esi
call dword [ecx + 0x190]
mov dword [ebp - 0x7c], eax
test edi, edi
jne 0x6d77332b
push str.data_argument
push esi
call sub.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d773453
mov edi, dword [ebp + 0x7b8]
push ebx
mov ebx, 0x800
cmp edi, ebx
jle 0x6d77335a
mov eax, 0x10000
mov dword [ebp - 0x6c], eax
cmp edi, eax
jg 0x6d77334a
mov dword [ebp - 0x6c], edi
push dword [ebp - 0x6c]
call dword [sym.imp.msvcr100.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
jne 0x6d773360
mov dword [ebp - 0x6c], ebx
lea esi, [ebp - 0x68]
test edi, edi
jle 0x6d773443
jmp 0x6d773370
mov edi, dword [ebp + 0x7b8]
and dword [ebp - 0x78], 0
cmp dword [ebp - 0x6c], edi
jge 0x6d77337c
mov edi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
and dword [ebp - 0x74], 0
push esi
push edi
push dword [ebp + 0x7b4]
mov ebx, edi
push dword [ebp - 0x80]
push eax
call dword [ecx + 0x320]
test edi, edi
jle 0x6d7733f1
mov eax, dword [ebp - 0x78]
push 0
push ebx
add eax, esi
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ws2_32.dll_send]
test eax, eax
jle 0x6d7733ba
sub ebx, eax
add dword [ebp - 0x78], eax
jmp 0x6d7733ed
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2747
jne 0x6d773420
mov eax, 0x800
cmp ebx, eax
jle 0x6d7733d9
mov dword [ebp - 0x6c], eax
mov edi, eax
mov ebx, eax
jmp 0x6d77339d
cmp dword [ebp - 0x74], 0x1e
jge 0x6d77340c
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 0x74]
test ebx, ebx
jg 0x6d77339d
sub dword [ebp + 0x7b8], edi
add dword [ebp + 0x7b4], edi
cmp dword [ebp + 0x7b8], 0
jg 0x6d77336a
jmp 0x6d773443
push str.No_buffer_space_available___exhausted_attempts_to_queue_buffer
push str.java_net_SocketException
push dword [ebp - 0x70]
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d773443
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2736
jne 0x6d773434
push str.Socket_closed
jmp 0x6d773411
push str.socket_write_error
push dword [ebp - 0x70]
call fcn.6d773a00
pop ecx
pop ecx
lea eax, [ebp - 0x68]
cmp esi, eax
je 0x6d773452
push esi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
pop ebx
mov ecx, dword [ebp + 0x798]
pop edi
xor ecx, ebp
pop esi
call fcn.6d77b1da
add ebp, 0x79c
leave
ret 0x18
Function at 0x6d773af6
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa8
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp + 0x74], eax
mov eax, dword [0x6d781004]
test eax, eax
jns 0x6d773bae
and dword [0x6d781004], 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x6d773b4e
cmp dword [ebp - 0x1c], 5
jae 0x6d773ba9
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpParameters
jmp 0x6d773b5e
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesVxDMSTCPParameters
push reloc.ws2_32.dll_bind
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d773ba9
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push str.DefaultTOS
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], 4
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 0x24]
mov edi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x6d773ba9
mov eax, dword [ebp - 0x28]
mov dword [0x6d781004], eax
mov eax, dword [0x6d781004]
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.6d77b1da
add ebp, 0x78
leave
ret

Function at 0x6d773d3b
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x9c]
cdq
mov ecx, 0x3e8
idiv ecx
lea ecx, [ebp - 0x80]
push ecx
push 0
push 0
lea ecx, [ebp - 0x78]
push ecx
mov dword [ebp - 0x78], 1
imul edx, edx, 0x3e8
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x98]
mov dword [ebp - 0x74], eax
inc eax
push eax
mov dword [ebp - 0x7c], edx
call dword [sym.imp.ws2_32.dll_select]
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.6d77b1da
add ebp, 0x90
leave
ret 8
Function at 0x6d773dab
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xa4]
lea ecx, [ebp - 0x80]
cmp eax, 0xffffffff
jne 0x6d773de1
xor ecx, ecx
jmp 0x6d773df5
cdq
mov esi, 0x3e8
idiv esi
imul edx, edx, 0x3e8
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
mov esi, dword [ebp + 0x98]
mov ebx, dword [ebp + 0x9c]
xor edx, edx
inc edx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], edx
xor eax, eax
cmp dword [ebp + eax*4 - 0x74], ebx
je 0x6d773e17
inc eax
cmp eax, edx
jb 0x6d773e0c
cmp eax, edx
jne 0x6d773e25
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x78], 2
push ecx
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.ws2_32.dll_select]
sub eax, 0
je 0x6d773e65
dec eax
je 0x6d773e4c
dec eax
je 0x6d773e45
or eax, 0xffffffff
jmp 0x6d773e67
push 2
mov dword [edi], esi
pop eax
jmp 0x6d773e67
lea eax, [ebp - 0x78]
push eax
push esi
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
je 0x6d773e5e
mov dword [edi], esi
jmp 0x6d773e60
mov dword [edi], ebx
xor eax, eax
inc eax
jmp 0x6d773e67
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d77b1da
add ebp, 0x90
leave
ret 0x10
Function at 0x6d7744dd
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x330
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp + 0x64], eax
push ebx
mov ebx, dword [ebp + 0x70]
push esi
push edi
xor edi, edi
push edi
push ebx
call sub.jvm.dll__JVM_CurrentTimeMillis_8
mov esi, dword [ebp + 0x74]
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0x2b0], eax
and dword [ebp - 0x2b0], 1
mov dword [ebp - 0x2b4], eax
and dword [ebp - 0x2b4], 2
mov dword [ebp - 0x2ac], eax
and dword [ebp - 0x2ac], 4
mov dword [ebp - 0x2c4], edx
mov eax, dword [ebp + 0x7c]
cdq
mov ecx, 0x3e8
idiv ecx
xor ecx, ecx
inc ecx
mov dword [ebp - 0x2a8], edi
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x1a4], edi
imul edx, edx, 0x3e8
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2bc], edx
cmp dword [ebp - 0x2b0], edi
je 0x6d774580
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a8], ecx
cmp dword [ebp - 0x2b4], edi
je 0x6d774594
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xa0], ecx
cmp dword [ebp - 0x2ac], edi
je 0x6d7745e2
xor eax, eax
cmp dword [ebp - 0xa0], edi
jbe 0x6d7745b8
cmp dword [ebp + eax*4 - 0x9c], esi
je 0x6d7745b8
inc eax
cmp eax, dword [ebp - 0xa0]
jb 0x6d7745a6
cmp eax, dword [ebp - 0xa0]
jne 0x6d7745d6
cmp dword [ebp - 0xa0], 0x40
jae 0x6d7745d6
mov dword [ebp + eax*4 - 0x9c], esi
inc dword [ebp - 0xa0]
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x1a4], ecx
call dword [sym.imp.msvcr100.dll__errno]
mov dword [eax], edi
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x2a8]
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.ws2_32.dll_select]
push edi
push ebx
mov dword [ebp - 0x2b8], eax
call sub.jvm.dll__JVM_CurrentTimeMillis_8
mov ecx, dword [ebp - 0x2c8]
sub ecx, eax
add dword [ebp + 0x7c], ecx
cmp dword [ebp + 0x7c], edi
jle 0x6d77464e
cmp dword [ebp - 0x2b8], edi
jle 0x6d77453a
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d77b1da
add ebp, 0x68
leave
ret
xor eax, eax
cmp dword [ebp - 0x2b8], edi
setg al
dec eax
jmp 0x6d77463c
Function at 0x6d774a8d
Capabilities:
Monitor local ipv4 address changes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
call sub.IPHLPAPI.DLL_NotifyAddrChange
cmp eax, 0x3e5
jne 0x6d774ac6
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
je 0x6d774ac6
xor eax, eax
jmp 0x6d774ac9
or eax, 0xffffffff
leave
ret 8
Function at 0x6d775180
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [0x6d7815b4]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov eax, dword [esi]
push esi
call dword [eax + 0x17c]
mov dword [ebp + 8], eax
test eax, eax
jne 0x6d7751b6
push str.null_fd_object
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d7752b0
xor eax, eax
cmp byte [ebp + 0x10], al
push ebx
mov ebx, dword [sym.imp.ws2_32.dll_socket]
sete al
push 0
inc eax
push eax
push 2
mov dword [ebp - 4], eax
call ebx
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x6d7751ea
push str.create
push esi
call fcn.6d773a00
pop ecx
pop ecx
jmp 0x6d7752af
push edi
mov edi, dword [sym.imp.kernel32.dll_SetHandleInformation]
push 0
push 1
push eax
call edi
push dword [ebp + 0x10]
mov eax, dword [esi]
push dword [0x6d78117c]
push dword [ebp + 8]
push esi
call dword [eax + 0x1b4]
call sym.net.dll__ipv6_available_0
test eax, eax
mov eax, dword [esi]
je 0x6d77529c
push dword [0x6d7815a8]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x17c]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x6d775245
push str.null_fd1_object
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d775262
push 0
push dword [ebp - 4]
push 0x17
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x6d775280
push str.create
push esi
call fcn.6d773a00
pop ecx
pop ecx
mov eax, dword [esi]
push 0xffffffffffffffff
push dword [0x6d78117c]
push dword [ebp + 8]
push esi
call dword [eax + 0x1b4]
push dword [ebp + 0x10]
call fcn.6d77946d
jmp 0x6d7752ae
push 0
push 1
push ebx
call edi
mov eax, dword [esi]
push ebx
push dword [0x6d78117c]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x1b4]
jmp 0x6d7752ae
push 0
push dword [0x6d7815a8]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x1a0]
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x6d7762df
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x28], eax
call fcn.6d774fdf
push edi
mov ebx, eax
call fcn.6d77500b
pop ecx
pop ecx
test ebx, ebx
jns 0x6d77633c
test eax, eax
jns 0x6d77633a
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d77b1da
leave
ret 0x10
mov ebx, eax
cmp dword [ebp + 0x10], 0xf
jne 0x6d7763d1
mov dword [ebp - 0x30], 0x1c
cmp ebx, 0xffffffff
jne 0x6d77635b
push edi
call fcn.6d77500b
pop ecx
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ws2_32.dll_getsockname]
test eax, eax
jns 0x6d776383
push str.Error_getting_socket_name
push str.java_net_SocketException
push esi
call fcn.6d77946d
add esp, 0xc
jmp 0x6d776326
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.6d77946d
mov edi, eax
test edi, edi
je 0x6d776326
push dword [ebp - 0x28]
mov eax, dword [esi]
push esi
call dword [eax + 0x7c]
mov ecx, dword [esi]
push str.Ljava_net_InetAddress_
push str.addr
push eax
push esi
call dword [ecx + 0x178]
test eax, eax
je 0x6d776326
mov ecx, dword [esi]
push edi
push eax
push dword [ebp - 0x28]
push esi
call dword [ecx + 0x1a0]
xor eax, eax
jmp 0x6d776329
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x10]
call sym.net.dll__NET_MapSocketOption_12
test eax, eax
je 0x6d7763ef
push str.Invalid_option
jmp 0x6d77631b
mov edi, 0x80
mov dword [ebp - 0x2c], 4
cmp dword [ebp + 0x10], edi
je 0x6d776404
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push ebx
call fcn.6d77946d
test eax, eax
jns 0x6d77642e
push str.getsockopt
push esi
call fcn.6d773a00
pop ecx
pop ecx
jmp 0x6d776326
mov eax, dword [ebp + 0x10]
cmp eax, 8
jg 0x6d77644c
je 0x6d776465
dec eax
je 0x6d776465
dec eax
dec eax
je 0x6d776476
dec eax
je 0x6d776465
push str.Option_not_supported_by_TwoStacksPlainSocketImpl
jmp 0x6d77631b
cmp eax, edi
je 0x6d77647e
cmp eax, 0x1000
jle 0x6d776442
cmp eax, 0x1002
jle 0x6d776476
cmp eax, 0x1003
jne 0x6d776442
xor eax, eax
cmp dword [ebp - 0x24], eax
setne al
lea eax, [eax + eax - 1]
jmp 0x6d776329
mov eax, dword [ebp - 0x24]
jmp 0x6d776329
cmp word [ebp - 0x24], 0
je 0x6d776326
movzx eax, word [ebp - 0x22]
jmp 0x6d776329
Function at 0x6d7764df
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push dword [0x6d7815b4]
mov esi, dword [esp + 0xc]
push dword [esp + 0x10]
mov eax, dword [esi]
push esi
call dword [eax + 0x17c]
test eax, eax
jne 0x6d776507
push str.Socket_closed
push str.java_net_SocketException
jmp 0x6d77654c
push dword [0x6d78117c]
mov ecx, dword [esi]
push eax
push esi
call dword [ecx + 0x190]
cmp eax, 0xffffffff
je 0x6d7764fb
push 1
push 1
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
jne 0x6d776540
push str.send
push esi
call fcn.6d773a00
pop ecx
pop ecx
jmp 0x6d776552
cmp eax, 0xfffffffe
jne 0x6d776552
push 0
push str.java_io_InterruptedIOException
push esi
call sub.java.dll__JNU_ThrowByName_12
pop esi
ret 0xc

Function at 0x6d77659a
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
xor eax, eax
cmp byte [ebp + 0x10], al
push esi
sete al
push 0
inc eax
push eax
push 0x17
call fcn.6d77465c
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x6d7765d8
push str.create
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push dword [ebp + 8]
call fcn.6d77946d
or eax, esi
jmp 0x6d77660f
push 4
lea eax, [ebp - 4]
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x6d776602
push str.create
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push dword [ebp + 8]
call fcn.6d77946d
push 0
push 1
push esi
call dword [sym.imp.kernel32.dll_SetHandleInformation]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x6d77667f
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push 1
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp + 0x18]
mov dword [ebp - 0x24], 0x1c
push eax
push esi
call fcn.6d77946d
test eax, eax
jne 0x6d776701
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x6d776704
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x6d7766dc
push 0xfffffffffffffffe
pop eax
jmp 0x6d776704
cmp eax, 0x2741
jne 0x6d7766f5
push str.connect:_Address_is_invalid_on_local_machine__or_port_is_not_valid_on_remote_machine
push str.java_net_ConnectException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d776701
push str.connect
push eax
push esi
call fcn.6d77946d
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.6d77b1da
leave
ret 0x14
Function at 0x6d776713
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp + 0x198], eax
xor eax, eax
inc eax
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0x1b0]
cdq
mov ecx, 0x3e8
idiv ecx
push ebx
push esi
mov esi, dword [ebp + 0x1ac]
push edi
mov edi, dword [ebp + 0x1a4]
xor ebx, ebx
mov dword [ebp - 0x78], 4
mov dword [ebp - 0x6c], esi
mov dword [ebp + 0x98], esi
mov dword [ebp - 0x80], eax
imul edx, edx, 0x3e8
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x94]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x7c], edx
call dword [sym.imp.ws2_32.dll_select]
mov dword [ebp - 0x74], eax
cmp eax, ebx
jne 0x6d7767b1
push str.connect_timed_out
push str.java_net_SocketTimeoutException
push edi
call sub.java.dll__JNU_ThrowByName_12
push 2
push esi
call dword [sym.imp.ws2_32.dll_shutdown]
jmp 0x6d776814
lea eax, [ebp + 0x94]
push eax
push esi
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
je 0x6d776814
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x1007
push 0xffff
push esi
call fcn.6d77946d
cmp dword [ebp - 0x74], 0
jne 0x6d776806
push 0
call dword [sym.imp.kernel32.dll_Sleep]
inc ebx
cmp ebx, 3
jl 0x6d7767c2
cmp dword [ebp - 0x74], 0
jne 0x6d776806
push str.Unable_to_establish_connection
push str.java_net_SocketException
push edi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d776814
push str.connect
push dword [ebp - 0x74]
push edi
call fcn.6d77946d
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d77b1da
add ebp, 0x19c
leave
ret 0x10

Function at 0x6d77682e
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6d781098]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x24], 0x1c
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x6d776895
push esi
mov esi, dword [sym.imp.ws2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2736
jne 0x6d776881
push str.Socket_closed
push str.java_net_SocketException
push edi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d77688f
push str.getsockname_failed
call esi
push eax
push edi
call fcn.6d77946d
or eax, 0xffffffff
pop esi
jmp 0x6d7768a3
movzx eax, word [ebp - 0x1e]
push eax
call dword [sym.imp.ws2_32.dll_ntohs]
movzx eax, ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.6d77b1da
leave
ret 0xc