Function at 0x10031b1a
Capabilities:
Get hostname
Resolve dns

Disassembly:
adc eax, sym.imp.KERNEL32.dll_GetProcAddress
mov dword [0x100c57f0], eax
push str.pcap_sendpacket
mov edx, dword [0x100c57c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100c57f4], eax
cmp dword [0x100c57f0], 0
je 0x10031b95
cmp dword [0x100c57e8], 0
je 0x10031b95
cmp dword [0x100c57ec], 0
je 0x10031b95
cmp dword [0x100c57dc], 0
je 0x10031b95
cmp dword [0x100c57d8], 0
je 0x10031b95
cmp dword [0x100c57d4], 0
je 0x10031b95
cmp dword [0x100c57d0], 0
je 0x10031b95
cmp dword [0x100c57cc], 0
je 0x10031b95
cmp dword [0x100c57f4], 0
je 0x10031b95
cmp dword [0x100c57e0], 0
jne 0x10031ba9
push str.GetProc
push 4
call fcn.1006ac00
add esp, 8
jmp 0x10031de5
lea eax, [ebp - 0x194]
push eax
push 0x100c57f8
call dword [0x100c57cc]
add esp, 8
cmp eax, 0xffffffff
jne 0x10031bd7
push str.Found_Device
push 4
call fcn.1006ac00
add esp, 8
jmp 0x10031de5
mov dword [ebp - 0x2d4], 0x100f0860
mov ecx, dword [ebp - 0x2d4]
inc ecx
mov dword [ebp - 0x2d8], ecx
mov edx, dword [ebp - 0x2d4]
mov al, byte [edx]
mov byte [ebp - 0x2d9], al
inc dword [ebp - 0x2d4]
cmp byte [ebp - 0x2d9], 0
jne 0x10031bee
mov ecx, dword [ebp - 0x2d4]
sub ecx, dword [ebp - 0x2d8]
mov dword [ebp - 0x2e0], ecx
je 0x10031c2e
push 0x100f0860
lea ecx, [ebp - 0x14]
call fcn.10002fd0
jmp 0x10031c84
mov ecx, 0x20
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
push 0x80
lea edx, [ebp - 0x94]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10031c6a
jmp 0x10031de5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x14]
call fcn.10002fd0
je 0x10031c91
jne 0x10031c91
call 0x67fb3220
or al, 0x10
mov edx, dword [0x100c57f8]
mov dword [0x100c57fc], edx
jmp 0x10031cac
mov eax, dword [0x100c57fc]
mov ecx, dword [eax]
mov dword [0x100c57fc], ecx
cmp dword [0x100c57fc], 0
je 0x10031d7e
mov byte [ebp - 0x2a1], 0
mov edx, dword [0x100c57fc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x2a0], eax
jmp 0x10031cdf
mov ecx, dword [ebp - 0x2a0]
mov edx, dword [ecx]
mov dword [ebp - 0x2a0], edx
cmp dword [ebp - 0x2a0], 0
je 0x10031d6c
mov eax, dword [ebp - 0x2a0]
cmp dword [eax + 4], 0
je 0x10031d67
lea ecx, [ebp - 0x2a8]
call fcn.10001ff0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2a0]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.10002fd0
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.10011620
add esp, 8
movzx eax, al
test eax, eax
je 0x10031d58
mov byte [ebp - 0x2a1], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a8]
call fcn.10002010
jmp 0x10031d6c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a8]
call fcn.10002010
jmp 0x10031cd1
movzx ecx, byte [ebp - 0x2a1]
test ecx, ecx
je 0x10031d79
jmp 0x10031d7e
jmp 0x10031c9f
cmp dword [0x100c57fc], 0
jne 0x10031d98
push str.compare
push 4
call fcn.1006ac00
add esp, 8
jmp 0x10031de5
mov byte [0x100c5800], 1
mov byte [0x1010e395], 1
mov edx, dword [0x100dead0]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push str.Init_cap_succ
push 4
call fcn.1006ac00
add esp, 8
invalid
or dword [esi], eax