Function at 0x10003770
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100057f8
push 0x10003ee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 0x2c], eax
or ebx, 0xffffffff
mov dword [ebp - 0x24], ebx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], eax
mov byte [ebp - 0x1a0], al
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov cl, byte [ebp - 0x1a0]
cmp cl, byte [0x10006f3d]
jae 0x10003878
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x1000385e
mov word [ebp - 0x1cc], 0
xor edx, edx
mov dword [ebp - 0x1ca], edx
mov dword [ebp - 0x1c6], edx
mov dword [ebp - 0x1c2], edx
mov word [ebp - 0x1be], dx
mov word [ebp - 0x1cc], 2
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push ecx
call esi
mov dword [ebp - 0x1c8], eax
mov edx, dword [ebp - 0x2c]
mov ax, word [edx + 4]
push eax
call edi
mov word [ebp - 0x1ca], ax
push 0x10
lea ecx, [ebp - 0x1cc]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10003871
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or ebx, 0xffffffff
mov dword [ebp - 0x24], ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc byte [ebp - 0x1a0]
jmp 0x100037c2
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10003a5e
mov dword [ebp - 0x19c], 0
mov ecx, 0x13
xor eax, eax
lea edi, [ebp - 0x198]
rep stosd dword es:[edi], eax
mov ecx, 0x10
mov esi, 0x10007058
lea edi, [ebp - 0x190]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x1000010
mov dword [ebp - 0x19c], esi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x198], eax
mov cx, word [0x1000702c]
mov word [ebp - 0x194], cx
mov edx, dword [0x10007030]
shr edx, 4
and edx, 1
mov word [ebp - 0x192], dx
lea eax, [ebp - 0x19c]
push eax
push ebx
call fcn.10001ea0
add esp, 8
test eax, eax
je 0x10003a5e
mov dword [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov byte [ebp - 0x14c], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x14b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xffffffffffffffff
push 0xc
lea edx, [ebp - 0x40]
push edx
push ebx
call fcn.10001e50
add esp, 0x10
test eax, eax
je 0x10003a5e
cmp dword [ebp - 0x3c], esi
jne 0x10003a5e
cmp dword [ebp - 0x40], esi
jne 0x10003a5e
push 0xffffffffffffffff
push 0x1c
lea eax, [ebp - 0x14c]
push eax
push ebx
call fcn.10001e50
add esp, 0x10
test eax, eax
je 0x10003a5e
mov dword [ebp - 0x1bc], 0
mov ecx, 7
lea esi, [ebp - 0x14c]
lea edi, [ebp - 0x1bc]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x10003a5e
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x10003a5e
add eax, 0x104
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
mov dword [ebp - 0x1d4], edi
mov dword [ebp - 0x48], edi
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1b0]
push ecx
push edi
push ebx
call fcn.10001e50
add esp, 0x14
test eax, eax
je 0x10003a5e
mov edx, dword [ebp - 0x1b4]
add edx, 0x104
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
je 0x10003a65
mov eax, dword [ebp - 0x1b0]
push eax
push edi
push esi
call fcn.100014a0
add esp, 0xc
mov ecx, dword [ebp - 0x1bc]
xor ecx, 0x19860527
mov dword [ebp - 0x1bc], ecx
xor eax, eax
mov dword [ebp - 0x1d0], eax
mov edx, dword [ebp - 0x1b4]
cmp eax, edx
jae 0x10003a30
xor byte [eax + esi], cl
inc eax
jmp 0x10003a1a
push edx
push esi
call fcn.10001180
add esp, 8
cmp word [ebp - 0x1b8], ax
je 0x10003a76
mov dword [ebp - 0x1d8], edi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [ebp - 0x1dc], esi
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
call fcn.10003ad8
jmp 0x10003b26
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], esi
mov eax, dword [ebp - 0x1ac]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 0x1a8]
test ecx, ecx
je 0x10003a9e
lea edx, [eax + esi]
mov dword [0x10006cdc], edx
mov dword [0x10006ce0], ecx
mov edx, dword [ebp - 0x1a4]
test edx, edx
je 0x10003ab8
add ecx, eax
add ecx, esi
mov dword [0x10006ce4], ecx
mov dword [0x10006ce8], edx
mov dword [ebp - 0x1e0], edi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0xffffffff
call fcn.10003ad8
jmp 0x10003b26
xor eax, eax
test esi, esi
sete al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4