Function at 0x4224a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5340e8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x58dd4c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x74], edi
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
call fcn.00423fa0
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov esi, dword [ebp - 0x18]
cmp dword [esi - 0xc], 0
jl 0x4225da
push 0x583d84
push esi
call fcn.00510bf4
add esp, 8
test eax, eax
je 0x4225da
sub eax, esi
sar eax, 1
cmp eax, ebx
je 0x4225da
call fcn.00424370
mov ecx, eax
test ecx, ecx
jne 0x422543
push 0x80004005
call fcn.00425150
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push 0x583d88
push eax
call fcn.00423bb0
mov eax, dword [ebp - 0x14]
lea edx, [esi - 0x10]
add esp, 0xc
mov dword [ebp - 0x78], edx
lea edi, [eax - 0x10]
cmp edi, edx
je 0x4225bf
cmp dword [edx + 0xc], 0
lea esi, [edx + 0xc]
jl 0x4225b0
mov ecx, dword [edi]
cmp ecx, dword [edx]
jne 0x4225b0
mov ecx, edi
call fcn.00423f40
mov dword [ebp - 0x7c], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4225a8
mov esi, dword [ebp - 0x78]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x7c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x4225bf
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
push eax
call fcn.00424790
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 2
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4225d7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x74]
call fcn.00424370
mov ecx, eax
test ecx, ecx
jne 0x4225ef
push 0x80004005
call fcn.00425150
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
push esi
push str._s__s
push eax
call fcn.00423bb0
mov eax, dword [ebp + 8]
add esp, 0x10
cmp dword [eax - 0xc], 0
je 0x42265f
lea eax, [ebp - 0x24]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42265f
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push 0
push 0xf01ff
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x4226f8
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x6d], 0
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422681
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42269c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4226ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4226d9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x6d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050e1f3
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0x44
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00510f30
add esp, 0xc
lea eax, [ebp - 0x1c]
push 4
push eax
push 0xc
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x42275e
push 0
push dword [ebp - 0x20]
mov eax, 5
mov dword [ebp - 0x6c], 0x44
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x64], str.WinSta0Default
mov dword [ebp - 0x40], 1
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x422773
push dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x20]
call edi
jmp 0x42265f
mov eax, dword [ebp - 0x14]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x42278f
push 0
lea ecx, [ebp - 0x14]
call fcn.004251b0
push edi
lea eax, [ebp - 0x6c]
push eax
push 0
push dword [ebp - 0x28]
push 0x430
push 0
push 0
push 0
push dword [ebp - 0x14]
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x42275e
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4227c4
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x20]
call edi
mov byte [ebp - 0x6d], 1
jmp 0x422663