Function at 0x102e6ad
Capabilities:
Get hostname
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa64
mov eax, dword [0x10723e4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 8]
push edi
mov dword [ebp - 0xa40], eax
lea eax, [ebp - 0xa50]
xor edi, edi
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0xa54], edi
mov dword [ebp - 0xa44], edi
mov dword [ebp - 0xa4c], edi
mov dword [ebp - 0xa30], edi
mov dword [ebp - 0xa38], edi
mov dword [ebp - 0xa50], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x102e71a
mov eax, 0x4d3
jmp 0x102ebba
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x414]
push eax
call ebx
push dword [esi + 0xc8]
mov dword [ebp - 0xa34], eax
call ebx
mov ecx, dword [ebp - 0xa34]
lea eax, [ecx + eax + 2]
cmp eax, 0x104
mov dword [ebp - 0xa50], eax
jbe 0x102e759
mov eax, 0x4d3
jmp 0x102ebb9
push dword [esi + 0xc8]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push 0x1010ca4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
push dword [esi + 0xcc]
call ebx
push dword [esi + 0xc8]
mov dword [ebp - 0xa34], eax
call ebx
mov ecx, dword [ebp - 0xa34]
lea eax, [ecx + eax + 2]
cmp eax, 0x104
mov dword [ebp - 0xa50], eax
ja 0x102e74f
push dword [esi + 0xc8]
lea eax, [ebp - 0xa2c]
push dword [esi + 0xcc]
push 0x1010ca4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
push dword [esi + 0xcc]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x102e74f
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0xa4c]
push eax
push edi
lea eax, [ebp - 0xa44]
push eax
push edi
push dword [esi + 0xc8]
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x102e8d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x102e82c
cmp eax, 0x7a
jne 0x102ebb9
cmp dword [ebp - 0xa44], edi
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
jbe 0x102e852
push dword [ebp - 0xa44]
push 0x40
call ebx
cmp eax, edi
mov dword [ebp - 0xa30], eax
je 0x102e74f
mov eax, dword [ebp - 0xa4c]
cmp eax, edi
jbe 0x102e87a
add eax, eax
push eax
push 0x40
call ebx
mov ebx, eax
cmp ebx, edi
jne 0x102e880
push dword [ebp - 0xa30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x102e74f
mov ebx, dword [ebp - 0xa38]
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0xa4c]
push eax
push ebx
lea eax, [ebp - 0xa44]
push eax
push dword [ebp - 0xa30]
push dword [esi + 0xc8]
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x102e8b7
mov dword [ebp - 0xa48], 7
cmp dword [ebp - 0xa30], edi
je 0x102e8cb
push dword [ebp - 0xa30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, edi
je 0x102e8d6
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xa48], 1
jne 0x102e74f
mov eax, dword [esi + 0xcc]
mov dword [ebp - 0xa5c], eax
mov eax, dword [esi + 0xc8]
mov dword [ebp - 0xa58], eax
lea eax, [ebp - 0xa5c]
push eax
push edi
lea eax, [ebp - 0xa3c]
push eax
push 0x400
push 0xc000044c
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x2900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x102e74f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x5dd
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x24
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0xa3c]
push edi
push dword [ebp - 0xa40]
call fcn.0103b05f
push dword [ebp - 0xa3c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, 7
jne 0x102e97f
mov eax, 0x4de
jmp 0x102ebb9
cmp ebx, 6
je 0x102e98e
mov eax, 0x4c7
jmp 0x102ebb9
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_SetCursor]
mov ebx, dword [sym.imp.USER32.dll_LoadCursorW]
je 0x102e9f0
push 0x7f02
push edi
call ebx
push eax
call esi
mov dword [ebp - 0xa34], eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x824]
push eax
push edi
push edi
call dword [sym.imp.PROFMAP.dll_RemapAndMoveUserW]
mov dword [ebp - 0xa38], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xa34]
mov dword [ebp - 0xa30], eax
call esi
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x102ea00
mov dword [ebp - 0xa38], edi
mov dword [ebp - 0xa30], 5
cmp dword [ebp - 0xa38], edi
jne 0x102eb84
cmp dword [ebp - 0xa30], 5
jne 0x102eb09
mov eax, dword [ebp - 0xa40]
lea ecx, [ebp - 0xa64]
push ecx
push 0x102d446
push edi
push 0x1f4
push dword [0x10733b8]
mov dword [ebp - 0xa60], eax
push eax
call fcn.0103b0bd
cmp eax, 1
jne 0x102e984
push dword [ebp - 0xa64]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x102eaa6
push 0x7f02
push edi
call ebx
push eax
call esi
mov dword [ebp - 0xa34], eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x824]
push eax
push 4
push edi
call dword [sym.imp.PROFMAP.dll_RemapAndMoveUserW]
mov dword [ebp - 0xa38], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xa34]
mov dword [ebp - 0xa30], eax
call esi
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x102eab6
mov dword [ebp - 0xa38], edi
mov dword [ebp - 0xa30], 5
cmp dword [ebp - 0xa30], 5
jne 0x102eaf7
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x5fa
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
push edi
push dword [ebp - 0xa40]
call fcn.0103b05f
jmp 0x102ea19
cmp dword [ebp - 0xa38], edi
mov dword [ebp - 0xa54], 1
jne 0x102eb84
mov eax, dword [ebp - 0xa30]
mov dword [ebp - 0xa5c], eax
lea eax, [ebp - 0xa5c]
push eax
push edi
lea eax, [ebp - 0xa3c]
push eax
push 0x400
push 0xc000044d
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x2900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x102e74f
push 0x30
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0xa3c]
push edi
push dword [ebp - 0xa40]
call fcn.0103b05f
push dword [ebp - 0xa3c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xa54]
neg eax
sbb eax, eax
and eax, 0xfffffff4
add eax, 0x4d3
jmp 0x102ebb9
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x5fb
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
push edi
push dword [ebp - 0xa40]
call fcn.0103b05f
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0103d24a
leave
ret 4