Function at 0x1400010d0
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
sub rsp, 0xde8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xdd0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001126
lea rcx, str.Failed_to_initialize_Winsock._n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0xdd0]
xor rcx, rsp
call fcn.140001450
add rsp, 0xde8
ret
mov qword [rsp + 0xdf0], rbx
xor r8d, r8d
mov qword [rsp + 0xdf8], rsi
mov edx, 1
mov esi, 2
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001178
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_socket:__d_n
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140001404
lea rcx, str.irc.libera.con
mov qword [rsp + 0xde0], rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rdi, rax
test rax, rax
jne 0x1400011ba
lea rcx, str.Failed_to_get_host_by_name._n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x1400013fc
mov ecx, 0x1a0b
mov word [rsp + 0x20], si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x22], ax
lea rcx, [rsp + 0x24]
mov rdx, qword [rdi + 0x18]
movsx r8, word [rdi + 0x12]
mov rdx, qword [rdx]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000122b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Failed_to_connect_to_server:__d_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x1400013fc
xor r9d, r9d
lea rdx, str.NICK_MyBot
mov r8d, 0xa
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
lea rdx, [0x1400032c0]
mov r8d, esi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
lea rdx, str.USER_MyBot_0__:MyBot
mov r8d, socket
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
lea rdx, [0x1400032c0]
mov r8d, esi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
lea rdx, str.JOIN_testchannel
mov r8d, send
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
lea rdx, [0x1400032c0]
mov r8d, esi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
lea rdx, str.PRIVMSG_testchannel_:Hello__World_
mov r8d, 0x23
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
lea rdx, [0x1400032c0]
mov r8d, esi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
lea rdx, [rsp + 0x5d0]
mov r8d, 0x7ff
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1400013c7
nop dword [rax]
mov ecx, eax
cmp rcx, 0x800
jae 0x14000142c
mov byte [rsp + rcx + 0x5d0], 0
lea rdx, [rsp + 0x5d0]
lea rcx, [0x1400033c4]
call fcn.140001010
mov r8d, 4
lea rdx, str.PING
lea rcx, [rsp + 0x5d0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400013a3
lea r8, [rsp + 0x5d5]
lea rdx, str.PONG__s_r_n
lea rcx, [rsp + 0x1d0]
call fcn.140001070
lea rax, [rsp + 0x1d0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140001385
xor r9d, r9d
lea rdx, [rsp + 0x1d0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
lea rdx, [rsp + 0x5d0]
mov r8d, 0x7ff
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140001310
test eax, eax
jne 0x1400013d7
lea rcx, str.Connection_closed_by_server._n
call fcn.140001010
jmp 0x1400013eb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Failed_to_receive_data:__d_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rdi, qword [rsp + 0xde0]
mov rbx, qword [rsp + 0xdf0]
mov rsi, qword [rsp + 0xdf8]
mov rcx, qword [rsp + 0xdd0]
xor rcx, rsp
call fcn.140001450
add rsp, 0xde8
ret
call fcn.140001578
int3