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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e3ce
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x100a6204]
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.10008280
mov ecx, eax
test ecx, ecx
je 0x10027ce2
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.10051fb0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10027cb3
lea eax, [ebp - 0x654]
mov dword [ebp - 0x654], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10027ad3
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 0x10027adf
lea eax, [ebp - 0x654]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10027ab0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10027cb3
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 0x10027cad
push dword [ebp - 0x660]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x10027cad
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 0x10027cad
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
je 0x10027cad
lea eax, [ebp - 0x65c]
mov dword [ebp - 0x65c], 0
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.10027860
add esp, 8
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 0x65c]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x10027cec
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.10007b40
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 0x10027c8e
push 0x210
push eax
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x220]
push eax
call fcn.10051fb0
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 0x10027c82
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10027c60
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x658]
push eax
call fcn.1000f980
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 0x10027cad
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 0x10027cc4
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.10049342
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
int3