Function at 0x140001a30
Capabilities:
Connect socket
Convert ip address from string
Get hostname
Get memory capacity
Get session integrity level
Get session user name
Get system information on windows
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x250
mov ecx, 0x50
call sub.msvcrt.dll_malloc
lea rsi, [rsp + 0x50]
mov edx, 0x100
mov rbx, rax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x140001c10
mov rcx, rsi
call fcn.14009f778
lea rsi, [rsp + 0x20]
lea rdi, [rsp + 0x150]
mov qword [rbx], rax
mov dword [rsp + 0x20], 0x100
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp byte [rsp + 0x150], 0
je 0x140001cc0
mov rcx, rdi
call fcn.14009f778
mov qword [rbx + 8], rax
test rax, rax
je 0x140001cd9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
lea rcx, str.Windows
mov dword [rbx + 0x28], eax
call fcn.14009f778
lea rcx, str.AMD64
mov qword [rbx + 0x10], rax
mov r12, rax
call fcn.14009f778
movsx ecx, byte [r12]
mov qword [rbx + 0x18], rax
mov rsi, rax
test cl, cl
je 0x140001b1e
mov rbp, qword [sym.imp.msvcrt.dll_tolower]
mov esi, 1
nop
call rbp
mov byte [r12], al
mov r12, qword [rbx + 0x10]
add r12, rsi
add rsi, 1
movsx ecx, byte [r12]
test cl, cl
jne 0x140001b00
mov rsi, qword [rbx + 0x18]
movsx ecx, byte [rsi]
mov rbp, qword [sym.imp.msvcrt.dll_tolower]
mov r12d, 1
test cl, cl
je 0x140001b4e
nop word [rax + rax]
call rbp
mov byte [rsi], al
mov rsi, qword [rbx + 0x18]
add rsi, r12
add r12, 1
movsx ecx, byte [rsi]
test cl, cl
jne 0x140001b38
mov rcx, qword [section..data]
call fcn.14009f778
lea rcx, str.1.0.0
mov qword [rbx + 0x20], rax
call fcn.14009f778
mov qword [rbx + 0x30], rax
call fcn.140003300
mov byte [rbx + 0x40], 0
xor r8d, r8d
mov edx, 1
mov qword [rbx + 0x38], rax
mov ecx, 0x17
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001c28
cmp byte [rbx + 0x40], 0
je 0x140001bab
mov dword [0x1400c4040], 1
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov rcx, rdi
mov dword [rsp + 0x150], 0x40
test eax, eax
setne byte [rbx + 0x41]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x158]
test rax, rax
js 0x140001ca0
pxor xmm0, xmm0
cvtsi2ss xmm0, rax
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x1400a7130]
mov rax, rbx
movsd qword [rbx + 0x48], xmm0
add rsp, 0x250
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, [0x1400a70fc]
call fcn.14009f778
jmp 0x140001a6d
pxor xmm0, xmm0
mov eax, 0x17
lea r8, [rsp + 0x158]
mov ecx, 0x17
movups xmmword [rsp + 0x152], xmm0
lea rdx, str.2606:4700:4700::1111
movups xmmword [rsp + 0x15c], xmm0
mov word [rsp + 0x150], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
mov ecx, 0x50
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, 0x1c
mov rdx, rdi
mov rcx, rsi
mov word [rsp + 0x152], ax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140001c90
mov byte [rbx + 0x40], 1
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140001b9b
mov rdx, rax
and eax, 1
pxor xmm0, xmm0
shr rdx, 1
or rdx, rax
cvtsi2ss xmm0, rdx
addss xmm0, xmm0
jmp 0x140001be5
lea rcx, str.USERNAME
call sub.msvcrt.dll_getenv
mov rcx, rax
call fcn.14009f778
jmp 0x140001aa7
lea rcx, [0x1400a70fc]
call fcn.14009f778
mov qword [rbx + 8], rax
jmp 0x140001ab4