joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006320
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x100120b4]
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 - 0x80], edi
test eax, eax
jne 0x1000636b
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x100064cd
push dword [0x1001217c]
mov ecx, dword [esi]
push eax
push esi
call dword [ecx + 0x190]
mov dword [ebp - 0x7c], eax
test edi, edi
jne 0x10006392
push str.data_argument
push esi
call sub.java.dll__JNU_ThrowNullPointerException_8
jmp 0x100064cd
mov ecx, dword [ebp + 0x7b8]
push ebx
mov ebx, 0x800
cmp ecx, ebx
jle 0x100063c5
mov eax, 0x10000
mov dword [ebp - 0x6c], eax
cmp ecx, eax
jg 0x100063b1
mov dword [ebp - 0x6c], ecx
push dword [ebp - 0x6c]
call dword [sym.imp.msvcr100.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x1000647b
mov dword [ebp - 0x6c], ebx
lea edi, [ebp - 0x68]
jmp 0x1000647b
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp + 0x7b8]
and dword [ebp - 0x78], 0
mov dword [ebp - 0x70], ecx
cmp ecx, eax
jl 0x100063e7
mov dword [ebp - 0x70], eax
mov ebx, dword [ebp - 0x70]
mov eax, dword [esi]
and dword [ebp - 0x74], 0
push edi
push ebx
push dword [ebp + 0x7b4]
push dword [ebp - 0x80]
push esi
call dword [eax + 0x320]
mov eax, dword [esi]
push esi
call dword [eax + 0x390]
test al, al
jne 0x100064bd
test ebx, ebx
jle 0x1000646c
mov eax, dword [ebp - 0x78]
push 0
push ebx
add eax, edi
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ws2_32.dll_send]
test eax, eax
jle 0x10006434
sub ebx, eax
add dword [ebp - 0x78], eax
jmp 0x10006468
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2747
jne 0x1000649c
mov eax, 0x800
cmp ebx, eax
jle 0x10006454
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], eax
mov ebx, eax
jmp 0x10006417
cmp dword [ebp - 0x74], 0x1e
jge 0x1000648a
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 0x74]
test ebx, ebx
jg 0x10006417
mov eax, dword [ebp - 0x70]
sub dword [ebp + 0x7b8], eax
add dword [ebp + 0x7b4], eax
cmp dword [ebp + 0x7b8], 0
jg 0x100063d0
jmp 0x100064bd
push str.No_buffer_space_available___exhausted_attempts_to_queue_buffer
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x100064bd
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2736
jne 0x100064b0
push str.Socket_closed
jmp 0x1000648f
push str.socket_write_error
push esi
call fcn.1000afaa
pop ecx
pop ecx
lea eax, [ebp - 0x68]
cmp edi, eax
je 0x100064cc
push edi
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.1000c212
add ebp, 0x79c
leave
ret 0x18
Function at 0x10006614
Capabilities:
Check os version
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x1a4
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp + 0x120], eax
cmp byte [0x1001218f], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x12c]
mov dword [ebp - 0x7c], edi
jne 0x10006773
mov esi, 0x100121b8
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp byte [0x1001218f], 0
jne 0x1000676c
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x64], 1
mov byte [0x1001218e], 0
jne 0x10006698
cmp dword [ebp - 0x70], 4
jne 0x10006698
cmp dword [ebp - 0x6c], 0
je 0x10006691
cmp dword [ebp - 0x6c], 0xa
jne 0x10006698
mov byte [0x1001218e], 1
lea eax, [ebp - 0x80]
push eax
push 0x100121ac
push 0x2003
push 0xffff
push dword [ebp + 0x130]
mov dword [ebp - 0x80], 4
call fcn.10008e3f
test eax, eax
jns 0x100066cb
mov dword [0x100121ac], 0xfff7
cmp byte [0x1001218e], 0
je 0x10006765
push 0xff
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.ws2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x1000670a
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push str.Unable_to_obtain_hostname
push str.java_net_SocketException
push edi
call sub.java.dll__JNU_ThrowByName_12
mov al, 1
jmp 0x100067f8
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.ws2_32.dll_gethostbyname]
test eax, eax
je 0x10006765
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x78], eax
test edi, edi
je 0x10006765
mov esi, dword [0x100121d0]
push 8
call dword [sym.imp.msvcr100.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100067af
push dword [edi]
call dword [sym.imp.ws2_32.dll_htonl]
add dword [ebp - 0x78], 4
mov dword [ebx], eax
mov eax, dword [0x100121d0]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x78]
mov edi, dword [eax]
mov esi, ebx
mov dword [0x100121d0], esi
test edi, edi
jne 0x1000672a
mov esi, 0x100121b8
mov byte [0x1001218f], 1
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x138]
cmp eax, dword [0x100121ac]
jg 0x10006703
cmp byte [0x1001218e], 0
je 0x100067f6
cmp eax, 0x2ff8
jle 0x100067f6
mov ecx, dword [ebp + 0x134]
mov eax, 0x7f000000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x10006703
mov eax, dword [0x100121d0]
jmp 0x100067f2
test esi, esi
je 0x100067ca
mov edi, dword [esi + 4]
push esi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
mov esi, edi
test edi, edi
jne 0x100067b3
mov dword [0x100121d0], esi
push 0x100121b8
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push str.Native_heap_allocation_failed
push dword [ebp - 0x7c]
call sub.java.dll__JNU_ThrowOutOfMemoryError_8
jmp 0x10006703
cmp dword [eax], ecx
je 0x10006703
mov eax, dword [eax + 4]
test eax, eax
jne 0x100067e7
xor al, al
mov ecx, dword [ebp + 0x120]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
add ebp, 0x124
leave
ret
Function at 0x1000687b
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0xb8]
sub esp, 0x134
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp + 0xb4], eax
push esi
push 0x1c
pop eax
push eax
xor esi, esi
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x98]
push esi
push eax
mov byte [ebp - 0x6d], 0
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
call sub.msvcr100.dll_memset
add esp, 0xc
call fcn.10008e3f
test al, al
je 0x1000694e
lea ecx, [ebp - 0x7c]
push ecx
push esi
push esi
mov esi, dword [sym.imp.ws2_32.dll_select]
lea ecx, [ebp - 0x6c]
lea eax, [ebx + 1]
push ecx
push eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], 1
call esi
test eax, eax
jle 0x1000694b
push edi
mov edi, dword [sym.imp.ws2_32.dll_recvfrom]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x98]
push eax
push 2
push 1
lea eax, [ebp - 0x6e]
push eax
push ebx
call edi
cmp eax, 0xffffffff
jne 0x1000694a
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x1000694a
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x98]
push eax
push 0
push 1
lea eax, [ebp - 0x6e]
push eax
push ebx
call edi
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebx + 1]
push eax
mov byte [ebp - 0x6d], 1
call esi
test eax, eax
jg 0x100068f2
pop edi
mov al, byte [ebp - 0x6d]
mov ecx, dword [ebp + 0xb4]
xor ecx, ebp
pop esi
call fcn.1000c212
add ebp, 0xb8
leave
ret
Function at 0x10006ddb
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [0x100125a0]
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x17c]
push dword [0x100125ac]
mov ebx, eax
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x17c]
or dword [ebp - 0x2c], 0xffffffff
or dword [ebp - 0x28], 0xffffffff
mov edi, eax
call sym.net.dll__ipv6_available_0
mov dword [ebp - 0x30], eax
test ebx, ebx
jne 0x10006e4b
test edi, edi
jne 0x10006e62
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x10006f48
push dword [0x100121e0]
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x10006e75
push dword [0x100121e0]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x28], eax
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
jne 0x10006e8c
push str.address
push esi
call sub.java.dll__JNU_ThrowNullPointerException_8
jmp 0x10006f48
push dword [ebp - 0x24]
push esi
call fcn.1000ab66
mov eax, dword [esi]
pop ecx
pop ecx
push esi
call dword [eax + 0x390]
test al, al
jne 0x10006f48
push dword [ebp - 0x24]
push esi
call fcn.1000aba4
pop ecx
pop ecx
mov edi, eax
mov eax, dword [esi]
push esi
call dword [eax + 0x390]
test al, al
jne 0x10006f48
xor eax, eax
inc eax
cmp edi, 2
jne 0x10006edd
cmp dword [ebp - 0x30], ebx
jne 0x10006ee4
push str.Protocol_family_not_supported
jmp 0x10006e3b
cmp edi, eax
mov edi, dword [ebp - 0x2c]
je 0x10006ee7
mov edi, dword [ebp - 0x28]
cmp dword [0x10012208], ebx
je 0x10006f10
push ebx
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x30]
push eax
push 0x9800000c
push edi
call dword [sym.imp.ws2_32.dll_WSAIoctl]
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x24]
push esi
call fcn.10008e3f
test eax, eax
jne 0x10006f48
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10006f48
push str.connect
push esi
call fcn.1000afaa
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
leave
ret 0x10
Function at 0x10006f59
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 1
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
push edi
jne 0x10006f8c
push dword [0x100125a0]
push eax
push esi
call dword [ecx + 0x17c]
push 0x10
jmp 0x10006f9c
push dword [0x100125ac]
push eax
push esi
call dword [ecx + 0x17c]
push 0x1c
xor edi, edi
pop ebx
cmp eax, edi
je 0x10006ffe
push dword [0x100121e0]
mov ecx, dword [esi]
push eax
push esi
call dword [ecx + 0x190]
push ebx
mov esi, eax
lea eax, [ebp - 0x20]
push edi
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ws2_32.dll_connect]
cmp dword [0x10012208], edi
je 0x10006ffe
push edi
push edi
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push 0x9800000c
push esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.ws2_32.dll_WSAIoctl]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
leave
ret 0xc
Function at 0x10008ba1
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x2c], 0xffffffff
and dword [ebp - 0x28], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call sym.net.dll__ipv6_available_0
push edi
mov ebx, eax
call fcn.100065bc
pop ecx
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x10008be0
push edi
call fcn.100065e8
pop ecx
jmp 0x10008be3
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x24], 0
jge 0x10008c01
test eax, eax
jns 0x10008c01
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
xor eax, eax
jmp 0x10008c63
cmp dword [ebp + 0x10], 2
mov dword [ebp - 0x28], 0x10
je 0x10008c1a
cmp dword [ebp + 0x10], 0xffffffff
jne 0x10008c24
cmp dword [ebp - 0x24], 0xffffffff
jne 0x10008c2a
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0x1c
cmp dword [ebp - 0x24], 0xffffffff
je 0x10008bed
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x10008c55
push str.Error_getting_socket_name
push str.java_net_SocketException
push esi
call fcn.1000affe
add esp, 0xc
jmp 0x10008bfd
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.10008e3f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
leave
ret 0xc

Function at 0x10008e3f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10008e4e
pop dword [ebp - 8]
mov eax, 0x4c4c1828
sub eax, 0x3c4b89da
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xf2317937
add dword [ebp - 0x18], 0x5c20cc14
mov dword [ebp - 0x14], 0x53d88c4c
add dword [ebp - 0x14], 0xde5abff9
mov dword [ebp - 0x10], 0x90906a8c
sub dword [ebp - 0x10], 0x4444265e
mov dword [ebp - 0xc], 0xa6ec80a3
add dword [ebp - 0xc], 0x59137f5d
lea eax, [ebp - 0x18]
push eax
mov eax, 0x4af4a2f3
sub eax, 0x3af3d2b7
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xe44e592e
sub dword [ebp - 0x18], 0x6fdbefd8
mov dword [ebp - 0x14], 0x285a9e98
add dword [ebp - 0x14], 0x1911c2dd
mov dword [ebp - 0x10], 0x83df5f7f
sub dword [ebp - 0x10], 0x206ff313
mov dword [ebp - 0xc], 0x4551768c
sub dword [ebp - 0xc], 0x4551768c
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3b236
push 0
call eax
mov ecx, 0xa40231ce
sub ecx, 0xa401da9f
mov edi, eax
mov ebx, 0x10015200
add ebx, dword [ebp - 8]
mov esi, 0xc1d02b29
xor dword [ebp - 4], 0x89864557
mov edx, dword [ebx]
sub dword [ebp - 4], eax
add edx, esi
add dword [ebp - 4], eax
mov dword [edi], edx
xor dword [ebp - 4], edi
add edi, 4
add ebx, 0x1a1600c2
add ebx, 0xe5e9ff42
loop 0x10008f5f
add eax, 0x7db906c
sub eax, 0x7da40dd
xor ebx, ebx
add ebx, eax
add eax, 0x1201dd30
sub eax, 0x1201dd2b
mov ecx, 0xb2cf5fe8
sub ecx, 0xa2cf5fe8
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x1000939b
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [0x10012588]
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 0x100093d1
push str.null_fd_object
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x100094e6
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 0x10009405
push str.create
push esi
call fcn.1000afaa
pop ecx
pop ecx
jmp 0x100094e5
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 [0x10012218]
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 0x100094d2
push dword [0x1001257c]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x17c]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1000947c
mov eax, dword [esi]
push 0xffffffffffffffff
push dword [0x10012218]
push dword [ebp + 8]
push esi
call dword [eax + 0x1b4]
push dword [ebp + 0x10]
call fcn.10008e3f
push str.null_fd1_object
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x100094e4
push 0
push dword [ebp - 4]
push 0x17
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100094b6
mov eax, dword [esi]
push ebx
push dword [0x10012218]
push dword [ebp + 8]
push esi
call dword [eax + 0x1b4]
push dword [ebp + 0x10]
call fcn.10008e3f
push str.create
push esi
call fcn.1000afaa
pop ecx
pop ecx
jmp 0x100094e4
push 0
push 1
push ebx
call edi
mov eax, dword [esi]
push ebx
push dword [0x10012218]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x1b4]
jmp 0x100094e4
push 0
push dword [0x1001257c]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x1a0]
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x1000a553
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100120b4]
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]
mov dword [ebp - 0x38], eax
xor eax, eax
push edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
call fcn.100091ff
push edi
mov ebx, eax
call fcn.1000922b
push 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push 0
push eax
call sub.msvcr100.dll_memset
add esp, 0x14
test ebx, ebx
jns 0x1000a5cd
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
jns 0x1000a5cd
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.1000c212
leave
ret 0x10
cmp dword [ebp + 0x10], 0xf
jne 0x1000a670
push 0x1c
pop eax
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
push 0
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1000a5fa
push edi
call fcn.1000922b
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ws2_32.dll_getsockname]
test eax, eax
jns 0x1000a622
push str.Error_getting_socket_name
push str.java_net_SocketException
push esi
call fcn.1000affe
add esp, 0xc
jmp 0x1000a5b9
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.10008e3f
mov edi, eax
test edi, edi
je 0x1000a5b9
push dword [ebp - 0x38]
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 0x1000a5b9
mov ecx, dword [esi]
push edi
push eax
push dword [ebp - 0x38]
push esi
call dword [ecx + 0x1a0]
xor eax, eax
jmp 0x1000a5bc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call sym.net.dll__NET_MapSocketOption_12
test eax, eax
je 0x1000a68e
push str.Invalid_option
jmp 0x1000a5ae
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x28], 4
cmp edi, 0x80
je 0x1000a6a4
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push ebx
call fcn.10008e3f
test eax, eax
jns 0x1000a6ce
push str.getsockopt
push esi
call fcn.1000afaa
pop ecx
pop ecx
jmp 0x1000a5b9
cmp edi, 8
jg 0x1000a6e9
je 0x1000a709
dec edi
je 0x1000a709
dec edi
dec edi
je 0x1000a71a
dec edi
je 0x1000a709
push str.Option_not_supported_by_TwoStacksPlainSocketImpl
jmp 0x1000a5ae
cmp edi, 0x80
je 0x1000a722
cmp edi, 0x1000
jle 0x1000a6df
cmp edi, 0x1002
jle 0x1000a71a
cmp edi, 0x1003
jne 0x1000a6df
xor eax, eax
cmp dword [ebp - 0x24], eax
setne al
lea eax, [eax + eax - 1]
jmp 0x1000a5bc
mov eax, dword [ebp - 0x24]
jmp 0x1000a5bc
cmp word [ebp - 0x24], 0
je 0x1000a5b9
movzx eax, word [ebp - 0x22]
jmp 0x1000a5bc
Function at 0x1000a783
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push dword [0x10012588]
mov esi, dword [esp + 0xc]
push dword [esp + 0x10]
mov eax, dword [esi]
push esi
call dword [eax + 0x17c]
test eax, eax
jne 0x1000a7ab
push str.Socket_closed
push str.java_net_SocketException
jmp 0x1000a7f0
push dword [0x10012218]
mov ecx, dword [esi]
push eax
push esi
call dword [ecx + 0x190]
cmp eax, 0xffffffff
je 0x1000a79f
push 1
push 1
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000a7e4
push str.send
push esi
call fcn.1000afaa
pop ecx
pop ecx
jmp 0x1000a7f6
cmp eax, 0xfffffffe
jne 0x1000a7f6
push 0
push str.java_io_InterruptedIOException
push esi
call sub.java.dll__JNU_ThrowByName_12
pop esi
ret 0xc

Function at 0x1000b05b
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa8
mov eax, dword [0x100120b4]
xor eax, ebp
mov dword [ebp + 0x74], eax
mov eax, dword [0x1001200c]
test eax, eax
jns 0x1000b113
and dword [0x1001200c], 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 0x1000b0b3
cmp dword [ebp - 0x1c], 5
jae 0x1000b10e
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpParameters
jmp 0x1000b0c3
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 0x1000b10e
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 0x1000b10e
mov eax, dword [ebp - 0x28]
mov dword [0x1001200c], eax
mov eax, dword [0x1001200c]
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.1000c212
add ebp, 0x78
leave
ret

Function at 0x1000b257
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x100120b4]
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.1000c212
add ebp, 0x90
leave
ret 8
Function at 0x1000b2c7
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x100120b4]
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 0x1000b2fd
xor ecx, ecx
jmp 0x1000b311
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 0x1000b333
inc eax
cmp eax, edx
jb 0x1000b328
cmp eax, edx
jne 0x1000b341
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 0x1000b381
dec eax
je 0x1000b368
dec eax
je 0x1000b361
or eax, 0xffffffff
jmp 0x1000b383
push 2
mov dword [edi], esi
pop eax
jmp 0x1000b383
lea eax, [ebp - 0x78]
push eax
push esi
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
je 0x1000b37a
mov dword [edi], esi
jmp 0x1000b37c
mov dword [edi], ebx
xor eax, eax
inc eax
jmp 0x1000b383
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c212
add ebp, 0x90
leave
ret 0x10