Function at 0x14014f2cc
Capabilities:
Get hostname

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x298
movaps xmmword [rsp + 0x280], xmm6
mov r14, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x278], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
mov qword [rcx + 0x10], rax
movaps xmm6, xmmword [0x140257270]
movups xmmword [rcx], xmm6
cmp byte [rdx + 0x17], 0
js 0x14014f375
mov rax, qword [rdx + 0x10]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [rdx]
movups xmmword [r14], xmm0
movzx ebp, byte [r14 + 0x17]
test bpl, bpl
mov rcx, qword [r14 + 8]
mov rax, rbp
cmovs rax, rcx
test rax, rax
jne 0x14014f389
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400ccfe0
mov rax, r14
movaps xmm6, xmmword [rsp + 0x280]
add rsp, 0x298
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, r14
mov rdx, rax
call fcn.14008fb9c
jmp 0x14014f32e
cmp rax, 1
jne 0x14014f839
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
test rsi, rsi
je 0x14014f3cc
lea rdx, [0x14025ea8a]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rsi
mov esi, 8
lea r13, str._windows
lea r15, [rsp + 0x70]
mov rbp, qword [rsi + r13 - 8]
mov rcx, r14
mov rdx, rbp
xor r8d, r8d
call fcn.1400c27d4
cmp rax, 0xffffffffffffffff
jne 0x14014f40a
add rsi, 0x10
cmp rsi, 0x78
jne 0x14014f3e2
jmp 0x14014f558
mov rdi, rax
mov rcx, rbp
call fcn.1400ca328
mov r12, rax
mov r8d, 0x208
mov rcx, r15
mov dl, 0xaa
call fcn.1400cf750
mov r8d, dword [rsi + r13]
xor ecx, ecx
mov rdx, r15
xor r9d, r9d
call qword [rsp + 0x38]
test eax, eax
jne 0x14014f443
mov word [rsp + 0x70], 0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rax
movaps xmmword [rsp + 0x50], xmm6
mov rcx, r15
call fcn.1400ca328
lea rbp, [rsp + 0x50]
mov rcx, rbp
mov rdx, r15
mov r8, rax
call fcn.1400c0478
mov dl, byte [rsp + 0x67]
test dl, dl
mov rcx, qword [rsp + 0x58]
movzx ebx, dl
mov rax, rbx
cmovs rax, rcx
test rax, rax
jne 0x14014f4c8
test dl, dl
cmovs rbx, rcx
mov r9, qword [rsp + 0x50]
cmovns r9, rbp
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
mov r8, r12
call fcn.14017b976
cmp byte [rsp + 0x67], 0
jns 0x14014f3fb
mov rcx, qword [rsp + 0x50]
call fcn.1400c9cac
jmp 0x14014f3fb
test dl, dl
mov r8, qword [rsp + 0x50]
cmovs rbp, r8
cmp word [rbp + rax*2 - 2], 0x5c
jne 0x14014f528
movzx ebp, byte [r14 + 0x17]
mov rax, rbp
test bpl, bpl
jns 0x14014f4ec
mov rax, qword [r14 + 8]
lea r9, [r12 + rdi]
cmp rax, r9
jbe 0x14014f528
mov rax, r14
test bpl, bpl
jns 0x14014f500
mov rax, qword [r14]
cmp word [rax + r9*2], 0x5c
lea rbp, [rsp + 0x50]
jne 0x14014f48c
test dl, dl
jns 0x14014f532
lea rax, [rcx - 1]
mov qword [rsp + 0x58], rax
lea rax, [r8 + rcx*2]
add rax, 0xfffffffffffffffe
jmp 0x14014f542
lea rbp, [rsp + 0x50]
jmp 0x14014f48c
lea rax, [rbx - 1]
mov byte [rsp + 0x67], al
lea rax, [rsp + rbx*2]
add rax, 0x4e
mov word [rax], 0
mov dl, byte [rsp + 0x67]
mov rcx, qword [rsp + 0x58]
movzx ebx, dl
jmp 0x14014f48c
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r13, rax
movabs rbp, 0xaaaaaaaaaaaaaaaa
test rax, rax
je 0x14014f58a
lea rdx, [0x14025eb22]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
lea rdx, str._user_name
mov rcx, r14
xor r8d, r8d
call fcn.1400c27d4
cmp rax, 0xffffffffffffffff
je 0x14014f5c2
mov rsi, rax
lea rdi, [rsp + 0x50]
mov dword [rdi], 0
xor ecx, ecx
mov rdx, rdi
call rbp
mov ecx, dword [rdi]
test rcx, rcx
jne 0x14014f86e
lea rdx, str._machine_name
mov rcx, r14
xor r8d, r8d
call fcn.1400c27d4
cmp rax, 0xffffffffffffffff
je 0x14014f603
mov rdi, rax
lea rbx, [rsp + 0x50]
mov dword [rbx], 0
mov ecx, 5
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ecx, dword [rbx]
test rcx, rcx
jne 0x14014f909
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r15, rax
movabs rdi, 0xaaaaaaaaaaaaaaaa
test rax, rax
je 0x14014f635
lea rdx, [0x14025eb92]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r12, rax
test rax, rax
je 0x14014f65f
lea rdx, [0x14025ebca]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
lea rdx, str._client_name
mov rcx, r14
xor r8d, r8d
call fcn.1400c27d4
cmp rax, 0xffffffffffffffff
je 0x14014f72c
mov rbp, rax
lea r9, [rsp + 0x50]
mov qword [r9], 0
lea rax, [rsp + 0x4c]
mov dword [rax], 0
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, 0xffffffff
mov r8d, 0xa
call rdi
test eax, eax
je 0x14014f72c
mov rbx, r15
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x70]
mov qword [rsi + 0x10], rax
movaps xmmword [rsi], xmm6
mov r15, qword [rsp + 0x50]
mov rcx, r15
call fcn.1400ca328
mov rcx, rsi
mov rdx, r15
mov r8, rax
call fcn.1400c0478
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x14014f6f3
mov rax, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 0xe
mov rcx, r14
mov rdx, rbp
mov r9, rsi
call fcn.14017b976
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x30]
cmp byte [rsp + 0x87], 0
jns 0x14014f729
mov rcx, qword [rsp + 0x70]
call fcn.1400c9cac
mov r15, rbx
lea rdx, str._session_name
mov rcx, r14
xor r8d, r8d
call fcn.1400c27d4
cmp rax, 0xffffffffffffffff
je 0x14014f7f3
mov rbp, rax
lea r9, [rsp + 0x50]
mov qword [r9], 0
lea rax, [rsp + 0x4c]
mov dword [rax], 0
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, 0xffffffff
mov r8d, 6
call rdi
test eax, eax
je 0x14014f7f3
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x70]
mov qword [rdi + 0x10], rax
movaps xmmword [rdi], xmm6
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.1400ca328
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.1400c0478
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14014f7bd
mov rax, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 0xf
mov rcx, r14
mov rdx, rbp
mov r9, rdi
call fcn.14017b976
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x30]
cmp byte [rsp + 0x87], 0
jns 0x14014f7f3
mov rcx, qword [rsp + 0x70]
call fcn.1400c9cac
test r12, r12
je 0x14014f801
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
mov rsi, qword [rsp + 0x40]
je 0x14014f814
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r13, r13
je 0x14014f822
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rsi, rsi
je 0x14014f346
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14014f346
test bpl, bpl
mov rdx, qword [r14]
mov rbx, r14
cmovs rbx, rdx
movzx edi, word [rbx]
cmp di, 0x27
je 0x14014f9a9
cmp di, 0x22
jne 0x14014f393
cmp word [rbx + rax*2 - 2], 0x22
jne 0x14014f393
jmp 0x14014f9b5
add rcx, rcx
call fcn.1400ca15c
mov r12, rax
lea rdx, [rsp + 0x50]
mov rcx, rax
call rbp
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
movaps xmmword [rsp + 0x70], xmm6
mov rcx, r12
call fcn.1400ca328
mov rcx, r15
mov rdx, r12
mov r8, rax
call fcn.1400c0478
movzx eax, byte [rsp + 0x87]
test al, al
jns 0x14014f8c6
mov rax, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 0xc
mov rcx, r14
mov rdx, rsi
mov r9, r15
call fcn.14017b976
cmp byte [rsp + 0x87], 0
jns 0x14014f8f3
mov rcx, qword [rsp + 0x70]
call fcn.1400c9cac
test r12, r12
je 0x14014f5c2
mov rcx, r12
call fcn.1400c9cb4
jmp 0x14014f5c2
add rcx, rcx
call fcn.1400ca15c
mov rbx, rax
lea r8, [rsp + 0x50]
mov ecx, 5
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x70]
mov qword [rbp + 0x10], rax
movaps xmmword [rbp], xmm6
mov rcx, rbx
call fcn.1400ca328
mov rcx, rbp
mov rdx, rbx
mov r8, rax
call fcn.1400c0478
movzx eax, byte [rbp + 0x17]
test al, al
jns 0x14014f966
mov rax, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 0xf
mov rcx, r14
mov rdx, rdi
mov r9, rbp
call fcn.14017b976
cmp byte [rsp + 0x87], 0
jns 0x14014f993
mov rcx, qword [rsp + 0x70]
call fcn.1400c9cac
test rbx, rbx
je 0x14014f603
mov rcx, rbx
call fcn.1400c9cb4
jmp 0x14014f603
cmp word [rbx + rax*2 - 2], 0x27
jne 0x14014f393
test bpl, bpl
jns 0x14014f9cc
lea rax, [rcx - 1]
mov qword [r14 + 8], rax
lea rax, [rdx + rcx*2]
add rax, 0xfffffffffffffffe
jmp 0x14014f9dc
lea rax, [rbp - 1]
mov byte [r14 + 0x17], al
lea rax, [r14 + rbp*2]
add rax, 0xfffffffffffffffe
mov word [rax], 0
mov r8d, 1
mov rcx, r14
xor edx, edx
call fcn.1400c28d8
jmp 0x14014f393