Function at 0x48f0a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x24]
push ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x28]
push esi
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x2c]
push edi
mov dword [ebp - 0x30], eax
jne 0x48f301
cmp dword [ebp + 0x14], 0
jne 0x48f301
cmp dword [ebp + 0x18], 0
jne 0x48f301
call fcn.0048f030
test eax, eax
je 0x48f2cf
call fcn.0048eef0
neg eax
sbb ebx, ebx
lea eax, [ebp - 0x28]
push eax
push 0x28
neg ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x48f175
lea eax, [ebp - 0x4c]
push eax
push str.SeAssignPrimaryTokenPrivilege
push 0
call esi
test eax, eax
je 0x48f175
mov eax, dword [ebp - 0x4c]
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x28]
call edi
lea eax, [ebp - 0x2c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x48f1d1
lea eax, [ebp - 0x54]
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call esi
test eax, eax
je 0x48f1d1
mov eax, dword [ebp - 0x54]
push 0
push 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x50]
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x2c]
call edi
call fcn.0048ed70
mov esi, eax
test esi, esi
je 0x48f1f2
push esi
call fcn.0048ee20
add esp, 4
xor ebx, ebx
cmp eax, 0x2000
sete bl
push esi
call edi
test ebx, ebx
je 0x48f2cf
call fcn.0048eef0
neg eax
mov dword [ebp - 0x28], 0
sbb ebx, ebx
lea eax, [ebp - 0x28]
push eax
push 0xf01ff
inc ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x48f23f
push dword [ebp - 0x28]
call fcn.0048ee20
add esp, 4
xor ebx, ebx
cmp eax, 0x3000
sete bl
push dword [ebp - 0x28]
call edi
test ebx, ebx
je 0x48f2cf
call fcn.0048ed70
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [0x5441c8]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x5436c0]
cmp ecx, dword [edx + 4]
jg 0x48f314
movzx eax, byte [0x5436bc]
neg eax
sbb eax, eax
and eax, 0x800
push eax
push 0
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push str.CreateProcessWithTokenW
push eax
call esi
test edi, edi
je 0x48f301
test eax, eax
je 0x48f301
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp + 0x1c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push 0
push edi
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp + 0x1c]
push 0
push 0
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c20c9
mov esp, ebp
pop ebp
ret
push 0x5436c0
call fcn.004c1fd5
add esp, 4
cmp dword [0x5436c0], 0xffffffff
jne 0x48f276
push str.AddDllDirectory
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
test eax, eax
push 0x5436c0
setne byte [0x5436bc]
call fcn.004c1f8b
add esp, 4
jmp 0x48f276