Function at 0x180009818
Capabilities:
Get hostname
Get session user name
Resolve dns

Disassembly:
mov rax, rsp
push rbp
push r12
push r14
lea rbp, [rax - 0xaa8]
sub rsp, 0xb90
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180038008]
xor rax, rsp
mov qword [rbp + 0xa80], rax
mov rsi, rcx
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x280]
call fcn.18000ce00
lea rdi, [rsi + 0x28]
mov rcx, rdi
call fcn.180002954
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x80]
call fcn.18000ce00
xor r12d, r12d
mov dword [rsp + 0x30], r12d
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, dword [rsp + 0x30]
call fcn.180014e88
mov rbx, rax
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.18000ce00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov r14d, 0x100
mov r8d, r14d
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.18000ce00
mov dword [rsp + 0x34], r14d
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea r9, [rbp - 0x80]
mov r8, rbx
lea rdx, str._s_s
lea rcx, [rbp + 0x80]
call fcn.180001130
lea r14d, [r12 + 0xf]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r12
mov byte [rsp + 0x40], r12b
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.1800039b0
nop
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r12
mov byte [rsp + 0x60], r12b
lea rdx, str.hostname
lea rcx, [rsp + 0x60]
call fcn.1800039b0
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.180002da0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.180003904
lea ecx, [r12 + 0x10]
call fcn.180014e88
mov rbx, rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
lea rcx, [0x180030330]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx]
mov ecx, dword [rdx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea r8d, [r12 + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r12
mov byte [rsp + 0x60], r12b
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1800039b0
nop
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r12
mov byte [rsp + 0x40], r12b
lea rdx, [0x18003055c]
lea rcx, [rsp + 0x40]
call fcn.1800039b0
nop
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180002da0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.180003904
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.180008bfc
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.180003904
mov rcx, rsi
call fcn.1800094a4
mov rcx, rsi
call fcn.180008974
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1800092cc
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.180003904
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180002b04
nop
cmp qword [rax + 0x18], 0x10
jb 0x180009a9a
mov rax, qword [rax]
mov r8, rax
lea rdx, [0x180030468]
lea rcx, [rbp + 0x280]
call fcn.180001130
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.180003904
lea rax, [rbp + 0x280]
or r9, 0xffffffffffffffff
inc r9
cmp byte [rax + r9], r12b
jne 0x180009acb
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r8, [rbp + 0x280]
mov edx, 1
call fcn.180004f00
mov rcx, qword [rbp + 0xa80]
xor rcx, rsp
call fcn.180009ba0
lea r11, [rsp + 0xb90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret