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

Disassembly:
push 0x454
mov eax, 0x1002e1ef
call fcn.1001b74a
mov ebx, ecx
lea ecx, [ebp - 0x45c]
mov dword [ebp - 0x454], ebx
call fcn.10005f26
xor esi, esi
push esi
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.100060b0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x450]
push ecx
push eax
mov dword [ebp - 0x450], esi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x100073e8
push 7
pop ecx
xor eax, eax
mov word [ebp - 0x30], si
lea edi, [ebp - 0x2e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x460], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x30]
push eax
call sub.WTSAPI32.dll_WTSOpenServerW
mov edi, eax
cmp edi, esi
je 0x10007256
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x444]
push eax
push 5
push dword [ebp - 0x450]
mov dword [ebp - 0x444], esi
push edi
mov dword [ebp - 0x448], esi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
cmp eax, esi
mov dword [ebp - 0x458], eax
je 0x1000724e
cmp dword [ebp - 0x444], esi
je 0x1000724e
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x44c]
push eax
push 7
push dword [ebp - 0x450]
mov dword [ebp - 0x44c], esi
push edi
mov dword [ebp - 0x448], esi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
push dword [ebp - 0x44c]
mov ecx, ebx
push dword [ebp - 0x444]
call fcn.10005f6a
cmp dword [ebp - 0x44c], esi
je 0x10007236
push dword [ebp - 0x44c]
call sub.WTSAPI32.dll_WTSFreeMemory
mov dword [ebp - 0x44c], esi
push dword [ebp - 0x444]
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, ebx
mov dword [ebp - 0x444], esi
call fcn.1000609a
push edi
call sub.WTSAPI32.dll_WTSCloseServer
jmp 0x1000725c
mov dword [ebp - 0x458], esi
cmp dword [ebp - 0x458], esi
jne 0x100073e8
lea ecx, [ebx + 0x10]
call fcn.1000fb00
cmp eax, esi
je 0x10007287
cmp word [eax], si
je 0x10007287
push esi
push eax
mov ecx, ebx
call fcn.10005f6a
jmp 0x100073e8
cmp dword [ebp - 0x450], esi
jne 0x100073e8
mov dword [ebp - 0x444], esi
push 0x2001f
push str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 1
call fcn.100011b4
test eax, eax
jne 0x100073c4
mov edi, 0x206
push edi
lea eax, [ebp - 0x236]
push esi
push eax
mov word [ebp - 0x238], si
call fcn.1001ade0
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x238]
push eax
mov ebx, 0x104
push str.AltDefaultUserName
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x448], ebx
call fcn.10005e27
test eax, eax
jne 0x100073be
cmp word [ebp - 0x238], si
je 0x100073be
push edi
lea eax, [ebp - 0x43e]
push esi
push eax
mov word [ebp - 0x440], si
call fcn.1001ade0
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x440]
push eax
push str.AltDefaultDomainName
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x448], ebx
call fcn.10005e27
cmp word [ebp - 0x440], si
jne 0x100073a5
lea eax, [ebp - 0x238]
push eax
call fcn.1001b19f
pop ecx
xor ecx, ecx
cmp eax, esi
jbe 0x100073a5
cmp word [ebp + ecx*2 - 0x238], 0x40
je 0x10007384
inc ecx
cmp ecx, eax
jb 0x10007372
jmp 0x100073a5
lea eax, [ecx + ecx]
mov word [ebp + eax - 0x238], si
lea eax, [ebp + eax - 0x236]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.1001cbdd
pop ecx
pop ecx
mov ecx, dword [ebp - 0x454]
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.10005f6a
mov ebx, dword [ebp - 0x454]
mov eax, dword [ebx]
cmp eax, esi
je 0x100073cf
cmp word [eax], si
jne 0x100073d6
mov ecx, ebx
call fcn.10006013
mov ecx, ebx
call fcn.1000609a
lea ecx, [ebp - 0x444]
call fcn.1000119d
mov eax, dword [ebx]
cmp eax, esi
je 0x100073f6
cmp word [eax], si
je 0x100073f6
xor esi, esi
inc esi
lea ecx, [ebp - 0x45c]
call fcn.10005f4d
mov eax, esi
call fcn.1001b7cd
ret