Function at 0x446e81
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
push ebx
push esi
xor esi, esi
push edi
mov ebx, eax
xor eax, eax
mov dword [esp + 0x48], esi
lea edi, [esp + 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [esp + 0x68]
push esi
push eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], si
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call fcn.004923b0
xor eax, eax
inc eax
mov dword [esp + 0x98], eax
mov word [esp + 0x9c], ax
xor eax, eax
add esp, 0xc
cmp word [ebx], 0x22
mov dword [esp + 0x60], 0x44
setne al
mov edi, eax
cmp edi, esi
je 0x446f1c
mov esi, 0x4ed090
push esi
call fcn.004926b1
pop ecx
mov ecx, esi
lea esi, [esp + 0x2c]
call fcn.004011e2
xor esi, esi
push ebx
lea eax, [esp + 0x30]
push eax
call fcn.00401061
cmp edi, esi
je 0x446f3a
push 0x4ed090
lea eax, [esp + 0x30]
push eax
call fcn.00401061
cmp dword [ebp + 8], esi
je 0x446f5b
push 0x4efa34
lea eax, [esp + 0x30]
push eax
call fcn.00401061
push dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
call fcn.00401061
lea eax, [esp + 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
jne 0x446f89
mov dword [esp + 0x10], 0xfffffff9
jmp 0x44725f
and dword [esp + 0x24], 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
lea ebx, [esp + 0x30]
call fcn.0044ad87
test eax, eax
pop ecx
pop ecx
jne 0x446fb3
mov dword [esp + 0x10], 0xfffffff8
jmp 0x44725f
mov eax, dword [esp + 0x28]
push dword [eax]
call fcn.0044ac5f
test eax, eax
pop ecx
je 0x44707c
lea edi, [esp + 0x14]
call fcn.0044aecd
test eax, eax
jne 0x446fe1
mov dword [esp + 0x10], 0xfffffffe
jmp 0x44725f
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.0044af69
test eax, eax
pop ecx
pop ecx
jne 0x447002
mov dword [esp + 0x10], 0xfffffffd
jmp 0x44725f
push dword [esp + 0x18]
push 0
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x44725f
lea eax, [esp + 0x1c]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push edi
call esi
cmp dword [esp + 0x44], 8
mov ecx, dword [esp + 0x30]
jae 0x447040
lea ecx, [esp + 0x30]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x64]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push ecx
push eax
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x44725f
push dword [esp + 0x4c]
call esi
push dword [esp + 0x48]
call esi
and dword [esp + 0x10], 0
jmp 0x44725f
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
xor edi, edi
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
call fcn.0044ab89
add esp, 0xc
test eax, eax
je 0x447257
cmp dword [esp + 0x18], 2
jne 0x44721a
cmp dword [esp + 0x14], 6
jb 0x44721a
push dword [esp + 0x20]
call fcn.0044ac80
pop ecx
call dword [sym.imp.USER32.dll_GetShellWindow]
cmp eax, edi
jne 0x4470e0
mov dword [esp + 0x10], 0xfffffff6
jmp 0x44725f
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
jne 0x447101
mov dword [esp + 0x10], 0xfffffff5
jmp 0x44725f
push dword [esp + 0x18]
push edi
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [esp + 0x58], eax
jne 0x447126
mov dword [esp + 0x10], 0xfffffff3
jmp 0x44725f
lea ecx, [esp + 0x14]
push ecx
push 2
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x447212
lea eax, [esp + 0x1c]
push eax
push 1
push 2
push edi
push 0x18b
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x44720c
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
cmp eax, edi
mov dword [esp + 0x24], eax
je 0x44720c
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x447202
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x447199
lea eax, [esp + 0x30]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x64]
push ecx
push edi
push edi
push edi
push eax
push edi
push edi
push dword [esp + 0x3c]
call ebx
cmp eax, edi
jne 0x4471f2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x422
jne 0x447202
call fcn.00447336
test eax, eax
je 0x447202
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x4471d8
lea eax, [esp + 0x30]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x64]
push ecx
push edi
push edi
push edi
push eax
push edi
push edi
push dword [esp + 0x3c]
call ebx
cmp eax, edi
je 0x447202
push dword [esp + 0x4c]
call esi
push dword [esp + 0x48]
call esi
mov dword [esp + 0x10], edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push dword [esp + 0x14]
call esi
push dword [esp + 0x58]
call esi
jmp 0x44725f
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x447229
lea eax, [esp + 0x30]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x64]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x44725f
push dword [esp + 0x4c]
call esi
push dword [esp + 0x48]
call esi
and dword [esp + 0x10], edi
jmp 0x44725f
mov dword [esp + 0x10], 0xfffffff4
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x44726d
push dword [esp + 0x20]
call esi
cmp dword [esp + 0x1c], ebx
je 0x447279
push dword [esp + 0x1c]
call esi
cmp dword [esp + 0x28], ebx
je 0x447289
push dword [esp + 0x28]
call fcn.00492a2f
pop ecx
push 0x1fe
lea eax, [esp + 0xae]
push ebx
push eax
mov word [esp + 0xb4], bx
call fcn.004923b0
add esp, 0xc
push dword [esp + 0x10]
lea eax, [esp + 0xac]
push str.from1ver0.3errcode_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea esi, [esp + 0x58]
call fcn.00446b13
mov edi, dword [esp + 0x5c]
cmp edi, ebx
je 0x4472de
mov eax, dword [edi]
push str.duba_createprocess_by_svc
mov ecx, edi
call dword [eax + 0xc]
lea eax, [esp + 0xa8]
push eax
lea esi, [esp + 0x5c]
call fcn.00446b5d
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
pop ecx
jae 0x4472ff
lea eax, [esp + 0x30]
cmp edi, ebx
je 0x44731f
mov edx, dword [edi]
push eax
push str.cmdline
mov ecx, edi
call dword [edx + 0x18]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x20]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push ebx
push 1
lea esi, [esp + 0x34]
call fcn.00401105
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret