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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x559940]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x21c], 0x104
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004f7f30
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
call fcn.004e08e0
mov dword [ebp - 4], 0
push 0x44
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x258], 0x44
push 0x800
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x254], 0x400
mov dword [ebp - 0x264], 0
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x254]
push edx
mov eax, dword [ebp - 0x270]
push eax
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x268]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4e2cb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0x7a
je 0x4e2c32
cmp dword [ebp - 0x264], 0xba
jne 0x4e2cb8
mov ecx, dword [ebp - 0x258]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x268], eax
mov edx, dword [ebp - 0x254]
shl edx, 1
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x264], 0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x270]
push edx
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x268]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4e2cb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 0
jne 0x4e2dba
mov dword [ebp - 0x274], 0
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
je 0x4e2dba
push str.ConvertSidToStringSidW
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0
je 0x4e2dad
mov dword [ebp - 0x25c], 0
lea ecx, [ebp - 0x25c]
push ecx
mov edx, dword [ebp - 0x268]
push edx
call dword [ebp - 0x274]
test eax, eax
je 0x4e2d3d
mov byte [ebp - 0x25d], 1
jmp 0x4e2d44
mov byte [ebp - 0x25d], 0
mov al, byte [ebp - 0x25d]
mov byte [ebp - 0x25e], al
movzx ecx, byte [ebp - 0x25e]
test ecx, ecx
je 0x4e2dad
mov edx, dword [ebp - 0x25c]
push edx
lea ecx, [ebp - 0x238]
call fcn.004e08e0
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.004e0800
mov ecx, dword [ebp - 0x26c]
or ecx, 1
mov dword [ebp - 0x26c], ecx
lea ecx, [ebp - 0x238]
call fcn.004e0c60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.004e0c60
mov eax, dword [ebp + 8]
jmp 0x4e2de8
mov edx, dword [ebp - 0x278]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
mov ecx, dword [ebp + 8]
call fcn.004e08e0
mov eax, dword [ebp - 0x26c]
or eax, 1
mov dword [ebp - 0x26c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.004e0c60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret