Function at 0x401000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Execute command
Get session user name
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x6e8
lea ebx, [esp + 0x6c]
push ebx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp eax, 0xffffffff
jne 0x40103a
push 0x404288
call fcn.00401ca0
add esp, 4
mov dword [esp + 0x70], 0x5775713e
mov word [esp + 0x6c], 2
push 0x5e9f
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x6e], ax
push 0x10
push ebx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40107a
push str.Failed_connect_to_server
call fcn.00401ca0
add esp, 4
mov edi, 0xffffffff
mov dword [esp + 0x6c], 0x104
lea esi, [esp + 0x4e0]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x4010a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_G_UN__X
call fcn.00401ca0
add esp, 8
call fcn.00401d40
mov ebp, eax
push esi
push eax
push edi
call fcn.00401330
add esp, 0xc
push 0x1e
push ebx
push edi
call fcn.00401460
add esp, 0xc
mov ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push str._NetUnit_Launcher
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
add esp, 4
push ebp
push str.__:__lu_n
call fcn.004015a0
add esp, 8
push 0x404430
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
add esp, 4
test ebx, ebx
je 0x401144
lea esi, [esp + 0x80]
nop word cs:[eax + eax]
push 0
push 0xe10
push dword [esi - 4]
push dword [esi - 8]
call fcn.00402670
push eax
push esi
push str.___s_____d
call fcn.004015a0
add esp, 0xc
push str.
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
add esp, 4
add esi, 0x26
dec ebx
jne 0x401110
push 0x404430
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
add esp, 4
push str.________:
call fcn.004015a0
add esp, 4
xorps xmm0, xmm0
movups xmmword [esp + 0x5c], xmm0
movups xmmword [esp + 0x4c], xmm0
movups xmmword [esp + 0x3c], xmm0
movups xmmword [esp + 0x2c], xmm0
lea ebx, [esp + 0x2c]
push ebx
push 0x404264
call fcn.004015e0
add esp, 8
cmp byte [esp + 0x2c], 0
je 0x4011bd
xor esi, esi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
nop word cs:[eax + eax]
movsx eax, byte [esp + esi + 0x2c]
push eax
call edi
add esp, 4
mov byte [esp + esi + 0x2c], al
inc esi
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp esi, eax
jne 0x4011a0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp eax, 0xffffffff
jne 0x4011dd
push 0x404288
call fcn.00401ca0
add esp, 4
mov dword [esp + 0x14], 0x5775713e
mov word [esp + 0x10], 2
push 0x5e9f
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
lea esi, [esp + 0x4e0]
jne 0x401228
push str.Failed_connect_to_server
call fcn.00401ca0
add esp, 4
mov edi, 0xffffffff
push esi
mov dword [esp + 0x10], ebp
push ebp
push edi
call fcn.00401330
add esp, 0xc
mov dword [esp + 0x10], 0x1a
mov dword [esp + 0x14], 3
lea eax, [esp + 0x18]
push ebx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
xor esi, esi
mov ebp, dword [sym.imp.WS2_32.dll_send]
jmp 0x401275
mov eax, str.Failed_send_packet
push eax
call fcn.00401ca0
add esp, 4
add esi, ebx
cmp esi, 0x1a
je 0x40129b
mov eax, 0x1a
sub eax, esi
lea ecx, [esp + esi]
add ecx, 0x10
push 0
push eax
push ecx
push edi
call ebp
mov ebx, eax
cmp eax, 0xffffffff
je 0x401260
test ebx, ebx
jne 0x40126e
mov eax, str.Sending_error
jmp 0x401265
mov eax, esp
push dword [esp + 0xc]
push 0xa
lea esi, [esp + 0x34]
push esi
push edi
push eax
call fcn.00401620
add esp, 0x14
push dword [esp + 8]
push str.size:__d_n
call fcn.004015a0
add esp, 8
mov dword [esp + 0x10], edi
lea eax, [esp + 0x14]
push esi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
lea eax, [esp + 0x10]
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00401830
add esp, 0xc
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [esp + 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 0x6ec
pop esi
pop edi
pop ebx
pop ebp
ret