Function at 0x10002640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
push 0xc00
mov dword [ebp - 8], 0xc00
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, 0xc
mov esi, str.netstat_nProto_tLocal_address_tRemote_address_tState_n
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x48], str.CLOSED
mov dword [ebp - 0x44], str.LISTEN
mov dword [ebp - 0x40], str.SYN_SENT
mov dword [ebp - 0x3c], str.SYN_RCVD
mov dword [ebp - 0x38], str.ESTAB
mov dword [ebp - 0x34], str.FIN_WAIT1
mov dword [ebp - 0x30], str.FIN_WAIT2
mov dword [ebp - 0x2c], str.CLOSE_WAIT
mov dword [ebp - 0x28], str.CLOSING
mov dword [ebp - 0x24], str.LAST_ACK
mov dword [ebp - 0x20], str.TIME_WAIT
mov dword [ebp - 0x1c], str.DELETE_TCB
movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x100028c8
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetTcpTable]
push 1
lea eax, [ebp - 8]
push eax
push ebx
call edi
mov esi, dword [sym.imp.MSVCRT.dll_free]
cmp eax, 0x7a
jne 0x10002712
push ebx
call esi
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100028c8
push 1
lea edx, [ebp - 8]
push edx
push eax
call edi
mov ebx, dword [ebp - 0x10]
test eax, eax
je 0x10002725
push ebx
call esi
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x7c]
lea edx, [eax + 1]
jmp 0x10002730
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002730
sub eax, edx
mov ecx, eax
mov eax, dword [ebx]
inc eax
imul eax, eax, 0x64
add eax, ecx
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
test edi, edi
je 0x10002716
lea eax, [ebp - 0x7c]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10002762
cmp dword [ebx], 0
mov dword [ebp - 0x14], 0
jle 0x1000287b
lea esi, [ebx + 0x10]
nop
mov edx, dword [esi - 8]
push 0x14
mov dword [ebp - 0xc], edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10002860
movzx eax, byte [ebp - 9]
movzx ecx, byte [ebp - 0xa]
push eax
mov eax, dword [ebp - 0xc]
push ecx
movzx edx, ah
push edx
movzx eax, al
push eax
push str._d._d._d._d
push 0x14
push ebx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, dword [esi]
push 0x14
mov dword [ebp - 0xc], ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 0x20
test edi, edi
je 0x100028d1
movzx edx, byte [ebp - 9]
movzx eax, byte [ebp - 0xa]
push edx
push eax
mov eax, dword [ebp - 0xc]
movzx ecx, ah
push ecx
movzx edx, al
push edx
push str._d._d._d._d
push 0x14
push edi
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [ebp - 4]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002804
sub eax, edx
movzx edx, word [esi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [esi - 0xc]
mov ecx, dword [ebp + eax*4 - 0x4c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [esi - 4]
movzx eax, ax
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 4]
movzx edx, ax
mov eax, dword [ebp - 0x18]
push edx
push ebx
push str.TCP_t_s:_d_t_s:_d_t_s_n
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_free]
call ebx
push edi
call ebx
add esp, 0x28
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
inc eax
add esi, 0x14
mov dword [ebp - 0x14], eax
cmp eax, dword [ecx]
jl 0x10002780
mov esi, dword [sym.imp.MSVCRT.dll_free]
lea eax, [edi - 1]
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10002880
mov dx, word [0x1001b8f4]
mov word [eax], dx
mov cl, byte [0x1001b8f6]
mov byte [eax + 2], cl
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100028a0
sub eax, edx
push 0
lea edx, [ebp - 0x18]
push edx
push eax
mov eax, dword [ebp + 8]
push edi
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call esi
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x1000285d