Function at 0x4a7d80
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
push 0x44
lea edx, [ebp - 0x94]
push edi
push edx
lea esi, [edi + 0x30]
call fcn.004e7d90
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 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 ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a7e16
call ebx
mov edi, eax
lea ecx, [ebp - 0x38]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4a7e2f
call ebx
mov edi, eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
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 0x4a7e6a
call ebx
mov edi, eax
mov ecx, dword [ebp - 0x1c]
push 4
lea eax, [ebp - 0x30]
push eax
push 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4a7e84
call ebx
mov edi, 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 0x4a7ea2
call ebx
mov edi, 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 0x4a7ec4
mov esi, 0x430
jmp 0x4a7ecb
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
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 0x4a7efb
call ebx
mov edi, eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4a7f15
push eax
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a7f1f
push eax
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4a7f29
push eax
call esi
test edi, edi
je 0x4a7f77
push 0x808
call fcn.004e4629
push 0x808
mov esi, eax
push 0
push esi
call fcn.004e7d90
mov eax, dword [ebp - 0x28]
push eax
push str._CreateProcess__r_nFilePath_s_r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
push 0x40020301
call fcn.004a5d80
push 0x808
push 0
push esi
call fcn.004e7d90
push esi
call fcn.004e41ab
add esp, 0x34
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret