Function at 0x4fdd70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x20c], 0x10
mov dword [ebp - 0x238], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, str.advapi32.dll
mov dword [ebp - 0x23c], eax
call fcn.004fdb70
mov esi, eax
test esi, esi
jne 0x4fddc5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x66f780
push esi
call ebx
mov dword [ebp - 0x244], eax
test eax, eax
jne 0x4fde07
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.005c63d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress__OpenProcessToken__failed_Error:_d
jmp 0x4fde7d
push 0x66f7fc
push esi
call ebx
mov dword [ebp - 0x248], eax
test eax, eax
jne 0x4fde43
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.005c63d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress__LookupPrivilegeValueW__failed_Error:_d
jmp 0x4fde7d
push str.AdjustTokenPrivileges
push esi
call ebx
mov dword [ebp - 0x240], eax
test eax, eax
jne 0x4fdea5
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.005c63d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress__AdjustTokenPrivileges__failed_Error:_d
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [ebp - 0x23c]
jmp 0x4fe04e
mov ebx, dword [ebp - 0x23c]
lea eax, [ebp - 0x238]
push eax
push 0x200e8
push ebx
call dword [ebp - 0x244]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
test eax, eax
jne 0x4fdf0b
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.005c63d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x208]
push str.GetProcAddress__LaughProcessAsUser__failed_Error:_d
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x214]
push eax
push str.SeTcbPrivilege
push 0
call dword [ebp - 0x248]
mov edi, eax
test edi, edi
jne 0x4fdf64
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.005c63d0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
call eax
push eax
push str.SeTcbPrivilege
lea eax, [ebp - 0x208]
push str.SetPrivilege__s__LookupPrivilegeValue___err:_d
push eax
call esi
add esp, 0x10
jmp 0x4fe040
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x234], 1
push eax
push 0x10
lea eax, [ebp - 0x234]
mov dword [ebp - 0x228], connect
push eax
push 0
push dword [ebp - 0x238]
call dword [ebp - 0x240]
mov edi, eax
test edi, edi
je 0x4fe009
mov eax, dword [ebp - 0x214]
or dword [ebp - 0x218], 2
push 0
push 0
push dword [ebp - 0x20c]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x224]
push eax
push 0
push dword [ebp - 0x238]
mov dword [ebp - 0x224], 1
call dword [ebp - 0x240]
mov edi, eax
test edi, edi
jne 0x4fe04e
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.005c63d0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
call eax
push eax
lea eax, [ebp - 0x208]
push str.SetPrivilege__AdjustTokenPrivileges___err:_d
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call eax
mov eax, dword [ebp - 0x238]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4fe06b
push eax
call esi
mov dword [ebp - 0x238], 0
test ebx, ebx
je 0x4fe072
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c6c09
mov esp, ebp
pop ebp
ret