Function at 0x10010100
Capabilities:
Get session information
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038006
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x1007d00c]
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 - 0x1bc], ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1a4], ebx
call fcn.100011b0
mov ecx, eax
test ecx, ecx
je 0x10010349
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 4], 1
push ebx
push ebx
push 0xffffffffffffffff
push str.LogLevel
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [eax - 1]
test edi, edi
jle 0x100101d5
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x100101ae
push edi
lea ecx, [ebp - 0x1a4]
call fcn.10006ae0
mov esi, dword [ebp - 0x1a4]
push edi
push esi
push 0xffffffffffffffff
push str.LogLevel
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp edi, dword [esi - 8]
jg 0x10010353
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x100101e6
lea ecx, [ebp - 0x1a4]
call fcn.10006b50
mov esi, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x1bc]
cmp dword [eax + 4], 0x80000001
jne 0x1001030a
mov dword [ebp - 0x1ac], 0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov edi, eax
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x1a0]
push eax
push 5
push edi
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
lea eax, [ebp - 0x1b4]
mov dword [ebp - 0x1b4], 0
push eax
push edi
mov dword [ebp - 0x1b0], 0
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x1001030a
lea eax, [ebp - 0x1b0]
push eax
push 1
push 2
push 0
push 0xf01ff
push dword [ebp - 0x1b4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x10010302
push dword [ebp - 0x1b0]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x100102fa
lea eax, [ebp - 0x1b8]
push eax
push 0x20019
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov ebx, eax
test ebx, ebx
jne 0x100102f4
lea eax, [ebp - 0x1ac]
push eax
mov eax, dword [ebp - 0x1bc]
push 0xf013f
push ebx
push dword [eax + 8]
push dword [ebp - 0x1b8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x100102f4
push dword [ebp - 0x1c0]
push dword [ebp - 0x1c4]
push eax
push eax
push esi
push dword [ebp - 0x1ac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1ac]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x1b0]
call edi
push dword [ebp - 0x1b4]
call edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10010329
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.10034b1d
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10008700
push 0x80070057
call fcn.10008700
int3