Function at 0x4baba0
Capabilities:
Access the windows event log
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x30]
push ecx
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
push 0x44
lea edx, [ebp - 0x94]
push ebx
push edx
lea esi, [ebx + 0x30]
call fcn.004e8ba0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x24]
push eax
push 0x201eb
mov dword [ebp - 0x94], 0x44
mov dword [ebp - 0x8c], str.winsta0default
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4bac36
call edi
mov ebx, eax
lea ecx, [ebp - 0x3c]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4bac4f
call edi
mov ebx, eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x1c]
push ecx
push 1
push 1
push 0
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x24]
push 0x2000000
push edx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x4bac8a
call edi
mov ebx, eax
mov ecx, dword [ebp - 0x1c]
push 4
lea eax, [ebp - 0x34]
push eax
push 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4baca4
call edi
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x18]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4bacc2
call edi
mov ebx, eax
mov ecx, dword [ebp - 0x1c]
push 1
push ecx
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], 0
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4bace4
mov esi, 0x430
jmp 0x4baceb
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x94]
push ecx
mov ecx, dword [ebp - 0x1c]
push 0
push edx
push esi
push 0
push 0
push 0
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4bad1b
call edi
mov ebx, eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4bad35
push eax
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4bad3f
push eax
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4bad49
push eax
call esi
test ebx, ebx
je 0x4badd3
push 0x808
call fcn.004e5379
push 0x808
mov esi, eax
push 0
push esi
call fcn.004e8ba0
mov eax, dword [ebp - 0x28]
push eax
push str._CreateProcess__r_nFilePath_s_r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push str.WinNetDaily
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
test edi, edi
je 0x4badbd
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 1
push 0
push 0x40020301
push 2
push 4
push edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push 0x808
push 0
push esi
call fcn.004e8ba0
push esi
call fcn.004e4fab
add esp, 0x10
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret