Function at 0x140001280
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1240]
mov eax, 0x1340
call fcn.1400033f0
sub rsp, rax
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0x1230], rax
mov r14, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rbp], rcx
mov qword [rbp + 8], rdx
mov qword [rbp + 0x10], r8
mov ecx, 0x202
lea rdx, [rbp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400013ea
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000131c
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140001317
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001d4a
mov rcx, r8
call fcn.14000261c
xor edi, edi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], recv
mov byte [rbx], dil
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140001367
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140001362
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001d51
mov rcx, r8
call fcn.14000261c
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], recv
mov byte [rsi], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x1400013b0
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x1400013ab
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001d58
mov rcx, r8
call fcn.14000261c
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], recv
mov byte [r14], 0
mov rcx, qword [rbp + 0x1230]
xor rcx, rsp
call fcn.1400025c0
mov rbx, qword [rsp + 0x1398]
add rsp, 0x1340
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edi, edi
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x30], rdi
mov r15, qword [rbx + 0x10]
mov r12, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140001409
mov r12, qword [rbx]
movabs rax, 0x7fffffffffffffff
cmp r15, 0x10
jae 0x140001430
movups xmm0, xmmword [r12]
movups xmmword [rbp + 0x18], xmm0
mov qword [rbp + 0x28], r15
mov qword [rbp + 0x30], recv
jmp 0x1400014a8
mov r13, r15
or r13, 0xf
cmp r13, rax
cmova r13, rax
lea rcx, [r13 + 1]
cmp rcx, 0x1000
jb 0x14000147a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001d65
mov rcx, rax
call fcn.1400025e0
mov rcx, rax
test rax, rax
je 0x140001d43
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001489
test rcx, rcx
je 0x140001486
call fcn.1400025e0
jmp 0x140001489
mov rax, rdi
mov qword [rbp + 0x18], rax
lea r8, [r15 + 1]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x28], r15
mov qword [rbp + 0x30], r13
mov r15, qword [rbx + 0x10]
mov ecx, edi
test r15, r15
je 0x1400015bd
mov rax, rdi
mov r8, qword [rbx + 0x18]
nop word [rax + rax]
mov rdx, rbx
cmp r8, 0x10
jb 0x1400014cc
mov rdx, qword [rbx]
cmp byte [rax + rdx], 0x30
jl 0x1400014f3
mov rdx, rbx
cmp r8, 0x10
jb 0x1400014de
mov rdx, qword [rbx]
cmp byte [rdx + rax], 0x39
jg 0x1400014f3
inc ecx
mov eax, ecx
cmp rax, qword [rbx + 0x10]
jb 0x1400014c0
jmp 0x1400015bd
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.140001f70
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140001d80
mov r15, rax
lea rax, [rbp + 0x18]
cmp rax, r15
je 0x14000157f
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x14000154e
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001549
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400015b1
call fcn.14000261c
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x30], recv
mov byte [rbp + 0x18], 0
movups xmm0, xmmword [r15]
movups xmmword [rbp + 0x18], xmm0
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rbp + 0x28], xmm1
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], recv
mov byte [r15], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x1400015bd
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000261c
mov r15d, 2
mov word [rbp + 0x58], r15w
lea ecx, [r15 + 0x4e]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x5a], ax
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 0x10
cmovae rdx, qword [rbp + 0x18]
lea r8, [rbp + 0x5c]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_inet_pton]
xor r8d, r8d
lea edx, [r15 - 1]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
mov r15, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x1400016b3
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x140001655
mov rcx, qword [rbp + 0x18]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001650
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001d43
call fcn.14000261c
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x30], recv
mov byte [rbp + 0x18], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000169f
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000169a
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001d4a
mov rcx, r8
call fcn.14000261c
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], recv
mov byte [rbx], 0
jmp 0x14000132d
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x58]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400016d9
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140001613
mov r8, qword [r14 + 0x10]
lea r9, [rbp + 0x225]
movabs r10, 0xcccccccccccccccd
nop
dec r9
mov rax, r10
mul r8
shr rdx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8, rdx
test rdx, rdx
jne 0x1400016f0
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], recv
mov byte [rbp - 0x40], dl
lea rax, [rbp + 0x225]
cmp r9, rax
je 0x140001750
lea r8, [rbp + 0x225]
sub r8, r9
mov rdx, r9
lea rcx, [rbp - 0x40]
call fcn.140002050
nop
mov rdx, qword [rsi + 0x10]
mov qword [rsp + 0x20], rdx
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rdx
cmp rax, 5
jb 0x140001d6b
mov qword [rsp + 0x50], rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140001787
mov rax, qword [rsi]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
lea rax, [rdx + 5]
mov qword [rsp + 0x48], rax
mov r13d, recv
lea r12, [rsp + 0x28]
lea r15, [r13 - 0x10]
cmp rax, r13
jbe 0x140001840
mov r13, rax
or r13, 0xf
cmp r13, rcx
jbe 0x1400017c8
mov r13, rcx
jmp 0x1400017d4
mov ecx, socket
cmp r13, rcx
cmovb r13, rcx
mov rcx, r13
add rcx, 1
cmovb rcx, r15
cmp rcx, 0x1000
jb 0x14000181f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001d5f
mov rcx, rax
call fcn.1400025e0
test rax, rax
je 0x140001b85
lea r12, [rax + 0x27]
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
mov rax, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x20]
jmp 0x14000183b
test rcx, rcx
je 0x140001838
call fcn.1400025e0
mov r12, rax
mov rax, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x20]
jmp 0x14000183b
mov r12, rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r13
mov eax, dword [str.POST]
mov dword [r12], eax
movzx eax, byte [0x140004450]
mov byte [r12 + 4], al
lea rcx, [r12 + 5]
mov r8, rdx
mov rdx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x20]
mov byte [r12 + rax + 5], 0
mov r8d, send
lea rdx, str._HTTP_1.1_r_nHost:
lea rcx, [rsp + 0x28]
call fcn.1400021b0
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], recv
mov byte [rax], 0
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400018cb
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x60]
call fcn.1400021b0
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], recv
mov byte [rax], 0
mov r8d, 0x43
lea rdx, str._r_nContent_Type:_application_x_www_form_urlencoded_r_nContent_Length:
lea rcx, [rbp - 0x80]
call fcn.1400021b0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x210], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x220], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x210]
lea rcx, [rbp - 0x20]
call fcn.1400023c0
nop
mov r8d, 4
lea rdx, str._r_n_r_n
lea rcx, [rbp - 0x20]
call fcn.1400021b0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], recv
mov byte [rax], 0
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1400019a3
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
lea rcx, [rsp + 0x60]
call fcn.1400021b0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x48], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], recv
mov byte [rax], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140001a0f
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a0a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000261c
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], recv
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140001a60
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a5b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a5b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000261c
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], recv
mov byte [rbp - 0x20], 0
mov rdx, qword [rbp + 0x228]
cmp rdx, 0x10
jb 0x140001ab5
inc rdx
mov rcx, qword [rbp + 0x210]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001aaf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001aaf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000261c
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140001af3
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001aee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001aee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000261c
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], recv
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140001b41
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000261c
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], recv
mov byte [rbp - 0x60], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140001b91
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b8c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000261c
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], recv
mov byte [rsp + 0x28], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140001be2
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bdd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bdd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000261c
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae rdx, qword [rbp + 0x38]
inc r15
cmp byte [rdx + r15], 0
jne 0x140001bf0
mov r8, r15
xor r9d, r9d
mov r15, qword [rsp + 0x58]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140001c72
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x140001c5d
inc rdx
mov rcx, qword [rbp + 0x38]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140001c58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ce9
call fcn.14000261c
mov qword [rbp + 0x48], rdi
mov qword [rbp + 0x50], recv
mov byte [rbp + 0x38], 0
jmp 0x14000161a
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x230]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov r8d, 0xfff
lea rdx, [rbp + 0x230]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, r15
cmp eax, 0xffffffff
je 0x140001c16
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x140001cf5
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cf0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cf0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000261c
mov qword [rbp + 0x48], rdi
mov qword [rbp + 0x50], recv
mov byte [rbp + 0x38], 0
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x140001655
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001650
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001650
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001100
nop
call fcn.140001100
nop
call fcn.1400011a0
int3