Function at 0x180008bfc
Capabilities:
Connect socket
Receive data
Receive data on socket
Reference http user-agent string
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x968]
sub rsp, 0xa30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x180038008]
xor rax, rsp
mov qword [rbp + 0x920], rax
mov bl, r8b
mov rdi, rdx
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x24], r12d
lea r15d, [r12 + 0xf]
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x40], r12
mov byte [rbp - 0x50], r12b
lea rdx, str.0.0.0.0
lea rcx, [rbp - 0x50]
call fcn.1800039b0
nop
test bl, bl
jne 0x180008ce6
cmp byte [rsi], 1
jne 0x180008ce6
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r12
mov byte [rsp + 0x30], r12b
lea rdx, [0x180030598]
lea rcx, [rsp + 0x30]
call fcn.1800039b0
nop
lea rcx, [rsi + 0x28]
lea r8, [rsi + 8]
lea rdx, [rsp + 0x30]
call fcn.180002da0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.180003904
mov qword [rdi + 0x18], r15
mov qword [rdi + 0x10], r12
cmp r15, 0x10
jb 0x180008cc8
mov rax, qword [rdi]
jmp 0x180008ccb
mov rax, rdi
mov byte [rax], r12b
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsi + 8]
mov rcx, rdi
call fcn.180003abc
jmp 0x180009291
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x80], r12
mov byte [rsp + 0x70], r12b
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], r12
mov byte [rsp + 0x50], r12b
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x60], r12
mov byte [rbp - 0x70], r12b
lea rdx, [0x180030330]
lea rcx, [rbp - 0x70]
call fcn.1800039b0
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x120]
call fcn.18000ce00
mov dword [rsp + 0x30], 0xcb898f96
mov dword [rsp + 0x34], 0xd18b909d
mov dword [rsp + 0x38], 0x8b9e9788
mov dword [rsp + 0x3c], 0x86928c96
mov dword [rsp + 0x40], 0x9b9e8f96
mov dword [rsp + 0x44], 0x8c9a8d9b
mov dword [rsp + 0x48], 0x909cd18c
mov byte [rsp + 0x4c], 0x92
mov ebx, 0x64
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.18000ce00
mov rcx, r12
mov al, byte [rsp + rcx + 0x30]
not al
mov byte [rbp + rcx + 0x40], al
inc rcx
cmp rcx, 0x1d
jl 0x180008d86
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r12
mov byte [rbp - 0x30], r12b
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.1800039b0
nop
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov r14, rax
test rax, rax
jne 0x180008e23
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r12
mov byte [rsp + 0x30], r12b
lea rdx, [0x180030598]
lea rcx, [rsp + 0x30]
call fcn.1800039b0
nop
lea rcx, [rsi + 0x28]
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x30]
call fcn.180002da0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.180003904
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.1800037dc
jmp 0x180009253
mov r8, rbx
xor edx, edx
lea rcx, [rbp + 0xb0]
call fcn.18000ce00
mov rax, qword [r14 + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
lea rdx, [0x180030468]
lea rcx, [rbp + 0xb0]
call fcn.180001130
lea rdx, str.GET___HTTP_1.1_r_n
lea rcx, [rsp + 0x70]
call fcn.180003604
lea rdx, str.Connection:_keep_alive_r_n
lea rcx, [rsp + 0x70]
call fcn.180003604
lea rdx, str.Host:
lea rcx, [rsp + 0x70]
call fcn.180003604
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x70]
call fcn.180003604
lea rdx, [0x18003053c]
lea rcx, [rsp + 0x70]
call fcn.180003604
lea rdx, str.Accept_Language:_en_US_en_q0.9_r_n
lea rcx, [rsp + 0x70]
call fcn.180003604
lea rdx, str.User_Agent:_Mozilla_5.0__Windows_NT_6.1__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_76.0.3809.100_Safari_537.36_r_n
lea rcx, [rsp + 0x70]
call fcn.180003604
lea rdx, [0x18003053c]
lea rcx, [rsp + 0x70]
call fcn.180003604
mov edx, 1
lea r8d, [rdx + 5]
lea r15d, [rdx + 1]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
movsxd r13, eax
mov word [rbp + 0x10], r15w
mov rcx, qword [r14 + 0x18]
mov rdx, qword [rcx]
mov ecx, dword [rdx]
mov dword [rbp + 0x14], ecx
lea ecx, [r15 + 0x4e]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x12], ax
lea r8d, [r15 + 0xe]
lea rdx, [rbp + 0x10]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x180008fa7
lea ebx, [r15 + 0xd]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r12
mov byte [rsp + 0x30], r12b
lea rdx, [0x180030598]
lea rcx, [rsp + 0x30]
call fcn.1800039b0
nop
lea rcx, [rsi + 0x28]
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x30]
call fcn.180002da0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.180003904
lea rdx, [rsi + 8]
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x10], r12
cmp qword [rdi + 0x18], 0x10
jb 0x180008f8d
mov rax, qword [rdi]
jmp 0x180008f90
mov rax, rdi
mov byte [rax], r12b
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rdi
call fcn.180003abc
jmp 0x180009253
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdx, qword [rsp + 0x70]
mov rbx, qword [rbp - 0x80]
xor r9d, r9d
mov r8d, ebx
mov rcx, r13
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
je 0x180009010
mov ebx, send
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r12
mov byte [rsp + 0x30], r12b
lea rdx, [0x180030598]
lea rcx, [rsp + 0x30]
call fcn.1800039b0
nop
lea rcx, [rsi + 0x28]
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x30]
call fcn.180002da0
nop
jmp 0x180008f66
lea rdx, [0x180030330]
lea rcx, [rsp + 0x50]
call fcn.1800039b0
or rbx, 0xffffffffffffffff
lea r15d, [rbx + 0x10]
xor r9d, r9d
mov r8d, 0x800
lea rdx, [rbp + 0x120]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_recv]
movsxd r14, eax
test eax, eax
jle 0x1800090b6
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r12
mov byte [rsp + 0x30], r12b
lea rdx, [rbp + 0x120]
lea rcx, [rsp + 0x30]
call fcn.1800039b0
nop
mov r9, r14
xor r8d, r8d
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180009b1c
nop
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180003be4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x20]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.180003904
jmp 0x180009029
mov qword [rbp + 8], r15
mov qword [rbp], r12
mov byte [rbp - 0x10], r12b
lea rdx, [0x18003053c]
lea rcx, [rbp - 0x10]
call fcn.1800039b0
nop
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r15, qword [rbp]
lea r12, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae r12, qword [rbp - 0x10]
test r15, r15
je 0x18000916a
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x18000916a
lea rax, [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
cmovae rax, rcx
lea r14, [r8 - 1]
add r14, rax
test r15, r15
je 0x18000913d
movsx edx, byte [r14]
mov r8, r15
mov rcx, r12
call fcn.18000c9b8
test rax, rax
jne 0x180009154
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, rcx
cmp r14, rax
je 0x18000916a
dec r14
jmp 0x18000911a
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rax, qword [rsp + 0x50]
sub r14, rax
jmp 0x18000916d
mov r14, rbx
movsxd r9, dword [rsp + 0x20]
lea eax, [r14 + 1]
movsxd r8, eax
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.180009b1c
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.18000374c
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x20]
call fcn.180003904
lea r14, [rsi + 8]
lea rax, [rbp - 0x70]
cmp r14, rax
je 0x1800091c0
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.180003abc
mov byte [rsi], 1
mov r12d, send
mov qword [rsp + 0x48], r12
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov byte [rsp + 0x30], r15b
lea rdx, [0x180030598]
lea rcx, [rsp + 0x30]
call fcn.1800039b0
nop
lea rcx, [rsi + 0x28]
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x30]
call fcn.180002da0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.180003904
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x10], r15
cmp qword [rdi + 0x18], 0x10
jb 0x18000922c
mov rax, qword [rdi]
jmp 0x18000922f
mov rax, rdi
mov byte [rax], r15b
mov r9, rbx
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call fcn.180003abc
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x50]
call fcn.180003904
mov rax, rdi
mov rcx, qword [rbp + 0x920]
xor rcx, rsp
call fcn.180009ba0
mov rbx, qword [rsp + 0xa80]
add rsp, 0xa30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret