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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
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 0x6d6668fb
push str.Error_getting_socket_name
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push esi
call sym.net.dll__NET_SockaddrToInetAddress_12
jmp 0x6d66693c
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call sym.net.dll__NET_SockaddrToInetAddress_12
mov ebx, eax
test ebx, ebx
je 0x6d66693b
mov eax, dword [esi]
push edi
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 0x6d66693b
mov ecx, dword [esi]
push ebx
push eax
push edi
push esi
call dword [ecx + 0x1a0]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.6d66b1da
leave
ret 0x10

Function at 0x6d666bf1
Capabilities:
Send data
Send data on socket

Disassembly:
push 1
push 1
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
jne 0x6d666c20
push str.send
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push dword [esp + 0xc]
call sym.net.dll__NET_SockaddrToInetAddress_12
jmp 0x6d666c35
cmp eax, 0xfffffffe
jne 0x6d666c35
push 0
push str.java_io_InterruptedIOException
push dword [esp + 0xc]
call sub.java.dll__JNU_ThrowByName_12
ret 0x10
Function at 0x6d666da4
Capabilities:
Check os version
Get hostname
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x1a4
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp + 0x120], eax
cmp byte [0x6d67119b], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x12c]
mov dword [ebp - 0x7c], edi
jne 0x6d666f03
mov esi, 0x6d6711d4
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp byte [0x6d67119b], 0
jne 0x6d666efc
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 [0x6d67119a], 0
jne 0x6d666e28
cmp dword [ebp - 0x70], 4
jne 0x6d666e28
cmp dword [ebp - 0x6c], 0
je 0x6d666e21
cmp dword [ebp - 0x6c], 0xa
jne 0x6d666e28
mov byte [0x6d67119a], 1
lea eax, [ebp - 0x80]
push eax
push 0x6d6711d0
push 0x2003
push 0xffff
push dword [ebp + 0x130]
mov dword [ebp - 0x80], 4
call sym.net.dll__NET_SockaddrToInetAddress_12
test eax, eax
jns 0x6d666e5b
mov dword [0x6d6711d0], 0xfff7
cmp byte [0x6d67119a], 0
je 0x6d666ef5
push 0xff
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.ws2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x6d666e9a
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 0x6d666f88
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.ws2_32.dll_gethostbyname]
test eax, eax
je 0x6d666ef5
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x78], eax
test edi, edi
je 0x6d666ef5
mov esi, dword [0x6d6711f0]
push 8
call dword [sym.imp.msvcr100.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x6d666f3f
push dword [edi]
call dword [sym.imp.ws2_32.dll_htonl]
add dword [ebp - 0x78], 4
mov dword [ebx], eax
mov eax, dword [0x6d6711f0]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x78]
mov edi, dword [eax]
mov esi, ebx
mov dword [0x6d6711f0], esi
test edi, edi
jne 0x6d666eba
mov esi, 0x6d6711d4
mov byte [0x6d67119b], 1
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x138]
cmp eax, dword [0x6d6711d0]
jg 0x6d666e93
cmp byte [0x6d67119a], 0
je 0x6d666f86
cmp eax, 0x2ff8
jle 0x6d666f86
mov ecx, dword [ebp + 0x134]
mov eax, 0x7f000000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x6d666e93
mov eax, dword [0x6d6711f0]
jmp 0x6d666f82
test esi, esi
je 0x6d666f5a
mov edi, dword [esi + 4]
push esi
call dword [sym.imp.msvcr100.dll_free]
pop ecx
mov esi, edi
test edi, edi
jne 0x6d666f43
mov dword [0x6d6711f0], esi
push 0x6d6711d4
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push str.heap_allocation_failed
push dword [ebp - 0x7c]
call sub.java.dll__JNU_ThrowOutOfMemoryError_8
jmp 0x6d666e93
cmp dword [eax], ecx
je 0x6d666e93
mov eax, dword [eax + 4]
test eax, eax
jne 0x6d666f77
xor al, al
mov ecx, dword [ebp + 0x120]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d66b1da
add ebp, 0x124
leave
ret
Function at 0x6d66700d
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x128
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push esi
xor esi, esi
mov byte [ebp - 0x6d], 0
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], 0x10
call sym.net.dll__NET_SockaddrToInetAddress_12
test al, al
je 0x6d6670d0
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 0x6d6670cd
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 0x6d6670cc
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x6d6670cc
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 0x6d667074
pop edi
mov al, byte [ebp - 0x6d]
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
pop esi
call fcn.6d66b1da
add ebp, 0xac
leave
ret
Function at 0x6d66750e
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6d671098]
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 [0x6d67158c]
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x17c]
push dword [0x6d671598]
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 0x6d66757e
test edi, edi
jne 0x6d667595
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d667665
push dword [0x6d671204]
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x190]
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x6d6675a8
push dword [0x6d671204]
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 0x6d6675bf
push str.address
push esi
call sub.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d667665
push dword [0x6d67163c]
mov eax, dword [esi]
push dword [ebp - 0x24]
push esi
call dword [eax + 0x190]
push dword [0x6d671640]
mov eax, dword [esi]
push dword [ebp - 0x24]
push esi
call dword [eax + 0x190]
xor ecx, ecx
inc ecx
cmp eax, 2
jne 0x6d6675fa
cmp dword [ebp - 0x30], ebx
jne 0x6d667601
push str.Protocol_family_not_supported
jmp 0x6d66756e
mov edi, dword [ebp - 0x2c]
cmp eax, ecx
je 0x6d667604
mov edi, dword [ebp - 0x28]
cmp dword [0x6d671220], ebx
je 0x6d66762d
push ebx
push ebx
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
mov dword [ebp - 0x30], ecx
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 sym.net.dll__NET_SockaddrToInetAddress_12
test eax, eax
jne 0x6d667665
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x6d667665
push str.connect
push esi
call fcn.6d663a00
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d66b1da
leave
ret 0x10
Function at 0x6d6690b7
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0xbc]
sub esp, 0x13c
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp + 0xb8], eax
or dword [ebp - 0x6c], 0xffffffff
push ebx
mov ebx, dword [ebp + 0xcc]
push esi
mov esi, dword [ebp + 0xc4]
push edi
mov edi, dword [ebp + 0xc8]
call sym.net.dll__ipv6_available_0
push edi
mov dword [ebp - 0x70], eax
call fcn.6d666d4c
cmp dword [ebp - 0x70], 0
pop ecx
mov dword [ebp - 0x68], eax
je 0x6d66910d
push edi
call fcn.6d666d78
pop ecx
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x68], 0
jge 0x6d669130
cmp dword [ebp - 0x6c], 0
jge 0x6d669130
push str.Socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
xor eax, eax
jmp 0x6d669282
push 0x10
pop eax
cmp ebx, eax
je 0x6d669271
cmp ebx, 0x1f
je 0x6d669271
cmp ebx, 0xf
jne 0x6d66919d
cmp dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x70], eax
jne 0x6d66915f
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x70], 0x1c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x6d66918a
push str.Error_getting_socket_name
push str.java_net_SocketException
push esi
call sym.net.dll__NET_SockaddrToInetAddress_12
add esp, 0xc
jmp 0x6d669129
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call sym.net.dll__NET_SockaddrToInetAddress_12
jmp 0x6d669282
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
call sym.net.dll__NET_MapSocketOption_12
test eax, eax
je 0x6d6691b9
push str.Invalid_option
jmp 0x6d66911e
cmp dword [ebp - 0x68], 0xffffffff
jne 0x6d6691d7
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
call sym.net.dll__NET_SockaddrToInetAddress_12
test eax, eax
jne 0x6d6691af
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
push 4
pop edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], edi
push dword [ebp - 0x7c]
push dword [ebp - 0x68]
call sym.net.dll__NET_SockaddrToInetAddress_12
test eax, eax
jns 0x6d669221
call dword [sym.imp.msvcr100.dll__errno]
push dword [eax]
call dword [sym.imp.msvcr100.dll_strerror]
push eax
lea eax, [ebp - 0x48]
push str.error_getting_socket_option:__s_n
push eax
call dword [sym.imp.msvcr100.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
jmp 0x6d66911e
cmp ebx, 3
je 0x6d669266
cmp ebx, edi
je 0x6d669259
cmp ebx, 0x12
je 0x6d66924e
cmp ebx, 0x20
je 0x6d669259
cmp ebx, 0x1000
jle 0x6d669244
cmp ebx, 0x1002
jle 0x6d669266
push str.Socket_option_not_supported_by_TwoStacksPlainDatagramSocketImpl
jmp 0x6d66911e
xor eax, eax
cmp dword [ebp - 0x74], eax
sete al
push eax
jmp 0x6d66925c
push dword [ebp - 0x74]
push esi
call fcn.6d666cde
pop ecx
pop ecx
jmp 0x6d669282
push dword [ebp - 0x74]
push esi
call fcn.6d666c76
jmp 0x6d669262
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
push edi
push esi
call fcn.6d668c27
add esp, 0x14
mov ecx, dword [ebp + 0xb8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d66b1da
add ebp, 0xbc
leave
ret 0xc
Function at 0x6d669708
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x128
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push esi
mov esi, dword [sym.imp.ws2_32.dll_select]
xor ecx, ecx
lea edx, [ebp - 0x7c]
push edx
push ecx
push ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x6c]
lea eax, [edi + 1]
push ecx
push eax
mov byte [ebp - 0x6d], 0
mov dword [ebp - 0x74], 0x10
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], 1
call esi
test eax, eax
jle 0x6d6697bb
push ebx
mov ebx, 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 edi
call ebx
cmp eax, 0xffffffff
jne 0x6d6697ba
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x6d6697ba
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x98]
push eax
push 0
push 1
lea eax, [ebp - 0x6e]
push eax
push edi
call ebx
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [edi + 1]
push eax
mov byte [ebp - 0x6d], 1
call esi
test eax, eax
jg 0x6d669762
pop ebx
mov ecx, dword [ebp + 0xa8]
mov al, byte [ebp - 0x6d]
xor ecx, ebp
pop esi
call fcn.6d66b1da
add ebp, 0xac
leave
ret

Function at 0x6d6697d4
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
push edi
push 2
push 0x17
mov dword [ebp - 8], edi
mov dword [ebp - 4], 1
call dword [sym.imp.ws2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6d669813
push str.Socket_creation_failed
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push dword [ebp + 8]
call sym.net.dll__NET_SockaddrToInetAddress_12
or eax, 0xffffffff
jmp 0x6d669869
push 4
lea eax, [ebp - 8]
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x6d6697fa
push edi
push 1
push esi
call dword [sym.imp.kernel32.dll_SetHandleInformation]
push 4
lea eax, [ebp - 4]
push eax
push 0x20
push 0xffff
push esi
call sym.net.dll__NET_SockaddrToInetAddress_12
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x9800000c
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.ws2_32.dll_WSAIoctl]
mov eax, esi
pop edi
pop esi
leave
ret 0xc
Function at 0x6d6698f3
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
inc ecx
push ecx
mov dword [ebp - 0x28], ecx
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 sym.net.dll__NET_SockaddrToInetAddress_12
test eax, eax
jne 0x6d669979
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 0x6d669957
push str.connect
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push esi
call sym.net.dll__NET_SockaddrToInetAddress_12
jmp 0x6d669979
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x30]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push 0x9800000c
push dword [ebp + 0x10]
call dword [sym.imp.ws2_32.dll_WSAIoctl]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.6d66b1da
leave
ret 0x14

Function at 0x6d669988
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x24], 0
push 0x1c
lea eax, [ebp - 0x20]
push 0
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ws2_32.dll_connect]
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push 0x9800000c
push dword [ebp + 0x10]
call dword [sym.imp.ws2_32.dll_WSAIoctl]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.6d66b1da
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 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 0x6d669a33
push str.JVM_GetSockName
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push esi
call sym.net.dll__NET_SockaddrToInetAddress_12
or eax, 0xffffffff
jmp 0x6d669a41
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 esi
call fcn.6d66b1da
leave
ret 0xc
Function at 0x6d669a50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 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 0x6d669a97
push str.Error_getting_socket_name
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push esi
call sym.net.dll__NET_SockaddrToInetAddress_12
xor eax, eax
jmp 0x6d669aa5
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call sym.net.dll__NET_SockaddrToInetAddress_12
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.6d66b1da
leave
ret 0xc
Function at 0x6d669db9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x7ac]
sub esp, 0x82c
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp + 0x7a8], eax
cmp byte [ebp + 0x7d4], 0
mov eax, dword [ebp + 0x7c0]
push esi
mov esi, dword [ebp + 0x7b4]
lea ecx, [ebp - 0x74]
push edi
mov edi, dword [ebp + 0x7c8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x7cc]
mov dword [ebp - 0x78], 0x1c
mov dword [ebp - 0x7c], ecx
je 0x6d669e11
and dword [ebp - 0x7c], 0
and dword [ebp - 0x78], 0
jmp 0x6d669e30
push 1
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x7d0]
push eax
push esi
call sym.net.dll__NET_SockaddrToInetAddress_12
test eax, eax
jne 0x6d669eb4
push ebx
cmp edi, 0x800
jle 0x6d669e5f
mov eax, 0x10000
cmp edi, eax
jle 0x6d669e44
mov edi, eax
push edi
call dword [sym.imp.msvcr100.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x6d669e62
push str.heap_allocation_failed
push esi
call sub.java.dll__JNU_ThrowOutOfMemoryError_8
jmp 0x6d669eb3
lea ebx, [ebp - 0x58]
mov eax, dword [esi]
push ebx
push edi
push dword [ebp + 0x7c4]
push dword [ebp - 0x80]
push esi
call dword [eax + 0x320]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push 0
push edi
push ebx
push dword [ebp + 0x7bc]
call dword [sym.imp.ws2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x6d669ea3
push str.Datagram_send_failed
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
push eax
push esi
call sym.net.dll__NET_SockaddrToInetAddress_12
cmp edi, 0x800
jle 0x6d669eb3
push ebx
call dword [sym.imp.msvcr100.dll_free]
pop ecx
pop ebx
mov ecx, dword [ebp + 0x7a8]
pop edi
xor ecx, ebp
pop esi
call fcn.6d66b1da
add ebp, 0x7ac
leave
ret 0x24
Function at 0x40a504
Capabilities:
Check http status code

Disassembly:
push 0x30
mov eax, 0x46485a
call fcn.00430a5a
mov edi, ecx
xor esi, esi
xor ebx, ebx
inc esi
push esi
mov ecx, esi
call fcn.0045aacd
push eax
mov edx, 0x4c4980
lea ecx, [ebp - 0x24]
call fcn.004a7a39
sub esp, 0x18
mov dword [ebp - 4], ebx
mov ecx, esp
push dword [eax]
call fcn.00420279
mov ecx, edi
call fcn.00478eca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp byte [edi + 0x18], bl
je 0x40a610
xor edx, edx
lea ecx, [ebp - 0x3c]
call fcn.004389ff
mov dword [ebp - 4], esi
cmp dword [eax + 0x14], 8
jb 0x40a56e
mov eax, dword [eax]
push ecx
mov ecx, dword [edi + 0x20]
mov edx, eax
push 0x4883000
sub esp, 0xc
push 0x4b7704
call fcn.0045ae7a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
add esp, 0x18
mov esi, eax
call fcn.004200a9
test esi, esi
je 0x40a609
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0043a621
or dword [ebp - 0x14], 0x180
lea eax, [ebp - 0x14]
add esp, 4
mov ecx, esi
push eax
push 0x1f
pop edx
call fcn.004943fe
push ebx
push ebx
push ebx
xor edx, edx
mov ecx, esi
call fcn.00413be9
add esp, 0x10
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
mov edx, 0x20000013
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0046b161
add esp, 0xc
movzx ebx, bl
cmp dword [ebp - 0x18], 0xc8
push 1
pop ecx
cmove ebx, ecx
mov ecx, esi
call fcn.00412336
mov ecx, edi
call fcn.0048419b
mov al, bl
call fcn.00430a04
ret
Function at 0x41a83e
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x4b3110]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b3110]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x41a8dc
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 4]
mov dword [esi], vtable.CMD5Checksum.0
push eax
call sub.VCRUNTIME140.dll_memset
and dword [esi + 0x48], 0
add esp, 0xc
and dword [esi + 0x44], 0
mov eax, esi
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
pop esi
ret

Function at 0x41d016
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov al, byte [ecx]
or edx, 0xffffffff
test al, al
je 0x41d045
push esi
movzx eax, al
push 7
xor edx, eax
pop esi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jns 0x41d028
inc ecx
mov al, byte [ecx]
test al, al
jne 0x41d020
pop esi
not edx
mov eax, edx
ret
Function at 0x431c4d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x250
mov eax, 0x45d171
call fcn.00430a5a
mov esi, ecx
mov dword [ebp - 0x258], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x25c], esi
push 0x4ad448
mov dword [ebp - 0x254], ebx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
push 0x208
lea eax, [ebp - 0x250]
mov dword [ebp - 4], ebx
push ebx
push eax
mov dword [ebp - 0x254], 1
call sub.VCRUNTIME140.dll_memset
pop ecx
pop ecx
lea edx, [ebp - 0x250]
call fcn.00431d9c
pop ecx
push 0x53
pop eax
push 0x69
mov word [ebp - 0x48], ax
pop eax
push 0x61
mov word [ebp - 0x3c], ax
pop eax
push 0x68
mov word [ebp - 0x40], ax
pop eax
push 0x6c
pop ecx
push 0x2e
mov word [ebp - 0x46], ax
pop eax
push 0x70
mov word [ebp - 0x3a], ax
pop eax
push 0x64
mov word [ebp - 0x3e], ax
pop eax
mov word [ebp - 0x38], ax
push 0x77
pop eax
mov word [ebp - 0x42], ax
xor eax, eax
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x48]
push eax
mov word [ebp - 0x44], cx
mov word [ebp - 0x36], cx
mov word [ebp - 0x34], cx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x431d94
push 0x65
pop ebx
lea eax, [ebp - 0x24]
mov byte [ebp - 0x19], bl
push eax
push edi
mov word [ebp - 0x18], 0x614e
mov dword [ebp - 0x24], 0x68746150
mov word [ebp - 0x1b], 0x6c69
mov dword [ebp - 0x20], 0x646e6946
mov word [ebp - 0x14], 0x57
mov byte [ebp - 0x16], 0x6d
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x1c], 0x46
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x431d8d
lea ecx, [ebp - 0x250]
push ecx
call eax
push eax
mov ecx, esi
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push 0x78
pop eax
push 0x2e
mov word [ebp - 0x2c], ax
mov ecx, esi
pop eax
mov word [ebp - 0x30], ax
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x30]
push 0x4ad448
push eax
mov word [ebp - 0x2a], bx
mov word [ebp - 0x2e], bx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
call fcn.00430a04
ret