Function at 0x140077d38
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
mov r8, rdx
mov dl, 1
jmp 0x140077d42
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2a8
movaps xmmword [rsp + 0x290], xmm7
movaps xmmword [rsp + 0x280], xmm6
mov rax, qword [0x140101018]
xor rax, rsp
mov qword [rsp + 0x278], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x250], xmm6
movaps xmmword [rsp + 0x240], xmm6
movaps xmmword [rsp + 0x230], xmm6
movaps xmmword [rsp + 0x220], xmm6
movaps xmmword [rsp + 0x210], xmm6
movaps xmmword [rsp + 0x200], xmm6
movaps xmmword [rsp + 0x1f0], xmm6
movaps xmmword [rsp + 0x1e0], xmm6
mov dword [rsp + 0x34], 0xaaaaaaaa
movaps xmmword [rsp + 0x1d0], xmm6
movaps xmmword [rsp + 0x1c0], xmm6
movaps xmmword [rsp + 0x1b0], xmm6
movaps xmmword [rsp + 0x1a0], xmm6
movaps xmmword [rsp + 0x190], xmm6
movaps xmmword [rsp + 0x180], xmm6
movaps xmmword [rsp + 0x170], xmm6
movaps xmmword [rsp + 0x160], xmm6
cmp qword [rcx + 0x10], 0x7f
ja 0x1400783de
mov rdi, r8
cmp qword [r8 + 0x10], 0xc7
ja 0x1400783de
mov ebx, edx
mov rsi, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x140077e31
mov rcx, qword [rsi]
lea rax, [rsp + 0x160]
mov qword [rsp + 0x20], rax
lea rdx, str.ws:____:__:_d__s
lea r8, [rsp + 0x1e0]
lea r9, [rsp + 0x34]
call fcn.1400068ad
cmp eax, 3
je 0x140077efd
cmp qword [rsi + 0x18], 0x10
mov rcx, rsi
jb 0x140077e6d
mov rcx, qword [rsi]
lea rdx, str.ws:____:____s
lea r8, [rsp + 0x1e0]
lea r9, [rsp + 0x160]
call fcn.1400068ad
cmp eax, 2
jne 0x140077e98
mov dword [rsp + 0x34], 0x50
jmp 0x140077efd
cmp qword [rsi + 0x18], 0x10
mov rcx, rsi
jb 0x140077ea5
mov rcx, qword [rsi]
lea rdx, str.ws:____:__:_d
lea r8, [rsp + 0x1e0]
lea r9, [rsp + 0x34]
call fcn.1400068ad
cmp eax, 2
je 0x140077ef5
cmp qword [rsi + 0x18], 0x10
jb 0x140077ecd
mov rsi, qword [rsi]
lea rdx, str.ws:____:__
lea r8, [rsp + 0x1e0]
mov rcx, rsi
call fcn.1400068ad
cmp eax, 1
jne 0x1400783de
mov dword [rsp + 0x34], 0x50
mov byte [rsp + 0x160], 0
mov ebp, dword [rsp + 0x34]
xorps xmm7, xmm7
lea rsi, [rsp + 0x140]
movaps xmmword [rsi + 0x10], xmm7
movaps xmmword [rsi], xmm7
lea r14, [rsp + 0x1e0]
mov rcx, r14
call fcn.1400bcdc0
mov rcx, rsi
mov rdx, r14
mov r8, rax
call fcn.1400018f4
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
lea r14, [rsp + 0x260]
movaps xmmword [r14], xmm6
movaps xmmword [rsp + 0x40], xmm7
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x60], xmm7
movabs rax, 0x100000002
mov qword [rsp + 0x44], rax
lea r8, [0x1400ea85e]
mov edx, reloc.WS2_32.dll_recv
mov rcx, r14
mov r9d, ebp
call fcn.140078499
cmp qword [rsi + 0x18], 0x10
jb 0x140077f90
mov rsi, qword [rsp + 0x140]
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x38]
mov rcx, rsi
mov rdx, r14
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, 1
test eax, eax
jne 0x140078025
mov r14, qword [rsp + 0x38]
test r14, r14
je 0x140078016
mov r15, qword [sym.imp.WS2_32.dll_socket]
mov r12, qword [sym.imp.WS2_32.dll_connect]
mov r13, qword [sym.imp.WS2_32.dll_closesocket]
mov r8d, dword [r14 + 0xc]
mov ecx, dword [r14 + 4]
mov edx, dword [r14 + 8]
call r15
cmp rax, 0xffffffffffffffff
je 0x140077fff
mov rsi, rax
mov r8d, dword [r14 + 0x10]
mov rdx, qword [r14 + 0x20]
mov rcx, rax
call r12
cmp eax, 0xffffffff
jne 0x14007800f
mov rcx, rsi
call r13
mov r14, qword [r14 + 0x28]
test r14, r14
jne 0x140077fce
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
jmp 0x14007801f
mov rsi, 0xffffffffffffffff
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rdx, qword [rsp + 0x158]
cmp rdx, 0x10
jb 0x140078043
mov rcx, qword [rsp + 0x140]
inc rdx
call fcn.14000154d
cmp rsi, 0xffffffffffffffff
je 0x1400783de
lea r14, [rsp + 0x40]
mov r8d, 0x100
mov rcx, r14
mov dl, 0xaa
call fcn.1400a3cc0
mov dword [rsp + 0x140], 0xaaaaaaaa
lea r8, str.GET___s_HTTP_1.1_r_n
lea r9, [rsp + 0x160]
mov edx, 0x100
mov rcx, r14
call fcn.140078417
mov rcx, r14
call fcn.1400bcdc0
mov rcx, rsi
mov rdx, r14
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov eax, dword [rsp + 0x34]
cmp eax, 0x50
jne 0x1400780b5
lea r8, str.Host:__s_r_n
jmp 0x1400780c0
mov dword [rsp + 0x20], eax
lea r8, str.Host:__s:_d_r_n
lea rcx, [rsp + 0x40]
lea r9, [rsp + 0x1e0]
mov edx, 0x100
call fcn.140078417
lea r14, [rsp + 0x40]
mov rcx, r14
call fcn.1400bcdc0
mov r15, qword [sym.imp.WS2_32.dll_send]
mov rcx, rsi
mov rdx, r14
mov r8d, eax
xor r9d, r9d
call r15
lea r8, str.Upgrade:_websocket_r_n
mov edx, 0x100
mov rcx, r14
call fcn.140078417
mov rcx, r14
call fcn.1400bcdc0
mov rcx, rsi
mov rdx, r14
mov r8d, eax
xor r9d, r9d
call r15
lea r8, str.Connection:_Upgrade_r_n
mov edx, 0x100
mov rcx, r14
call fcn.140078417
mov rcx, r14
call fcn.1400bcdc0
mov rcx, rsi
mov rdx, r14
mov r8d, eax
xor r9d, r9d
call r15
cmp qword [rdi + 0x10], 0
je 0x140078197
cmp qword [rdi + 0x18], 0x10
jb 0x140078161
mov rdi, qword [rdi]
lea r8, str.Origin:__s_r_n
lea r14, [rsp + 0x40]
mov edx, 0x100
mov rcx, r14
mov r9, rdi
call fcn.140078417
mov rcx, r14
call fcn.1400bcdc0
mov rcx, rsi
mov rdx, r14
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov r14d, 0xfffffffe
lea r8, str.Sec_WebSocket_Key:_x3JJHMbDL1EzLkh9GBhXDw_r_n
lea rdi, [rsp + 0x40]
mov edx, 0x100
mov rcx, rdi
call fcn.140078417
mov rcx, rdi
call fcn.1400bcdc0
xor r12d, r12d
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
xor r9d, r9d
call r15
lea r8, str.Sec_WebSocket_Version:_13_r_n
mov edx, 0x100
mov rcx, rdi
call fcn.140078417
mov rcx, rdi
call fcn.1400bcdc0
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
xor r9d, r9d
call r15
lea r8, str.Sec_WebSocket_Protocol:_event_protocol_r_n
mov edx, 0x100
mov rcx, rdi
call fcn.140078417
mov rcx, rdi
call fcn.1400bcdc0
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
xor r9d, r9d
call r15
lea r8, [0x1400ea84f]
mov edx, 0x100
mov rcx, rdi
call fcn.140078417
mov rcx, rdi
call fcn.1400bcdc0
mov rcx, rsi
mov rdx, rdi
mov r8d, eax
xor r9d, r9d
call r15
mov rdi, qword [sym.imp.WS2_32.dll_recv]
cmp r12, 2
jb 0x140078283
cmp r12, 0xfe
ja 0x1400783ca
lea eax, [r12 + r14]
cmp byte [rsp + rax + 0x40], 0xd
je 0x1400782a6
lea eax, [r14 + r12]
inc eax
cmp byte [rsp + rax + 0x40], 0xa
je 0x1400782a6
lea rdx, [rsp + r12]
add rdx, 0x40
mov rcx, rsi
mov r8d, 1
xor r9d, r9d
call rdi
test eax, eax
je 0x1400783de
inc r12
jmp 0x140078258
mov byte [rsp + r12 + 0x40], 0
lea rdx, str.HTTP_1.1__d
lea rcx, [rsp + 0x40]
lea r8, [rsp + 0x140]
call fcn.1400068ad
cmp eax, 1
jne 0x1400783de
cmp dword [rsp + 0x140], 0x65
jne 0x1400783de
xor r15d, r15d
cmp r15, 2
jae 0x140078307
lea rdx, [rsp + r15]
add rdx, 0x40
mov rcx, rsi
mov r8d, 1
xor r9d, r9d
call rdi
inc r15
test eax, eax
jne 0x1400782df
jmp 0x1400783de
cmp r15, 0xfe
ja 0x140078328
lea eax, [r15 + r14]
cmp byte [rsp + rax + 0x40], 0xd
je 0x140078328
lea eax, [r14 + r15]
inc eax
cmp byte [rsp + rax + 0x40], 0xa
jne 0x1400782e5
cmp byte [rsp + 0x40], 0xd
mov r15d, 0
jne 0x1400782df
cmp byte [rsp + 0x41], 0xa
mov r15d, 0
jne 0x1400782df
mov edi, 1
lea r9, [rsp + 0x40]
mov dword [r9], edi
mov dword [rsp + 0x20], 4
mov rcx, rsi
mov edx, 6
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x140]
mov dword [r8], edi
mov rcx, rsi
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, 0x60
call fcn.140079a98
mov rdi, rax
lea rax, [0x1400ea870]
mov qword [rdi], rax
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
movups xmmword [rdi + 0x18], xmm0
movups xmmword [rdi + 0x28], xmm0
movups xmmword [rdi + 0x38], xmm0
mov qword [rdi + 0x48], 0
mov qword [rdi + 0x50], rsi
mov dword [rdi + 0x58], 3
mov byte [rdi + 0x5c], bl
mov byte [rdi + 0x5d], 0
jmp 0x1400783e0
mov eax, r12d
mov byte [rsp + rax + 0x40], 0
cmp rax, 0xff
jne 0x1400782ac
xor edi, edi
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140079b60
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x280]
movaps xmm7, xmmword [rsp + 0x290]
add rsp, 0x2a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret