Function at 0x474690
Capabilities:
Compare security identifiers
Get hostname
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571b32
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x16d8
call fcn.0052d270
mov eax, dword [0x5e8ea4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str._SYSTEM_INFO_
call fcn.004612c0
add esp, 4
push 0x104
push 0x5efbd0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5efbd0
push 0x104
push 0x5ef9c8
call fcn.00550106
add esp, 0xc
push 0x5ef9c8
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5efbd0
push 0x104
push 0x5efe58
call fcn.00550106
add esp, 0xc
push 0x5efe58
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
push str.SYSTEMDRIVE
call fcn.0054f4b6
mov edx, eax
mov dword [ebp - 0x4c8], 0
mov ecx, edx
mov dword [ebp - 0x4c4], 7
add esp, 4
xor eax, eax
mov word [ebp - 0x4d8], ax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474760
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4d8]
call fcn.0044a890
push 0x11
push str._temp_session.tmp
lea ecx, [ebp - 0x4d8]
mov dword [ebp - 4], 0
call fcn.0044fc90
cmp dword [ebp - 0x4c4], 8
lea eax, [ebp - 0x4d8]
cmovae eax, dword [ebp - 0x4d8]
push eax
push 0x40
push 0x5efdd8
call fcn.00550106
add esp, 0xc
lea eax, [ebp - 0x570]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x80
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.005446b0
add esp, 0xc
lea eax, [ebp - 0x68c]
mov ecx, 0x11c
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4747e7
lea eax, [ebp - 0x68c]
mov dword [ebp - 0x68c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x474834
push dword [ebp - 0x680]
lea eax, [ebp - 0x94]
push dword [ebp - 0x684]
push dword [ebp - 0x688]
push str._i._i._i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x54c]
mov dword [ebp - 0x54c], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov esi, dword [ebp - 0x544]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x540]
mov ecx, dword [ebp - 0x53c]
shrd esi, eax, 0x14
mov eax, dword [ebp - 0x538]
shrd ecx, eax, 0x14
push 0
movlpd qword [ebp - 0x4a4], xmm0
push 0
mov dword [ebp - 0x16d8], esi
mov dword [ebp - 0x16e0], esi
mov dword [ebp - 0x16dc], ecx
mov dword [ebp - 0x16e4], ecx
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x4a0], 0
call fcn.00475180
mov edi, eax
mov dword [ebp - 0x4a4], edi
lea eax, [ebp - 0x16c4]
mov byte [ebp - 4], 1
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x474cca
lea eax, [ebp - 0x50c]
push eax
push 4
lea eax, [ebp - 0x4a8]
push eax
push 0x12
push dword [ebp - 0x16c4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x474915
movzx eax, byte [0x5ef9ba]
mov ecx, 1
cmp dword [ebp - 0x4a8], 3
cmovne eax, ecx
mov byte [0x5ef9ba], al
xor esi, esi
mov dword [ebp - 0x16cc], 0
lea eax, [ebp - 0x16cc]
mov dword [ebp - 0x16d0], 0
push eax
lea ecx, [esi + 0x1a]
call fcn.004745f0
add esp, 4
test eax, eax
je 0x474c76
lea eax, [ebp - 0x16d0]
push eax
lea ecx, [esi + 0x16]
call fcn.004745f0
add esp, 4
test eax, eax
je 0x474c76
mov eax, dword [ebp - 0x16c4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x16c8], eax
mov dword [ebp - 0x498], 0x1000
call ebx
push 0x1000
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x498]
mov esi, eax
xor eax, eax
test esi, esi
cmove ecx, eax
lea eax, [ebp - 0x498]
push eax
push ecx
push esi
push 2
push dword [ebp - 0x16c8]
mov dword [ebp - 0x498], ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x474a1f
nop dword [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x474a1f
test esi, esi
je 0x4749db
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x498]
call ebx
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x474a15
lea eax, [ebp - 0x498]
push eax
push dword [ebp - 0x498]
push esi
push 2
push dword [ebp - 0x16c8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4749c0
jmp 0x474a1f
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x16d4], esi
xor ebx, ebx
cmp ebx, dword [esi]
jae 0x474c76
push dword [ebp - 0x16cc]
push dword [esi + ebx*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x474a4c
mov byte [0x5ef9c6], 1
jmp 0x474a79
push dword [ebp - 0x16d0]
push dword [esi + ebx*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x474a79
test byte [esi + ebx*8 + 8], 4
mov ecx, 1
movzx eax, byte [0x5ef9bb]
cmovne eax, ecx
mov byte [0x5ef9bb], al
xor eax, eax
mov dword [ebp - 0x6b0], 0
mov dword [ebp - 0x6ac], 7
mov word [ebp - 0x6c0], ax
mov dword [ebp - 0x694], eax
mov dword [ebp - 0x690], 7
mov word [ebp - 0x6a4], ax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x16c0]
mov edx, dword [esi + ebx*8 + 8]
mov ecx, dword [esi + ebx*8 + 4]
push eax
call fcn.004743d0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x16c0]
add esp, 4
mov dword [ebp - 0x16c8], eax
push ecx
push eax
push edi
call fcn.00475200
mov edx, dword [ebp - 0x4a0]
mov ecx, 0xfc4dc
sub ecx, edx
cmp ecx, 1
jb 0x475012
mov ecx, dword [ebp - 0x16c8]
inc edx
mov dword [edi + 4], eax
mov dword [ebp - 0x4a0], edx
mov dword [ecx], eax
lea ecx, [ebp - 0x16c0]
call fcn.00475030
mov edi, dword [ebp - 0x4a4]
inc ebx
jmp 0x474a27
mov dword [ebp - 4], 1
mov ebx, 1
test esi, esi
je 0x474c96
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x16cc]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x474ca9
push eax
call esi
mov eax, dword [ebp - 0x16d0]
test eax, eax
je 0x474cb6
push eax
call esi
push dword [ebp - 0x16c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x16d8]
jmp 0x474ccf
mov ebx, 1
push str.LOCALAPPDATA
call fcn.0054f4b6
mov edx, eax
mov dword [ebp - 0x4b0], 0
mov ecx, edx
mov dword [ebp - 0x4ac], 7
add esp, 4
xor eax, eax
mov word [ebp - 0x4c0], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x16d4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474d06
sub ecx, dword [ebp - 0x16d4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c0]
call fcn.0044a890
mov byte [ebp - 4], 7
lea eax, [ebp - 0x4c0]
cmp dword [ebp - 0x4ac], 8
push str._systemprofile_
cmovae eax, dword [ebp - 0x4c0]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
movzx ecx, byte [0x5ef9bb]
test eax, eax
mov eax, dword [ebp - 0x55c]
cmovne ecx, ebx
mov dword [0x5ef9c0], eax
cmp word [ebp - 0x570], 0
lea eax, [ebp - 0x49c]
push eax
setne byte [0x5ef9c4]
mov byte [0x5ef9bb], cl
cmp byte [ebp - 0x572], 2
lea eax, [ebp - 0x494]
push eax
sete byte [0x5ef9c5]
mov dword [ebp - 0x49c], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x49c], 0x100
push eax
lea eax, [ebp - 0x294]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
cmp byte [0x5ef9c4], 0
mov ecx, 0x5dcbe8
mov eax, 0x5dcbe0
cmove eax, ecx
push eax
push str.WIN_ARCH:____s
call fcn.004612c0
lea eax, [ebp - 0x94]
push eax
push str.WIN_VER:_____s
call fcn.004612c0
push dword [0x5ef9c0]
push str.CORE_COUNT:__i
call fcn.004612c0
push esi
push str.MEM_TOTAL:___lu_Mb.
call fcn.004612c0
push dword [ebp - 0x16dc]
push str.MEM_AVAIL:___lu_Mb.
call fcn.004612c0
cmp byte [0x5ef9c5], 0
mov esi, 0x5dcca0
mov eax, esi
mov ebx, 0x5dcca8
cmove eax, ebx
push eax
push str.IS_DOMAIN:___s
call fcn.004612c0
cmp byte [0x5ef9bb], 0
mov eax, esi
cmove eax, ebx
push eax
push str.LOCAL_SYS:___s
call fcn.004612c0
cmp byte [0x5ef9ba], 0
mov eax, esi
cmove eax, ebx
push eax
push str.ELEVATED:____s
call fcn.004612c0
add esp, 0x40
cmp byte [0x5ef9c6], 0
cmove esi, ebx
push esi
push str.HAS_ADMIN:___s
call fcn.004612c0
lea eax, [ebp - 0x294]
push eax
push str.PC_NAME:_____s
call fcn.004612c0
lea eax, [ebp - 0x494]
push eax
push str.USER_NAME:___s
call fcn.004612c0
push str.IN_GROUPS:
call fcn.004612c0
mov esi, dword [edi]
add esp, 0x1c
cmp esi, edi
je 0x474ef7
nop dword [eax]
cmp dword [esi + 0x101c], 8
lea eax, [esi + 0x1008]
jb 0x474ed1
mov eax, dword [eax]
cmp dword [esi + 0x1038], 8
lea ecx, [esi + 0x1024]
jb 0x474ee2
mov ecx, dword [ecx]
push eax
push ecx
push str._t_s_t_s
call fcn.004612c0
mov esi, dword [esi]
add esp, 0xc
cmp esi, edi
jne 0x474ec0
push 0x5d6190
call fcn.004612c0
mov edx, dword [ebp - 0x4ac]
add esp, 4
cmp edx, 8
jb 0x474f44
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x474f3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47501c
push edx
push ecx
call fcn.0052cac7
add esp, 8
xor eax, eax
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 7
mov word [ebp - 0x4c0], ax
mov esi, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp esi, edi
je 0x474f9f
nop dword [eax]
mov ebx, dword [esi]
lea ecx, [esi + 8]
call fcn.00475030
mov ecx, dword [esi - 4]
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x47501c
push 0x105f
push ecx
call fcn.0052cac7
add esp, 8
mov esi, ebx
cmp ebx, edi
jne 0x474f70
mov ecx, dword [edi - 4]
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x475021
push 0x105f
push ecx
call fcn.0052cac7
mov edx, dword [ebp - 0x4c4]
add esp, 8
cmp edx, 8
jb 0x474ff6
mov ecx, dword [ebp - 0x4d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x474fec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475026
push edx
push ecx
call fcn.0052cac7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052c886
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.00529cde
call fcn.00548571
call fcn.00548571
call fcn.00548571
int3