Function at 0x1400117df
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
jmp 0x14001d990
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1c88
call fcn.1400111e5
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x59a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1ca8]
mov rax, qword [0x140032040]
xor rax, rbp
mov qword [rbp + 0x1c50], rax
lea rcx, [0x14003a0fc]
call fcn.1400119fb
mov r8b, 0x4b
mov rdx, qword [rbp + 0x1c80]
lea rcx, [rbp + 8]
call fcn.1400110aa
nop
lea rcx, [rbp + 0x48]
call fcn.1400119e7
nop
lea rcx, [rbp + 0x88]
call fcn.1400119e7
nop
lea rcx, [rbp + 0xc8]
call fcn.1400119e7
nop
xor r8d, r8d
lea rdx, [0x14002ca3c]
lea rcx, [rbp + 8]
call fcn.1400113a7
mov qword [rbp + 0x108], rax
cmp qword [rbp + 0x108], 0xffffffffffffffff
je 0x14001dbad
mov r9, qword [rbp + 0x108]
xor r8d, r8d
lea rdx, [rbp + 0x1b58]
lea rcx, [rbp + 8]
call fcn.14001151e
mov qword [rbp + 0x1c48], rax
mov rdx, qword [rbp + 0x1c48]
lea rcx, [rbp + 0x48]
call fcn.1400112cb
lea rcx, [rbp + 0x1b58]
call fcn.1400111ef
mov rax, qword [rbp + 0x108]
add rax, 3
mov qword [rbp + 0x128], rax
mov r8, qword [rbp + 0x128]
mov dl, 0x2f
lea rcx, [rbp + 8]
call fcn.140011582
mov qword [rbp + 0x148], rax
cmp qword [rbp + 0x148], 0xffffffffffffffff
je 0x14001db54
mov rax, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x148]
sub rcx, rax
mov rax, rcx
mov r9, rax
mov r8, qword [rbp + 0x128]
lea rdx, [rbp + 0x1b98]
lea rcx, [rbp + 8]
call fcn.14001151e
mov qword [rbp + 0x1c48], rax
mov rdx, qword [rbp + 0x1c48]
lea rcx, [rbp + 0x88]
call fcn.1400112cb
lea rcx, [rbp + 0x1b98]
call fcn.1400111ef
mov r9, 0xffffffffffffffff
mov r8, qword [rbp + 0x148]
lea rdx, [rbp + 0x1bd8]
lea rcx, [rbp + 8]
call fcn.14001151e
mov qword [rbp + 0x1c48], rax
mov rdx, qword [rbp + 0x1c48]
lea rcx, [rbp + 0xc8]
call fcn.1400112cb
lea rcx, [rbp + 0x1bd8]
call fcn.1400111ef
jmp 0x14001dbab
mov r9, 0xffffffffffffffff
mov r8, qword [rbp + 0x128]
lea rdx, [rbp + 0x1c18]
lea rcx, [rbp + 8]
call fcn.14001151e
mov qword [rbp + 0x1c48], rax
mov rdx, qword [rbp + 0x1c48]
lea rcx, [rbp + 0x88]
call fcn.1400112cb
lea rcx, [rbp + 0x1c18]
call fcn.1400111ef
lea rdx, [0x14002ca40]
lea rcx, [rbp + 0xc8]
call fcn.14001105f
jmp 0x14001dc03
lea rdx, str.Invalid_webhook_URL.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011140
lea rdx, [0x14001106e]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rbp + 0xc8]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x88]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x48]
call fcn.1400111ef
nop
lea rcx, [rbp + 8]
call fcn.1400111ef
jmp 0x14001e148
lea rdx, [rbp + 0x170]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001dc6e
lea rdx, str.WSAStartup_failed.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011140
lea rdx, [0x14001106e]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rbp + 0xc8]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x88]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x48]
call fcn.1400111ef
nop
lea rcx, [rbp + 8]
call fcn.1400111ef
jmp 0x14001e148
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x328], rax
cmp qword [rbp + 0x328], 0xffffffffffffffff
jne 0x14001dcf1
lea rdx, str.Failed_to_create_socket.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011140
lea rdx, [0x14001106e]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbp + 0xc8]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x88]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x48]
call fcn.1400111ef
nop
lea rcx, [rbp + 8]
call fcn.1400111ef
jmp 0x14001e148
mov qword [rbp + 0x398], 0
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x348]
call fcn.1400117c1
mov dword [rbp + 0x34c], 2
mov dword [rbp + 0x350], 1
mov dword [rbp + 0x354], 6
lea rcx, [rbp + 0x88]
call fcn.14001110e
lea r9, [rbp + 0x398]
lea r8, [rbp + 0x348]
lea rdx, str.https
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14001ddc5
lea rdx, str.getaddrinfo_failed.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011140
lea rdx, [0x14001106e]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp + 0x328]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbp + 0xc8]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x88]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x48]
call fcn.1400111ef
nop
lea rcx, [rbp + 8]
call fcn.1400111ef
jmp 0x14001e148
mov rax, qword [rbp + 0x398]
mov r8d, dword [rax + 0x10]
mov rax, qword [rbp + 0x398]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rbp + 0x328]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14001de63
lea rdx, str.Failed_to_connect.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011140
lea rdx, [0x14001106e]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp + 0x398]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [rbp + 0x328]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbp + 0xc8]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x88]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x48]
call fcn.1400111ef
nop
lea rcx, [rbp + 8]
call fcn.1400111ef
jmp 0x14001e148
mov rcx, qword [rbp + 0x398]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov edx, 0xf8
lea rcx, [rbp + 0x3c0]
call fcn.1400116f9
mov edx, 1
lea rcx, [rbp + 0x3c0]
call fcn.140011866
nop
lea rax, [rbp + 0x3d0]
lea rdx, str.POST
mov rcx, rax
call fcn.140011140
lea rdx, [rbp + 0xc8]
mov rcx, rax
call fcn.14001190b
lea rdx, str._HTTP_1.1_r_n
mov rcx, rax
call fcn.140011140
lea rax, [rbp + 0x3d0]
lea rdx, str.Host:
mov rcx, rax
call fcn.140011140
lea rdx, [rbp + 0x88]
mov rcx, rax
call fcn.14001190b
lea rdx, [0x14002caf0]
mov rcx, rax
call fcn.140011140
lea rax, [rbp + 0x3d0]
lea rdx, str.Content_Type:_application_json_r_n
mov rcx, rax
call fcn.140011140
mov rcx, qword [rbp + 0x1c88]
call fcn.1400118a7
mov qword [rbp + 0x1c48], rax
lea rcx, [rbp + 0x3d0]
lea rdx, str.Content_Length:
call fcn.140011140
mov rcx, qword [rbp + 0x1c48]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
lea rdx, [0x14002caf0]
mov rcx, rax
call fcn.140011140
lea rax, [rbp + 0x3d0]
lea rdx, str.Connection:_close_r_n_r_n
mov rcx, rax
call fcn.140011140
lea rax, [rbp + 0x3d0]
mov rdx, qword [rbp + 0x1c88]
mov rcx, rax
call fcn.14001190b
lea rdx, [rbp + 0x4d8]
lea rcx, [rbp + 0x3c0]
call fcn.140011965
nop
lea rcx, [rbp + 0x4d8]
call fcn.1400118a7
mov qword [rbp + 0x1c48], rax
lea rcx, [rbp + 0x4d8]
call fcn.14001110e
xor r9d, r9d
mov rcx, qword [rbp + 0x1c48]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rbp + 0x328]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14001e061
lea rdx, str.Send_failed.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011140
lea rdx, [0x14001106e]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp + 0x328]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbp + 0x4d8]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x3c0]
call fcn.1400111d1
nop
lea rcx, [rbp + 0xc8]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x88]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x48]
call fcn.1400111ef
nop
lea rcx, [rbp + 8]
call fcn.1400111ef
jmp 0x14001e148
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x520]
mov rcx, qword [rbp + 0x328]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x1534], eax
cmp dword [rbp + 0x1534], 0
jle 0x14001e08f
jmp 0x14001e0e0
cmp dword [rbp + 0x1534], 0
jne 0x14001e0bd
lea rdx, str.Connection_closed.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011140
lea rdx, [0x14001106e]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14001e0e0
lea rdx, str.Receive_failed.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011140
lea rdx, [0x14001106e]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp dword [rbp + 0x1534], 0
jg 0x14001e061
mov rcx, qword [rbp + 0x328]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbp + 0x4d8]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x3c0]
call fcn.1400111d1
nop
lea rcx, [rbp + 0xc8]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x88]
call fcn.1400111ef
nop
lea rcx, [rbp + 0x48]
call fcn.1400111ef
nop
lea rcx, [rbp + 8]
call fcn.1400111ef
lea rcx, [rbp - 0x20]
lea rdx, [0x14002bb90]
call fcn.140011861
mov rcx, qword [rbp + 0x1c50]
xor rcx, rbp
call fcn.1400114ce
lea rsp, [rbp + 0x1c68]
pop rdi
pop rbp
ret