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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a82fe
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x100d10d4]
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.1000db70
mov ecx, eax
test ecx, ecx
je 0x1003f5f2
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.1006e460
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1003f5c3
lea eax, [ebp - 0x654]
mov dword [ebp - 0x654], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1003f3e3
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 0x1003f3ef
lea eax, [ebp - 0x654]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1003f3c0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003f5c3
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 0x1003f5bd
push dword [ebp - 0x660]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1003f5bd
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 0x1003f5bd
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
je 0x1003f5bd
lea eax, [ebp - 0x65c]
mov dword [ebp - 0x65c], 0
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.1003f170
add esp, 8
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 0x65c]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
call fcn.1000db70
mov ecx, eax
test ecx, ecx
je 0x1003f5fc
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.1000da40
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 0x1003f59e
push 0x210
push eax
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x220]
push eax
call fcn.1006e460
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 0x1003f592
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003f570
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x658]
push eax
call fcn.10014ae0
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 0x1003f5bd
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 0x1003f5d4
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.10061eb3
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000d6a0
push 0x80004005
call fcn.1000d6a0
int3