Function at 0x401250
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4140b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push edi
lea ecx, [esp + 0xc]
call fcn.0040df67
xor ebx, ebx
lea ecx, [esp + 0xc]
push ebx
push 0x1001
push str.c:_netport.bat
mov dword [esp + 0xcc], ebx
call fcn.0040e079
test eax, eax
je 0x401562
push str.netstat__an__c:_sunport.txt
lea ecx, [esp + 0xc]
call fcn.0040ecb8
mov eax, dword [esp + 8]
mov byte [esp + 0xc0], 1
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.0040e1d0
lea ecx, [esp + 0xc]
call fcn.0040e294
lea eax, [esp + 0x34]
lea ecx, [esp + 0x48]
push eax
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.c:_netport.bat
push ebx
mov dword [esp + 0x70], 0x44
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x9c], 1
mov word [esp + 0xa0], bx
mov word [esp + 0xa2], bx
mov dword [esp + 0xa4], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
je 0x401548
mov edx, dword [esp + 0x38]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x38]
or edi, 0xffffffff
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x38]
push eax
call esi
push 0x41cc40
lea ecx, [esp + 0x10]
call fcn.0040ed37
lea ecx, [esp + 0x20]
call fcn.0040e5af
push ebx
push ebx
push str.c:_sunport.txt
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd0], 2
call fcn.0040e624
test eax, eax
pop esi
jne 0x4013a0
push str.can_open
call fcn.0040266a
add esp, 4
jmp 0x4014a7
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x20]
call fcn.0040e807
test eax, eax
je 0x401494
mov edx, dword [esp + 8]
cmp dword [edx - 8], 3
jle 0x401470
push 0x419128
lea ecx, [esp + 0xc]
call fcn.0040da1c
test eax, eax
je 0x40145e
lea ecx, [esp + 8]
call fcn.0040da55
mov edx, dword [esp + 8]
lea eax, [esp + 0x98]
lea ecx, [esp + 0x8c]
push eax
push ecx
push 0x419120
push edx
call fcn.0040275a
add esp, 0x10
lea eax, [esp + 0x98]
lea ecx, [esp + 8]
push eax
call fcn.0040ed37
push 0x3a
lea ecx, [esp + 0xc]
call fcn.0040d9fa
mov ecx, dword [esp + 8]
lea edx, [esp + 0x30]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push edx
lea ecx, [esp + 0x10]
call fcn.0040d97e
lea ecx, [esp + 0x30]
call fcn.0040ec4a
mov eax, dword [esp + 8]
push str.3389
push eax
call fcn.004026ab
add esp, 8
test eax, eax
je 0x4014de
jmp 0x401470
push 0x419114
lea ecx, [esp + 0xc]
call fcn.0040da1c
test eax, eax
jne 0x401494
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x20]
call fcn.0040e807
lea edx, [esp + 8]
lea ecx, [esp + 0x1c]
push edx
call fcn.0040e807
test eax, eax
jne 0x4013b6
lea ecx, [esp + 0x1c]
call fcn.0040e954
push str.c:_netport.bat
call fcn.0040e3a5
push str.c:_sunport.txt
call fcn.0040e3a5
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc0], 1
call fcn.0040e5e1
lea ecx, [esp + 8]
mov byte [esp + 0xc0], bl
call fcn.0040ec4a
mov dword [esp + 0xc0], edi
jmp 0x40156d
lea ecx, [esp + 0x1c]
call fcn.0040e954
push str.c:_netport.bat
call fcn.0040e3a5
push str.c:_sunport.txt
call fcn.0040e3a5
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc0], 1
call fcn.0040e5e1
lea ecx, [esp + 8]
mov byte [esp + 0xc0], bl
call fcn.0040ec4a
lea ecx, [esp + 0xc]
mov dword [esp + 0xc0], edi
call fcn.0040dfbc
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
add esp, 0xbc
ret
push str.c:_netport.bat
call fcn.0040e3a5
lea ecx, [esp + 8]
mov byte [esp + 0xc0], bl
call fcn.0040ec4a
mov dword [esp + 0xc0], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0040dfbc
mov ecx, dword [esp + 0xb8]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xbc
ret