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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x960]
sub rsp, 0xa60
mov rax, qword [0x1400c87d8]
xor rax, rsp
mov qword [rbp + 0x950], rax
and qword [rsp + 0x48], 0
xorps xmm0, xmm0
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x802
xor r15d, r15d
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call sub.msvcrt.dll_memset
and dword [rbx], r15d
lea rdx, [rbp - 0x80]
xorps xmm0, xmm0
mov ecx, 0x202
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
mov r8d, eax
test eax, eax
je 0x140076b50
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x140076b3a
test byte [rcx + 0x44], 0x20
je 0x140076b3a
mov rcx, qword [rcx + 0x38]
lea edx, [r15 + 0x2d]
mov r9d, r8d
lea r8, [0x1400ab970]
call fcn.140016c88
mov r8d, dword [rsp + 0x40]
mov ecx, r8d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x140076d0e
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x50], 2
lea rcx, [rbp + 0x120]
mov dword [rsp + 0x40], 0x10
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
nop dword [rax + rax]
lea r9, [rsp + 0x48]
xor edx, edx
lea r8, [rsp + 0x50]
lea rcx, [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x140076ca5
mov rax, qword [rsp + 0x48]
xor ecx, ecx
jmp 0x140076bb0
inc ecx
mov dword [rbx], ecx
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140076ba8
add ecx, 2
mov dword [rbx], ecx
shl ecx, 3
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rsi], rax
test rax, rax
jne 0x140076bd2
and dword [rbx], r15d
jmp 0x140076ce9
lea rcx, [0x1400ca064]
call sym.spoolsv.exe_PrvDllAllocSplStr
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x18]
call sym.spoolsv.exe_PrvDllAllocSplStr
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 8], rcx
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x140076c6a
mov r14d, 2
mov edx, dword [rdi + 0x10]
lea r8, [rbp + 0x140]
mov rcx, qword [rdi + 0x20]
mov r9d, 0x401
mov dword [rsp + 0x30], 2
and dword [rsp + 0x28], r15d
and qword [rsp + 0x20], r15
call qword [sym.imp.WS2_32.dll_GetNameInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x140076c6a
lea rcx, [rbp + 0x140]
call sym.spoolsv.exe_PrvDllAllocSplStr
mov rdx, rax
mov ecx, r14d
mov rax, qword [rsi]
inc r14d
mov qword [rax + rcx*8], rdx
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140076c0f
xor ecx, ecx
cmp dword [rbx], ecx
jbe 0x140076c7f
mov rdx, qword [rsi]
cmp qword [rdx + rcx*8], r15
je 0x140076c87
inc ecx
cmp ecx, dword [rbx]
jb 0x140076c73
mov r15d, 1
jmp 0x140076ce9
mov rdx, rbx
mov rcx, rsi
call sym.spoolsv.exe_PrvFreeOtherNames
mov ecx, 8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140076ce9
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x140076ce9
test byte [rcx + 0x44], 0x20
je 0x140076ce9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
lea r8, [0x1400ab970]
mov edx, 0x2e
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.140016c88
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140076d0b
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
nop dword [rax + rax]
mov eax, r15d
mov rcx, qword [rbp + 0x950]
xor rcx, rsp
call fcn.14000e2c0
mov rbx, qword [rsp + 0xaa0]
add rsp, 0xa60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret