joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424b0a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x460418]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x424b50
cmp word [ebx], dx
jne 0x424b50
or byte [eax + edi + 0x28], 4
jmp 0x424b55
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x424cb8
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x424c98
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x424b96
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x424bcc
cmp eax, edx
jae 0x424bda
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x424b71
jmp 0x424cb8
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424c93
cmp dword [ebp - 0x18], 0
je 0x424c93
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x460418]
test byte [eax + edi + 0x28], 0x48
je 0x424c69
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x424c2d
mov word [esi], cx
jmp 0x424c64
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x460418]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x460418]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x460418]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x424cb8
pop eax
cmp word [ebp - 4], ax
jne 0x424c79
cmp esi, ebx
jne 0x424c79
mov word [esi], ax
jmp 0x424cb5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00432448
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x424cb8
push 0xd
pop eax
jmp 0x424c74
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x460418]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x424cb2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x424cb8
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42a620
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a64d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a64d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42b6d6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x45147c
push str.FlsAlloc
push 0x1f
call fcn.0042bb89
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b70a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x42b710
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42b754
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4514a0
push str.FlsGetValue
push 0x21
call fcn.0042bb89
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b78b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42b793
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x4514b4
push str.FlsSetValue
push 0x22
call fcn.0042bb89
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b7cd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42f897
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45d010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042af0a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042af0a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x42f90e
cmp word [ecx], dx
je 0x42f90e
mov eax, dword [0x451e74]
push edi
dec eax
push eax
push 0x451d60
call fcn.0042fa87
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42f981
cmp word [eax], dx
je 0x42f981
mov eax, dword [edi]
test eax, eax
je 0x42f932
cmp word [eax], dx
je 0x42f932
lea eax, [ebp - 0x10]
push eax
call fcn.0042fae8
jmp 0x42f93b
lea eax, [ebp - 0x10]
push eax
call fcn.0042fde3
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42f9ab
mov eax, dword [0x451d5c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x451a50
call fcn.0042fa87
add esp, 0xc
test al, al
je 0x42f9ab
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x42f976
cmp word [eax], di
je 0x42f976
lea eax, [ebp - 0x10]
push eax
call fcn.0042fae8
pop ecx
jmp 0x42f9ad
lea eax, [ebp - 0x10]
push eax
call fcn.0042fde3
jmp 0x42f973
mov eax, dword [edi]
test eax, eax
je 0x42f998
cmp word [eax], dx
je 0x42f998
lea eax, [ebp - 0x10]
push eax
call fcn.0042ff25
pop ecx
jmp 0x42f9ab
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x42fa76
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00430017
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42fa76
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x42fa76
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x42fa76
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42fa03
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042b9cc
test ebx, ebx
je 0x42fa71
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042b9cc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42fa76
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42fa76
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00437313
add esp, 0x10
xor eax, eax
inc eax
jmp 0x42fa78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ab3
leave
ret
Function at 0x43011d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042af0a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43018c
cmp esi, dword [ebp - 4]
je 0x430187
cmp dword [ebp + 0xc], 0
je 0x430187
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x430164
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004301e6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43018e
xor eax, eax
inc eax
jmp 0x43018e
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x430535
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x45d010]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x430580
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004306ab
test al, al
jne 0x43057a
sub edx, 2
cmp edx, edi
jne 0x430560
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4305a2
lea eax, [edi + 2]
cmp edx, eax
je 0x4305a2
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00430481
add esp, 0x10
jmp 0x43069c
push esi
lea ecx, [ebp - 0x255]
call fcn.004306ab
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4305e5
push dword [ebp - 0x25c]
jmp 0x430592
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x430622
cmp word [ebp - 0x226], 0
je 0x430643
cmp word [ebp - 0x226], ax
jne 0x430622
cmp word [ebp - 0x224], 0
je 0x430643
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00430481
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43068f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4305fc
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x430677
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43069c
push 0x4306d0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00437480
add esp, 0x10
jmp 0x43066c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ab3
leave
ret
Function at 0x431846
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x431857
pop esi
ret
push ebx
push edi
push esi
call fcn.00431894
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040bf70
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43187f
push ebx
push esi
push edi
call fcn.00419720
add esp, 0xc
push 0
call fcn.0040fd20
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4318cb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004318d6
Function at 0x401770
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push edi
mov edi, dword [ebp + 0x1c]
push dword [ebp + 8]
mov dword [edi], 0
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4017ff
cmp word [ebx + 8], 2
push esi
jne 0x4017d2
cmp word [ebx + 0xa], 4
jne 0x4017d2
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4017d2
jmp 0x4017b0
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004016f0
mov dword [edi], eax
test eax, eax
je 0x4017f3
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x4017b0
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call dword [sym.imp.MSVCR120.dll_strncpy_s]
add esp, 0x10
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
pop esi
pop edi
mov eax, 8
pop ebx
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x40180f.11001
jmp dword [eax*4 + 0x401838]
pop edi
mov eax, 0x2af9
pop ebx
pop ebp
ret 0x18
pop edi
mov eax, 0x2afa
pop ebx
pop ebp
ret 0x18
pop edi
mov eax, 0x2afb
pop ebx
pop ebp
ret 0x18
Function at 0x401fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x66bf78]
xor eax, esp
mov dword [esp + 0x238], eax
cmp dword [0x690798], 0
push ebx
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x401af0
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x401d90
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.00401aa0
jne 0x402148
push 0x104
lea eax, [esp + 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40213e
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call dword [sym.imp.MSVCR120.dll_strcpy_s]
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call dword [sym.imp.MSVCR120.dll_strcat_s]
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x4020b1
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x402103
push edi
call esi
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call dword [sym.imp.MSVCR120.dll_strcpy_s]
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call dword [sym.imp.MSVCR120.dll_strcat_s]
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40213e
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x402103
push edi
call esi
jmp 0x40213e
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x402137
inc esi
cmp esi, 3
jl 0x402105
mov eax, dword [esp + 0x14]
mov dword [0x66bf94], eax
mov eax, dword [esp + 0x1c]
mov dword [0x66bf9c], eax
mov eax, dword [esp + 0x24]
mov dword [fcn.00401aa0], eax
jmp 0x40213e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x690798], 1
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x244]
pop edi
movzx eax, ax
pop esi
pop ebx
xor ecx, esp
mov eax, dword [eax*8 + 0x66bf94]
call fcn.004bb11e
mov esp, ebp
pop ebp
ret 4

Function at 0x402190
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.MSVCR120.dll___iob_func]
call esi
add eax, 0x20
push eax
call dword [sym.imp.MSVCR120.dll_fflush]
add esp, 4
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_vfprintf]
add esp, 0xc
push 0x4e1644
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
int3
Function at 0x407380
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x66bf78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x90], edx
push 0
push 2
mov dword [ebp - 0x94], esi
movzx eax, word [esi]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4074b6
mov ecx, 0x20
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
mov ax, word [ebp - 0x88]
cmp ax, 2
jne 0x4073f0
push 0x4d2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x86], ax
mov eax, 0x10
jmp 0x40740d
cmp ax, 0x17
jne 0x40745e
push 0x4d2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x86], ax
mov eax, 0x1c
push eax
lea eax, [ebp - 0x88]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x407479
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.004b63c0
push eax
push str.get_srcaddr
push str._s:_cant_connect_socket:__s
call fcn.004021e0
mov eax, dword [ebp - 0x94]
add esp, 0x10
cmp word [eax], 0x17
jne 0x40745e
cmp dword [ebp - 0x70], 0
jne 0x40745e
push str.Do_you_need_an_IPv6_zone_ID_suffix__e.g.___eth0_or___1__
call fcn.004021e0
add esp, 4
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
push dword [ebp - 0x90]
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4074d4
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.004b63c0
add esp, 4
push eax
push str.get_srcaddr
push str._s:_cant_create_socket:__s
call fcn.00402190
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.004b63c0
add esp, 4
push eax
push str.get_srcaddr
push str._s:_cant_getsockname:__s
call fcn.00402190
int3
Function at 0x407ae0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x10
push dword [ebp + 0x14]
mov edi, edx
push 0
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x407b80
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [0x690788]
inc ecx
mov dword [0x690788], ecx
cmp ecx, 0xa
jg 0x407b7d
push eax
call dword [sym.imp.MSVCR120.dll_strerror]
add esp, 4
push eax
push 0x10
push 0x80
push dword [ebp + 0x14]
call fcn.004b5fc0
add esp, 8
push eax
push esi
push edi
push str.send_ip_packet_sd
push str.sendto_in__s:_sendto__d__packet___d__0___s___d_____s
call fcn.004021e0
push 1
push esi
push dword [ebp + 8]
call fcn.004054f0
push eax
push str.Offending_packet:__s
call fcn.004021e0
add esp, 0x30
cmp dword [0x690788], 0xa
jne 0x407b7d
push 0xa
push str.Sendto
push str.Omitting_future__s_error_messages_now_that__d_have_been_shown.__Use__d2_if_you_really_want_to_see_them.
call fcn.004021e0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret
Function at 0x408270
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x66bf78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x190], eax
test edi, edi
jne 0x4082bc
push 0x1001
push str.netutil.cc
push str.device___NULL
call dword [sym.imp.MSVCR120.dll__wassert]
add esp, 0xc
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00407fe0
add esp, 0xc
test eax, eax
jne 0x4082ea
push 0x80
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.004b54d0
add esp, 0xc
push str.GlobalDnetPcapHangAvoidanceMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x188], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x194], eax
mov edi, edi
lea eax, [ebp - 0x184]
push eax
push dword [ebp - 0x190]
lea eax, [ebp - 0x84]
push dword [ebp - 0x18c]
push ebx
push eax
call dword [sym.imp.wpcap.dll_pcap_open_live]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4083b7
inc esi
cmp esi, 3
jae 0x4083a4
lea eax, [edi + 1]
test esi, esi
je 0x408356
mov ecx, esi
lea esp, [esp]
lea eax, [eax + eax*4]
dec ecx
jne 0x408350
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp - 0x190]
lea eax, [ebp - 0x84]
push dword [ebp - 0x18c]
push ebx
push eax
push str.pcap_open_live__s___d___d___d__FAILED._Reported_error:__s.__Will_wait__d_seconds_then_retry.
call fcn.004021e0
add esp, 0x1c
mov eax, 1
test esi, esi
je 0x408396
mov ecx, esi
lea ebx, [ebx]
lea eax, [eax + eax*4]
dec ecx
jne 0x408390
push eax
call fcn.004b66d0
add esp, 4
jmp 0x408310
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x194]
cmp eax, 0x80
je 0x4083c8
test eax, eax
jne 0x4083d7
mov esi, dword [ebp - 0x188]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4083dd
mov esi, dword [ebp - 0x188]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push edi
call dword [sym.imp.wpcap.dll_pcap_setmintocopy]
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
Function at 0x421b40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x66bf78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x814], ebx
mov dword [ebp - 0x808], 0
push dword [ebx]
call fcn.0042c120
push str.NMAP_ARGS
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 8
test eax, eax
je 0x421cb6
push eax
push str.nmap__s
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.004b54a0
add esp, 0x10
cmp eax, 0x800
jl 0x421bb3
push str.Warning:_NMAP_ARGS_variable_is_too_long__truncated
call fcn.00431e00
add esp, 4
push edi
mov edi, 1
mov dword [ebp - 0x810], edi
cmp dword [ebp + 8], edi
jle 0x421c62
mov ax, word [0x4e1e14]
mov edi, edi
lea edx, [ebp - 0x804]
lea esi, [edx + 1]
lea esp, [esp]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x421be0
mov ebx, dword [ebx + edi*4]
sub edx, esi
mov esi, ebx
lea edi, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x421bf1
sub esi, edi
lea ecx, [esi + 1]
add ecx, edx
cmp ecx, 0x800
jae 0x421c62
lea edi, [ebp - 0x804]
dec edi
mov edi, edi
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x421c10
mov word [edi], ax
mov esi, ebx
nop
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x421c20
lea edi, [ebp - 0x804]
sub ebx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x421c30
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [ebp - 0x814]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x810]
inc edi
mov dword [ebp - 0x810], edi
cmp edi, dword [ebp + 8]
jl 0x421bd0
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.004815b0
add esp, 8
mov dword [ebp - 0x80c], eax
pop edi
cmp eax, 1
jl 0x421d3c
push dword [ebp - 0x808]
push eax
call fcn.00425640
push dword [ebp - 0x808]
mov esi, eax
call fcn.00481780
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
cmp esi, 3
jne 0x421d22
mov ecx, dword [ebx + 4]
mov eax, str.__resume
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x421ce6
test dl, dl
je 0x421ce2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x421ce6
add eax, 2
add ecx, 2
test dl, dl
jne 0x421cc6
xor eax, eax
jmp 0x421ceb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x421d22
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x80c]
push eax
push dword [ebx + 8]
call fcn.00423f50
add esp, 0xc
cmp eax, 0xffffffff
je 0x421d46
push dword [ebp - 0x808]
mov byte [0x67dff4], 1
push dword [ebp - 0x80c]
jmp 0x421d24
push ebx
push esi
call fcn.00425640
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
pop ebx
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
push str.NMAP_ARGS_variable_could_not_be_parsed
call fcn.00431e30
push dword [ebx + 8]
push str.Cannot_resume_from__supposed__log_file__s
call fcn.00431e30
int3