Function at 0x405c4b
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
push 0x1c
call fcn.0040fadd
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
add ebx, 8
push ebx
push 0x109
call fcn.0040fadd
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x41b52e
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x101
rep stosb byte es:[edi], al
add ebx, 4
push ebx
push 0xa
call fcn.0040fadd
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x41b536
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosb byte es:[edi], al
stosb byte es:[edi], al
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x10
call fcn.0040fadd
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
add ebx, 0xc
push ebx
push 0x10
call fcn.0040fadd
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x41b3cf
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0
push 0x80000301
push 0
push 0
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xa04
call fcn.00411670
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
mov eax, dword [ebp - 8]
push eax
push 0x10f
call fcn.0040fadd
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 2
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_WSAStartup]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x405df4
push 6
call fcn.0040fae9
add esp, 4
push eax
mov ebx, dword [ebp - 0x24]
push ebx
mov edi, dword [ebp - 0x28]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.0040fd70
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x405e41
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x405e3f
imul eax, dword [edi]
jmp 0x405e34
mov ecx, eax
cmp ecx, 0x101
jle 0x405e4e
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x101
push ebx
push edi
push 1
mov eax, 2
call fcn.0040fd70
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x405e8c
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x405e8a
imul eax, dword [edi]
jmp 0x405e7f
mov ecx, eax
cmp ecx, 2
jle 0x405e96
mov ecx, 2
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 2
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], esp
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x405f0b
push 6
call fcn.0040fae9
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], esp
push 0x20c49b
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_listen]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x405f35
push 6
call fcn.0040fae9
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov word [ebx], 2
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esp
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ntohs]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x405f71
push 6
call fcn.0040fae9
add esp, 4
mov ebx, dword [ebp - 0x1c]
mov word [ebx], ax
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esp
push str.0.0.0.0
call dword [sym.imp.WS2_32.dll_inet_addr]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x405fa4
push 6
call fcn.0040fae9
add esp, 4
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
push 0x10
mov eax, dword [ebp - 0x14]
push eax
push 0x10
call fcn.0040fadd
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_bind]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x406021
push 6
call fcn.0040fae9
add esp, 4
push eax
mov ebx, dword [ebp - 0x20]
push ebx
mov edi, dword [ebp - 0x24]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.0040fd70
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x406078
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x406076
imul eax, dword [edi]
jmp 0x40606b
mov ecx, eax
cmp ecx, 8
jle 0x406082
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4060bc
push 6
call fcn.0040fae9
add esp, 4
mov dword [ebp - 0x1c], esp
call dword [sym.imp.WS2_32.dll_WSACleanup]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4060db
push 6
call fcn.0040fae9
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x4060ef
mov eax, 0
jmp 0x4060f9
mov eax, 1
jmp 0x4060f9
push eax
mov ebx, dword [ebp - 8]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040fae3
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040fae3
add esp, 4
pop ebx
call fcn.0040fae3
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040fae3
add esp, 4
pop ebx
call fcn.0040fae3
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4