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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x44c044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x68], eax
cmp eax, ebx
je 0x406316
lea edx, [ebp - 0x38]
push edx
push 0x60000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x405f6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x406316
xor eax, eax
push ebx
push 1
push 0xf01ff
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
push str.SYSTEM
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
push ecx
push ebx
push ebx
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x406020
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x405f5e
mov eax, dword [ebp - 0x34]
push eax
push 8
call edi
push eax
call esi
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x405ff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x406316
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x38]
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
test eax, eax
jne 0x406020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x4062be
lea ecx, [ebp - 0x78]
push ecx
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x6c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x406048
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x4062be
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x4c]
push edx
push eax
lea ecx, [ebp - 0x98]
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x406074
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x4062be
lea edx, [ebp - 0x58]
push edx
push ebx
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x30]
push ebx
lea ecx, [ebp - 0x54]
push ecx
push ebx
lea edx, [ebp - 0x64]
push edx
mov edx, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x34]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x406164
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4061ec
mov eax, dword [ebp - 0x64]
push eax
push 8
call edi
push eax
call esi
mov ecx, dword [ebp - 0x54]
push ecx
push 8
mov dword [ebp - 0x30], eax
call edi
push eax
call esi
mov edx, dword [ebp - 0x60]
push edx
push 8
mov dword [ebp - 0x48], eax
call edi
push eax
call esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x58]
push eax
push 8
call edi
push eax
call esi
mov ecx, dword [ebp - 0x34]
push ecx
push 8
mov dword [ebp - 0x50], eax
call edi
push eax
call esi
mov ecx, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x5c], ecx
cmp eax, ebx
je 0x4061ec
cmp dword [ebp - 0x48], ebx
je 0x4061ec
cmp dword [ebp - 0x40], ebx
je 0x4061ec
mov edx, dword [ebp - 0x50]
cmp edx, ebx
je 0x4061ec
cmp ecx, ebx
je 0x4061ec
lea esi, [ebp - 0x58]
push esi
push edx
lea edx, [ebp - 0x60]
push edx
mov edx, dword [ebp - 0x40]
push edx
lea edx, [ebp - 0x54]
push edx
mov edx, dword [ebp - 0x48]
push edx
lea edx, [ebp - 0x64]
push edx
push eax
lea eax, [ebp - 0x34]
push eax
push ecx
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x406164
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x4062be
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x5c]
push edx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x40618c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x4062be
mov edx, dword [ebp - 0x38]
push esi
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
test eax, eax
jne 0x4061ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x4062be
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x38]
push eax
push 0xf01ff
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4061d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x4062be
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x44]
push edx
push 1
push 2
push ebx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x4061fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x4062be
push 0x44
lea ecx, [ebp - 0xf4]
push ebx
push ecx
call fcn.00428450
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
push str.SeDebugPrivilege
push ebx
mov dword [ebp - 0xf4], 0x44
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ecx, dword [ebp - 0x44]
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x28]
push eax
push ebx
push ecx
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406275
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
call esi
push 0xa
lea edx, [ebp - 0x18]
push edx
push eax
call fcn.00430b6b
add esp, 0xc
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0xf4]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4062af
call esi
call esi
mov dword [ebp - 0x2c], eax
jmp 0x4062be
mov eax, dword [ebp - 0x74]
cmp eax, ebx
je 0x4062be
mov edx, dword [ebp - 0xa0]
mov dword [eax], edx
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x4062d0
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x4062e6
push eax
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
jmp 0x4062ec
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x4062fa
push eax
push ebx
call edi
push eax
call esi
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x406308
push eax
push ebx
call edi
push eax
call esi
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x406316
push eax
push ebx
call edi
push eax
call esi
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x406328
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x40635c
mov eax, dword [ebp - 0xa8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0xa4]
push ecx
call esi
mov edx, dword [ebp - 0x38]
push edx
call esi
mov eax, dword [ebp - 0x44]
push eax
call esi
mov ecx, dword [ebp - 0x68]
push ecx
call esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004217a4
mov esp, ebp
pop ebp
ret