joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x51b910
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5a4aa8]
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 0x4c9067
cmp ecx, ebx
je 0x4c9067
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 0x4c8f3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push 0x5814b0
lea eax, [ebp - 0x28]
push eax
call fcn.004fd5a3
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 0x4c8f6d
mov dword [ebp - 0x2c], eax
push 0x5814b0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004fd5a3
push 0x208
push ebx
lea edx, [ebp + 0x208]
push edx
call fcn.004fd670
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 0x4c8fc3
push 0x103
push 0x53e208
push 0x104
lea eax, [ebp + 0x208]
push eax
call fcn.004fa71b
add esp, 0x10
push 0x208
push ebx
lea ecx, [ebp]
push ecx
call fcn.004fd670
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp + 0x208]
push eax
push str._s_03d
lea edx, [ebp]
call fcn.00450c20
push 0xff
lea ecx, [ebp]
push ecx
push pe_nt_image_headers32
mov edx, dword [ebp - 0x30]
add edx, 0x406
push edx
call fcn.004fa71b
add esp, 0x28
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x4c9052
cmp esi, ebx
je 0x4c9062
cmp esi, 0xffffffff
je 0x4c9062
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x11]
jmp 0x4c9069
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.004fa103
add ebp, 0x414
mov esp, ebp
pop ebp
ret 4
Function at 0x4cbfe0
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0xa04]
sub esp, 0xa04
push 0xffffffffffffffff
push 0x520a20
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0xa00], 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
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 4], 0
test esi, esi
je 0x4cc10a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cc047
sub eax, edx
sar eax, 1
je 0x4cc10a
test edi, edi
je 0x4cc10a
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cc070
sub eax, edx
sar eax, 1
je 0x4cc10a
push esi
push edi
push 0x535a74
push 0x400
lea ecx, [ebp]
push ecx
call fcn.004fa51d
add esp, 0x14
lea edx, [ebp]
push edx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x4cc0cb
push 0x80
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
lea ecx, [ebp]
call fcn.0049c660
add esp, 4
jmp 0x4cc0de
push edi
call esi
test eax, eax
jne 0x4cc0de
push eax
push eax
mov edx, edi
call fcn.0049d3f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa00]
xor ecx, ebp
call fcn.004fa103
add ebp, 0xa04
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x18], 0x57
push 0x5814b0
lea ecx, [ebp - 0x18]
push ecx
call fcn.004fd5a3
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.004e2b40
mov edx, dword [esi]
push 0
push 0xff
lea eax, [ebp + 0x800]
push eax
mov ecx, esi
mov edx, dword [edx + 0x10]
call edx
lea eax, [ebp + 0x800]
push eax
push str.DestinationFile_check_because_of_exception_:___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4cc0e5
ret
Function at 0x4cc820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], 0xc8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x4cc87c
mov dword [ebp - 0x24], 0x57
push 0x5814b0
lea eax, [ebp - 0x24]
push eax
call fcn.004fd5a3
push str._____HttpRequest_Start
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov edi, edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push ecx
push ebx
push edi
push 0x4ccb50
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov dword [ebp - 0x1c], esi
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
cmp eax, 0x102
jne 0x4cc8f4
mov dword [ebp - 0x14], 0x8ca
push 0x8ca
push str._Timeout__Exit_Code_:__d
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
push 0x5814b0
lea eax, [ebp - 0x2c]
push eax
call fcn.004fd5a3
mov ecx, edi
call fcn.004cc9e0
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
jmp 0x4cc949
cmp esi, ebx
je 0x4cc954
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xc], bl
jne 0x4cc972
cmp dword [ebp - 0x18], ebx
je 0x4cc972
mov eax, dword [ebp - 0x20]
mov edx, eax
add eax, 1
mov dword [ebp - 0x20], eax
cmp edx, 3
jle 0x4cc890
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.004eb724
mov dword [ebp - 4], 0xffffffff
push str._____HttpRequest_End
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4cdab0
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.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x4cdb54
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x4cdb25
cmp word [ecx + 0xa], 4
jne 0x4cdb25
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4cdb25
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.004cda40
test eax, eax
mov dword [esi], eax
je 0x4cdb48
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x4cdb00
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.004fb3bd
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.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4cdb64.11001
jmp dword [eax*4 + 0x4cdb88]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x4ce3c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x5a74c0], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x4cde10
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4ce100
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.004cddc0
je 0x4ce432
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x5a3038]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004fa103
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4ce52f
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.004fdb44
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004fc184
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 0x4ce4ad
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4ce4f4
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.004fdb44
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004fc184
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4ce52b
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x4ce55f
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 0x4ce55f
add edi, 1
cmp edi, 3
jl 0x4ce4f6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x5a3038], edx
mov dword [0x5a3040], eax
mov dword [fcn.004cddc0], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x5a3038]
xor ecx, esp
mov dword [0x5a74c0], 1
call fcn.004fa103
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x4ce52b
Function at 0x4ceb20
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
test esi, esi
push edi
mov edi, ecx
je 0x4cebb7
mov eax, dword [edi + 0x34]
test eax, eax
je 0x4ceb53
push eax
call fcn.004da999
add esp, 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4ceb58
sub eax, edx
add eax, 1
push eax
call fcn.004da969
add esp, 4
test eax, eax
mov dword [edi + 0x34], eax
je 0x4cebb3
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 0x4ceb80
push esi
lea eax, [esp + 0xc]
push str.Setting_agent_address_as:__s_n
push eax
mov dword [edi + 0x38], 0
call fcn.004fc0ed
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4cebc7
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.004fa103
add esp, 0x404
ret 4
Function at 0x4cf7e0
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
sub esp, 0x214
mov eax, dword [0x5a4aa8]
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.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x4cf83b
push esi
lea ecx, [esp + 0x19c]
push str.SNMP_WSAStartup_MAKEWORD_2_2___failed__Error_d_n
push ecx
call fcn.004fc0ed
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.004fa103
add esp, 0x214
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x5178e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5a4aa8]
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.WS2_32.dll_WSAStartup]
cmp eax, edi
je 0x4cf91a
push eax
lea ecx, [ebp + 0x190]
push str.SNMP_WSAStartup_MAKEWORD_2_2___failed__Error_d_n
push ecx
call fcn.004fc0ed
add esp, 0xc
push 0x57da40
lea eax, [ebp - 0x18]
lea edx, [ebp + 0x190]
push eax
mov dword [ebp - 0x18], edx
call fcn.004fd5a3
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0x4cf915
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.004fa103
add ebp, 0x214
mov esp, ebp
pop ebp
ret
Function at 0x4cf9e0
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x4cf9f2
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 0x4cfa14
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 0x4cfa41
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 0x4cfa74
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 0x4cfac8
mov eax, dword [esp + 0x18]
sub eax, 0x2329
je 0x4cfa9d
sub eax, 1
je 0x4cfa99
or esi, 0xffffffff
jmp 0x4cfab0
mov edi, ebx
jmp 0x4cfaa3
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 0x4cfabf
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4cfacd
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 0x4d07f0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x4d07fe
call sym.Setup.exe_public:_int___thiscall_SNMPManager::unregister_void_
mov eax, dword [esi]
test eax, eax
mov dword [esi + 4], 0
je 0x4d081a
push eax
call fcn.004da999
add esp, 4
mov dword [esi], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.SNMPManager_Destructor_Called_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
ret
Function at 0x4d9ffe
Capabilities:
Print debug messages
Set socket configuration

Disassembly:
sub esp, 0x7c
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x78], eax
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x4da0fd
push str.Attempting_to_open_socket
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x3e8
push 2
push 6
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x4da042
mov eax, 0xffffffc4
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004fa103
add esp, 0x7c
ret
lea ecx, [esp + 4]
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x10], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4da07f
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffc3
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004fa103
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.WS2_32.dll_htons]
cmp dword [0x5a74d0], 0
mov word [esp + 0x14], ax
jne 0x4da0f6
mov ecx, dword [esi + 0x14]
push 0xe
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4da0f6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [esp + 0x1c]
push str.SNMPManager___IPX_Bind_Error____d_n
push edx
call fcn.004fc0ed
add esp, 0xc
mov eax, 0xffffffb2
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004fa103
add esp, 0x7c
ret
mov dword [esi + 0x18], 1
mov ecx, dword [esp + 0x7c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004fa103
add esp, 0x7c
ret
Function at 0x4da1f2
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x238
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x234], eax
mov edx, dword [esp + 0x244]
mov eax, dword [esp + 0x240]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x240]
mov dword [esp + 0x18], edx
xor edx, edx
cmp dword [esi + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
jne 0x4da22a
lea eax, [edx - 0x3e]
pop esi
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.004fa103
add esp, 0x238
ret 0xc
cmp ecx, edx
jne 0x4da24b
mov eax, 0xffffffb6
pop esi
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.004fa103
add esp, 0x238
ret 0xc
mov eax, dword [eax]
push ebx
mov ebx, 1
cmp dword [esi + 0xc], ebx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x14]
push edi
mov edi, dword [esi + 0x10]
mov dword [esp + 0x24], 0xe
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], eax
jne 0x4da294
mov ecx, dword [esi + 8]
imul ecx, ecx, 0x3e8
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
jmp 0x4da29f
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
xor eax, eax
cmp edi, edx
push ebp
jl 0x4da34d
mov ebp, dword [sym.imp.WS2_32.dll_select]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x134]
push edx
push 0
lea eax, [esp + 0x38]
push eax
push 0
call ebp
cmp eax, 0xffffffff
je 0x4da2da
cmp eax, ebx
jne 0x4da2da
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esi + 0x14]
je 0x4da2e7
sub edi, ebx
test edi, edi
mov eax, 0xffffffd3
jge 0x4da2b0
jmp 0x4da34d
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x238]
push eax
mov eax, dword [esi + 0x14]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4da316
lea eax, [edi - 0x2e]
jmp 0x4da34d
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4da345
push 4
lea ecx, [esp + 0x23a]
push ecx
push ebx
mov ecx, esi
call sym.Setup.exe_private:_void___thiscall_OctetString::HtoA_char___char___int_
push 6
lea edx, [esp + 0x23e]
push edx
add ebx, 8
push ebx
mov ecx, esi
call sym.Setup.exe_private:_void___thiscall_OctetString::HtoA_char___char___int_
mov eax, dword [esp + 0x18]
mov dword [eax], edi
xor eax, eax
mov ecx, dword [esp + 0x244]
pop ebp
pop edi
pop ebx
pop esi
xor ecx, esp
call fcn.004fa103
add esp, 0x238
ret 0xc
Function at 0x4da54b
Capabilities:
Get socket status
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x244
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x248]
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
mov dword [esp + 0xc], eax
jne 0x4da575
mov eax, 0xffffffc2
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004fa103
add esp, 0x244
ret 8
test eax, eax
jne 0x4da596
mov eax, 0xffffffbe
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004fa103
add esp, 0x244
ret 8
mov ecx, dword [esi + 0x14]
push ebp
push 4
lea eax, [esp + 0x18]
push eax
push 0x20
push 0xffff
mov ebp, 1
push ecx
mov dword [esp + 0x28], ebp
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4da5c5
lea eax, [ebp - 0x45]
jmp 0x4da70d
push ebx
mov ebx, dword [esi + 0x10]
xor eax, eax
push edi
mov dword [esp + 0x228], eax
push 0x900f
xor edi, edi
mov dword [esp + 0x230], eax
mov dword [esp + 0x234], eax
mov word [esp + 0x238], ax
mov word [esp + 0x22c], 6
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [str.00000000FFFFFFFFFFFFF]
mov ecx, dword [0x52dbb0]
mov word [esp + 0x234], ax
mov eax, dword [0x52dbac]
mov dword [esp + 0x238], edx
mov edx, dword [0x52dbb4]
mov dword [esp + 0x23c], eax
mov eax, dword [0x52dbb8]
mov dword [esp + 0x240], ecx
mov cx, word [0x52dbbc]
mov dword [esp + 0x244], edx
push 4
lea edx, [esp + 0x23c]
mov dword [esp + 0x24c], eax
push edx
lea eax, [esp + 0x232]
mov word [esp + 0x254], cx
push eax
mov ecx, esi
call sym.Setup.exe_private:_void___thiscall_OctetString::AtoH_char___char___unsigned_long_int_
push 6
lea ecx, [esp + 0x244]
push ecx
lea edx, [esp + 0x236]
push edx
mov ecx, esi
call sym.Setup.exe_private:_void___thiscall_OctetString::AtoH_char___char___unsigned_long_int_
cmp dword [esi + 0xc], ebp
mov eax, dword [esi + 0x14]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x124], ebp
mov dword [esp + 0x128], eax
jne 0x4da6b9
mov eax, dword [esi + 8]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jmp 0x4da6c4
mov ecx, dword [esi + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
test ebx, ebx
jl 0x4da709
jmp 0x4da6d0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4da6fe
cmp eax, ebp
jne 0x4da6fe
mov edx, dword [esp + 0x24]
cmp edx, dword [esi + 0x14]
je 0x4da726
sub ebx, ebp
test ebx, ebx
mov edi, 0xffffffbd
jge 0x4da6d0
mov eax, edi
pop edi
pop ebx
mov ecx, dword [esp + 0x248]
pop ebp
pop esi
xor ecx, esp
call fcn.004fa103
add esp, 0x244
ret 8
mov ecx, dword [esp + 0x25c]
mov edx, dword [esp + 0x18]
push 0x10
lea eax, [esp + 0x22c]
push eax
mov eax, dword [esi + 0x14]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
sub eax, 0xffffffff
neg eax
sbb eax, eax
and eax, 0x45
add eax, 0xffffffbb
jmp 0x4da70b