Function at 0x140010970
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 [0x1400a9008]
xor rax, rsp
mov qword [rbp + 0x950], rax
and dword [rsp + 0x50], 0
mov rbx, rdx
xor edx, edx
mov rsi, rcx
lea rcx, [rsp + 0x54]
lea r8d, [rdx + 0x2c]
call sub.msvcrt.dll_memset
and qword [rsp + 0x48], 0
lea rcx, [rbp + 0x140]
xor edx, edx
mov r8d, 0x802
xor r15d, r15d
call sub.msvcrt.dll_memset
xor edx, edx
lea r8d, [r15 + 0x20]
lea rcx, [rbp + 0x120]
call sub.msvcrt.dll_memset
and dword [rbx], r15d
lea rdx, [rbp - 0x80]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x40], eax
mov r8d, eax
test eax, eax
jne 0x14002b3bc
and dword [rsp + 0x54], r15d
lea r14d, [r15 + 2]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x50], r14d
lea rcx, [rbp + 0x120]
mov dword [rsp + 0x40], 0x10
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea r9, [rsp + 0x48]
xor edx, edx
lea r8, [rsp + 0x50]
lea rcx, [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x14002b41e
and dword [rbx], r15d
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140010a6c
xor ecx, ecx
inc ecx
mov dword [rbx], ecx
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140010a5f
add dword [rbx], r14d
mov ecx, dword [rbx]
shl ecx, 3
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rsi], rax
test rax, rax
je 0x140010b6c
lea rcx, [0x1400aaa5c]
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 0x140010b0e
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]
test eax, eax
jne 0x140010b0e
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]
jmp 0x140010ab7
xor ecx, ecx
cmp dword [rbx], ecx
jbe 0x140010b27
mov rdx, qword [rsi]
cmp qword [rdx + rcx*8], r15
je 0x14002b402
inc ecx
cmp ecx, dword [rbx]
jb 0x140010b17
mov r15d, 1
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140010b43
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, r15d
mov rcx, qword [rbp + 0x950]
xor rcx, rsp
call fcn.140024ca0
mov rbx, qword [rsp + 0xaa0]
add rsp, 0xa60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
and dword [rbx], r15d
jmp 0x140010b2d
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x14002b3f2
test byte [rcx + 0x1c], 0x20
je 0x14002b3f2
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x140075fb0]
mov edx, 0x29
call fcn.14003d1e0
mov r8d, dword [rsp + 0x40]
mov ecx, r8d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
xor eax, eax
jmp 0x140010b46
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_1.dll_SetLastError]
nop
jmp 0x140010b2d
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x140010b2d
test byte [rcx + 0x1c], 0x20
je 0x140010b2d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [0x1400a92b0]
lea r8, [0x140075fb0]
mov r9d, eax
mov edx, 0x2a
mov rcx, qword [rcx + 0x10]
call fcn.14003d1e0
nop
jmp 0x140010b2d