Function at 0x4c7aad70
Capabilities:
Get hostname
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
cmp dword [esi + 0x38c0], eax
push edi
mov dword [esi + 0x8050], 1
mov dword [esi + 0x80b0], ecx
mov dword [esi + 0x80b4], ecx
mov dword [esi + 0x36b4], ecx
jbe 0x4c7aadc4
lea ebx, [ebx]
mov edx, dword [esi + 0x38c4]
mov dword [edx + eax*4], ecx
add eax, 1
cmp eax, dword [esi + 0x38c0]
jb 0x4c7aadb0
mov edi, dword [esi + 0x36a8]
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0x3ad0], ecx
mov dword [esi + 0x3ce0], ecx
mov dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
call ebx
mov edx, dword [ebp - 0x10]
lea ecx, [ebp + 8]
push ecx
push 0
push 0
push 2
push edx
call sub.WINSPOOL.DRV_GetPrinterW
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 8], 0
jbe 0x4c7aaeb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4c7aaeb8
mov eax, dword [ebp + 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4c7aaeb8
mov eax, dword [esi + 0x36a8]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
push eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
call ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
push ecx
push edi
push 2
push edx
call sub.WINSPOOL.DRV_GetPrinterW
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], 0
je 0x4c7aaeb1
mov ecx, dword [edi + 0x14]
push ecx
lea edx, [esi + 0x7e30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [edi + 0x10]
push eax
lea ecx, [esi + 0x7920]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esi + 0x2c]
push 0x4c782b74
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [edi + 0x10]
push edx
lea eax, [esi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esi + 0x36a8]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edi
mov dword [ebp + 8], 0
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call ebx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea edx, [ebp + 8]
push edx
push 0
push 0
push 2
push eax
push ecx
call sub.WINSPOOL.DRV_GetJobW
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 8], 0
jbe 0x4c7ab084
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4c7ab084
mov edx, dword [ebp + 8]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4c7ab211
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x36a8]
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
call ebx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x10]
push ecx
push edi
push 2
push edx
push eax
call sub.WINSPOOL.DRV_GetJobW
mov ecx, dword [ebp - 0xc]
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x4c7ab078
mov edx, dword [edi + 0x50]
lea ebx, [edi + 0x50]
mov dword [esi + 0x18], edx
mov eax, dword [ebx + 4]
mov dword [esi + 0x1c], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 0x20], ecx
mov edx, dword [ebx + 0xc]
mov dword [esi + 0x24], edx
mov eax, dword [edi + 4]
push eax
lea ecx, [esi + 0x7100]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [edi + 0xc]
push edx
lea eax, [esi + 0x7510]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [edi + 0x10]
push ecx
lea edx, [esi + 0x7718]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4c782b58
lea eax, [esi + 0x7d30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [edi + 0x38]
push 0xa8
mov dword [esi + 0x8038], ecx
mov edx, dword [edi + 0x48]
lea eax, [ebp - 0xc8]
push 0
push eax
mov dword [esi + 0x804c], edx
mov dword [ebp - 0xcc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xcc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x4c7ab055
lea eax, [esi + 0x803c]
push eax
push ebx
lea edx, [ebp - 0xcc]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
jne 0x4c7ab078
mov eax, dword [ebx]
mov dword [esi + 0x803c], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 0x8040], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 0x8044], edx
mov eax, dword [ebx + 0xc]
push edi
mov dword [esi + 0x8048], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4c7ab211
mov ecx, dword [ebx]
mov dword [esi + 0x803c], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 0x8040], edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x8044], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x8048], ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4c7ab211
mov edi, dword [esi + 0x36a8]
mov edx, dword [esi]
push edi
mov dword [ebp + 8], 0
mov dword [ebp - 0xc], edx
call ebx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp + 8]
push eax
push 0
push 0
push 2
push ecx
call sub.WINSPOOL.DRV_GetPrinterW
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp + 8], 0
jbe 0x4c7ab15a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4c7ab15a
mov edx, dword [ebp + 8]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4c7ab15a
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x36a8]
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
call ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ebp + 8]
push edx
push eax
push edi
push 2
push ecx
call sub.WINSPOOL.DRV_GetPrinterW
mov edx, dword [ebp - 4]
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x4c7ab153
mov eax, dword [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea ecx, [esi + 0x7100]
push ecx
call ebx
mov edx, dword [edi + 0x10]
push edx
lea eax, [esi + 0x7920]
push eax
call ebx
push 0x4c782b74
lea ebx, [esi + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [edi + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [ebp + 8]
push edx
push 0
mov dword [ebp + 8], 0
call edi
mov eax, dword [ebp + 8]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x4c7ab189
lea ecx, [ebp + 8]
push ecx
lea edx, [esi + 0x7510]
push edx
call edi
xor edi, edi
push 0xa8
lea eax, [ebp - 0xc8]
push edi
push eax
mov dword [ebp - 0xcc], edi
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
lea ecx, [ebp - 0x20]
mov word [ebp - 0x20], di
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemTime]
push ecx
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
call edi
lea edx, [ebp - 0xcc]
push edx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x4c7ab1f6
lea ebx, [esi + 0x803c]
push ebx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xcc]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
jne 0x4c7ab1ff
push ebx
jmp 0x4c7ab1fd
lea edx, [esi + 0x803c]
push edx
call edi
push 0x4c782b58
lea eax, [esi + 0x7d30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x20
push 0x40
mov dword [ebp + 8], 0x10
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4c7ab2b7
lea ecx, [ebp + 8]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4c7ab294
cmp dword [ebp + 8], eax
jbe 0x4c7ab284
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f
jne 0x4c7ab284
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call edi
mov edx, dword [ebp + 8]
lea eax, [edx + edx]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4c7ab2b7
lea ecx, [ebp + 8]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4c7ab29a
push ebx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x4c782b50
add esi, 0x7308
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4