Function at 0x1400aa230
Capabilities:
Get hostname

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rdx
mov dword [rbp - 0xc], 0
sub rsp, 0x20
lea r8, [rbp - 0xc]
mov ecx, 1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
add rsp, 0x20
test eax, eax
jne 0x1400aa28b
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x20
cmp eax, 0xea
jne 0x1400aa4c5
mov r15, rsp
mov eax, dword [rbp - 0xc]
lea rax, [rax*2 + 0xf]
and rax, 0xfffffffffffffff0
call fcn.14010eaf0
sub rsp, rax
mov rdi, rsp
sub rsp, 0x20
lea r8, [rbp - 0xc]
mov ecx, 1
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
add rsp, 0x20
sub rsp, 0x20
test eax, eax
je 0x1400aa30b
mov rcx, rdi
call fcn.1401328d8
add rsp, 0x20
mov rbx, rax
movabs rax, 0x7ffffffffffffff0
cmp rbx, rax
jae 0x1400aa628
cmp rbx, 0xb
jae 0x1400aa3be
mov byte [rbp - 0x11], bl
lea r14, [rbp - 0x28]
test rbx, rbx
jne 0x1400aa3fb
jmp 0x1400aa414
mov ecx, 2
call fcn.14009cf60
add rsp, 0x20
test al, al
je 0x1400aa3b2
sub rsp, 0x20
lea rdx, [0x140183ad0]
lea rcx, [rbp - 0x28]
mov r8d, 0x4d
mov r9d, 2
call fcn.140036ae0
add rsp, 0x20
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
sub rsp, 0x20
call qword [rax + 0x10]
add rsp, 0x20
sub rsp, 0x20
lea rdx, str.:_Failed_to_get_device_name__error:
mov r8d, 0x23
mov rcx, rax
call fcn.140013430
add rsp, 0x20
mov rdi, rax
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x20
sub rsp, 0x20
mov rcx, rdi
mov edx, eax
call fcn.14004bd50
add rsp, 0x20
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400aa3b2
mov rax, qword [rcx]
sub rsp, 0x20
mov edx, 1
call qword [rax]
add rsp, 0x20
mov byte [rsi], 0
mov byte [rsi + 0x18], 0
jmp 0x1400aa614
mov r12, rbx
or r12, 7
inc r12
js 0x1400aa64e
lea rcx, [r12 + r12]
sub rsp, 0x20
call fcn.14010e7c0
add rsp, 0x20
mov r14, rax
mov qword [rbp - 0x28], rax
movabs rax, 0x8000000000000000
or rax, r12
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], rbx
mov r8, rbx
add r8, rbx
sub rsp, 0x20
mov rcx, r14
mov rdx, rdi
call fcn.140111410
add rsp, 0x20
mov word [r14 + rbx*2], 0
movzx ecx, byte [rbp - 0x11]
mov rax, qword [rbp - 0x28]
test cl, cl
jns 0x1400aa430
mov rbx, qword [rbp - 0x20]
mov rdi, rax
jmp 0x1400aa437
lea rdi, [rbp - 0x28]
mov rbx, rcx
test rbx, rbx
js 0x1400aa635
cmp rbx, 0xa
ja 0x1400aa478
mov byte [rbp - 0x39], bl
lea rax, [rbp - 0x50]
test rbx, rbx
je 0x1400aa4bd
lea rcx, [rbx - 1]
movabs r8, 0x7fffffffffffffff
and r8, rcx
cmp r8, 0xf
jae 0x1400aa57c
mov rcx, rax
mov rdx, rdi
jmp 0x1400aa5c4
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rax
mov r14, rbx
or r14, 7
lea rcx, [r14*2 + 2]
sub rsp, 0x20
call fcn.14010e7c0
add rsp, 0x20
inc r14
mov qword [rbp - 0x50], rax
movabs rcx, 0x8000000000000000
or rcx, r14
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x48], rbx
test rbx, rbx
jne 0x1400aa452
mov rcx, rax
jmp 0x1400aa5e5
sub rsp, 0x20
mov ecx, 2
call fcn.14009cf60
add rsp, 0x20
test al, al
je 0x1400aa570
sub rsp, 0x20
lea rdx, [0x140183ad0]
lea rcx, [rbp - 0x28]
mov r8d, 0x41
mov r9d, 2
call fcn.140036ae0
add rsp, 0x20
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
sub rsp, 0x20
call qword [rax + 0x10]
add rsp, 0x20
sub rsp, 0x20
lea rdx, str.:_Failed_to_get_device_name_size__error:
mov r8d, 0x28
mov rcx, rax
call fcn.140013430
add rsp, 0x20
mov rdi, rax
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x20
sub rsp, 0x20
mov rcx, rdi
mov edx, eax
call fcn.14004bd50
add rsp, 0x20
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400aa570
mov rax, qword [rcx]
sub rsp, 0x20
mov edx, 1
call qword [rax]
add rsp, 0x20
mov byte [rsi], 0
mov byte [rsi + 0x18], 0
jmp 0x1400aa617
inc r8
mov r9, r8
and r9, 0xfffffffffffffff0
lea rcx, [rax + r9*2]
lea rdx, [rdi + r9*2]
xor r10d, r10d
nop word cs:[rax + rax]
movups xmm0, xmmword [rdi + r10*2]
movups xmm1, xmmword [rdi + r10*2 + 0x10]
movups xmmword [rax + r10*2], xmm0
movups xmmword [rax + r10*2 + 0x10], xmm1
add r10, 0x10
cmp r9, r10
jne 0x1400aa5a0
cmp r8, r9
je 0x1400aa5e5
lea rax, [rdi + rbx*2]
nop dword [rax + rax]
movzx r8d, word [rdx]
mov word [rcx], r8w
add rdx, 2
add rcx, 2
cmp rdx, rax
jne 0x1400aa5d0
mov word [rcx], 0
mov rax, qword [rbp - 0x40]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x18], 1
cmp byte [rbp - 0x11], 0
jns 0x1400aa614
mov rcx, qword [rbp - 0x28]
sub rsp, 0x20
call fcn.14010e7fc
add rsp, 0x20
mov rsp, r15
mov rax, rsi
mov rsp, rbp
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
sub rsp, 0x20
lea rcx, [rbp - 0x28]
call fcn.1400132f0
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rax
sub rsp, 0x20
lea rcx, [rbp - 0x50]
call fcn.1400132f0
add rsp, 0x20
sub rsp, 0x20
call fcn.140012fe0
int3