joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101c09c
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 0x58], 0x44
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0101c009
mov edi, eax
cmp edi, ebx
jge 0x101c0ef
push 0x1002354
push 1
push edi
push 0x4000000
jmp 0x101c200
push dword [ebp - 4]
mov esi, 0x4000000
push 0x1002340
push ebx
push ebx
push esi
call fcn.0101e5b9
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x101c161
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jle 0x101c141
and edi, 0xffff
or edi, 0x80070000
cmp edi, ebx
jl 0x101c148
mov edi, 0x80004005
push dword [ebp - 4]
push 0x1002310
push 1
push edi
push esi
call fcn.0101e5b9
add esp, 0x14
jmp 0x101c208
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x101c1d6
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push dword [ebp - 0x14]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x101c1be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x101c1a4
and edi, 0xffff
or edi, 0x80070000
test edi, edi
jl 0x101c1ab
mov edi, 0x80004005
push 0x10022e4
push 1
push edi
push esi
call fcn.0101e5b9
add esp, 0x10
jmp 0x101c1d2
push dword [ebx]
push 0x10022cc
push 0
push 0
push esi
call fcn.0101e5b9
add esp, 0x14
xor ebx, ebx
jmp 0x101c208
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jle 0x101c1f0
and edi, 0xffff
or edi, 0x80070000
cmp edi, ebx
jl 0x101c1f7
mov edi, 0x80004005
push 0x10022a8
push 1
push edi
push esi
call fcn.0101e5b9
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x101c21e
cmp dword [ebp - 0x14], 0xffffffff
je 0x101c21e
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], ebx
je 0x101c22e
cmp dword [ebp - 0x10], 0xffffffff
je 0x101c22e
push dword [ebp - 0x10]
call esi
push dword [ebp - 4]
call fcn.0101db34
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x101ce59
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x102ce68
call fcn.0101d714
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x102e8ec
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x101cc6e
cmp eax, esi
jne 0x101cc61
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x101cc71
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101cc48
xor esi, esi
inc esi
mov eax, dword [0x102e8e8]
cmp eax, esi
jne 0x101cc84
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x101ccbf
mov eax, dword [0x102e8e8]
test eax, eax
jne 0x101ccb9
mov dword [0x102e8e8], esi
push 0x10011e0
push 0x10011d4
call fcn.0101cbc5
pop ecx
pop ecx
test eax, eax
je 0x101ccbf
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x101cd89
mov dword [0x102e428], esi
mov eax, dword [0x102e8e8]
cmp eax, esi
jne 0x101cce3
push 0x10011d0
push 0x10011c0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x102e8e8], 2
cmp dword [ebp - 0x1c], ebx
jne 0x101ccf0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x102e8fc], ebx
je 0x101cd11
push 0x102e8fc
call fcn.0101d689
pop ecx
test eax, eax
je 0x101cd11
push ebx
push 2
push ebx
call dword [0x102e8fc]
push dword [0x102e410]
push dword [0x102e414]
push dword [0x102e40c]
call fcn.0101c244
add esp, 0xc
mov dword [0x102e424], eax
cmp dword [0x102e418], ebx
jne 0x101cd6f
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x102e428], ebx
jne 0x101cd7d
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x102e424]
call fcn.0101d759
ret
call fcn.0101d837
jmp 0x101cc26

Function at 0x101e3fc
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x102e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push esi
push ecx
push eax
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.0101e385
test eax, eax
jl 0x101e477
cmp byte [ebp + 0xc], 0
je 0x101e46a
push dword [ebp + 8]
call fcn.0101e234
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
push 0x1002920
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0101e3c1
add esp, 0x18
test eax, eax
jl 0x101e477
lea eax, [ebp - 0x804]
jmp 0x101e470
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0101ce8b
leave
ret 0x10
Function at 0x101e48b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x102e070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.0101e385
test eax, eax
jl 0x101e505
cmp byte [ebp + 0xc], 0
je 0x101e4f8
push dword [ebp + 8]
call fcn.0101e234
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
push 0x1002920
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0101e3c1
add esp, 0x18
test eax, eax
jl 0x101e505
lea eax, [ebp - 0x804]
jmp 0x101e4fe
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0101ce8b
leave
ret
Function at 0x101e6bc
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4b8
mov eax, dword [0x102e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, 0x24c
push esi
lea eax, [ebp - 0x250]
push edi
push eax
mov dword [ebp - 0x4b8], ebx
mov dword [ebp - 0x4b0], edi
mov dword [ebp - 0x4ac], edi
mov dword [ebp - 0x254], edi
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x4a0]
push edi
push eax
mov dword [ebp - 0x4a4], edi
call sub.msvcrt.dll_memset
add esp, 0x18
push ebx
lea eax, [ebp - 0x4b0]
push eax
call fcn.0101e123
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jge 0x101e74d
push ebx
push 0x1002bf8
push 1
push eax
push 0x4000000
call fcn.0101e5b9
add esp, 0x14
jmp 0x101e8cf
push 0x1002bd8
lea eax, [ebp - 0x4b0]
push eax
call fcn.0101de63
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jge 0x101e782
push 0x1002b98
push 1
push eax
push 0x4000000
call fcn.0101e5b9
add esp, 0x10
jmp 0x101e8cf
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x4b0]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4b4], eax
cmp eax, 0xffffffff
je 0x101e8cf
test byte [ebp - 0x254], 0x10
jne 0x101e7e1
cmp ebx, edi
je 0x101e7cb
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x101e7e0
mov ecx, 0x94
lea esi, [ebp - 0x254]
lea edi, [ebp - 0x4a4]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
inc ebx
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x4b4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101e7a6
cmp ebx, 5
jbe 0x101e8c3
lea eax, [ebp - 0x478]
push eax
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x4ac]
push 0x1002b8c
push eax
call fcn.0101e219
add esp, 0x10
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jl 0x101e86d
push dword [ebp - 0x4ac]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x101e877
push dword [ebp - 0x4b4]
dec ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x4ac], edi
je 0x101e862
push dword [ebp - 0x4ac]
call fcn.0101db34
mov dword [ebp - 0x4ac], edi
cmp ebx, 5
ja 0x101e782
jmp 0x101e8cf
push 0x1002b58
push 1
push eax
jmp 0x101e8b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 0x4a8], eax
jle 0x101e897
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], edi
jl 0x101e8a9
mov dword [ebp - 0x4a8], 0x80004005
push 0x1002b30
push 1
push dword [ebp - 0x4a8]
push 0x4000000
call fcn.0101e5b9
add esp, 0x10
push dword [ebp - 0x4b4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x4b0], edi
je 0x101e8e2
push dword [ebp - 0x4b0]
call fcn.0101db34
cmp dword [ebp - 0x4ac], edi
pop edi
pop esi
pop ebx
je 0x101e8f8
push dword [ebp - 0x4ac]
call fcn.0101db34
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4a8]
xor ecx, ebp
call fcn.0101ce8b
leave
ret 4
Function at 0x102c83e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
cmp dword [ebp + 0xc], edi
je 0x102c8b2
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test byte [ebp + 0x10], 1
je 0x102c898
cmp eax, 2
je 0x102c883
cmp eax, 3
jne 0x102c898
cmp eax, edi
jle 0x102c891
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x102c942
cmp eax, edi
je 0x102c8b8
jle 0x102c8a8
and eax, 0xffff
or eax, 0x80070000
push dword [ebp + 0xc]
push 0x1019864
jmp 0x102c902
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test byte [ebp + 0x10], 1
je 0x102c8ea
cmp eax, 2
jne 0x102c8ea
mov ebx, 0x80070002
jmp 0x102c942
cmp eax, edi
je 0x102c916
jle 0x102c8fa
and eax, 0xffff
or eax, 0x80070000
push dword [ebp + 0x14]
push 0x1019894
mov ebx, eax
push 1
push ebx
push 0x4000000
call fcn.0101e5b9
add esp, 0x14
jmp 0x102c942
cmp dword [ebp - 0xc], 4
je 0x102c93a
push 0x10199e0
mov eax, 0x8007000d
push 1
push eax
push 0x4000000
mov ebx, eax
call fcn.0101e5b9
add esp, 0x10
jmp 0x102c942
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp + 0xc], edi
je 0x102c955
cmp dword [ebp - 4], edi
je 0x102c955
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret 0x14

Function at 0x102c962
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102c97e
test al, 0x10
jne 0x102c97e
xor eax, eax
inc eax
jmp 0x102c980
xor eax, eax
pop ebp
ret 4
Function at 0x102cb61
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov dword [ebp - 0x210], eax
xor esi, esi
call ebx
test eax, eax
jne 0x102cc4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x102cc4d
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x102cbc6
push edi
mov esi, 0x80070003
push 0x1019ad4
jmp 0x102cc0f
sub eax, edi
sar eax, 1
push eax
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0102ca12
mov esi, eax
test esi, esi
jge 0x102cbeb
push edi
push 0x1019ab0
jmp 0x102cc0f
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.0102cb61
mov esi, eax
test esi, esi
jge 0x102cc21
lea eax, [ebp - 0x20c]
push eax
push 0x1019a94
push 1
push esi
push 0x4000000
call fcn.0101e5b9
add esp, 0x14
jmp 0x102cc4f
push dword [ebp - 0x210]
push edi
call ebx
test eax, eax
jne 0x102cc4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x102cc4d
test eax, eax
jle 0x102cc49
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x102cc4f
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101ce8b
leave
ret 8

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401450
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
mov eax, dword [edx + 0x40]
test al, 2
jne 0x401480
test ah, 8
jne 0x401486
mov eax, dword [ebx + 4]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00407450
mov edx, dword [ebx]
test byte [edx + 0x41], 8
je 0x4014a0
nop
add esp, 0x14
pop ebx
pop ebp
ret
mov eax, dword [ebx + 4]
mov dword [esp], edx
add eax, 0xc
mov dword [esp + 4], eax
call fcn.00407450
mov edx, dword [ebx]
test byte [edx + 0x41], 8
jne 0x401480
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, 0x18
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_send
test eax, eax
jns 0x401480
mov dword [esp], 0x40f114
mov ebx, 0x168
mov ecx, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_Client.cpp
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call fcn.004095f0
jmp 0x401480
Function at 0x4014f0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esp], eax
call fcn.00407700
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
shr eax, 0xb
and al, 1
cmp al, 1
sbb ebx, ebx
lea eax, [edx + 0x78]
add ebx, 2
mov dword [esp], eax
call fcn.00407810
mov esi, dword [edi]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 2
call sub.cygwin1.dll_socket
mov dword [esi + 0x2c], eax
mov edx, dword [edi]
cmp dword [edx + 0x2c], 0xffffffff
je 0x401627
mov dword [esp], edx
call fcn.004037d0
mov eax, dword [edi]
mov dword [esp], eax
call fcn.00407690
mov edx, dword [edi]
mov ecx, dword [edx + 8]
test ecx, ecx
jne 0x4015d1
lea eax, [edx + 0x78]
mov dword [esp], eax
call fcn.00407800
mov dword [esp + 8], eax
mov edx, dword [edi]
lea eax, [edx + 0x78]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_connect
inc eax
je 0x401604
mov edx, dword [edi]
lea eax, [edx + 0x9c]
mov dword [esp + 8], eax
lea eax, [edx + 0x8c]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_getsockname
mov edx, dword [edi]
lea eax, [edx + 0x88]
mov dword [esp + 8], eax
lea eax, [edx + 0x78]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_getpeername
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [edx + 0x8c]
mov dword [esp], eax
call fcn.00407800
mov dword [esp + 8], eax
mov edx, dword [edi]
lea eax, [edx + 0x8c]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_bind
inc eax
je 0x40164c
mov edx, dword [edi]
jmp 0x401564
mov dword [esp], str.connect
mov eax, 0x196
mov dword [esp + 8], eax
mov eax, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_Client.cpp
mov dword [esp + 4], eax
call fcn.004095f0
jmp 0x40158a
mov dword [esp], 0x40f123
mov esi, 0x186
mov ebx, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_Client.cpp
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
call fcn.004095f0
mov edx, dword [edi]
jmp 0x401549
mov dword [esp], 0x40f12a
mov eax, 0x190
mov dword [esp + 8], eax
mov eax, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_Client.cpp
mov dword [esp + 4], eax
call fcn.004095f0
mov edx, dword [edi]
jmp 0x401564
Function at 0x4019a0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x18]
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], 0
inc dword [ebp - 0x24]
mov edx, dword [edi]
mov eax, dword [edx + 0x34]
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_write
mov edx, esi
mov eax, 7
nop
lea esi, [esi]
mov byte [edx], 0
inc edx
dec eax
jns 0x4019e0
mov ebx, dword [edi]
mov eax, 1
mov ecx, dword [ebx + 0x2c]
mov edx, ecx
and ecx, 0x1f
shr edx, 5
shl eax, cl
or dword [esi + edx*4], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x3d090
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x2c]
inc eax
mov dword [esp], eax
call sub.cygwin1.dll_select
cmp eax, 0xffffffff
je 0x401a73
test eax, eax
jne 0x401a9b
cmp dword [ebp - 0x24], 9
jle 0x4019b6
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x24]
mov ebx, str.__3d__WARNING:_did_not_receive_ack_of_last_datagram_after__d_tries._n
mov dword [esp + 0xc], edx
mov edx, dword [edi]
mov edx, dword [edx + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x40f12f
mov eax, 0x1b7
mov dword [esp + 8], eax
mov eax, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_Client.cpp
mov dword [esp + 4], eax
call fcn.004095f0
mov eax, dword [edi]
mov dword [esp], eax
call fcn.00409120
mov edx, dword [edi]
mov eax, dword [edx + 0x34]
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_read
test eax, eax
js 0x401ae3
cmp eax, 0x33
jg 0x401ac7
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 4]
add eax, 0xc
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call fcn.00404fb0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x40f136
mov eax, 0x1bf
mov esi, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_Client.cpp
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call fcn.004095f0
jmp 0x401a42
Function at 0x402050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, 0x40f14c
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll__fopen64
mov dword [ebx + 0x10], eax
test eax, eax
je 0x402081
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov ecx, 1
mov ebx, 0x1f
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp], str.Unable_to_open_the_file_stream_n
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov edx, 0x21
mov dword [esp + 8], edx
mov dword [esp], str.Will_use_the_default_data_stream_n
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call sub.cygwin1.dll_fwrite
add esp, 0x14
pop ebx
pop ebp
ret

Function at 0x402150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.00402120
xor edx, edx
test eax, eax
jne 0x402170
add esp, 0x14
mov eax, edx
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fread
add esp, 0x14
mov edx, eax
mov eax, edx
pop ebx
pop ebp
ret
Function at 0x402790
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esp], eax
call fcn.00407690
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x40]
shr eax, 0xb
and al, 1
cmp al, 1
sbb ebx, ebx
lea eax, [edx + 0x8c]
add ebx, 2
mov dword [esp], eax
call fcn.00407810
mov esi, dword [edi + 8]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 2
call sub.cygwin1.dll_socket
mov dword [esi + 0x2c], eax
mov edx, dword [edi + 8]
cmp dword [edx + 0x2c], 0xffffffff
je 0x4028a8
mov dword [esp], edx
mov ebx, 4
call fcn.004037d0
mov dword [ebp - 0x10], 1
mov ecx, 4
mov edx, 0xffff
mov dword [esp + 8], ecx
lea eax, [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_setsockopt
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x9c]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
add eax, 0x8c
mov dword [esp + 4], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_bind
inc eax
je 0x4028d0
mov edx, dword [edi + 8]
test byte [edx + 0x41], 8
je 0x402878
lea eax, [edx + 0x8c]
mov dword [esp], eax
call fcn.00407820
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 5
mov dword [esp + 4], eax
mov eax, dword [edx + 0x2c]
mov dword [esp], eax
call sub.cygwin1.dll_listen
inc eax
je 0x4028f3
mov edx, dword [edi + 8]
lea eax, [edx + 0x8c]
mov dword [esp], eax
call fcn.00407820
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.socket
mov eax, 0x13c
mov esi, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_Listener.cpp
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call fcn.004095f0
mov edx, dword [edi + 8]
jmp 0x4027f0
mov dword [esp], 0x40f1fe
mov eax, 0x150
mov dword [esp + 8], eax
mov eax, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_Listener.cpp
mov dword [esp + 4], eax
call fcn.004095f0
jmp 0x402859
mov dword [esp], str.listen
mov eax, 0x156
mov dword [esp + 8], eax
mov eax, str._home_Owner_build_iperf_cygport_iperf_2.0.4_1_src_iperf_2.0.4_src_Listener.cpp
mov dword [esp + 4], eax
call fcn.004095f0
mov edx, dword [edi + 8]
jmp 0x402892