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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0xc
call fcn.005fffc4
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, eax
mov esi, 0x763bf0
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
mov dword [ebp - 0x20], 0
push 8
call fcn.005fffc4
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
add ebx, 4
push ebx
push 0x30
call fcn.005fffc4
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x7849ff
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0xa
rep stosd dword es:[edi], eax
mov dword [ebp - 0x28], 0
push 0x10
call fcn.005fffc4
add esp, 4
mov dword [ebp - 0x2c], 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.005fffc4
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x77f41c
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 - 0x30], 0
mov dword [ebp - 0x34], 0
push dword [ebp + 8]
call fcn.0051d8fe
mov dword [ebp - 4], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x760459]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.004c58cd
push eax
call fcn.0051d8fe
mov dword [ebp - 8], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x7968e2]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.004c58cd
push eax
call fcn.0051d8fe
mov dword [ebp - 0xc], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x7655f2]
fstp qword [ebp - 0x44]
mov dword [ebp - 0x48], esp
push 2
fld qword [ebp - 0x44]
call fcn.004c58cd
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.kernel32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x48], esp
je 0x5fdcc8
push 6
call fcn.005fffca
add esp, 4
fild dword [ebp + 8]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x763c56]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.004c58cd
push eax
call fcn.0051d8fe
mov dword [ebp - 0x14], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x79d61c]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.004c58cd
push eax
call fcn.0051d8fe
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x1c]
call fcn.004c6a80
mov eax, 0
cmp eax, ecx
jl 0x5fdd2c
push 1
call fcn.005fffca
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x38]
mov dword [ebx], eax
mov dword [ebp - 0x38], esp
push 0
push 0xffffffff
push 0
mov ebx, dword [ebp - 0x1c]
call fcn.004c6a80
push ebx
push 1
call dword [sym.imp.ws2_32.dll_WSAWaitForMultipleEvents]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fdd78
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x5fe439
mov dword [ebp - 0x38], esp
mov eax, dword [ebp - 0x24]
push eax
push 0x2c
call fcn.005fffc4
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], eax
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, 0xa
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
pop ebx
add ebx, 4
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ws2_32.dll_WSAEnumNetworkEvents]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fdde5
push 6
call fcn.005fffca
add esp, 4
push eax
mov ebx, dword [ebp - 0x3c]
push ebx
mov edi, dword [ebp - 0x40]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 4
mov eax, 2
call fcn.006010d0
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 0x5fde26
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x5fde24
imul eax, dword [edi]
jmp 0x5fde19
mov ecx, eax
cmp ecx, 0xa
jle 0x5fde30
mov ecx, 0xa
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x28
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x5fe42f
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
cmp dword [ebx], 8
jne 0x5fe42a
mov dword [ebp - 0x38], esp
mov eax, 0x10
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 0x10
call fcn.005fffc4
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 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 - 4]
call dword [sym.imp.wsock32.dll_accept]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fdee3
push 6
call fcn.005fffca
add esp, 4
push eax
mov ebx, dword [ebp - 0x40]
push ebx
mov edi, dword [ebp - 0x44]
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.006010d0
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 0x5fdf3a
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x5fdf38
imul eax, dword [edi]
jmp 0x5fdf2d
mov ecx, eax
cmp ecx, 8
jle 0x5fdf44
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.005fffbe
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x5fe42a
mov dword [ebp - 0x38], esp
push 0x1c
push 0
call dword [sym.imp.kernel32.dll_LocalAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fdf8f
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x14], 0
jne 0x5fdfa1
jmp 0x5fe0d2
mov ebx, dword [ebp - 0x2c]
add ebx, 8
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esp
mov ebx, dword [ebp - 0x38]
push dword [ebx]
call dword [sym.imp.wsock32.dll_inet_ntoa]
nop
nop
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x5fdfce
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x2c]
add ebx, 4
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], esp
mov ebx, dword [ebp - 0x44]
mov ax, word [ebx]
push eax
call dword [sym.imp.wsock32.dll_ntohs]
nop
nop
nop
nop
cmp dword [ebp - 0x48], esp
je 0x5fe000
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], esp
push dword [ebp - 0xc]
call dword [sym.imp.wsock32.dll_inet_ntoa]
nop
nop
nop
nop
cmp dword [ebp - 0x50], esp
je 0x5fe025
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], esp
push dword [ebp - 0x10]
call dword [sym.imp.wsock32.dll_htons]
nop
nop
nop
nop
cmp dword [ebp - 0x58], esp
je 0x5fe04a
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x5c], eax
push 0
push 0
mov eax, dword [ebp - 0x5c]
cwde
push eax
push dword [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
cwde
push eax
push dword [ebp - 0x40]
push 0
push dword [ebp - 0x28]
push 1
push dword [ebp - 0x14]
call fcn.0059aee6
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x5fe0d2
mov dword [ebp - 0x38], esp
push dword [ebp - 0x28]
call dword [sym.imp.wsock32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fe0ab
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x38], esp
push dword [ebp - 0x30]
call dword [sym.imp.kernel32.dll_LocalFree]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fe0cd
push 6
call fcn.005fffca
add esp, 4
jmp 0x5fdd3c
mov dword [ebp - 0x38], 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 - 0x38], esp
je 0x5fe10f
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jle 0x5fe3e6
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov word [ebx], 2
mov ebx, dword [ebp - 0x2c]
add ebx, 8
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x38]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x2c]
add ebx, 4
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x38]
mov word [ebx], ax
mov dword [ebp - 0x38], esp
push 0x10
mov eax, dword [ebp - 0x2c]
push eax
push 0x10
call fcn.005fffc4
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 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 - 0x34]
call dword [sym.imp.wsock32.dll_connect]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fe1c5
push 6
call fcn.005fffca
add esp, 4
push eax
mov ebx, dword [ebp - 0x3c]
push ebx
mov edi, dword [ebp - 0x40]
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.006010d0
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 0x5fe21c
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x5fe21a
imul eax, dword [edi]
jmp 0x5fe20f
mov ecx, eax
cmp ecx, 8
jle 0x5fe226
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.005fffbe
add esp, 4
pop eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x5fe3c4
fild dword [ebp - 0x30]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x76044e]
fstp qword [ebp - 0x44]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x44]
call fcn.004c58cd
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 0x28]
push 3
mov ebx, 0x914
call fcn.00609920
add esp, 0x28
fild dword [ebp - 0x30]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x760459]
fstp qword [ebp - 0x44]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x44]
call fcn.004c58cd
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 0x34]
push 3
mov ebx, 0x914
call fcn.00609920
add esp, 0x28
fild dword [ebp - 0x30]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x7968e2]
fstp qword [ebp - 0x44]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x44]
call fcn.004c58cd
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 0x14]
push 3
mov ebx, 0x914
call fcn.00609920
add esp, 0x28
fild dword [ebp - 0x30]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x7655f2]
fstp qword [ebp - 0x44]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x44]
call fcn.004c58cd
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 0x18]
push 3
mov ebx, 0x914
call fcn.00609920
add esp, 0x28
mov dword [ebp - 0x38], esp
mov eax, 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push dword [ebp - 0x30]
push 0x5ff6bb
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fe3b2
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jle 0x5fe3c4
jmp 0x5fdd3c
mov dword [ebp - 0x38], esp
push dword [ebp - 0x34]
call dword [sym.imp.wsock32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fe3e6
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x38], esp
push dword [ebp - 0x28]
call dword [sym.imp.wsock32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fe408
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x38], esp
push dword [ebp - 0x30]
call dword [sym.imp.kernel32.dll_LocalFree]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fe42a
push 6
call fcn.005fffca
add esp, 4
jmp 0x5fe434
jmp 0x5fe443
jmp 0x5fe43e
jmp 0x5fe443
jmp 0x5fdd3c
mov dword [ebp - 0x38], esp
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_LocalFree]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fe465
push 6
call fcn.005fffca
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.005fffbe
add esp, 4
pop ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x2c]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.005fffbe
add esp, 4
pop ebx
call fcn.005fffbe
add esp, 4
mov esp, ebp
pop ebp
ret 4