Function at 0x1400194e4
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r12d, r12d
mov r15, r9
mov rbx, rcx
mov r14d, r12d
mov ebp, r12d
mov qword [r9], r12
test rcx, rcx
je 0x14001965f
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rcx + rdi*2], r12w
jne 0x140019528
cmp word [rcx], r12w
je 0x14001965f
mov esi, 0x5c
cmp word [rcx], si
jne 0x140019562
cmp word [rcx + 2], si
jne 0x140019558
add rbx, 4
mov rbp, rcx
add edi, 0xfffffffe
jne 0x14001959e
mov ebx, 0xc0000122
jmp 0x1400197d8
lea edx, [rdi + 3]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
jne 0x140019582
mov ebx, 0xc0000017
jmp 0x1400197d8
lea r8d, [rdi + 1]
lea rcx, [rax + 4]
mov rdx, rbx
add r8, r8
mov dword [rax], 0x5c005c
call sub.msvcrt.dll_memcpy
mov rbp, r14
test rbx, rbx
je 0x14001965f
cmp edi, 0xf
ja 0x1400195eb
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
xor ecx, ecx
mov dword [rsp + 0x30], 0x10
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x1400195eb
cmp edi, dword [rsp + 0x30]
jne 0x1400195eb
lea rcx, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1400195eb
mov rbx, r12
mov rbp, r12
test rbx, rbx
je 0x14001965f
lea ecx, [rdi - 1]
mov edx, 0x20a
cmp word [rbx + rcx*2], 0x2e
cmove edi, ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x14001961a
mov ebx, 0xc0000017
jmp 0x1400197ca
lea r8, [rsp + 0x30]
mov rdx, rax
mov ecx, 3
mov dword [rsp + 0x30], 0x105
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140019656
cmp edi, dword [rsp + 0x30]
jne 0x140019656
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
neg eax
sbb rcx, rcx
and rbp, rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140019610
lea r9, [0x140011290]
mov edx, 0xe
mov rcx, rax
sub r9, rax
mov r8d, edx
mov r10d, r12d
lea rax, [r8 + 0x7ffffff0]
test rax, rax
je 0x1400196ae
movzx eax, word [r9 + rcx]
test ax, ax
je 0x1400196ae
mov word [rcx], ax
add rcx, 2
dec r8
jne 0x14001968c
mov r11d, 0x80000005
test r8, r8
jne 0x1400196c0
sub rcx, 2
mov r10d, r11d
mov word [rcx], r12w
mov rcx, rdi
test r10d, r10d
js 0x1400197bf
mov rax, rdx
cmp word [rcx], r12w
je 0x1400196e2
add rcx, 2
dec rax
jne 0x1400196d3
test rax, rax
je 0x1400197bc
mov rcx, rdx
mov r10d, r12d
sub rcx, rax
lea rax, [rdi + rcx*2]
sub rdx, rcx
je 0x140019734
lea r8, [rcx + 0x7ffffff0]
lea r9, [0x140003928]
add r8, rdx
sub r9, rax
test r8, r8
je 0x14001972f
movzx ecx, word [r9 + rax]
test cx, cx
je 0x14001972f
mov word [rax], cx
dec r8
add rax, 2
dec rdx
jne 0x140019711
test rdx, rdx
jne 0x14001973b
sub rax, 2
mov r10d, r11d
mov word [rax], r12w
test r10d, r10d
js 0x1400197bc
lea rax, [rsp + 0x38]
lea rdx, [0x1400112a0]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov r8, rbp
xor ecx, ecx
mov qword [rsp + 0x20], r12
call qword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x140019610
mov rcx, qword [rsp + 0x38]
mov rdx, r15
call qword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
lea rcx, [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test ebx, ebx
je 0x1400197b7
lea eax, [rbx - 0x6aa]
mov ebx, 0xc0000017
mov ecx, 0xc0000122
cmp eax, 1
mov qword [r15], r12
cmova ecx, ebx
mov ebx, ecx
jmp 0x1400197ca
mov ebx, r12d
jmp 0x1400197ca
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, 0xc000000d
test r14, r14
je 0x1400197d8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140019b50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret