Function at 0x1400117c1
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 0x14001d1c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1c48
call fcn.1400111cc
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x58a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c68]
mov rax, qword [0x140031040]
xor rax, rbp
mov qword [rbp + 0x1c10], rax
lea rcx, [0x1400390fc]
call fcn.1400119d3
lea rcx, [rbp + 8]
call fcn.1400119bf
nop
lea rcx, [rbp + 0x48]
call fcn.1400119bf
nop
lea rcx, [rbp + 0x88]
call fcn.1400119bf
nop
xor r8d, r8d
lea rdx, [0x14002b76c]
mov rcx, qword [rbp + 0x1c40]
call fcn.14001138e
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0xffffffffffffffff
je 0x14001d3d2
mov r9, qword [rbp + 0xc8]
xor r8d, r8d
lea rdx, [rbp + 0x1b18]
mov rcx, qword [rbp + 0x1c40]
call fcn.140011505
mov qword [rbp + 0x1c08], rax
mov rdx, qword [rbp + 0x1c08]
lea rcx, [rbp + 8]
call fcn.1400112b2
lea rcx, [rbp + 0x1b18]
call fcn.1400111d6
mov rax, qword [rbp + 0xc8]
add rax, 3
mov qword [rbp + 0xe8], rax
mov r8, qword [rbp + 0xe8]
mov dl, 0x2f
mov rcx, qword [rbp + 0x1c40]
call fcn.140011569
mov qword [rbp + 0x108], rax
cmp qword [rbp + 0x108], 0xffffffffffffffff
je 0x14001d379
mov rax, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0x108]
sub rcx, rax
mov rax, rcx
mov r9, rax
mov r8, qword [rbp + 0xe8]
lea rdx, [rbp + 0x1b58]
mov rcx, qword [rbp + 0x1c40]
call fcn.140011505
mov qword [rbp + 0x1c08], rax
mov rdx, qword [rbp + 0x1c08]
lea rcx, [rbp + 0x48]
call fcn.1400112b2
lea rcx, [rbp + 0x1b58]
call fcn.1400111d6
mov r9, 0xffffffffffffffff
mov r8, qword [rbp + 0x108]
lea rdx, [rbp + 0x1b98]
mov rcx, qword [rbp + 0x1c40]
call fcn.140011505
mov qword [rbp + 0x1c08], rax
mov rdx, qword [rbp + 0x1c08]
lea rcx, [rbp + 0x88]
call fcn.1400112b2
lea rcx, [rbp + 0x1b98]
call fcn.1400111d6
jmp 0x14001d3d0
mov r9, 0xffffffffffffffff
mov r8, qword [rbp + 0xe8]
lea rdx, [rbp + 0x1bd8]
mov rcx, qword [rbp + 0x1c40]
call fcn.140011505
mov qword [rbp + 0x1c08], rax
mov rdx, qword [rbp + 0x1c08]
lea rcx, [rbp + 0x48]
call fcn.1400112b2
lea rcx, [rbp + 0x1bd8]
call fcn.1400111d6
lea rdx, [0x14002b770]
lea rcx, [rbp + 0x88]
call fcn.14001105a
jmp 0x14001d41b
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.140011131
lea rdx, [0x140011069]
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 + 0x88]
call fcn.1400111d6
nop
lea rcx, [rbp + 0x48]
call fcn.1400111d6
nop
lea rcx, [rbp + 8]
call fcn.1400111d6
jmp 0x14001d908
lea rdx, [rbp + 0x130]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001d479
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.140011131
lea rdx, [0x140011069]
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 + 0x88]
call fcn.1400111d6
nop
lea rcx, [rbp + 0x48]
call fcn.1400111d6
nop
lea rcx, [rbp + 8]
call fcn.1400111d6
jmp 0x14001d908
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x2e8], rax
cmp qword [rbp + 0x2e8], 0xffffffffffffffff
jne 0x14001d4ef
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.140011131
lea rdx, [0x140011069]
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 + 0x88]
call fcn.1400111d6
nop
lea rcx, [rbp + 0x48]
call fcn.1400111d6
nop
lea rcx, [rbp + 8]
call fcn.1400111d6
jmp 0x14001d908
mov qword [rbp + 0x358], 0
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x308]
call fcn.1400117a3
mov dword [rbp + 0x30c], 2
mov dword [rbp + 0x310], 1
mov dword [rbp + 0x314], 6
lea rcx, [rbp + 0x48]
call fcn.1400110ff
lea r9, [rbp + 0x358]
lea r8, [rbp + 0x308]
lea rdx, str.https
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14001d5b3
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.140011131
lea rdx, [0x140011069]
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 + 0x2e8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbp + 0x88]
call fcn.1400111d6
nop
lea rcx, [rbp + 0x48]
call fcn.1400111d6
nop
lea rcx, [rbp + 8]
call fcn.1400111d6
jmp 0x14001d908
mov rax, qword [rbp + 0x358]
mov r8d, dword [rax + 0x10]
mov rax, qword [rbp + 0x358]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14001d644
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.140011131
lea rdx, [0x140011069]
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 + 0x358]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbp + 0x88]
call fcn.1400111d6
nop
lea rcx, [rbp + 0x48]
call fcn.1400111d6
nop
lea rcx, [rbp + 8]
call fcn.1400111d6
jmp 0x14001d908
mov rcx, qword [rbp + 0x358]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov edx, 0xf8
lea rcx, [rbp + 0x380]
call fcn.1400116db
mov edx, 1
lea rcx, [rbp + 0x380]
call fcn.140011843
nop
lea rax, [rbp + 0x390]
lea rdx, str.POST
mov rcx, rax
call fcn.140011131
lea rdx, [rbp + 0x88]
mov rcx, rax
call fcn.1400118e3
lea rdx, str._HTTP_1.1_r_n
mov rcx, rax
call fcn.140011131
lea rax, [rbp + 0x390]
lea rdx, str.Host:
mov rcx, rax
call fcn.140011131
lea rdx, [rbp + 0x48]
mov rcx, rax
call fcn.1400118e3
lea rdx, [0x14002b820]
mov rcx, rax
call fcn.140011131
lea rax, [rbp + 0x390]
lea rdx, str.Content_Type:_application_json_r_n
mov rcx, rax
call fcn.140011131
mov rcx, qword [rbp + 0x1c48]
call fcn.140011884
mov qword [rbp + 0x1c08], rax
lea rcx, [rbp + 0x390]
lea rdx, str.Content_Length:
call fcn.140011131
mov rcx, qword [rbp + 0x1c08]
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, [0x14002b820]
mov rcx, rax
call fcn.140011131
lea rax, [rbp + 0x390]
lea rdx, str.Connection:_close_r_n_r_n
mov rcx, rax
call fcn.140011131
lea rax, [rbp + 0x390]
mov rdx, qword [rbp + 0x1c48]
mov rcx, rax
call fcn.1400118e3
lea rdx, [rbp + 0x498]
lea rcx, [rbp + 0x380]
call fcn.14001193d
nop
lea rcx, [rbp + 0x498]
call fcn.140011884
mov qword [rbp + 0x1c08], rax
lea rcx, [rbp + 0x498]
call fcn.1400110ff
xor r9d, r9d
mov rcx, qword [rbp + 0x1c08]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14001d82e
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.140011131
lea rdx, [0x140011069]
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 + 0x2e8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbp + 0x498]
call fcn.1400111d6
nop
lea rcx, [rbp + 0x380]
call fcn.1400111b8
nop
lea rcx, [rbp + 0x88]
call fcn.1400111d6
nop
lea rcx, [rbp + 0x48]
call fcn.1400111d6
nop
lea rcx, [rbp + 8]
call fcn.1400111d6
jmp 0x14001d908
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x4e0]
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x14f4], eax
cmp dword [rbp + 0x14f4], 0
jle 0x14001d85c
jmp 0x14001d8ad
cmp dword [rbp + 0x14f4], 0
jne 0x14001d88a
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.140011131
lea rdx, [0x140011069]
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 0x14001d8ad
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.140011131
lea rdx, [0x140011069]
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 + 0x14f4], 0
jg 0x14001d82e
mov rcx, qword [rbp + 0x2e8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rbp + 0x498]
call fcn.1400111d6
nop
lea rcx, [rbp + 0x380]
call fcn.1400111b8
nop
lea rcx, [rbp + 0x88]
call fcn.1400111d6
nop
lea rcx, [rbp + 0x48]
call fcn.1400111d6
nop
lea rcx, [rbp + 8]
call fcn.1400111d6
lea rcx, [rbp - 0x20]
lea rdx, [0x14002aa60]
call fcn.14001183e
mov rcx, qword [rbp + 0x1c10]
xor rcx, rbp
call fcn.1400114b5
lea rsp, [rbp + 0x1c28]
pop rdi
pop rbp
ret