Function at 0x140024780
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1458
call fcn.140004df0
sub rsp, rax
mov dword [rsp + 0x70], 0
mov rax, qword [rsp + 0x1470]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
cmp byte [rax + rcx], 0
jne 0x1400247c1
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x98], 0x64
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, qword [rsp + 0x1470]
mov r8, qword [rsp + 0x80]
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x88]
call fcn.14000e174
mov qword [rsp + 0x38], 0xffffffffffffffff
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x40], 0
movzx eax, byte [0x140025475]
mov byte [rsp + 0xd0], al
lea rax, [rsp + 0xd1]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea rdx, str.GET__
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rdx, qword [rsp + 0x1480]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rax, [rsp + 0x450]
mov rdi, rax
xor eax, eax
mov ecx, 0x1000
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0x1000
lea rdx, [rsp + 0x2b0]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400248d4
xor eax, eax
jmp 0x140024b53
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0xa4], 2
mov dword [rsp + 0xa8], 1
mov dword [rsp + 0xac], 6
lea r9, [rsp + 0x68]
lea r8, [rsp + 0xa0]
mov rdx, qword [rsp + 0x1478]
mov rcx, qword [rsp + 0x1470]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140024944
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x140024b53
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
jmp 0x14002495e
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400249eb
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0xc]
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 8]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1400249a3
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x140024b53
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x10]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x1400249e4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsp + 0x38], 0xffffffffffffffff
jmp 0x140024950
jmp 0x1400249eb
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x140024a0b
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x140024b53
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
inc qword [rsp + 0x58]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
cmp byte [rax + rcx], 0
jne 0x140024a24
mov rax, qword [rsp + 0x58]
xor r9d, r9d
mov r8d, eax
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x140024a7d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x140024b53
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_shutdown]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x140024ab0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x140024b53
mov rdi, qword [rsp + 0x1488]
xor eax, eax
mov ecx, 0x61a80
rep stosb byte [rdi], al
mov dword [rsp + 0x48], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x450]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jle 0x140024b37
movsxd rax, dword [rsp + 0x30]
lea rcx, [rsp + 0x450]
mov rdi, qword [rsp + 0x1488]
mov rsi, rcx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x1488]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1488], rax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x48]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x30], 0
jg 0x140024ac9
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [rsp + 0x48]
add rsp, 0x1458
pop rdi
pop rsi
ret