Function at 0x14003a5b0
Capabilities:
Get hostname

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x298
movdqa xmmword [rsp + 0x280], xmm6
mov rsi, rcx
mov rax, qword [0x1400a2318]
xor rax, rsp
mov qword [rsp + 0x278], rax
pxor xmm0, xmm0
movdqu xmmword [rcx + 0x10], xmm0
call fcn.14001c5a0
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14003abaa
cmp rax, 1
je 0x14003a64f
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14003a60f
mov rcx, qword [rsi]
movzx edx, word [rcx]
cmp dx, 0x27
je 0x14003a628
cmp dx, 0x22
jne 0x14003a64f
cmp word [rcx + rax*2 - 2], 0x22
je 0x14003a630
jmp 0x14003a64f
cmp word [rcx + rax*2 - 2], 0x27
jne 0x14003a64f
lea rdx, [rax - 1]
mov qword [rsi + 0x10], rdx
mov word [rcx + rax*2 - 2], 0
mov r8d, 1
mov rcx, rsi
xor edx, edx
call fcn.14001c620
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rsp + 0x38], rax
je 0x14003a67b
lea rdx, [0x140084322]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
jmp 0x14003a67b
lea rax, [rsi + 0x10]
mov qword [rsp + 0x40], rax
mov ebx, 8
lea r15, str._windows
lea r12, [rsp + 0x70]
mov eax, 7
movq xmm6, rax
pslldq xmm6, 8
lea r14, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov rdi, qword [rbx + r15 - 8]
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.14001c460
cmp rax, 0xffffffffffffffff
je 0x14003a7b1
mov rbp, rax
mov rcx, rdi
call fcn.14006e7d0
mov rdi, rax
mov r8d, dword [rbx + r15]
xor ecx, ecx
mov rdx, r12
xor r9d, r9d
call r13
test eax, eax
jne 0x14003a6f3
mov word [rsp + 0x70], 0
movdqu xmmword [rsp + 0x60], xmm6
mov word [rsp + 0x50], 0
mov rcx, r12
call fcn.14006e7d0
mov rcx, r14
mov rdx, r12
mov r8, rax
call fcn.140001a10
mov rax, qword [rsp + 0x60]
mov rcx, rax
sub rcx, 1
jae 0x14003a728
xor eax, eax
jmp 0x14003a786
cmp qword [rsp + 0x68], 7
mov rdx, r14
jbe 0x14003a738
mov rdx, qword [rsp + 0x50]
cmp word [rdx + rax*2 - 2], 0x5c
jne 0x14003a786
lea r9, [rdi + rbp]
mov rsi, qword [rsp + 0x40]
cmp qword [rsi], r9
jbe 0x14003a781
mov r8, qword [rsp + 0x30]
cmp qword [r8 + 0x18], 7
jbe 0x14003a762
mov rsi, qword [rsp + 0x30]
mov r8, qword [rsi]
cmp word [r8 + r9*2], 0x5c
mov rsi, qword [rsp + 0x30]
jne 0x14003a786
mov qword [rsp + 0x60], rcx
mov word [rdx + rcx*2], 0
mov rax, qword [rsp + 0x60]
jmp 0x14003a786
mov rsi, qword [rsp + 0x30]
cmp qword [rsp + 0x68], 7
mov r9, r14
jbe 0x14003a796
mov r9, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov rdx, rbp
mov r8, rdi
call fcn.140017510
mov rcx, r14
call fcn.140001460
add rbx, 0x10
cmp rbx, 0x78
jne 0x14003a6ae
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test rax, rax
je 0x14003a7e9
lea rdx, [0x1400843d2]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
jmp 0x14003a7e9
lea rdx, str._user_name
mov rcx, rsi
xor r8d, r8d
call fcn.14001c460
cmp rax, 0xffffffffffffffff
je 0x14003a8b2
mov rsi, rax
lea rdi, [rsp + 0x50]
mov dword [rdi], 0
xor ecx, ecx
mov rdx, rdi
call rbx
mov ecx, dword [rdi]
test rcx, rcx
je 0x14003a8b2
add rcx, rcx
call fcn.14005a6f0
mov rdi, rax
lea rdx, [rsp + 0x50]
mov rcx, rax
call rbx
mov eax, 7
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0x80], xmm0
mov word [rsp + 0x70], 0
mov rcx, rdi
call fcn.14006e7d0
mov rcx, r12
mov rdx, rdi
mov r8, rax
call fcn.140001a10
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x88], 7
mov r9, r12
jbe 0x14003a88a
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 0xc
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
call fcn.140017510
mov rcx, r12
call fcn.140001460
mov rcx, rdi
call fcn.14005a6e0
lea rdx, str._machine_name
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
call fcn.14001c460
cmp rax, 0xffffffffffffffff
je 0x14003a986
mov rsi, rax
lea rdi, [rsp + 0x50]
mov dword [rdi], 0
mov ecx, 5
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ecx, dword [rdi]
test rcx, rcx
je 0x14003a986
add rcx, rcx
call fcn.14005a6f0
mov rdi, rax
lea r8, [rsp + 0x50]
mov ecx, 5
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, 7
movq xmm0, rax
pslldq xmm0, 8
lea rbx, [rsp + 0x70]
movdqu xmmword [rbx + 0x10], xmm0
mov word [rbx], 0
mov rcx, rdi
call fcn.14006e7d0
mov rcx, rbx
mov rdx, rdi
mov r8, rax
call fcn.140001a10
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
mov r9, rbx
jbe 0x14003a95e
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 0xf
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
call fcn.140017510
mov rcx, rbx
call fcn.140001460
mov rcx, rdi
call fcn.14005a6e0
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r15, rax
test rax, rax
je 0x14003a9b0
lea rdx, [0x140084442]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
jmp 0x14003a9b0
mov rsi, qword [rsp + 0x30]
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14003a9df
lea rdx, [0x14008447a]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
jmp 0x14003a9df
lea rdx, str._client_name
mov rcx, rsi
xor r8d, r8d
call fcn.14001c460
cmp rax, 0xffffffffffffffff
je 0x14003aaa2
mov rsi, 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 r13
test eax, eax
je 0x14003aaa2
mov r12, qword [rsp + 0x50]
mov eax, 7
movq xmm0, rax
pslldq xmm0, 8
lea rbp, [rsp + 0x70]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], 0
mov rcx, r12
call fcn.14006e7d0
mov rcx, rbp
mov rdx, r12
mov r8, rax
call fcn.140001a10
mov rax, qword [rbp + 0x10]
cmp qword [rbp + 0x18], 7
mov r9, rbp
jbe 0x14003aa7b
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 0xe
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
call fcn.140017510
mov rcx, qword [rsp + 0x50]
call rdi
mov rcx, rbp
call fcn.140001460
lea rdx, str._session_name
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
call fcn.14001c460
cmp rax, 0xffffffffffffffff
je 0x14003ab6b
mov rsi, 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 r13
test eax, eax
je 0x14003ab6b
mov r12, rdi
mov rdi, qword [rsp + 0x50]
mov eax, 7
movq xmm0, rax
pslldq xmm0, 8
lea rbp, [rsp + 0x70]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], 0
mov rcx, rdi
call fcn.14006e7d0
mov rcx, rbp
mov rdx, rdi
mov r8, rax
call fcn.140001a10
mov rax, qword [rbp + 0x10]
cmp qword [rbp + 0x18], 7
mov r9, rbp
jbe 0x14003ab43
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 0xf
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
call fcn.140017510
mov rcx, qword [rsp + 0x50]
call r12
mov rcx, rbp
call fcn.140001460
test rbx, rbx
je 0x14003ab79
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
mov rsi, qword [rsp + 0x30]
je 0x14003ab8c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r14, r14
je 0x14003ab9a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003abaa
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14005aa40
mov rax, rsi
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