Function at 0x18001164c
Capabilities:
Get hostname

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor esi, esi
xor ebp, ebp
and dword [rsp + 0x30], esi
mov r15, r9
mov r13, rcx
cmp r8, 0x7fffffff
ja 0x18001198b
call fcn.18000bbf0
test rax, rax
je 0x18001198b
lea r12d, [rbp + 0x3b]
mov edx, r12d
lea rcx, [rax + 8]
call fcn.1800156bc
mov rdi, rax
test rax, rax
je 0x18001198b
inc rdi
cmp byte [rdi], r12b
je 0x180011926
lea r14, [rsp + 0x38]
cmp ebp, 0xa
jae 0x18001197e
mov edx, r12d
mov rcx, rdi
call fcn.1800156bc
mov rbx, rax
test rax, rax
je 0x18001197e
inc rbx
mov byte [rax], 0
mov rcx, rbx
mov edx, r12d
call fcn.1800156bc
mov r12, rax
test rax, rax
je 0x18001197e
mov byte [rax], 0
sub eax, ebx
cmp eax, 0xff
jg 0x18001197e
cmp byte [rdi], 0x61
jl 0x18001197e
cmp byte [rdi], 0x62
jle 0x180011912
cmp byte [rdi], 0x6e
je 0x1800117ce
cmp byte [rdi], 0x71
jle 0x18001197e
cmp byte [rdi], 0x73
jle 0x180011912
cmp byte [rdi], 0x74
jne 0x18001197e
mov rdi, qword [r15]
test rdi, rdi
je 0x180011912
cmp dword [rdi], 7
je 0x180011762
mov rdi, qword [rdi + 0x408]
test rdi, rdi
jne 0x180011751
test rdi, rdi
je 0x180011912
mov dword [r14], 7
mov rcx, rbx
add r14, 4
inc ebp
call fcn.180014278
test eax, eax
je 0x18001197e
add rdi, 0x208
xor edx, edx
sub rbx, rdi
mov ecx, 0x100
lea rax, [rcx + 0x7ffffefe]
test rax, rax
je 0x1800117b7
mov al, byte [rbx + rdi]
test al, al
je 0x1800117b7
mov byte [rdi], al
inc rdi
sub rcx, 1
jne 0x180011799
test rcx, rcx
jne 0x1800117c4
dec rdi
mov edx, 0x8007007a
mov byte [rdi], 0
test edx, edx
jmp 0x180011910
mov rdi, qword [r15]
test rdi, rdi
je 0x180011912
cmp dword [rdi], 1
je 0x1800117eb
mov rdi, qword [rdi + 0x408]
test rdi, rdi
jne 0x1800117da
test rdi, rdi
je 0x180011912
mov dword [r14], 1
inc ebp
add r14, 4
mov cl, 0x5c
cmp byte [rbx], cl
jne 0x18001197e
cmp byte [rbx + 1], cl
jne 0x18001197e
add rbx, 2
mov al, byte [rbx]
test al, al
je 0x18001197e
cmp al, cl
je 0x18001182f
inc rbx
mov al, byte [rbx]
test al, al
jne 0x180011822
cmp byte [rbx], 0
je 0x18001197e
mov rcx, r13
call fcn.180002ae4
test al, al
je 0x1800118e7
xor edx, edx
lea r8, [rsp + 0x30]
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18001197e
mov ecx, eax
call fcn.180014580
mov rsi, rax
test rax, rax
je 0x18001198b
mov ecx, dword [rsp + 0x30]
lea r8, [rsp + 0x30]
dec ecx
mov rdx, rax
mov byte [rcx + rax], 0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
je 0x18001197e
or eax, 0xffffffff
mov r8, rsi
mov dword [rsp + 0x28], eax
mov r9d, eax
mov edx, 0x20001
mov qword [rsp + 0x20], r13
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
jne 0x1800118e7
lea rcx, [rdi + 0x208]
mov byte [rdi + 0x307], 0
mov r9, rbx
lea r8, str.._s
mov edx, 0x105
call fcn.180002a48
jmp 0x18001190e
lea rcx, [rdi + 0x208]
mov byte [rdi + 0x307], 0
mov r9, r13
mov qword [rsp + 0x20], rbx
lea r8, str._s_s
mov edx, 0x105
call fcn.180002a48
test eax, eax
js 0x18001197e
lea rdi, [r12 + 1]
mov r12d, 0x3b
cmp byte [rdi], r12b
jne 0x1800116c2
mov rbx, qword [r15]
test rbx, rbx
je 0x1800119dd
movsxd rdi, ebp
xor ecx, ecx
test rdi, rdi
jle 0x18001194c
mov eax, dword [rbx]
cmp dword [rsp + rcx*4 + 0x38], eax
je 0x18001194c
inc rcx
cmp rcx, rdi
jl 0x18001193e
cmp rcx, rdi
jne 0x1800119c2
mov eax, dword [rbx]
mov rbx, qword [rbx + 0x408]
cmp eax, 4
je 0x1800119d4
cmp qword [r15], 0
mov rdx, r15
je 0x1800119d4
mov rcx, qword [rdx]
cmp dword [rcx], eax
je 0x1800119ac
lea rdx, [rcx + 0x408]
cmp qword [rdx], 0
jne 0x180011968
jmp 0x1800119d4
test rsi, rsi
je 0x18001198b
mov rcx, rsi
call fcn.180014578
or eax, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180014440
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [rcx + 0x408]
mov qword [rdx], rax
mov edx, 0x410
call fcn.180014578
jmp 0x1800119d4
mov eax, dword [rsp + rdi*4 + 0x34]
dec rdi
mov rbx, qword [rbx + 0x408]
mov dword [rsp + rcx*4 + 0x38], eax
test rbx, rbx
jne 0x180011935
test rsi, rsi
je 0x1800119ea
mov rcx, rsi
call fcn.180014578
xor eax, eax
jmp 0x18001198e