joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100635a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x1014]
mov eax, 0x1014
call fcn.100c8100
push 0xffffffffffffffff
push 0x100e6d50
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x1010], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x14], 0xd
xor ebx, ebx
mov byte [ebp + 0x10], bl
push 0xfff
push ebx
lea eax, [ebp + 0x11]
push eax
call fcn.100c7d20
add esp, 0xc
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x2998]
cmp eax, 0xffffffff
je 0x10063621
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 0x2998], 0xffffffff
push 1
push ebx
push ebx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x2998], eax
push 0x1000
push ebx
lea ecx, [ebp + 0x10]
push ecx
call fcn.100c7d20
add esp, 0xc
push ebx
push ebx
push 0x1000
lea edx, [ebp + 0x10]
push edx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov word [ebp], 2
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp + 4], eax
push 0x24bb
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp + 2], ax
push 0x10
lea ecx, [ebp]
push ecx
mov edx, dword [esi + 0x2998]
push edx
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x100636b8
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
push str.Fail_to_connect_socket
mov ecx, eax
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
jmp 0x100636bb
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1010]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x1014
mov esp, ebp
pop ebp
ret
Function at 0x10063bb0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x100ea1b9
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x10144930]
xor eax, esp
mov dword [esp + 0x194], eax
push ebx
push edi
mov eax, dword [0x10144930]
xor eax, esp
push eax
lea eax, [esp + 0x1a4]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CDiscoveryIO.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x1ac], ebx
mov dword [esi], vtable.CDiscoveryNetwork.0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov byte [esp + 0x1ac], 1
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
cmp eax, ebx
jne 0x10063c45
mov ax, word [esp + 0x10]
cmp al, 2
jne 0x10063c3d
cmp ah, al
je 0x10063c5f
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x10063c5f
push str.WSAStartup__
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
push 0x42
lea edi, [esi + 0x24]
push ebx
push edi
mov dword [0x10149fe0], ebx
mov dword [esi + 0x10], ebx
call fcn.100c7d20
push 0x20
push str.public
push 0x21
push edi
call fcn.100c6041
add esp, 0x1c
push esi
call fcn.10065510
push str.Ws2_32.dll
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov byte [esi + 0x78], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x68], eax
je 0x10063cec
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetAddrInfoW
push eax
call edi
mov ecx, dword [esi + 0x68]
push str.GetNameInfoW
push ecx
mov dword [esi + 0x6c], eax
call edi
mov edx, dword [esi + 0x68]
push str.FreeAddrInfoW
push edx
mov dword [esi + 0x70], eax
call edi
cmp dword [esi + 0x6c], ebx
mov dword [esi + 0x74], eax
je 0x10063cec
cmp dword [esi + 0x70], ebx
je 0x10063cec
cmp eax, ebx
je 0x10063cec
mov byte [esi + 0x78], 1
mov dword [esp + 0x1ac], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.100c59be
add esp, 0x1a4
ret
Function at 0x10068b00
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e6ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x81c], edi
push 0x800
push edi
lea eax, [ebp - 0x818]
push eax
call fcn.100c7d20
add esp, 0xc
mov ebx, 2
mov dword [ebp - 0x83c], ebx
mov dword [ebp - 0x838], ebx
mov dword [ebp - 0x830], 1
mov dword [ebp - 0x834], 3
mov dword [ebp - 0x824], edi
mov dword [ebp - 0x82c], edi
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x828], ecx
mov dword [ebp - 0x820], edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x10068c42
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
cmp cx, di
jne 0x10068ba3
sub eax, edx
sar eax, 1
je 0x10068c42
mov eax, esi
lea ecx, [ebp - 0x818]
call fcn.10008bf0
push esi
push str.connect_UNC___s_
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
push 9
push edi
push edi
lea edx, [ebp - 0x83c]
push edx
push edi
call sub.MPR.dll_WNetAddConnection3W
cmp eax, edi
jne 0x10068bf4
mov dword [ebp - 0x81c], ebx
jmp 0x10068c19
cmp eax, 0x55
jne 0x10068c05
mov dword [ebp - 0x81c], 1
jmp 0x10068c19
push str.Add_Network_Connection
mov ecx, eax
mov edx, 0x10152dd8
call fcn.1003f2f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x81c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100c59be
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x10068c26
Function at 0x10069b10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x100e6a40
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x41c]
mov dword [ebp - 0x30], edx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov edx, 4
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x11], bl
cmp eax, ebx
je 0x10069cd7
cmp ecx, ebx
je 0x10069cd7
mov dword [ebp - 4], ebx
push 0x20019
push ebx
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInterfaceRegKey]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
jne 0x10069bad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push 0x1012ac78
lea eax, [ebp - 0x28]
push eax
call fcn.100c80ad
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x20]
push eax
push ebx
push str.Port_Number
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call edi
cmp eax, ebx
je 0x10069bdd
mov dword [ebp - 0x2c], eax
push 0x1012ac78
lea ecx, [ebp - 0x2c]
push ecx
call fcn.100c80ad
push 0x208
push ebx
lea edx, [ebp + 0x208]
push edx
call fcn.100c7d20
add esp, 0xc
mov dword [ebp - 0x1c], 0x208
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x208]
push ecx
lea edx, [ebp - 0x20]
push edx
push ebx
push str.Base_Name
push esi
call edi
test eax, eax
je 0x10069c33
push 0x103
push 0x10109b60
push 0x104
lea eax, [ebp + 0x208]
push eax
call fcn.100c6041
add esp, 0x10
push 0x208
push ebx
lea ecx, [ebp]
push ecx
call fcn.100c7d20
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp + 0x208]
push eax
push str._s_03d
lea edx, [ebp]
call fcn.10044050
push 0xff
lea ecx, [ebp]
push ecx
push 0x100
mov edx, dword [ebp - 0x30]
add edx, 0x406
push edx
call fcn.100c6041
add esp, 0x28
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x10069cc2
cmp esi, ebx
je 0x10069cd2
cmp esi, 0xffffffff
je 0x10069cd2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x11]
jmp 0x10069cd9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x414
mov esp, ebp
pop ebp
ret 4
Function at 0x1006b5b0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x100e56c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], ebx
push 0x11c
push ebx
lea eax, [ebp]
push eax
call fcn.100c7d20
add esp, 0xc
mov dword [ebp], 0x11c
lea ecx, [ebp]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
call esi
test eax, eax
jne 0x1006b63f
mov dword [ebp], 0x114
lea edx, [ebp]
push edx
call esi
test eax, eax
jne 0x1006b63f
mov dword [ebp - 0x18], ebx
push 0x1012af20
lea eax, [ebp - 0x18]
push eax
call fcn.100c80ad
cmp dword [ebp + 4], 5
jbe 0x1006b649
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x120
mov esp, ebp
pop ebp
ret

Function at 0x1006bbd0
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
sub esp, 0x214
mov eax, dword [0x10144930]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.SNMPStartup_n
call edi
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x1006bc2b
push esi
lea ecx, [esp + 0x19c]
push str.SNMP_WSAStartup_MAKEWORD_2_2___failed__Error_d_n
push ecx
call fcn.100c8016
add esp, 0xc
lea edx, [esp + 0x198]
push edx
call edi
mov eax, esi
mov ecx, dword [esp + 0x218]
pop edi
pop esi
xor ecx, esp
call fcn.100c59be
add esp, 0x214
ret

Function at 0x1006bc70
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x100e42a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x210], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp]
push eax
mov esi, ecx
xor edi, edi
push 0x202
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
call dword [sym.imp.WSOCK32.dll_WSAStartup]
cmp eax, edi
je 0x1006bd0a
push eax
lea ecx, [ebp + 0x190]
push str.SNMP_WSAStartup_MAKEWORD_2_2___failed__Error_d_n
push ecx
call fcn.100c8016
add esp, 0xc
push 0x101287cc
lea eax, [ebp - 0x18]
lea edx, [ebp + 0x190]
push eax
mov dword [ebp - 0x18], edx
call fcn.100c80ad
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0x1006bd05
ret
push str.SNMPManager_Constructor_Called_n
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 4], edi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x214
mov esp, ebp
pop ebp
ret
Function at 0x1006bdd0
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1006bde2
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc
push ebp
push str.TrapServerFileMappingObject
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x1006be04
pop ebp
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc
push ebx
push 0x620
push 0
push 0
push 0xf001f
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x1006be31
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc
push edi
push str.TS_SNMPSharedMemAccessMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x1006be64
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop ebp
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1006beb8
mov eax, dword [esp + 0x18]
sub eax, 0x2329
je 0x1006be8d
sub eax, 1
je 0x1006be89
or esi, 0xffffffff
jmp 0x1006bea0
mov edi, ebx
jmp 0x1006be93
mov edi, dword [esp + 0x1c]
mov esi, ebx
mov ecx, 0x188
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
xor esi, esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1006beaf
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1006bebd
mov esi, 0xffffff9e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call edi
pop edi
pop ebx
pop ebp
mov eax, esi
pop esi
pop ecx
ret 0xc

Function at 0x1006cc40
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x1006cc4e
call sym.SSWSP.dll_public:_int___thiscall_SNMPManager::unregister_void_
mov eax, dword [esi]
test eax, eax
mov dword [esi + 4], 0
je 0x1006cc6a
push eax
call fcn.100b61c1
add esp, 4
mov dword [esi], 0
call dword [sym.imp.WSOCK32.dll_WSACleanup]
push str.SNMPManager_Destructor_Called_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
ret
Function at 0x10070580
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
mov al, byte [esi]
xor edx, edx
test al, al
mov ecx, esi
je 0x100705a6
nop
cmp al, 0x2e
jne 0x10070597
add edx, 1
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x10070590
cmp edx, 3
je 0x100705ac
xor eax, eax
pop esi
ret 8
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x100705a6
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, 1
pop esi
ret 8

Function at 0x10070640
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x100706e4
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x100706b5
cmp word [ecx + 0xa], 4
jne 0x100706b5
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x100706b5
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.100705d0
test eax, eax
mov dword [esi], eax
je 0x100706d8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x10070690
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.100c898b
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x100706f4.11001
jmp dword [eax*4 + 0x10070718]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x10070f50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x10144930]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x10146e70], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x100709a0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x10070c90
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.10070950
je 0x10070fc2
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x10140224]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.100c59be
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100710bf
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.100c87c9
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.100c8cbc
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1007103d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x10071084
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.100c87c9
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.100c8cbc
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x100710bb
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x100710ef
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x100710ef
add edi, 1
cmp edi, 3
jl 0x10071086
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x10140224], edx
mov dword [0x1014022c], eax
mov dword [fcn.10070950], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x10140224]
xor ecx, esp
mov dword [0x10146e70], 1
call fcn.100c59be
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x100710bb
Function at 0x100716b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x10144930]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
test esi, esi
push edi
mov edi, ecx
je 0x10071747
mov eax, dword [edi + 0x34]
test eax, eax
je 0x100716e3
push eax
call fcn.100b61c1
add esp, 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100716e8
sub eax, edx
add eax, 1
push eax
call fcn.100b6196
add esp, 4
test eax, eax
mov dword [edi + 0x34], eax
je 0x10071743
mov ecx, esi
mov edx, eax
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x10071710
push esi
lea eax, [esp + 0xc]
push str.Setting_agent_address_as:__s_n
push eax
mov dword [edi + 0x38], 0
call fcn.100c8016
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x10071757
push str.No_agent_address_set____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0xffffffcc
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.100c59be
add esp, 0x404
ret 4
Function at 0x10076820
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10144930]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
test eax, eax
je 0x1007684a
xor eax, eax
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100c59be
add esp, 0x1c
ret
push esi
push 0
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10076870
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100c59be
add esp, 0x1c
ret
push edi
lea eax, [esp + 0xc]
push eax
push 0x8004667e
mov edi, 1
push esi
mov dword [esp + 0x18], edi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x100768aa
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100c59be
add esp, 0x1c
ret
push 4
lea ecx, [esp + 0xc]
push ecx
push 0x20
push 0xffff
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x10076897
xor eax, eax
mov dword [esp + 0x10], eax
push 0xce5
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x14], 2
call dword [sym.imp.WSOCK32.dll_htons]
push str.255.255.255.255
mov word [esp + 0x16], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0x10
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
xor eax, eax
push eax
push 9
push str.STATCHECK
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WSOCK32.dll_sendto]
push esi
mov edi, eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp edi, 0xffffffff
pop edi
setne al
pop esi
xor ecx, esp
call fcn.100c59be
add esp, 0x1c
ret
Function at 0x100781d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x7c
mov eax, dword [0x10144930]
xor eax, esp
mov dword [esp + 0x78], eax
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x100782dd
push str.Attempting_to_open_socket
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x3e8
push 2
push 6
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x10078222
mov eax, 0xffffffc4
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.100c59be
add esp, 0x7c
ret
lea ecx, [esp + 4]
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x10], 1
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1007825f
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, 0xffffffc3
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.100c59be
add esp, 0x7c
ret
xor eax, eax
mov dword [esp + 8], eax
push 0x900f
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov word [esp + 0x18], ax
mov word [esp + 0xc], 6
call dword [sym.imp.WSOCK32.dll_htons]
cmp dword [0x10146e60], 0
mov word [esp + 0x14], ax
jne 0x100782d6
mov ecx, dword [esi + 0x14]
push 0xe
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x100782d6
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea edx, [esp + 0x1c]
push str.SNMPManager___IPX_Bind_Error____d_n
push edx
call fcn.100c8016
add esp, 0xc
mov eax, 0xffffffb2
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.100c59be
add esp, 0x7c
ret
mov dword [esi + 0x18], 1
mov ecx, dword [esp + 0x7c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.100c59be
add esp, 0x7c
ret