Function at 0x7ff876f0d580
Capabilities:
Connect socket
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 byte [rsp + 0x10], dl
push rbp
push rdi
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
cmp qword [rcx + 0x10], 0x200
mov r15, r8
mov rdi, rcx
jb 0x7ff876f0d5db
cmp qword [rcx + 0x18], 0xf
jbe 0x7ff876f0d5b1
mov rdi, qword [rcx]
mov ecx, 2
call fcn.7ff876f1c0e0
mov r8, rdi
lea rdx, [0x7ff876f57228]
mov rcx, rax
call fcn.7ff876ee16d0
xor eax, eax
add rsp, 0x8d0
pop r15
pop rdi
pop rbp
ret
cmp qword [r8 + 0x10], 0xc8
jb 0x7ff876f0d619
cmp qword [r8 + 0x18], 0xf
jbe 0x7ff876f0d5ef
mov r15, qword [r8]
mov ecx, 2
call fcn.7ff876f1c0e0
mov r8, r15
lea rdx, [0x7ff876f57250]
mov rcx, rax
call fcn.7ff876ee16d0
xor eax, eax
add rsp, 0x8d0
pop r15
pop rdi
pop rbp
ret
cmp qword [rcx + 0x18], 0xf
mov qword [rsp + 0x8c8], rbx
lea rbx, [rcx + 0x18]
mov qword [rsp + 0x8c0], rsi
jbe 0x7ff876f0d63d
mov rcx, qword [rcx]
lea rsi, [rdi + 0x18]
jmp 0x7ff876f0d640
mov rsi, rbx
lea rax, [rbp + 0x5b0]
lea r9, [rbp + 0x7f8]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x3b0]
lea rdx, [0x7ff876f57278]
call fcn.7ff876f0c610
cmp eax, 3
je 0x7ff876f0d716
cmp qword [rbx], 0xf
mov rcx, rdi
jbe 0x7ff876f0d67e
mov rcx, qword [rdi]
mov rbx, rsi
lea r9, [rbp + 0x5b0]
lea r8, [rbp + 0x3b0]
lea rdx, [0x7ff876f57290]
call fcn.7ff876f0c610
cmp eax, 2
jne 0x7ff876f0d6a9
mov dword [rbp + 0x7f8], 0x50
jmp 0x7ff876f0d716
cmp qword [rbx], 0xf
mov rcx, rdi
jbe 0x7ff876f0d6bb
mov rcx, qword [rdi]
lea rsi, [rdi + 0x18]
jmp 0x7ff876f0d6be
mov rsi, rbx
lea r9, [rbp + 0x7f8]
lea r8, [rbp + 0x3b0]
lea rdx, [0x7ff876f572a0]
call fcn.7ff876f0c610
cmp eax, 2
je 0x7ff876f0d70f
cmp qword [rbx], 0xf
mov rcx, rdi
jbe 0x7ff876f0d6e9
mov rcx, qword [rdi]
lea r8, [rbp + 0x3b0]
lea rdx, [0x7ff876f572b0]
call fcn.7ff876f0c610
cmp eax, 1
jne 0x7ff876f0d824
mov dword [rbp + 0x7f8], 0x50
mov byte [rbp + 0x5b0], 0
mov ebx, dword [rbp + 0x7f8]
lea rax, [rbp + 0x3b0]
mov qword [rsp + 0x8b8], r12
xorps xmm0, xmm0
xor r12d, r12d
mov qword [rsp + 0x8b0], r14
mov r14, 0xffffffffffffffff
mov qword [rsp + 0x58], r12
mov r8, r14
mov qword [rsp + 0x60], r12
movups xmmword [rsp + 0x48], xmm0
inc r8
cmp byte [rax + r8], r12b
jne 0x7ff876f0d752
lea rdx, [rbp + 0x3b0]
lea rcx, [rsp + 0x48]
call fcn.7ff876ef2540
xorps xmm0, xmm0
lea r8, [0x7ff876f57170]
movups xmmword [rsp + 0x78], xmm0
mov r9d, ebx
mov dword [rbp - 0x80], 1
mov edx, 0x10
lea rcx, [rsp + 0x68]
mov rsi, r14
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
call fcn.7ff876f0dd30
cmp qword [rsp + 0x60], 0xf
lea rcx, [rsp + 0x48]
lea r9, [rbp + 0x7f0]
cmova rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x68]
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x7ff876f0d850
mov qword [rsp + 0x30], r12
lea rbx, [0x7ff876f9c900]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x20], rbx
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.kernel32.dll_FormatMessageW]
mov ecx, 2
call fcn.7ff876f1c0e0
mov r8, rbx
lea rdx, [0x7ff876f57178]
mov rcx, rax
call fcn.7ff876ee16d0
mov esi, 1
jmp 0x7ff876f0d8b3
cmp qword [rsi], 0xf
jbe 0x7ff876f0d82d
mov rdi, qword [rdi]
mov ecx, 2
call fcn.7ff876f1c0e0
mov r8, rdi
lea rdx, [0x7ff876f572c0]
mov rcx, rax
call fcn.7ff876ee16d0
xor eax, eax
jmp 0x7ff876f0dbbf
mov rbx, qword [rbp + 0x7f0]
test rbx, rbx
je 0x7ff876f0d8aa
nop dword [rax]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.ws2_32.dll_socket]
mov rsi, rax
cmp rax, r14
je 0x7ff876f0d89a
mov r8d, dword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, r14d
jne 0x7ff876f0d8a3
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rsi, r14
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x7ff876f0d860
mov rbx, qword [rbp + 0x7f0]
mov rcx, rbx
call qword [sym.imp.ws2_32.dll_FreeAddrInfoW]
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x7ff876f0d8f0
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff876f0d8eb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff876f0dd1f
call fcn.7ff876f125fc
cmp rsi, r14
jne 0x7ff876f0d91e
mov ebx, dword [rbp + 0x7f8]
mov ecx, 2
call fcn.7ff876f1c0e0
mov r9d, ebx
lea r8, [rbp + 0x3b0]
lea rdx, [0x7ff876f572f0]
mov rcx, rax
call fcn.7ff876ee16d0
lea r9, [rbp + 0x5b0]
mov edx, 0x400
lea r8, [0x7ff876f57310]
lea rcx, [rbp - 0x50]
call fcn.7ff876f0e210
lea rax, [rbp - 0x50]
mov r8, r14
inc r8
cmp byte [rax + r8], r12b
jne 0x7ff876f0d941
xor r9d, r9d
lea rdx, [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_send]
mov eax, dword [rbp + 0x7f8]
lea r9, [rbp + 0x3b0]
lea rcx, [rbp - 0x50]
mov edx, 0x400
cmp eax, 0x50
jne 0x7ff876f0d99b
lea r8, [0x7ff876f57328]
call fcn.7ff876f0e210
lea rax, [rbp - 0x50]
mov r8, r14
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x7ff876f0d990
jmp 0x7ff876f0d9bb
lea r8, [0x7ff876f57338]
mov dword [rsp + 0x20], eax
call fcn.7ff876f0e210
lea rax, [rbp - 0x50]
mov r8, r14
inc r8
cmp byte [rax + r8], r12b
jne 0x7ff876f0d9b2
xor r9d, r9d
lea rdx, [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_send]
lea r8, [0x7ff876f57348]
mov edx, 0x400
lea rcx, [rbp - 0x50]
call fcn.7ff876f0e210
lea rax, [rbp - 0x50]
mov r8, r14
inc r8
cmp byte [rax + r8], r12b
jne 0x7ff876f0d9e7
xor r9d, r9d
lea rdx, [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_send]
lea r8, [0x7ff876f57360]
mov edx, 0x400
lea rcx, [rbp - 0x50]
call fcn.7ff876f0e210
lea rax, [rbp - 0x50]
mov r8, r14
nop dword [rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x7ff876f0da20
xor r9d, r9d
lea rdx, [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_send]
cmp qword [r15 + 0x10], r12
je 0x7ff876f0da89
cmp qword [r15 + 0x18], 0xf
jbe 0x7ff876f0da49
mov r15, qword [r15]
mov r9, r15
lea r8, [0x7ff876f57378]
mov edx, 0x400
lea rcx, [rbp - 0x50]
call fcn.7ff876f0e210
lea rax, [rbp - 0x50]
mov r8, r14
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x7ff876f0da70
xor r9d, r9d
lea rdx, [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_send]
lea r8, [0x7ff876f57388]
mov edx, 0x400
lea rcx, [rbp - 0x50]
call fcn.7ff876f0e210
lea rax, [rbp - 0x50]
mov r8, r14
inc r8
cmp byte [rax + r8], r12b
jne 0x7ff876f0daa5
xor r9d, r9d
lea rdx, [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_send]
lea r8, [0x7ff876f573b8]
mov edx, 0x400
lea rcx, [rbp - 0x50]
call fcn.7ff876f0e210
lea rax, [rbp - 0x50]
mov r8, r14
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x7ff876f0dae0
xor r9d, r9d
lea rdx, [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_send]
lea r8, [0x7ff876f573d4]
mov edx, 0x400
lea rcx, [rbp - 0x50]
call fcn.7ff876f0e210
lea rax, [rbp - 0x50]
inc r14
cmp byte [rax + r14], r12b
jne 0x7ff876f0db12
mov r8, r14
lea rdx, [rbp - 0x50]
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_send]
lea r14, [rbp - 0x50]
mov ebx, r12d
dec r14
cmp ebx, 2
jl 0x7ff876f0db52
cmp ebx, 0x3ff
jge 0x7ff876f0db77
cmp byte [r14 - 1], 0xd
je 0x7ff876f0db77
cmp byte [r14], 0xa
je 0x7ff876f0db77
xor r9d, r9d
movsxd rax, ebx
lea rdx, [rbp - 0x50]
mov rcx, rsi
add rdx, rax
lea r8d, [r9 + 1]
call qword [sym.imp.ws2_32.dll_recv]
test eax, eax
je 0x7ff876f0dbad
inc ebx
inc r14
jmp 0x7ff876f0db38
movsxd rax, ebx
mov byte [rbp + rax - 0x50], r12b
cmp ebx, 0x3ff
jne 0x7ff876f0dbdb
cmp qword [rdi + 0x18], 0xf
jbe 0x7ff876f0db91
mov rdi, qword [rdi]
mov ecx, 2
call fcn.7ff876f1c0e0
mov r8, rdi
lea rdx, [0x7ff876f573d8]
mov rcx, rax
call fcn.7ff876ee16d0
xor eax, eax
mov r12, qword [rsp + 0x8b8]
mov r14, qword [rsp + 0x8b0]
mov rbx, qword [rsp + 0x8c8]
mov rsi, qword [rsp + 0x8c0]
add rsp, 0x8d0
pop r15
pop rdi
pop rbp
ret
lea r8, [rbp + 0x7f0]
lea rdx, [0x7ff876f57410]
lea rcx, [rbp - 0x50]
call fcn.7ff876f0c610
cmp eax, 1
jne 0x7ff876f0dc00
cmp dword [rbp + 0x7f0], 0x65
je 0x7ff876f0dc2a
cmp qword [rdi + 0x18], 0xf
jbe 0x7ff876f0dc0a
mov rdi, qword [rdi]
mov ecx, 2
call fcn.7ff876f1c0e0
lea r9, [rbp - 0x50]
mov r8, rdi
lea rdx, [0x7ff876f57420]
mov rcx, rax
call fcn.7ff876ee16d0
lea r14, [rbp - 0x50]
nop
mov ebx, r12d
lea rdi, [r14 - 1]
cmp ebx, 2
jl 0x7ff876f0dc4f
cmp ebx, 0x3ff
jge 0x7ff876f0dc78
cmp byte [rdi - 1], 0xd
je 0x7ff876f0dc78
cmp byte [rdi], 0xa
je 0x7ff876f0dc78
xor r9d, r9d
movsxd rax, ebx
lea rdx, [rbp - 0x50]
mov rcx, rsi
add rdx, rax
lea r8d, [r9 + 1]
call qword [sym.imp.ws2_32.dll_recv]
test eax, eax
je 0x7ff876f0dbad
inc ebx
inc rdi
jmp 0x7ff876f0dc37
cmp byte [rbp - 0x50], 0xd
jne 0x7ff876f0dc30
cmp byte [rbp - 0x4f], 0xa
jne 0x7ff876f0dc30
mov edx, 6
mov dword [rbp + 0x808], 1
lea r9, [rbp + 0x808]
mov dword [rsp + 0x20], 4
mov rcx, rsi
lea r8d, [rdx - 5]
call qword [sym.imp.ws2_32.dll_setsockopt]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 1
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_ioctlsocket]
mov ecx, 0x60
call fcn.7ff876f1223c
mov qword [rbp + 0x7f0], rax
lea rcx, [0x7ff876f574b0]
mov qword [rax], rcx
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r12
mov qword [rax + 0x28], r12
mov qword [rax + 0x30], r12
mov qword [rax + 0x38], r12
mov qword [rax + 0x40], r12
mov qword [rax + 0x48], r12
mov qword [rax + 0x50], rsi
mov dword [rax + 0x58], 3
mov word [rax + 0x5c], 1
jmp 0x7ff876f0dbaf
call fcn.7ff876f28a04
int3