Function at 0x1001ea50
Capabilities:
Enumerate processes
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058cfe
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x10079214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x680], edi
mov dword [ebp - 0x664], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x658], edi
mov dword [ebp - 0x67c], eax
mov dword [ebp - 0x66c], 0
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x1001ed62
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x650]
push 0x228
push 0
push eax
mov dword [ebp - 0x66c], 1
mov dword [ebp - 0x660], 0
call fcn.10031950
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1001ed33
lea eax, [ebp - 0x654]
mov dword [ebp - 0x654], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1001eb53
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop
push str.EXPLORER.EXE
lea eax, [ebp - 0x630]
push eax
call esi
test eax, eax
je 0x1001eb5f
lea eax, [ebp - 0x654]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001eb30
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001ed33
push dword [ebp - 0x64c]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x660]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call edi
push ebx
call edi
test esi, esi
je 0x1001ed2d
push dword [ebp - 0x660]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1001ed2d
lea eax, [ebp - 0x670]
mov dword [ebp - 0x670], 0x104
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1001ed2d
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
je 0x1001ed2d
lea eax, [ebp - 0x65c]
mov dword [ebp - 0x65c], 0
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.1001e930
add esp, 8
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 0x65c]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
call fcn.10005540
mov ecx, eax
test ecx, ecx
je 0x1001ed6c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x65c], eax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x65c]
push dword [ebp - 0x664]
push dword [ebp - 0x674]
push str._s_s
push eax
call fcn.10004e90
mov esi, dword [ebp - 0x65c]
lea eax, [ebp - 0x668]
add esp, 0x10
push eax
push 0xf003f
push 0
push esi
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001ed0e
push 0x210
push eax
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x220]
push eax
call fcn.10031950
add esp, 0xc
mov dword [ebp - 0x664], 0x210
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x678]
push eax
push 0
push dword [ebp - 0x67c]
push dword [ebp - 0x668]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001ed02
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001ece0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x658]
push eax
call fcn.1000a650
push dword [ebp - 0x668]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001ed2d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x658]
mov ecx, dword [ebp - 0x660]
test ecx, ecx
je 0x1001ed44
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002deb9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004830
push 0x80004005
call fcn.10004830
int3