joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b143
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100576f0]
jne 0x1002b14d
repz ret
jmp fcn.1002faf8

Function at 0x1003b966
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10031c99
xor ebx, ebx
cmp dword [0x1005cf14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1003ba3b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1003b9a6
xor eax, eax
jmp 0x1003baff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1003b99f
push eax
call fcn.10031c36
mov dword [esp], 0x1004999c
push edi
mov dword [0x1005cf14], eax
call esi
push eax
call fcn.10031c36
mov dword [esp], 0x10049988
push edi
mov dword [0x1005cf18], eax
call esi
push eax
call fcn.10031c36
mov dword [0x1005cf1c], eax
lea eax, [ebp - 8]
push eax
call fcn.1002c43b
test eax, eax
pop ecx
pop ecx
je 0x1003ba09
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1002b500
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1003ba3b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10031c36
cmp eax, ebx
pop ecx
mov dword [0x1005cf24], eax
je 0x1003ba3b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10031c36
pop ecx
mov dword [0x1005cf20], eax
mov eax, dword [0x1005cf20]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1003bab4
cmp dword [0x1005cf24], esi
je 0x1003bab4
push eax
call fcn.10031ca2
pop ecx
call eax
cmp eax, ebx
je 0x1003ba81
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1005cf24]
call fcn.10031ca2
pop ecx
call eax
test eax, eax
je 0x1003ba81
test byte [ebp - 0x18], 1
jne 0x1003bab4
lea eax, [ebp - 0xc]
push eax
call fcn.1002c472
test eax, eax
pop ecx
je 0x1003ba9c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1002b500
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1003baab
or dword [ebp + 0x10], 0x200000
jmp 0x1003bae5
or dword [ebp + 0x10], 0x40000
jmp 0x1003bae5
mov eax, dword [0x1005cf18]
cmp eax, esi
je 0x1003bae5
push eax
call fcn.10031ca2
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1003bae5
mov eax, dword [0x1005cf1c]
cmp eax, esi
je 0x1003bae5
push dword [ebp - 4]
push eax
call fcn.10031ca2
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1005cf14]
call fcn.10031ca2
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4018d0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x440341
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x454740]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 0
mov eax, dword [eax]
push 0x40
push eax
lea ecx, [esp + 0x18]
call fcn.0040bf19
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x28], 1
call fcn.00401950
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
mov byte [esp + 0x28], 0
call fcn.0040b9bf
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret

Function at 0x401950
Capabilities:
Hash data with md5

Disassembly:
push ebp
lea ebp, [esp - 0x460]
sub esp, 0x460
push 0xffffffffffffffff
push 0x4402f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x454740]
xor eax, ebp
mov dword [ebp + 0x45c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
push 0x40
lea eax, [ebp + 4]
push edi
mov dword [ebp - 4], edi
push eax
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp], vtable.CMD5Checksum.0
call fcn.0042b700
add esp, 0xc
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x4c], 0x67452301
mov dword [ebp + 0x50], 0xefcdab89
mov dword [ebp + 0x54], 0x98badcfe
mov dword [ebp + 0x58], 0x10325476
mov byte [ebp - 4], 1
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
push 0x400
lea eax, [ebp + 0x5c]
push eax
mov ecx, esi
call edx
cmp eax, edi
jle 0x4019f8
lea ecx, [ebp + 0x5c]
push ecx
lea ecx, [ebp]
call fcn.004023b0
jmp 0x4019d4
push ebx
lea ecx, [ebp]
call fcn.00402130
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x45c]
xor ecx, ebp
call fcn.00429f2c
add ebp, 0x460
mov esp, ebp
pop ebp
ret

Function at 0x4025f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402609
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402644
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402640
lea ebx, [ebx]
cmp esi, eax
jae 0x402644
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402630
cmp esi, eax
jb 0x40264a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x405df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.004168c3

Function at 0x406720
Capabilities:
Check internet connectivity via wininet

Disassembly:
push 0xffffffffffffffff
push 0x43fce8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x454740]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
or edx, 0xffffffff
mov dword [esp + 0xc], 0xffffffff
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x40678d
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40677b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret
Function at 0x4089f0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
cmp dword [esi + 0x8c], 0
je 0x408a53
cmp dword [esi + 0x80], 0
je 0x408a59
mov ecx, dword [esi + 0xd0]
sub ecx, dword [esi + 0xcc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x408a59
lea ecx, [esp + 4]
push ecx
push 4
push esi
push 0x408f70
push 0
push 0
call fcn.0042ab49
add esp, 0x18
mov dword [esi + 0xa8], eax
test eax, eax
je 0x408a53
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add esp, 8
ret
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x408a53
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push edi
lea ecx, [esp + 8]
push ecx
push eax
call edx
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 4]
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x10]
push edi
push ecx
mov ecx, dword [esi + 0x68]
push 0
push ecx
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x90]
push 0
push 0
push ecx
push eax
call edx
pop edi
test eax, eax
jne 0x408a53
push eax
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
add esp, 8
ret

Function at 0x408ae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push esi
call fcn.0041887a
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
push 0x449030
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x408b9f
call fcn.0041887a
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x408b9f
push edi
call fcn.0041887a
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x408b47
pop edi
pop esi
pop ebp
ret 8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x408b8f
test ebx, ebx
je 0x408b8f
push edi
push eax
push ebx
call fcn.00430aa0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
push edi
push esi
call fcn.004083f0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
pop esi
xor eax, eax
pop ebp
ret 8
Function at 0x412d6a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x412db1
call fcn.0041887a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x412db1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x412dcd
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004128e2
mov esi, eax
test edi, edi
je 0x412dcb
test ebx, ebx
je 0x412dcb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x413c09
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43ef7b
call fcn.0042b2a8
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x413c2e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x413c74
lea ecx, [ebp - 0x10]
call fcn.00402ae0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b0f9
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401590
mov eax, esi
call fcn.0042b380
ret 8

Function at 0x41520b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x415253
call fcn.0041887a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x415253
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x415296
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x41527f
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41527f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x415293
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41acac
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x41acd7
call fcn.0041887a
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x41acfa
push eax
push dword [esi + 4]
call fcn.0041ac32
push esi
push eax
mov ecx, 0x457b54
call fcn.0041a8df
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x429f2c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454740]
jne 0x429f36
repz ret
jmp fcn.0043098e

Function at 0x438f94
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004302f2
and dword [ebp - 4], 0
cmp dword [0x4589d8], 0
mov ebx, eax
jne 0x439045
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4390f6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4390f6
push eax
call fcn.00430280
mov dword [esp], 0x446e18
push edi
mov dword [0x4589d8], eax
call esi
push eax
call fcn.00430280
mov dword [esp], 0x446e04
push edi
mov dword [0x4589dc], eax
call esi
push eax
call fcn.00430280
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4589e0], eax
call esi
push eax
call fcn.00430280
pop ecx
mov dword [0x4589e8], eax
test eax, eax
je 0x439045
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00430280
pop ecx
mov dword [0x4589e4], eax
mov eax, dword [0x4589e4]
cmp eax, ebx
je 0x43909d
cmp dword [0x4589e8], ebx
je 0x43909d
push eax
call fcn.004302fb
push dword [0x4589e8]
mov esi, eax
call fcn.004302fb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43909d
test edi, edi
je 0x43909d
call esi
test eax, eax
je 0x439094
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x439094
test byte [ebp - 0xc], 1
jne 0x43909d
or dword [ebp + 0x10], 0x200000
jmp 0x4390d6
mov eax, dword [0x4589dc]
cmp eax, ebx
je 0x4390d6
push eax
call fcn.004302fb
pop ecx
test eax, eax
je 0x4390d6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4390d6
mov eax, dword [0x4589e0]
cmp eax, ebx
je 0x4390d6
push eax
call fcn.004302fb
pop ecx
test eax, eax
je 0x4390d6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4589d8]
call fcn.004302fb
pop ecx
test eax, eax
je 0x4390f6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4390f8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401230
Capabilities:
Get socket status
Terminate process

Disassembly:
push ebp
mov ecx, eax
push edi
push esi
push ebx
sub esp, 0x4c
fld qword [esp + 0x60]
test eax, eax
js 0x40130a
cmp eax, 0x3f
jg 0x401313
mov ebx, ecx
mov eax, edx
mov dword [esp + 0x34], 0
lea esi, [esp + 0x30]
sar ebx, 5
mov edx, 1
mov dword [esp + 0x30], 0
lea edi, [esp + 0x38]
shl edx, cl
or dword [esp + ebx*4 + 0x30], edx
xor edx, edx
test al, 1
fnstcw word [esp + 0x2e]
mov ebp, edx
cmovne ebp, esi
test al, 2
movzx eax, word [esp + 0x2e]
cmove esi, edx
or ah, 0xc
mov word [esp + 0x2c], ax
fldcw word [esp + 0x2c]
fist dword [esp + 0x28]
fldcw word [esp + 0x2e]
mov eax, dword [esp + 0x28]
fild dword [esp + 0x28]
mov dword [esp + 0x38], eax
lea eax, [ecx + 1]
fsubp st(1)
mov dword [esp + 0x28], eax
fmul dword [0x451188]
fldcw word [esp + 0x2c]
fistp dword [esp + 0x3c]
fldcw word [esp + 0x2e]
jmp 0x4012da
call sub.cygwin1.dll___errno
cmp dword [eax], 4
jne 0x401300
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.cygwin1.dll_select
mov ebx, eax
test eax, eax
js 0x4012d0
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
fstp st(0)
mov ebx, 0xffffffff
jmp 0x401300
fstp st(0)
mov dword [esp], str.Too_many_fds_open.__Cannot_use_select_on_a_fd____d_n
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov dword [esp], 1
call fcn.0041d940
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
lea esi, [esi]

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

Disassembly:
push edi
mov ecx, 0x20
xor eax, eax
push esi
push ebx
sub esp, 0xa0
lea edx, [esp + 0x20]
mov esi, dword [esp + 0xb8]
mov dword [esp + 0x1c], pe_nt_image_headers32
mov edi, edx
mov ebx, dword [esp + 0xb4]
rep stosd dword es:[edi], eax
test esi, esi
je 0x401570
cmp esi, 1
jne 0x44c605
lea eax, [esp + 0x1c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
call sub.cygwin1.dll_getpeername
test eax, eax
js 0x401560
movzx edx, word [esp + 0x20]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx], edx
cmp dx, 2
jne 0x401520
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], eax
add esp, 0xa0
mov eax, 1
pop ebx
pop esi
pop edi
ret
cmp dx, 0x17
jne 0x44c60a
mov eax, dword [esp + 0x28]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x14], eax
add esp, 0xa0
mov eax, 1
pop ebx
pop esi
pop edi
ret
add esp, 0xa0
xor eax, eax
pop ebx
pop esi
pop edi
ret
lea eax, [esp + 0x1c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
call sub.cygwin1.dll_getsockname
jmp 0x4014ca
Function at 0x401590
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push edi
mov ecx, 0x20
xor eax, eax
push ebx
sub esp, 0xa4
lea edx, [esp + 0x20]
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0x1c], pe_nt_image_headers32
mov edi, edx
rep stosd dword es:[edi], eax
test ebx, ebx
je 0x4015f0
cmp ebx, 1
jne 0x44c60f
lea eax, [esp + 0x1c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
call sub.cygwin1.dll_getpeername
test eax, eax
js 0x40160d
movzx eax, word [esp + 0x20]
add esp, 0xa4
pop ebx
pop edi
ret
lea eax, [esp + 0x1c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xb0]
mov dword [esp], eax
call sub.cygwin1.dll_getsockname
jmp 0x4015de
mov eax, 0xffffffff
jmp 0x4015e7

Function at 0x401680
Capabilities:
Get socket status
Terminate process

Disassembly:
fld qword [esp + 8]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x10]
fstp qword [esp + 4]
jmp fcn.00401230

Function at 0x4016a0
Capabilities:
Get socket status
Terminate process

Disassembly:
sub esp, 0x3c
mov ecx, dword [esp + 0x40]
cmp ecx, 0x3f
jg 0x401716
test ecx, ecx
lea eax, [ecx + 0x1f]
mov edx, 1
mov dword [esp + 0x24], 0
cmovns eax, ecx
mov dword [esp + 0x20], 0
shl edx, cl
add ecx, 1
mov dword [esp + 0x28], 0
sar eax, 5
mov dword [esp + 0x2c], 1
or dword [esp + eax*4 + 0x20], edx
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ecx
call sub.cygwin1.dll_select
test eax, eax
sete al
add esp, 0x3c
ret
mov dword [esp], str.Too_many_fds_open.__Cannot_use_select_on_a_fd____d_n
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov dword [esp], 1
call fcn.0041d940
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
lea esi, [esi]
Function at 0x4018f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x473054]
fld qword [esp + 0x4c]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
test eax, eax
je 0x401988
cmp dword [0x44f00c], ebx
jne 0x40192b
mov ecx, dword [0x473050]
mov edx, dword [0x473024]
cmp dword [0x473028], ecx
je 0x401956
mov dword [esp + 4], ebx
mov dword [esp], eax
fstp qword [esp + 0x28]
call fcn.0040ed10
mov dword [0x44f00c], ebx
fld qword [esp + 0x28]
mov dword [0x473024], eax
mov edx, eax
mov eax, dword [0x473050]
mov dword [0x473028], eax
test edx, edx
je 0x401988
mov eax, dword [edx]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40198a
fstp qword [esp + 0x10]
mov edx, dword [edx + 4]
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor edx, edx
fstp qword [esp]
mov ecx, 1
mov eax, ebx
call fcn.00401350
test al, al
jne 0x4019aa
jmp 0x4019d0
call sub.cygwin1.dll___errno
cmp dword [eax], 4
jne 0x4019d0
mov dword [esp + 0xc], 2
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.cygwin1.dll_recv
cmp eax, 0xffffffff
je 0x4019a0
jmp 0x40197b
add esp, 0x30
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
ret
Function at 0x4021c0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov esi, dword [esp + 0xd0]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [esi]
mov dword [esp + 0x28], 1
mov dword [esp], eax
call sub.cygwin1.dll_socket
test eax, eax
js 0x402380
mov ebx, eax
lea eax, [esp + 0x28]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
call sub.cygwin1.dll_setsockopt
test eax, eax
jne 0x402340
lea ebp, [esp + 0x30]
xor eax, eax
mov ecx, 0x20
mov edx, esi
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xd4]
mov ecx, dword [eax]
mov eax, ebp
call fcn.00401170
movzx edx, word [esp + 0x30]
mov eax, 0x10
cmp dx, 2
jne 0x402300
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call sub.cygwin1.dll_bind
test eax, eax
js 0x402390
mov eax, dword [esp + 0xd4]
mov eax, dword [eax]
test eax, eax
jne 0x4022d9
movzx edx, word [esp + 0x30]
mov eax, 0x10
cmp dx, 2
jne 0x402318
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], ebx
call sub.cygwin1.dll_getsockname
test eax, eax
js 0x402390
movzx eax, word [esp + 0x30]
cmp ax, 2
jne 0x402330
mov edi, dword [esp + 0xd4]
movzx eax, word [esp + 0x32]
xchg ah, al
movzx eax, ax
mov dword [edi], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.cygwin1.dll_listen
test eax, eax
js 0x402390
add esp, 0xbc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dx, 0x17
jne 0x44c619
mov eax, 0x1c
jmp 0x402262
cmp dx, 0x17
jne 0x44c619
mov eax, 0x1c
jmp 0x40229b
cmp ax, 0x17
je 0x4022c6
jmp 0x44c619
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp], str.setsockopt_SO_REUSEADDR_failed:__s_n
mov ebp, eax
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
mov dword [esp], 1
call fcn.0041d940
jmp 0x40222d
mov ebx, 0xffffffff
jmp 0x4022f1
mov dword [esp], ebx
mov ebx, 0xffffffff
call fcn.00401b40
jmp 0x4022f1