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

Disassembly:
push 0xffffffffffffffff
push 0x100672cd
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x1007a200]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007a200]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x258], edi
mov ebx, ecx
mov dword [esp + 0x20], edi
push ebx
mov dword [esp + 0x44], ebx
mov esi, edx
mov dword [esp + 0x1c], edi
call fcn.1002cae0
mov dword [esp + 0x258], edi
cmp dword [esi + 0x18], 8
mov dword [esp + 0x20], 1
jb 0x10037fb4
mov esi, dword [esi + 4]
jmp 0x10037fb7
add esi, 4
lea eax, [esp + 0x18]
push eax
push 8
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100380d9
push 0x206
lea edx, [esp + 0x4a]
xor ecx, ecx
push edi
push edx
xor ebp, ebp
mov word [esp + 0x50], cx
call fcn.10049f60
mov edx, dword [esp + 0x24]
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x58]
push ecx
push edi
push edx
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100380ce
jmp 0x10038022
xor edi, edi
inc ebp
xor eax, eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x44]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10038040
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x48]
lea esi, [esp + 0x28]
call fcn.10002d50
mov ecx, esi
push ecx
mov dword [esp + 0x25c], 1
call fcn.100392f0
mov byte [esp + 0x258], 0
cmp dword [esp + 0x3c], 8
jb 0x1003808c
mov edx, dword [esp + 0x28]
push edx
call fcn.10047382
add esp, 4
push 0x208
lea eax, [esp + 0x48]
push 0
push eax
mov dword [esp + 0x28], 0x104
call fcn.10049f60
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x58]
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10038020
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.1004738d
add esp, 0x248
ret
Function at 0x10038110
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10065ae8
mov eax, dword fs:[0]
push eax
sub esp, 0xa1c
mov eax, dword [0x1007a200]
xor eax, esp
mov dword [esp + 0xa18], eax
push esi
push edi
mov eax, dword [0x1007a200]
xor eax, esp
push eax
lea eax, [esp + 0xa28]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0xa30], esi
cmp dword [esp + 0xa50], 8
mov eax, dword [esp + 0xa3c]
mov dword [esp + 0xc], esi
jae 0x1003816e
lea eax, [esp + 0xa3c]
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100382cc
push 0x206
lea eax, [esp + 0x22]
xor edx, edx
push esi
push eax
mov word [esp + 0x28], dx
call fcn.10049f60
push 0x7fe
lea edx, [esp + 0x236]
xor ecx, ecx
push esi
push edx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x30], esi
mov word [esp + 0x23c], cx
call fcn.10049f60
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 0x18
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
push edx
mov dword [esp + 0x34], 0x400
call edi
test eax, eax
jne 0x100382c1
inc esi
cmp dword [esp + 0x18], 1
jne 0x1003825b
cmp dword [esp + 0x10], 0
jbe 0x1003825b
cmp dword [esp + 0x14], 3
jbe 0x1003825b
lea eax, [esp + 0x1c]
push eax
push str.PnpInstanceID
call fcn.10049a13
add esp, 8
test eax, eax
jne 0x1003825b
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push 0x10070848
mov word [esp + 0x232], cx
call fcn.10049a13
add esp, 8
test eax, eax
je 0x10038310
push 0x208
lea eax, [esp + 0x20]
push 0
push eax
call fcn.10049f60
push 0x800
lea ecx, [esp + 0x234]
push 0
push ecx
call fcn.10049f60
add esp, 0x18
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push esi
push ecx
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x34], 0x400
call edi
test eax, eax
je 0x10038208
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xa50], 8
jb 0x100382e6
mov edx, dword [esp + 0xa3c]
push edx
call fcn.10047382
add esp, 4
xor al, al
mov ecx, dword [esp + 0xa28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xa18]
xor ecx, esp
call fcn.1004738d
add esp, 0xa28
ret 0x1c
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xa50], 8
jb 0x10038335
mov eax, dword [esp + 0xa3c]
push eax
call fcn.10047382
add esp, 4
mov al, 1
jmp 0x100382e8
Function at 0x1003b400
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x10066018
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007a200]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
lea esi, [ebx + ebx + 2]
cmp esi, edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], ebx
jge 0x1003b4b3
jmp 0x1003b450
lea eax, [esi*8]
sub eax, esi
cmp dword [ebp + eax*4 - 4], 8
mov edi, dword [ebp + eax*4 - 8]
lea ecx, [ebp + eax*4]
jb 0x1003b46d
mov eax, dword [ecx - 0x18]
jmp 0x1003b470
lea eax, [ecx - 0x18]
push eax
mov eax, dword [ecx + 0x14]
call fcn.10003e80
test eax, eax
jge 0x1003b47e
dec esi
lea ecx, [esi*8]
sub ecx, esi
lea edx, [ebx*8]
push 0xffffffffffffffff
sub edx, ebx
lea eax, [ebp + ecx*4]
push 0
lea ecx, [ebp + edx*4]
call fcn.100024e0
mov ebx, esi
lea esi, [esi + esi + 2]
cmp esi, dword [esp + 0x30]
jl 0x1003b450
mov edi, dword [esp + 0x30]
cmp esi, edi
jne 0x1003b4db
lea eax, [edi*8]
lea ecx, [ebx*8]
push 0xffffffffffffffff
sub eax, edi
sub ecx, ebx
push 0
lea eax, [ebp + eax*4 - 0x1c]
lea ecx, [ebp + ecx*4]
call fcn.100024e0
lea ebx, [edi - 1]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
xor edx, edx
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push edx
lea eax, [esp + 0x58]
mov word [ecx + 4], dx
call fcn.100024e0
mov eax, dword [esp + 0x30]
push eax
push ebp
mov ecx, ebx
call fcn.1003b660
add esp, 0x24
cmp dword [esp + 0x4c], 8
jb 0x1003b528
mov ecx, dword [esp + 0x38]
push ecx
call fcn.10047382
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x1003bc20
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x10065f1b
mov eax, dword fs:[0]
push eax
sub esp, 0xb38
mov eax, dword [0x1007a200]
xor eax, esp
mov dword [esp + 0xb34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007a200]
xor eax, esp
push eax
lea eax, [esp + 0xb4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb5c]
mov dword [esp + 0x1c], eax
xor al, al
xor ebx, ebx
mov byte [esp + 0x17], al
xor ebp, ebp
cmp al, bl
jne 0x1003be03
push 0x200
lea ecx, [esp + 0x14c]
push ebx
push ecx
call fcn.10049f60
push ebp
lea edx, [esp + 0x158]
push str..PhysicalDrive_d
push edx
mov edx, 0xff
call fcn.1003c180
add esp, 0x18
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1003bdf5
xor eax, eax
push 0x800
lea ecx, [esp + 0x34c]
push ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.10049f60
add esp, 0xc
push ebx
lea edx, [esp + 0x1c]
push edx
push 0x800
lea eax, [esp + 0x354]
push eax
push 0xc
lea ecx, [esp + 0x50]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1003bde8
push 0xff
lea edx, [esp + 0x4d]
push ebx
push edx
call fcn.10049f60
mov eax, dword [esp + 0x36c]
add esp, 0xc
cmp eax, ebx
mov byte [esp + 0x48], bl
jle 0x1003bd57
lea edi, [esp + 0x48]
lea ecx, [esp + 0x348]
call fcn.1003be30
movsx eax, byte [esp + 0x48]
push eax
call fcn.1005d6c5
add esp, 4
test eax, eax
jne 0x1003bd7b
movsx ecx, byte [esp + 0x5b]
push ecx
call fcn.1005d6c5
add esp, 4
test eax, eax
je 0x1003bdee
lea eax, [esp + 0x48]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003bd92
sub eax, edx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x28]
call fcn.10002be0
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0xb60], ebx
call fcn.100023a0
mov dword [esp + 0xb54], 0xffffffff
cmp dword [esp + 0x38], 0x10
jb 0x1003bde1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.10047382
add esp, 4
mov byte [esp + 0x17], 1
jmp 0x1003bdee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x17]
inc ebp
cmp ebp, 0x10
jl 0x1003bc70
mov ecx, dword [esp + 0xb4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb34]
xor ecx, esp
call fcn.1004738d
add esp, 0xb44
ret 4
Function at 0x1003bf90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1006691b
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x1007a200]
xor eax, esp
mov dword [esp + 0x45c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007a200]
xor eax, esp
push eax
lea eax, [esp + 0x474]
mov dword fs:[0], eax
mov eax, dword [esp + 0x484]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor bl, bl
xor esi, esi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x17], bl
mov dword [esp + 0x18], esi
test bl, bl
jne 0x1003c145
push 0x200
lea ecx, [esp + 0x274]
push 0
push ecx
call fcn.10049f60
push esi
lea edx, [esp + 0x280]
push str..Scsi_d:
push edx
mov edx, 0xff
call fcn.1003c180
add esp, 0x18
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1003c137
xor ebx, ebx
push 0x22d
lea ecx, [esp + 0x44]
push 0
push ecx
call fcn.10049f60
mov edx, dword [str.SCSIDISK]
mov eax, dword [0x100709f4]
add esp, 0xc
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x22d
mov dword [esp + 0x50], edx
lea edx, [esp + 0x4c]
push edx
push 0x3c
mov dword [esp + 0x5c], eax
mov eax, edx
push eax
push 0x4d008
push edi
mov dword [esp + 0x60], 0x1c
mov dword [esp + 0x6c], 0x2710
mov dword [esp + 0x78], 0x211
mov dword [esp + 0x70], 0x1b0501
mov byte [esp + 0x86], 0xec
mov byte [esp + 0x88], bl
call ebp
test eax, eax
je 0x1003c11e
cmp byte [esp + 0xa2], 0
je 0x1003c11e
lea ecx, [esp + 0x6c]
push ecx
mov ecx, 0x13
lea edx, [ecx - 9]
lea esi, [esp + 0x28]
call fcn.1003bb30
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push 0
push eax
mov dword [esp + 0x488], 0
call fcn.100023a0
mov dword [esp + 0x47c], 0xffffffff
cmp dword [esp + 0x3c], 0x10
jb 0x1003c119
mov edx, dword [esp + 0x28]
push edx
call fcn.10047382
add esp, 4
mov byte [esp + 0x17], 1
inc ebx
cmp ebx, 2
jl 0x1003c049
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [esp + 0x17]
mov esi, dword [esp + 0x18]
inc esi
cmp esi, 0x10
mov dword [esp + 0x18], esi
jl 0x1003bfe8
mov al, bl
mov ecx, dword [esp + 0x474]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x45c]
xor ecx, esp
call fcn.1004738d
add esp, 0x46c
ret 4
Function at 0x1003c600
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100680e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1007a200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
mov ebx, dword [ebp + 8]
jne 0x1003c650
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x88]
mov ecx, edi
call eax
lea esp, [esp]
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [edi + 8]
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1003c6a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x1003c650
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edi, [ebp - 0x28]
mov ecx, ebx
mov esi, eax
call fcn.1003e5d0
mov ebx, eax
mov edi, esi
mov dword [ebp - 4], 0
call fcn.1003d810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1003c6c0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006812b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x1007a200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [edi + 8], 0xffffffff
mov ebx, dword [ebp + 8]
jne 0x1003c712
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x88]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x7c]
push 0
mov ecx, edi
call eax
mov dword [ebp - 4], 0
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [edi + 8]
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1003c7fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2734
je 0x1003c77b
cmp esi, 0x2733
je 0x1003c77b
lea edi, [ebp - 0x7c]
mov ecx, ebx
call fcn.1003e5d0
mov ebx, eax
mov edi, esi
mov byte [ebp - 4], 1
call fcn.1003d810
mov edx, dword [edi]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x48]
push 7
push eax
mov ecx, edi
call edx
test al, al
jne 0x1003c7e8
push 0x11
push str.connect_timed_out
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], al
call fcn.10002be0
lea edi, [ebp - 0x98]
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.1003e5d0
push 0
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov byte [ebp - 4], 3
call fcn.1001c300
push 0x100743a4
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x60], vtable.Poco::TimeoutException.0
call fcn.1004af94
mov ecx, edi
call fcn.1003d700
test eax, eax
je 0x1003c7fa
mov edi, eax
call fcn.1003d7c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
mov edx, dword [eax + 0x7c]
push 1
mov ecx, edi
call edx
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 0x1003c840
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100680e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1007a200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
mov ebx, dword [ebp + 8]
jne 0x1003c889
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x88]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
push 0
mov ecx, esi
call eax
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov edi, eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi + 8]
push edi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1003c8ea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2734
je 0x1003c8ea
cmp esi, 0x2733
je 0x1003c8ea
lea edi, [ebp - 0x28]
mov ecx, ebx
call fcn.1003e5d0
mov ebx, eax
mov edi, esi
mov dword [ebp - 4], 0
call fcn.1003d810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov edx, dword [ecx + 0x18]
or edx, dword [ecx + 0x1c]
lea eax, [ecx + 0x18]
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x1003cc63
mov edx, dword [ecx]
push 2
push eax
mov eax, dword [edx + 0x48]
call eax
test al, al
jne 0x1003cc63
lea ecx, [esp + 0x10]
call fcn.100484d2
xor eax, eax
push 0x100743a4
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], eax
mov byte [esp + 0x28], al
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], vtable.Poco::TimeoutException.0
call fcn.1004af94
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea esp, [esp]
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 8]
cmp eax, 0xffffffff
je 0x1003cc9c
push esi
push edi
push ebx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x1003ccd6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x1003cc70
call fcn.1003d770
lea ecx, [esp + 0x10]
call fcn.100484d2
xor eax, eax
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push 0x1007447c
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x18], vtable.Poco::Net::InvalidSocketException.0
call fcn.1004af94
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003cce0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov edx, dword [ecx + 0x10]
or edx, dword [ecx + 0x14]
lea eax, [ecx + 0x10]
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x1003cd43
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [edx + 0x48]
call eax
test al, al
jne 0x1003cd43
lea ecx, [esp + 0x10]
call fcn.100484d2
xor eax, eax
push 0x100743a4
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], eax
mov byte [esp + 0x28], al
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], vtable.Poco::TimeoutException.0
call fcn.1004af94
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea esp, [esp]
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 8]
cmp eax, 0xffffffff
je 0x1003cd96
push esi
push edi
push ebx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x1003ce0a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x1003cd50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1003cdd0
cmp eax, 0x274c
je 0x1003cdd0
mov edi, eax
call fcn.1003d7c0
lea ecx, [esp + 0x10]
call fcn.100484d2
xor eax, eax
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push 0x1007447c
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x18], vtable.Poco::Net::InvalidSocketException.0
call fcn.1004af94
lea ecx, [esp + 0x10]
call fcn.100484d2
xor eax, eax
push 0x100743a4
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], eax
mov byte [esp + 0x28], al
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], vtable.Poco::TimeoutException.0
call fcn.1004af94
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
cmp dword [ebx + 8], 0xffffffff
je 0x1003ce79
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [edi]
mov esi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebx + 8]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x1003ceb3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x1003ce31
call fcn.1003d770
lea ecx, [esp + 0x10]
call fcn.100484d2
xor eax, eax
push 0x1007447c
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], eax
mov byte [esp + 0x28], al
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], vtable.Poco::Net::InvalidSocketException.0
call fcn.1004af94
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1003cec0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10068d4b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x1007a200]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x1007a200]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, ecx
lea ecx, [edi + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x1003cf60
mov edx, dword [edi]
mov eax, dword [edx + 0x48]
push 1
push ecx
mov ecx, edi
call eax
test al, al
jne 0x1003cf60
lea ecx, [esp + 0x20]
call fcn.100484d2
xor eax, eax
push 0x100743a4
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], eax
mov byte [esp + 0x38], al
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], vtable.Poco::TimeoutException.0
call fcn.1004af94
mov dword [esp + 0x14], 0x10
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x1003cfc1
lea edx, [esp + 0x14]
push edx
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push ebx
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jge 0x1003cffb
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2714
je 0x1003cf68
call esi
cmp eax, 0x2733
je 0x1003d089
cmp eax, 0x274c
je 0x1003d089
mov edi, eax
call fcn.1003d7c0
lea ecx, [esp + 0x20]
call fcn.100484d2
xor eax, eax
push 0x1007447c
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], eax
mov byte [esp + 0x38], al
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], vtable.Poco::Net::InvalidSocketException.0
call fcn.1004af94
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edi, [esp + 0x88]
call fcn.1003e4d0
mov ebx, eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xa0], 0
cmp ebx, edi
je 0x1003d03d
mov ecx, dword [edi]
add dword [ecx + 4], 0xffffffff
jne 0x1003d036
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, dword [ebx]
mov dword [edi], eax
inc dword [eax + 4]
mov dword [esp + 0xa0], 0xffffffff
mov eax, dword [esp + 0x18]
dec dword [eax + 4]
mov ecx, eax
add eax, 4
cmp dword [eax], 0
jne 0x1003d061
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.1004738d
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x50]
call fcn.100484d2
xor eax, eax
push 0x100743a4
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], eax
mov byte [esp + 0x68], al
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x58], vtable.Poco::TimeoutException.0
call fcn.1004af94
int3