Function at 0x180074480
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp qword [0x1801a2d98], 0
jne 0x180074728
lea rcx, str.WSOCK32.DLL
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbx, rax
jne 0x1800744b6
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
lea rcx, str.ADVAPI32.DLL
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rdi, rax
je 0x180074703
lea rdx, str.WSAStartup
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2d98], rax
je 0x1800746e0
lea rdx, str.socket
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2d10], rax
je 0x1800746e0
lea rdx, str.select
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2d00], rax
je 0x1800746e0
lea rdx, str.closesocket
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2d88], rax
je 0x1800746e0
lea rdx, str.connect
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2d18], rax
je 0x1800746e0
lea rdx, str.send
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2d70], rax
je 0x1800746e0
lea rdx, str.recv
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2d30], rax
je 0x1800746e0
lea rdx, str.WSAGetLastError
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2d28], rax
je 0x1800746e0
lea rdx, str.gethostname
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2cb0], rax
je 0x1800746e0
lea rdx, str.htonl
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2c70], rax
je 0x1800746e0
lea rdx, str.htons
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2d60], rax
je 0x1800746e0
lea rdx, str.GetUserNameA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2cf8], rax
je 0x1800746e0
lea rdx, str.IsValidSid
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2ca0], rax
je 0x1800746e0
lea rdx, str.GetSidSubAuthority
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2d78], rax
je 0x1800746e0
lea rdx, str.GetSidSubAuthorityCount
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2ca8], rax
je 0x1800746e0
lea rdx, str.GetTokenInformation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2ce8], rax
je 0x1800746e0
lea rdx, str.OpenProcessToken
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x1801a2cf0], rax
jne 0x180074714
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor r11d, r11d
mov qword [0x1801a2d98], r11
mov qword [0x1801a2d10], r11
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x28
ret
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret