Function at 0x10000a1e0
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 [0x100083218]
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 0x100016256
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 0x1000162bd
and dword [rbx], r12d
mov rax, qword [rsp + 0x48]
jmp 0x10000a2cc
test rax, rax
je 0x10000a2d9
inc dword [rbx]
mov rax, qword [rax + 0x28]
jmp 0x10000a2cc
add dword [rbx], 2
mov ecx, dword [rbx]
shl ecx, 3
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rsi], rax
test rax, rax
je 0x10001629a
lea rcx, [0x100083a5c]
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 0x10000a383
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 0x10000a383
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 0x10000a32e
xor ecx, ecx
cmp dword [rbx], ecx
jbe 0x10000a39f
mov rax, qword [rsi]
cmp qword [rax], r12
je 0x1000162a2
inc ecx
add rax, 8
cmp ecx, dword [rbx]
jb 0x10000a38c
mov r12d, 1
jmp 0x10000a3a7
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x10000a3bd
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, r12d
mov rcx, qword [rsp + 0xa50]
xor rcx, rsp
call fcn.1000010c0
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 [0x100083210]
lea rax, [0x100083210]
cmp rcx, rax
je 0x10001628a
test byte [rcx + 0x1c], 1
je 0x10001628a
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xa]
lea r8, [0x10007d008]
mov r9d, r11d
call fcn.10001c48c
mov r11d, dword [rsp + 0x40]
mov ecx, r11d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10000a3c0
and dword [rbx], r12d
jmp 0x10000a3a7
mov rdx, rbx
mov rcx, rsi
call sym.spoolsv.exe_PrvFreeOtherNames
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10000a3a7
mov rcx, qword [0x100083210]
lea rax, [0x100083210]
cmp rcx, rax
je 0x10000a3a7
test byte [rcx + 0x1c], 1
je 0x10000a3a7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [0x100083210]
lea r8, [0x10007d008]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x2b
call fcn.10001c48c
nop
jmp 0x10000a3a7