Function at 0x401e50
Capabilities:
Get hostname
Resolve dns
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x2a4], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x2ac], ecx
lea ecx, [ebp - 0x284]
push ecx
push 0x1f4
push 1
push 0x10000
push eax
mov dword [ebp - 0x2a8], edx
mov dword [ebp - 0x28c], ebx
call dword [sym.imp.wpcap.dll_pcap_open_live]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x401ebe
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404657
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebx + 5]
push eax
movzx eax, byte [ebx + 4]
push eax
movzx eax, byte [ebx + 3]
push eax
movzx eax, byte [ebx + 2]
push eax
movzx eax, byte [ebx + 1]
push eax
movzx eax, byte [ebx]
push eax
push str._ether_proto_0x888e__and__ether_dst_host__02x:_02x:_02x:_02x:_02x:_02x_
lea eax, [ebp - 0x84]
push 0x64
push eax
call fcn.00404ff4
add esp, 0x24
lea eax, [ebp - 0x84]
push 0xff
push 1
push eax
lea eax, [ebp - 0x2bc]
push eax
push edi
call dword [sym.imp.wpcap.dll_pcap_compile]
add esp, 0x14
lea eax, [ebp - 0x2bc]
push eax
push edi
call dword [sym.imp.wpcap.dll_pcap_setfilter]
mov eax, dword [0x413f88]
mov dword [ebp - 0x1c], eax
movzx eax, word [0x413f8c]
mov word [ebp - 0x18], ax
mov eax, dword [ebx]
mov dword [ebp - 0x16], eax
movzx eax, word [ebx + 4]
mov word [ebp - 0x12], ax
push 0x12
lea eax, [ebp - 0x1c]
push eax
mov dword [0x417de4], ebx
mov ebx, dword [sym.imp.wpcap.dll_pcap_sendpacket]
xorps xmm0, xmm0
push edi
mov dword [0x417de0], edi
mov dword [ebp - 0x2b4], 0
mov byte [ebp - 0x2a0], 0
movq qword [ebp - 0x29f], xmm0
mov dword [ebp - 0x297], 0
mov byte [ebp - 0x293], 0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x10], 0x1018e88
mov word [ebp - 0xc], 0
call ebx
mov eax, dword [0x413f60]
mov dword [ebp - 0x1c], eax
movzx eax, word [0x413f64]
add esp, 0x14
mov word [ebp - 0x18], ax
push 0x12
lea eax, [ebp - 0x1c]
push eax
push edi
call ebx
mov ebx, dword [sym.imp.wpcap.dll_pcap_next_ex]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x2b0], 0
add esp, 0xc
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push edi
call ebx
add esp, 0xc
cmp eax, 1
jne 0x402007
mov ecx, dword [ebp - 0x288]
cmp byte [ecx + 0x12], al
je 0x40208b
mov ecx, dword [ebp - 0x2b0]
mov eax, ecx
inc ecx
mov dword [ebp - 0x2b0], ecx
cmp eax, 0x32
jge 0x4023da
push 0xa
call esi
mov eax, dword [0x413f88]
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x1c], eax
movzx eax, word [0x413f8c]
mov word [ebp - 0x18], ax
mov eax, dword [ecx]
mov dword [ebp - 0x16], eax
movzx eax, word [ecx + 4]
mov word [ebp - 0x12], ax
push 0x12
lea eax, [ebp - 0x1c]
push eax
push edi
mov dword [ebp - 0x10], 0x1018e88
mov word [ebp - 0xc], 0
call dword [sym.imp.wpcap.dll_pcap_sendpacket]
mov eax, dword [0x413f60]
mov dword [ebp - 0x1c], eax
movzx eax, word [0x413f64]
add esp, 0xc
mov word [ebp - 0x18], ax
push 0x12
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.wpcap.dll_pcap_sendpacket]
jmp 0x401fdc
mov eax, dword [ecx + 6]
mov edx, dword [ebp - 0x28c]
mov dword [ebp - 0x2a0], eax
movzx eax, word [ecx + 0xa]
mov word [ebp - 0x29c], ax
mov eax, dword [edx]
mov dword [ebp - 0x29a], eax
movzx eax, word [edx + 4]
mov word [ebp - 0x296], ax
movzx eax, byte [ecx + 0x16]
mov word [ebp - 0x294], 0x8e88
dec eax
je 0x4020d4
dec eax
je 0x4021ad
sub eax, 0x12
jne 0x40212e
push 0xff
lea eax, [ebp - 0x184]
push eax
mov byte [ecx + 0x16], 1
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
push dword [ebp - 0x2a4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x288]
mov eax, dword [eax]
mov dword [ebp - 0x28c], eax
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x2a0]
push eax
mov ecx, edi
call fcn.00401c60
mov ecx, dword [ebp - 0x288]
add esp, 0xc
movzx eax, byte [ecx + 0xb]
push eax
movzx eax, byte [ecx + 0xa]
push eax
movzx eax, byte [ecx + 9]
push eax
movzx eax, byte [ecx + 8]
push eax
movzx eax, byte [ecx + 7]
push eax
movzx eax, byte [ecx + 6]
push eax
push str._ether_proto_0x888e__and__ether_src_host__02x:_02x:_02x:_02x:_02x:_02x_
lea eax, [ebp - 0x84]
push 0x64
push eax
call fcn.00404ff4
add esp, 0x24
lea eax, [ebp - 0x84]
push 0xff
push 1
push eax
lea eax, [ebp - 0x2bc]
push eax
push edi
call dword [sym.imp.wpcap.dll_pcap_compile]
add esp, 0x14
lea eax, [ebp - 0x2bc]
push eax
push edi
call dword [sym.imp.wpcap.dll_pcap_setfilter]
add esp, 8
xor esi, esi
cmp dword [ebp - 0x2b4], esi
je 0x4021d6
mov ebx, 0x258
mov dword [ebp - 0x28c], 0x3e8
jmp 0x4021e5
lea eax, [ebp - 0x2a0]
mov edx, ecx
push eax
mov ecx, edi
call fcn.00401be0
add esp, 4
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push edi
call ebx
jmp 0x402125
mov ebx, 0x32
mov dword [ebp - 0x28c], 0xa
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.wpcap.dll_pcap_next_ex]
add esp, 0xc
cmp eax, 1
je 0x402236
mov eax, esi
inc esi
cmp eax, ebx
jge 0x402361
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.wpcap.dll_pcap_next_ex]
add esp, 0xc
cmp eax, 1
jne 0x402202
mov esi, dword [ebp - 0x288]
movzx eax, byte [esi + 0x12]
dec eax
je 0x4022b4
sub eax, 2
je 0x4022a0
dec eax
jne 0x402192
mov eax, dword [ebp - 0x2ac]
mov dword [eax], 0
mov bl, byte [esi + 0x16]
mov al, byte [esi + 0x17]
cmp bl, 9
jne 0x402394
test al, al
je 0x402394
movzx eax, al
mov dword [ebp - 0x2a8], eax
add eax, 2
push 1
push eax
call fcn.004048c0
mov ecx, eax
mov eax, dword [ebp - 0x2ac]
add esp, 8
mov dword [eax], ecx
test ecx, ecx
jne 0x402381
jmp 0x4023fa
mov dword [ebp - 0x2b4], 1
call fcn.00402b10
jmp 0x402192
movzx eax, byte [esi + 0x16]
dec eax
cmp eax, 0x13
ja case.0x4022c9.3
movzx eax, byte [eax + 0x402414]
jmp dword [eax*4 + 0x402404]
push 0xff
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
push dword [ebp - 0x2a4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x288]
mov eax, dword [eax]
mov dword [ebp - 0x28c], eax
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x2a0]
push eax
mov ecx, edi
call fcn.00401c60
add esp, 0xc
jmp 0x402192
push dword [ebp - 0x2a8]
lea eax, [ebp - 0x2a0]
push dword [ebp - 0x2a4]
mov edx, esi
push eax
mov ecx, edi
call fcn.00401d60
add esp, 0xc
jmp 0x402192
lea eax, [ebp - 0x2a0]
push eax
mov edx, esi
mov ecx, edi
call fcn.00401be0
add esp, 4
jmp 0x402192
push edi
call dword [sym.imp.wpcap.dll_pcap_close]
mov eax, 3
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404657
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x2a8]
lea eax, [esi + 0x18]
push eax
push ecx
call fcn.00406ea0
add esp, 0xc
push edi
call dword [sym.imp.wpcap.dll_pcap_close]
xor eax, eax
add esp, 4
cmp bl, 8
setne al
add eax, 5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404657
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.wpcap.dll_pcap_close]
mov eax, 4
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404657
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.wpcap.dll_pcap_close]
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
pop edi
pop esi
mov eax, 2
pop ebx
call fcn.00404657
mov esp, ebp
pop ebp
ret
push 0
call fcn.00404fe0
lea ecx, [ecx]
shl byte [edx], 1
inc eax
add byte [ecx + 0x23], cl
inc eax
add byte [0xba004023], ah
and eax, dword [eax]
add byte [ecx], al
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3