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

Disassembly:
push 0x98
mov eax, 0x570d31
call fcn.0053d1a8
push 1
xor ebx, ebx
push str.SeDebugPrivilege
push ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
call fcn.004efc1c
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.004efa95
add esp, 0x14
jmp 0x4f0083
cmp dword [ebp - 0x10], ebx
jne 0x4f008c
cmp esi, 0x14
jge 0x4f00cf
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
inc esi
call fcn.004efa95
pop ecx
pop ecx
test eax, eax
je 0x4f005f
cmp dword [ebp - 0x10], ebx
je 0x4f00cf
push dword [ebp - 0x10]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
or esi, 0xffffffff
mov dword [ebp - 0x24], edi
cmp edi, esi
je 0x4f00cf
cmp edi, ebx
je 0x4f00cf
mov dword [ebp - 0x60], edi
lea eax, [ebp - 0x20]
push eax
push 0xf01ff
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4f00d7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.0053d247
ret
push 0x40
lea eax, [ebp - 0xa0]
push ebx
push eax
mov dword [ebp - 0xa4], ebx
call fcn.00534b40
mov edi, dword [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x2c]
push eax
push 1
push 1
push ebx
push 0x2000000
push edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x4f012d
cmp edi, esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4f0126
cmp edi, ebx
je 0x4f0126
push edi
call esi
push dword [ebp - 0x24]
call esi
jmp 0x4f00cf
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xc
push dword [ebp - 0x20]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 0x1c], esi
jne 0x4f0160
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x4f0171
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xc
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
call fcn.004f1938
test eax, eax
jne 0x4f018b
mov dword [ebp - 0x78], 0x100
mov dword [ebp - 0x9c], str.WinSta0Default
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
cmp edi, dword [ebp - 0x20]
je 0x4f019a
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x50], ebx
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0x38]
stosd dword es:[edi], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x28], ebx
call fcn.004f7cee
push 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.004f7d3a
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov byte [ebp - 4], 4
mov edi, 0x80
cmp dword [ebp + 0x1c], ebx
je 0x4f01ff
lea ecx, [ebp - 0x5c]
call fcn.0056714d
push ebx
push edi
push 3
push eax
push 3
push Ordinal_4
push dword [ebp + 0x1c]
call esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 1
cmp dword [ebp + 0x20], ebx
je 0x4f0228
lea ecx, [ebp - 0x5c]
call fcn.0056714d
push ebx
push edi
push 4
push eax
push 3
push 0x40000000
push dword [ebp + 0x20]
call esi
mov edi, eax
mov dword [ebp - 0x28], 1
jmp 0x4f022b
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0xa4], 0x44
cmp dword [ebp - 0x28], ebx
je 0x4f024a
mov eax, dword [ebp - 0x18]
or dword [ebp - 0x78], 0x100
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp + 0x18]
push ebx
push ebx
or eax, 0x8000000
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x4f02bd
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.004f5a61
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.004f7d76
cmp dword [ebp - 0x14], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4f02a2
cmp dword [ebp - 0x14], ebx
je 0x4f02a2
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], 0xffffffff
je 0x4f0126
cmp dword [ebp - 0x10], ebx
je 0x4f0126
push dword [ebp - 0x10]
jmp 0x4f0124
cmp dword [ebp + 0x14], ebx
je 0x4f02d9
push 0xffffffffffffffff
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x18], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4f02ef
cmp dword [ebp - 0x18], ebx
je 0x4f02ef
push dword [ebp - 0x18]
call esi
cmp edi, 0xffffffff
je 0x4f02fb
cmp edi, ebx
je 0x4f02fb
push edi
call esi
push dword [ebp - 0x50]
call esi
push dword [ebp - 0x4c]
call esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.004f5a61
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.004f7d76
cmp dword [ebp - 0x14], 0xffffffff
je 0x4f032d
cmp dword [ebp - 0x14], ebx
je 0x4f032d
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], 0xffffffff
je 0x4f033d
cmp dword [ebp - 0x10], ebx
je 0x4f033d
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x24]
call esi
xor eax, eax
inc eax
jmp 0x4f00d1