Function at 0x5fa56b
Capabilities:
Create tcp socket
Create thread
Create udp socket
Get system information on windows
Set socket configuration
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x10
call fcn.005fffc4
add esp, 4
mov dword [ebp - 0xc], 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 - 0x10], 0
push 0x24
call fcn.005fffc4
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 9
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
cmp dword [0x7ad28d], 0
je 0x5faec2
mov dword [ebp - 0x34], esp
push 0
push 0
push 4
call dword [sym.imp.kernel32.dll_HeapCreate]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5fa662
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5faec2
mov dword [ebp - 0x34], 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 - 0x34], esp
je 0x5fa6ac
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5faea0
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
mov word [ebx], 2
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.wsock32.dll_inet_addr]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fa6f4
push 6
call fcn.005fffca
add esp, 4
mov ebx, dword [ebp - 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esp
push dword [ebp + 0xc]
call dword [sym.imp.wsock32.dll_htons]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fa724
push 6
call fcn.005fffca
add esp, 4
mov ebx, dword [ebp - 0x34]
mov word [ebx], ax
mov dword [ebp - 0x34], esp
push 0x10
mov eax, dword [ebp - 0xc]
push eax
push 0x10
call fcn.005fffc4
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 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 - 8]
call dword [sym.imp.wsock32.dll_bind]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5fa7a2
push 6
call fcn.005fffca
add esp, 4
push eax
mov ebx, dword [ebp - 0x38]
push ebx
mov edi, dword [ebp - 0x3c]
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 0x5fa7f9
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x5fa7f7
imul eax, dword [edi]
jmp 0x5fa7ec
mov ecx, eax
cmp ecx, 8
jle 0x5fa803
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 - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x5fae7e
mov dword [ebp - 0x34], esp
push bind
push dword [ebp - 8]
call dword [sym.imp.wsock32.dll_listen]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5fa84c
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x5fae7e
mov dword [ebp - 0x34], esp
push 0
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CreateIoCompletionPort]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5fa88a
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5fae7e
mov dword [ebp - 0x34], esp
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_GetSystemInfo]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5fa8b9
push 6
call fcn.005fffca
add esp, 4
mov ebx, dword [ebp - 0x14]
add ebx, 0x14
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
fild dword [ebx]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fmul qword [0x76041d]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.004c58cd
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jl 0x5fa8f9
cmp dword [ebp - 0x18], 0x20
jg 0x5fa8f9
xor eax, eax
jmp 0x5fa8fe
mov eax, 1
test eax, eax
je 0x5fa90d
mov dword [ebp - 0x18], 2
fild dword [ebp - 0x18]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fmul qword [0x76044e]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [0x763c56]
fstp qword [ebp - 0x48]
mov dword [ebp - 0x4c], esp
fld qword [ebp - 0x48]
call fcn.004c58cd
push eax
push 8
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_HeapAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0x4c], esp
je 0x5fa95b
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5fae5c
cmp dword [0x7ad2c5], 0
jne 0x5faabd
mov dword [ebp - 0x34], esp
push 0
push 0
push 0
push 0xffffffff
call dword [sym.imp.kernel32.dll_CreateIoCompletionPort]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5fa9a8
push 6
call fcn.005fffca
add esp, 4
mov dword [0x7ad2c9], eax
cmp dword [0x7ad2c9], 0
je 0x5faabd
xor ecx, ecx
inc ecx
push ecx
cmp ecx, 0x190
jg 0x5faab3
fild dword [ebp - 0x24]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fadd qword [0x760425]
fstp qword [ebp - 0x40]
mov dword [ebp - 0x44], esp
mov eax, 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 0
fld qword [ebp - 0x40]
call fcn.004c58cd
push eax
push 0x5fbe83
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x5faa24
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x5faa36
jmp 0x5faaad
push 0x7ad2cd
push 4
mov eax, 2
call fcn.006010d0
add esp, 8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov ebx, dword [0x7ad2cd]
mov dword [ebp - 0x38], ebx
call fcn.004c6a80
mov dword [ebp - 0x3c], ecx
mov edi, dword [ebp - 0x38]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x5faa7d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x3c]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x38]
call fcn.005fffe2
add esp, 8
mov dword [0x7ad2cd], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x3c]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x34]
mov dword [edi], eax
inc dword [ebp - 0x24]
pop ecx
jmp 0x5fa9bc
add esp, 4
mov dword [ebp - 0x24], 0
mov ebx, dword [0x7ad2cd]
call fcn.004c6a67
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x32
jl 0x5fada9
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x198
call fcn.00603380
add esp, 0x10
mov dword [ebp - 0x34], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x198
call fcn.00603380
add esp, 0x10
mov dword [ebp - 0x38], eax
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x198
call fcn.00603380
add esp, 0x10
mov dword [ebp - 0x3c], eax
push 0x80000301
push 0
push dword [ebp + 0x10]
push 1
mov ebx, 0x198
call fcn.00603380
add esp, 0x10
mov dword [ebp - 0x40], eax
push 0x80000301
push 0
push dword [ebp - 0x18]
push 1
mov ebx, 0x198
call fcn.00603380
add esp, 0x10
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0x34]
mov ecx, 5
call fcn.004c8ae8
add esp, 0x14
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x5fab9f
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x5fabaf
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x5fabbf
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x5fabcf
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x5fabdf
push ebx
call fcn.005fffbe
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x5fabf3
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], esp
push 0x14
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5fac09
add eax, 8
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5fac29
push 6
call fcn.005fffca
add esp, 4
mov eax, dword [ebp - 0x18]
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x5face0
mov dword [ebp - 0x34], esp
mov eax, 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebp - 0x1c]
push 0x5fc0fd
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5fac7b
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x24]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fmul qword [0x76044e]
fstp qword [ebp - 0x40]
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [ebp - 0x40]
fadd qword [0x763c56]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], esp
push 4
lea eax, [ebp - 0x20]
push eax
fld qword [ebp - 0x50]
call fcn.004c58cd
push eax
call dword [sym.imp.kernel32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x54], esp
je 0x5facd6
push 6
call fcn.005fffca
add esp, 4
inc dword [ebp - 0x24]
pop eax
pop ecx
jmp 0x5fac2e
add esp, 8
xor ecx, ecx
inc ecx
push ecx
cmp ecx, 0x3e8
jg 0x5fad98
call fcn.005faf0c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x5fad92
push dword [ebp - 4]
call fcn.005faf5b
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x5fad41
mov dword [ebp - 0x34], esp
push dword [ebp - 0x2c]
call dword [sym.imp.wsock32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5fad3c
push 6
call fcn.005fffca
add esp, 4
jmp 0x5fad92
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.005fb1a3
push dword [ebp - 0x30]
push dword [ebp - 8]
call fcn.005fb1f5
and eax, 1
xor eax, 1
test eax, eax
je 0x5fad92
mov dword [ebp - 0x34], esp
push dword [ebp - 0x2c]
call dword [sym.imp.wsock32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5fad87
push 6
call fcn.005fffca
add esp, 4
push dword [ebp - 0x30]
push dword [ebp - 4]
call fcn.005fb4eb
pop ecx
jmp 0x5face5
add esp, 4
inc dword [0x7ad2c5]
mov eax, dword [ebp - 0x1c]
jmp 0x5faecc
mov ebx, dword [0x7ad2cd]
call fcn.004c6a67
xor ecx, ecx
push eax
lea eax, [ebp - 0x24]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x5fae34
mov ebx, dword [0x7ad2cd]
call fcn.004c6a80
push ebx
push ecx
mov eax, dword [ebp - 0x24]
dec eax
jns 0x5fadeb
push 4
call fcn.005fffca
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x5fadfe
push 1
call fcn.005fffca
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esp
push 0
mov ebx, dword [ebp - 0x34]
push dword [ebx]
call dword [sym.imp.kernel32.dll_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x5fae2f
push 6
call fcn.005fffca
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x5fadbd
add esp, 0xc
mov dword [ebp - 0x34], esp
push dword [0x7ad2c9]
call dword [sym.imp.kernel32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5fae5c
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x34], esp
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5fae7e
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x34], esp
push dword [ebp - 8]
call dword [sym.imp.wsock32.dll_closesocket]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5faea0
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x34], esp
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_HeapDestroy]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x5faec2
push 6
call fcn.005fffca
add esp, 4
mov eax, 0
jmp 0x5faecc
push eax
mov ebx, dword [ebp - 0xc]
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 ebx, dword [ebp - 0x14]
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x5faf05
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc