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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0xa60
mov rax, qword [0x10007f258]
xor rax, rsp
mov qword [rsp + 0xa50], 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, [rsp + 0x240]
xor edx, edx
mov r8d, 0x802
xor r12d, r12d
call sub.msvcrt.dll_memset
lea edi, [r12 + 0x20]
lea rcx, [rsp + 0x220]
mov r8, rdi
xor edx, edx
call sub.msvcrt.dll_memset
and dword [rbx], r12d
lea rdx, [rsp + 0x80]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov r11d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x1000161be
and dword [rsp + 0x54], r12d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x220]
mov dword [rsp + 0x50], 2
mov dword [rsp + 0x40], edi
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x220]
xor edx, edx
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x100016225
and dword [rbx], r12d
mov rax, qword [rsp + 0x48]
jmp 0x10000a3f8
test rax, rax
je 0x10000a405
inc dword [rbx]
mov rax, qword [rax + 0x28]
jmp 0x10000a3f8
add dword [rbx], 2
mov ecx, dword [rbx]
shl ecx, 3
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rsi], rax
test rax, rax
je 0x100016202
lea rcx, [0x10007faac]
call sym.spoolsv.exe_PrvAllocSplStr
mov r11, rax
mov rax, qword [rsi]
mov qword [rax], r11
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x18]
call sym.spoolsv.exe_PrvAllocSplStr
mov r11, rax
mov rax, qword [rsi]
mov qword [rax + 8], r11
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x10000a4af
mov ebp, 0x10
mov edx, dword [rdi + 0x10]
mov rcx, qword [rdi + 0x20]
mov dword [rsp + 0x30], 2
and dword [rsp + 0x28], r12d
and qword [rsp + 0x20], r12
lea r8, [rsp + 0x240]
mov r9d, 0x401
call qword [sym.imp.WS2_32.dll_GetNameInfoW]
test eax, eax
jne 0x10000a4af
lea rcx, [rsp + 0x240]
call sym.spoolsv.exe_PrvAllocSplStr
mov r11, rax
mov rax, qword [rsi]
mov qword [rax + rbp], r11
mov rdi, qword [rdi + 0x28]
add rbp, 8
test rdi, rdi
jne 0x10000a45a
xor ecx, ecx
cmp dword [rbx], ecx
jbe 0x10000a4cb
mov rax, qword [rsi]
cmp qword [rax], r12
je 0x10001620a
inc ecx
add rax, 8
cmp ecx, dword [rbx]
jb 0x10000a4b8
mov r12d, 1
jmp 0x10000a4d3
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x10000a4e9
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, r12d
mov rcx, qword [rsp + 0xa50]
xor rcx, rsp
call fcn.1000010b0
lea r11, [rsp + 0xa60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x1000161f2
test byte [rcx + 0x1c], 1
je 0x1000161f2
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xa]
lea r8, [0x100079a98]
mov r9d, r11d
call fcn.10001c084
mov r11d, dword [rsp + 0x40]
mov ecx, r11d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10000a4ec
and dword [rbx], r12d
jmp 0x10000a4d3
mov rdx, rbx
mov rcx, rsi
call sym.spoolsv.exe_PrvFreeOtherNames
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10000a4d3
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x10000a4d3
test byte [rcx + 0x1c], 1
je 0x10000a4d3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [0x10007f250]
lea r8, [0x100079a98]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x2b
call fcn.10001c084
nop
jmp 0x10000a4d3