Function at 0x429040
Capabilities:
Acquire debug privileges
Create process on windows
Impersonate user

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4f48
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x68
mov eax, dword [0x56b06c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x78], ecx
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x64], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x70], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x54]
push eax
push 0x20
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x54], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42914e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.00428800
mov esi, eax
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 0
mov edx, str.OpenProcessToken_failed:
call fcn.004241d0
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x429100
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.0042a220
mov edx, dword [ebp - 0x20]
add esp, 4
cmp edx, 8
jb 0x429147
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42913d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42940a
push edx
push ecx
call fcn.004835cc
add esp, 8
xor al, al
jmp 0x4293ec
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x54]
xorps xmm0, xmm0
mov edi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push eax
push str.SeIncreaseQuotaPrivilege
movups xmmword [ebp - 0x2c], xmm0
push 0
mov dword [ebp - 0x2c], 1
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], 2
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42940f
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x28]
push eax
xorps xmm0, xmm0
push str.SeDebugPrivilege
movups xmmword [ebp - 0x2c], xmm0
push 0
mov dword [ebp - 0x2c], 1
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], 2
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x42941b
jmp 0x429215
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x64]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x64], eax
test eax, eax
jne 0x429275
call esi
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.00428800
mov esi, eax
mov ecx, dword [ebp - 0x58]
mov edx, str.Cant_open_desktop_shell_process:
add ecx, 0x10
mov dword [ebp - 4], 3
call fcn.004241d0
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x429100
jmp 0x4290fe
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x4d], 0
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42930e
call esi
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.00428800
mov esi, eax
mov ecx, dword [ebp - 0x58]
mov edx, str.Cant_get_process_token_of_desktop_shell:
add ecx, 0x10
mov dword [ebp - 4], 4
call fcn.004241d0
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x4292be
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.0042a220
mov edx, dword [ebp - 0x20]
add esp, 4
cmp edx, 8
jb 0x4293da
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4292ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42940a
push edx
push ecx
call fcn.004835cc
add esp, 8
jmp 0x4293da
lea eax, [ebp - 0x60]
push eax
push 1
push 2
push 0
push 0x18b
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x429361
call esi
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.00428800
mov esi, eax
mov ecx, dword [ebp - 0x58]
mov edx, str.Cant_get_primary_token:
add ecx, 0x10
mov dword [ebp - 4], 5
call fcn.004241d0
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x4292be
jmp 0x4292bc
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push 0
push 0
push 0
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push 0
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
jne 0x4293d6
call esi
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.00428800
mov esi, eax
mov ecx, dword [ebp - 0x58]
mov edx, str.CreateProcessWithTokenW_failed:
add ecx, 0x10
mov dword [ebp - 4], 6
call fcn.004241d0
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x4293b2
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.0042a220
mov edx, dword [ebp - 0x38]
add esp, 4
cmp edx, 8
jb 0x4293da
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
jmp 0x4292e1
mov byte [ebp - 0x4d], 1
push dword [ebp - 0x5c]
call edi
push dword [ebp - 0x60]
call edi
push dword [ebp - 0x64]
call edi
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0048358b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004b1db8
mov edx, eax
mov ecx, str.AdjustTokenPrivileges_failed_for_SeIncreaseQuotaPrivilege:
call fcn.00429b90
mov edx, eax
mov ecx, str.AdjustTokenPrivileges_failed_for_SeIncreaseQuotaPrivilege:
call fcn.00429b90
int3