Function at 0x442239
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 + 0x50], esi
lea edi, [esp + 0x54]
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 + 0x58], 7
mov dword [esp + 0x54], esi
mov word [esp + 0x44], 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.004883c0
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 0x4422cb
mov eax, 0x4b6ec0
lea esi, [esp + 0x34]
call fcn.004010df
xor esi, esi
push ebx
lea eax, [esp + 0x38]
push eax
call fcn.0040103b
cmp edi, esi
je 0x4422e9
push 0x4b6ec0
lea eax, [esp + 0x38]
push eax
call fcn.0040103b
cmp dword [ebp + 8], esi
je 0x44230a
push 0x4b976c
lea eax, [esp + 0x38]
push eax
call fcn.0040103b
push dword [ebp + 8]
lea eax, [esp + 0x38]
push eax
call fcn.0040103b
lea eax, [esp + 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push eax
call edi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
jne 0x44233a
mov dword [esp + 0x10], 0xfffffff9
jmp 0x44260c
and dword [esp + 0x24], 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
lea ebx, [esp + 0x30]
call fcn.0044657d
test eax, eax
pop ecx
pop ecx
jne 0x442364
mov dword [esp + 0x10], 0xfffffff8
jmp 0x44260c
mov eax, dword [esp + 0x28]
push dword [eax]
call fcn.00446455
test eax, eax
pop ecx
je 0x44242d
lea edi, [esp + 0x14]
call fcn.004466c3
test eax, eax
jne 0x442392
mov dword [esp + 0x10], 0xfffffffe
jmp 0x44260c
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.0044675f
test eax, eax
pop ecx
pop ecx
jne 0x4423b3
mov dword [esp + 0x10], 0xfffffffd
jmp 0x44260c
push dword [esp + 0x18]
push 0
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x44260c
lea eax, [esp + 0x1c]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push edi
call esi
cmp dword [esp + 0x4c], 8
mov ecx, dword [esp + 0x38]
jae 0x4423f1
lea ecx, [esp + 0x38]
lea eax, [esp + 0x50]
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 0x44260c
push dword [esp + 0x54]
call esi
push dword [esp + 0x50]
call esi
and dword [esp + 0x10], 0
jmp 0x44260c
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
call fcn.0044637f
add esp, 0xc
test eax, eax
je 0x442604
cmp dword [esp + 0x18], 2
jne 0x4425c7
cmp dword [esp + 0x14], 6
jb 0x4425c7
push dword [esp + 0x20]
call fcn.00446476
pop ecx
call dword [sym.imp.USER32.dll_GetShellWindow]
cmp eax, ebx
jne 0x442491
mov dword [esp + 0x10], 0xfffffff6
jmp 0x44260c
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
jne 0x4424b2
mov dword [esp + 0x10], 0xfffffff5
jmp 0x44260c
push dword [esp + 0x18]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, ebx
mov dword [esp + 0x2c], eax
jne 0x4424d7
mov dword [esp + 0x10], 0xfffffff3
jmp 0x44260c
lea ecx, [esp + 0x14]
push ecx
push 2
push eax
mov dword [esp + 0x20], ebx
call edi
test eax, eax
je 0x4425bf
lea eax, [esp + 0x1c]
push eax
push 1
push 2
push ebx
push 0x18b
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4425b9
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x4425b9
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x4425af
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x442546
lea eax, [esp + 0x38]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x64]
push ecx
push ebx
push ebx
push ebx
push eax
push ebx
push ebx
push dword [esp + 0x3c]
call edi
cmp eax, ebx
jne 0x44259f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x422
jne 0x4425af
call fcn.00442722
test eax, eax
je 0x4425af
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x442585
lea eax, [esp + 0x38]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x64]
push ecx
push ebx
push ebx
push ebx
push eax
push ebx
push ebx
push dword [esp + 0x3c]
call edi
cmp eax, ebx
je 0x4425af
push dword [esp + 0x54]
call esi
push dword [esp + 0x50]
call esi
mov dword [esp + 0x10], ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push dword [esp + 0x14]
call esi
push dword [esp + 0x2c]
call esi
jmp 0x44260c
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x4425d6
lea eax, [esp + 0x38]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x64]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x44260c
push dword [esp + 0x54]
call esi
push dword [esp + 0x50]
call esi
and dword [esp + 0x10], ebx
jmp 0x44260c
mov dword [esp + 0x10], 0xfffffff4
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x44261a
push dword [esp + 0x20]
call esi
cmp dword [esp + 0x1c], ebx
je 0x442626
push dword [esp + 0x1c]
call esi
cmp dword [esp + 0x28], ebx
je 0x442636
push dword [esp + 0x28]
call fcn.00488d99
pop ecx
push 0x1fe
lea eax, [esp + 0xae]
push ebx
push eax
mov word [esp + 0xb4], bx
call fcn.004883c0
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]
xor edi, edi
add esp, 0xc
mov dword [esp + 0x30], edi
call fcn.00441e00
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x4426ca
push str.GetExportInterface
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
je 0x4426ca
push str.2C14B686_5925_45e2_A3AA_12F87FAE181C
call eax
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x30], edi
je 0x4426ca
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test eax, eax
jne 0x4426ba
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
xor edi, edi
mov dword [esp + 0x30], edi
cmp edi, ebx
je 0x4426ca
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 + 0x30]
call fcn.00441f10
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
pop ecx
jae 0x4426eb
lea eax, [esp + 0x38]
cmp edi, ebx
je 0x44270b
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 + 0x3c]
call fcn.0040114b
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret