Function at 0x446a06
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.00497490
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 0x446a98
mov eax, 0x4fa090
lea esi, [esp + 0x2c]
call fcn.004010df
xor esi, esi
push ebx
lea eax, [esp + 0x30]
push eax
call fcn.0040103b
cmp edi, esi
je 0x446ab6
push 0x4fa090
lea eax, [esp + 0x30]
push eax
call fcn.0040103b
cmp dword [ebp + 8], esi
je 0x446ad7
push 0x4fca34
lea eax, [esp + 0x30]
push eax
call fcn.0040103b
push dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
call fcn.0040103b
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 0x446b05
mov dword [esp + 0x10], 0xfffffff9
jmp 0x446ddb
and dword [esp + 0x24], 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
lea ebx, [esp + 0x30]
call fcn.0044ab22
test eax, eax
pop ecx
pop ecx
jne 0x446b2f
mov dword [esp + 0x10], 0xfffffff8
jmp 0x446ddb
mov eax, dword [esp + 0x28]
push dword [eax]
call fcn.0044a9fa
test eax, eax
pop ecx
je 0x446bf8
lea edi, [esp + 0x14]
call fcn.0044ac68
test eax, eax
jne 0x446b5d
mov dword [esp + 0x10], 0xfffffffe
jmp 0x446ddb
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.0044ad04
test eax, eax
pop ecx
pop ecx
jne 0x446b7e
mov dword [esp + 0x10], 0xfffffffd
jmp 0x446ddb
push dword [esp + 0x18]
push 0
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x446ddb
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 0x446bbc
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 0x446ddb
push dword [esp + 0x4c]
call esi
push dword [esp + 0x48]
call esi
and dword [esp + 0x10], 0
jmp 0x446ddb
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.0044a924
add esp, 0xc
test eax, eax
je 0x446dd3
cmp dword [esp + 0x18], 2
jne 0x446d96
cmp dword [esp + 0x14], 6
jb 0x446d96
push dword [esp + 0x20]
call fcn.0044aa1b
pop ecx
call dword [sym.imp.USER32.dll_GetShellWindow]
cmp eax, edi
jne 0x446c5c
mov dword [esp + 0x10], 0xfffffff6
jmp 0x446ddb
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
jne 0x446c7d
mov dword [esp + 0x10], 0xfffffff5
jmp 0x446ddb
push dword [esp + 0x18]
push edi
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [esp + 0x58], eax
jne 0x446ca2
mov dword [esp + 0x10], 0xfffffff3
jmp 0x446ddb
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 0x446d8e
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 0x446d88
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
cmp eax, edi
mov dword [esp + 0x24], eax
je 0x446d88
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x446d7e
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x446d15
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 0x446d6e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x422
jne 0x446d7e
call fcn.00446eb2
test eax, eax
je 0x446d7e
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x446d54
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 0x446d7e
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 0x446ddb
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x446da5
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 0x446ddb
push dword [esp + 0x4c]
call esi
push dword [esp + 0x48]
call esi
and dword [esp + 0x10], edi
jmp 0x446ddb
mov dword [esp + 0x10], 0xfffffff4
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x446de9
push dword [esp + 0x20]
call esi
cmp dword [esp + 0x1c], ebx
je 0x446df5
push dword [esp + 0x1c]
call esi
cmp dword [esp + 0x28], ebx
je 0x446e05
push dword [esp + 0x28]
call fcn.00497b0f
pop ecx
push 0x1fe
lea eax, [esp + 0xae]
push ebx
push eax
mov word [esp + 0xb4], bx
call fcn.00497490
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.004466a0
mov edi, dword [esp + 0x5c]
cmp edi, ebx
je 0x446e5a
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.004466ea
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
pop ecx
jae 0x446e7b
lea eax, [esp + 0x30]
cmp edi, ebx
je 0x446e9b
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.0040114b
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret