Function at 0x1800082f0
Capabilities:
Get hostname
Get session information
Get session user name

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x4b0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rdi, rcx
xor r13d, r13d
mov qword [rsp + 0x48], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x48]
lea ebp, [r13 + 1]
mov r8d, ebp
lea edx, [rbp + 0xb]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp qword [rsp + 0x48], r13
je 0x18000835d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
nop
xor edx, edx
mov rcx, rdi
call fcn.180006f3c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x34], r13d
lea rdx, [rsp + 0x34]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ebx, eax
cmp eax, r13d
je 0x180008667
lea rcx, [rdi + 0x20]
call fcn.18001cfa0
cmp rax, r13
je 0x1800083b1
cmp word [rax], r13w
je 0x1800083b1
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.180006d48
jmp 0x1800084bc
mov word [rsp + 0x60], r13w
xor eax, eax
mov qword [rsp + 0x62], rax
mov qword [rsp + 0x6a], rax
mov qword [rsp + 0x72], rax
mov dword [rsp + 0x7a], eax
mov word [rsp + 0x7e], ax
mov dword [rsp + 0x50], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea rcx, [rsp + 0x60]
call sub.WTSAPI32.dll_WTSOpenServerW
mov rsi, rax
cmp rax, r13
je 0x1800084b9
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8d, 5
mov edx, dword [rsp + 0x34]
mov rcx, rsi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
mov ebx, eax
cmp eax, r13d
je 0x1800084af
cmp qword [rsp + 0x40], r13
je 0x1800084af
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov r8d, 7
mov edx, dword [rsp + 0x34]
mov rcx, rsi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.180006d48
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x180008489
call sub.WTSAPI32.dll_WTSFreeMemory
mov qword [rsp + 0x38], r13
mov rcx, qword [rsp + 0x40]
call sub.WTSAPI32.dll_WTSFreeMemory
mov qword [rsp + 0x40], r13
mov rdx, qword [rdi]
cmp rdx, r13
je 0x1800084af
cmp word [rdx], r13w
je 0x1800084af
lea rcx, [rdi + 0x20]
call fcn.18001ceb0
mov rcx, rsi
call sub.WTSAPI32.dll_WTSCloseServer
jmp 0x1800084bc
mov ebx, r13d
cmp ebx, r13d
jne 0x180008667
cmp dword [rsp + 0x34], r13d
jne 0x180008667
mov rbx, r13
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r13d
jne 0x18000862b
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x80], r13w
mov esi, 0x206
mov r8, rsi
xor edx, edx
lea rcx, [rsp + 0x82]
call fcn.180086e90
mov dword [rsp + 0x30], 0x104
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x80]
lea rdx, str.AltDefaultUserName
lea rcx, [rsp + 0x38]
call fcn.1800069c0
cmp eax, r13d
jne 0x18000862b
cmp word [rsp + 0x80], r13w
je 0x18000862b
mov word [rsp + 0x290], r13w
mov r8, rsi
xor edx, edx
lea rcx, [rsp + 0x292]
call fcn.180086e90
mov dword [rsp + 0x30], 0x104
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x290]
lea rdx, str.AltDefaultDomainName
lea rcx, [rsp + 0x38]
call fcn.1800069c0
cmp word [rsp + 0x290], r13w
jne 0x180008613
lea rcx, [rsp + 0x80]
call fcn.180088f10
mov ecx, r13d
cmp eax, r13d
jbe 0x180008613
lea rdx, [rsp + 0x80]
cmp word [rdx], 0x40
je 0x1800085f0
add ecx, ebp
add rdx, 2
cmp ecx, eax
jb 0x1800085de
jmp 0x180008613
mov eax, ecx
mov word [rsp + rax*2 + 0x80], r13w
lea eax, [rcx + 1]
lea rdx, [rsp + rax*2 + 0x80]
lea rcx, [rsp + 0x290]
call fcn.18008a2a0
lea r8, [rsp + 0x290]
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.180006d48
mov rax, qword [rdi]
cmp rax, r13
je 0x180008639
cmp word [rax], r13w
jne 0x180008641
mov rcx, rdi
call fcn.180006e44
mov rdx, qword [rdi]
cmp rdx, r13
je 0x180008659
cmp word [rdx], r13w
je 0x180008659
lea rcx, [rdi + 0x20]
call fcn.18001ceb0
nop
cmp rbx, r13
je 0x180008667
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rdi]
cmp rax, r13
je 0x180008675
cmp word [rax], r13w
jne 0x180008678
mov ebp, r13d
mov rcx, qword [rsp + 0x48]
cmp rcx, r13
je 0x180008693
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.180086e60
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret