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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x448044]
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 0x403d96
lea edx, [ebp - 0x38]
push edx
push 0x60000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4039ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x403d96
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 0x403aa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4039de
mov eax, dword [ebp - 0x34]
push eax
push 8
call edi
push eax
call esi
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x403a79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x403d96
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 0x403aa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x403d3e
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 0x403ac8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x403d3e
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 0x403af4
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x403d3e
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 0x403be4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x403c6c
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 0x403c6c
cmp dword [ebp - 0x48], ebx
je 0x403c6c
cmp dword [ebp - 0x40], ebx
je 0x403c6c
mov edx, dword [ebp - 0x50]
cmp edx, ebx
je 0x403c6c
cmp ecx, ebx
je 0x403c6c
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 0x403be4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x403d3e
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 0x403c0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x403d3e
mov edx, dword [ebp - 0x38]
push esi
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
test eax, eax
jne 0x403c2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x403d3e
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 0x403c50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x403d3e
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 0x403c7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x403d3e
push 0x44
lea ecx, [ebp - 0xf4]
push ebx
push ecx
call fcn.004279d0
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 0x403cf5
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.0042dddb
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 0x403d2f
call esi
call esi
mov dword [ebp - 0x2c], eax
jmp 0x403d3e
mov eax, dword [ebp - 0x74]
cmp eax, ebx
je 0x403d3e
mov edx, dword [ebp - 0xa0]
mov dword [eax], edx
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x403d50
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x403d66
push eax
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
jmp 0x403d6c
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x403d7a
push eax
push ebx
call edi
push eax
call esi
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x403d88
push eax
push ebx
call edi
push eax
call esi
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x403d96
push eax
push ebx
call edi
push eax
call esi
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x403da8
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x403ddc
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.0041fb1e
mov esp, ebp
pop ebp
ret