Function at 0x4722c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539e98
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x4725dc
cmp word [esi], 0
je 0x4725dc
xor edi, edi
mov dword [ebp - 0x74], 0
push 0x44
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x80], 0
xorps xmm0, xmm0
mov dword [ebp - 0x7c], edi
push edi
push eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x18], edi
mov word [ebp - 0x14], 0x1000
mov dword [ebp - 0x78], edi
movq qword [ebp - 0x88], xmm0
call fcn.00509680
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0x44
push esi
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0xa0], edi
call fcn.005149f1
add esp, 0x10
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x47256e
mov ax, word [ebp + 0x14]
or dword [ebp - 0x40], 1
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x74]
push eax
push 0x2000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47256e
push 1
push str.SeIncreaseQuotaPrivilege
push dword [ebp - 0x74]
call fcn.00472650
mov esi, dword [ebp + 0xc]
add esp, 0xc
test esi, esi
je 0x472409
call dword [sym.imp.USER32.dll_GetShellWindow]
test eax, eax
je 0x4723c1
lea ecx, [ebp - 0x80]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x4723ec
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4723ec
lea eax, [ebp - 0x7c]
push eax
push 0x2000000
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x472409
lea ecx, [ebp - 0x70]
push ecx
push 1
push 2
push 0
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
cmp dword [ebp - 0x70], 0
jne 0x472432
lea eax, [ebp - 0x70]
push eax
push 1
push 2
push 0
push 0x2000000
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
xor esi, esi
cmp dword [ebp - 0x70], esi
je 0x47256e
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x47256e
mov eax, dword [ebp - 0x78]
push eax
mov dword [ebp - 0x84], 0x20
mov dword [ebp - 0x88], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x88]
push eax
push 0x19
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x47256e
test esi, esi
je 0x472524
push 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
push 0x548948
movups xmmword [ebp - 0x28], xmm0
call fcn.004873a0
mov dword [ebp - 4], 0
push str.CreateProcessWithTokenW
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4724de
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004873e0
jmp 0x47256e
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0
push 0
push dword [ebp - 0x9c]
push 0
push 0
push dword [ebp - 0x70]
call eax
test eax, eax
jne 0x472513
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004873e0
jmp 0x47256e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004873e0
jmp 0x472550
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp - 0x9c]
push 0
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x47256e
cmp dword [ebp + 0x18], 0
je 0x472564
push 0xffffffffffffffff
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xa0], 1
mov eax, dword [ebp - 0x98]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x472581
push eax
call esi
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x47258e
push eax
call esi
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x47259c
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x4725a6
push eax
call esi
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4725b0
push eax
call esi
test edi, edi
je 0x4725b7
push edi
call esi
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x4725c1
push eax
call esi
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x4725d4
push eax
call fcn.00515523
add esp, 4
mov eax, dword [ebp - 0xa0]
jmp 0x4725de
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret