Function at 0x490660
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x409c
call fcn.005c1510
mov eax, dword [0x6d9d44]
xor eax, esp
mov dword [esp + 0x4098], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0xc]
shr eax, 0xf
xor ebx, 0x8000
and eax, 1
mov dword [esp + 0x28], ecx
test eax, eax
mov dword [esp + 0x38], eax
push esi
cmove ebx, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 0x14]
xor eax, eax
push edi
lea edi, [esp + 0x48]
mov dword [esp + 0x44], edx
stosd dword es:[edi], eax
push 0x44
push ecx
mov dword [esp + 0x30], esi
stosd dword es:[edi], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
stosd dword es:[edi], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
stosd dword es:[edi], eax
lea eax, [esp + 0x60]
push eax
call fcn.005c37d0
add esp, 0xc
cmp ebx, 5
je 0x490711
test ebx, ebx
je 0x4907f8
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x490cfb
test ebx, ebx
je 0x4907f8
cmp ebx, 4
je 0x4907f8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x14]
push ecx
push 2
pop edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x49075d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x216
mov edx, 0x75afc8
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
jmp 0x490cfb
lea eax, [esp + 0x18]
push eax
push 1
push edi
push 0
push 0x2000000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x490798
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x217
mov edx, 0x75afe8
jmp 0x49074e
mov eax, dword [esp + 0x2c]
cmp ebx, 5
push 4
cmove eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push 0xc
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4907e8
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x18]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x219
mov edx, 0x75b008
jmp 0x49074e
cmp ebx, edi
mov eax, str.Winsta0Winlogon
cmovne eax, dword [esp + 0x60]
mov dword [esp + 0x60], eax
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4908e5
mov eax, dword [edi]
test eax, eax
je 0x4908e5
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x49081e
mov dword [esp + 0x10], eax
jmp 0x4908e5
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
cmp dword [edi], eax
je 0x490861
mov ecx, edi
mov ecx, dword [ecx]
test ecx, ecx
je 0x49084d
push 0x10000
push ecx
call fcn.005f8590
mov edx, dword [esp + 0x2c]
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x10]
inc ecx
add edx, ecx
inc eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], eax
lea ecx, [edi + eax*4]
cmp dword [ecx], 0
jne 0x490830
push 0x22b
dec edx
push 0x75b04c
add eax, edx
push 1
push eax
mov dword [esp + 0x48], eax
call fcn.005f5ba0
and dword [esp + 0x44], 0
xor ecx, ecx
add esp, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 1
cmp dword [edi], ecx
je 0x4908e5
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
push eax
mov edx, 0x75b06c
test ebx, ebx
mov eax, 0x76a4fa
cmovne eax, edx
push eax
mov eax, dword [esp + 0x40]
sub eax, ecx
push str._s_s
push eax
lea eax, [ecx + esi]
push eax
call fcn.0040117f
mov ecx, dword [esp + 0x34]
add esp, 0x14
add ecx, eax
inc ebx
mov dword [esp + 0x20], ecx
mov eax, dword [edi + ebx*4]
test eax, eax
jne 0x4908a2
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x28]
push 0
push 0
push 0x23d
push 0x75b078
push 1
push 0x4c
call fcn.005f5ba0
add esp, 0x10
mov ecx, eax
push 0x3c
pop edx
call fcn.00487604
mov edi, eax
mov dword [esp + 0x40], edi
pop ecx
pop ecx
cmp ebx, 4
je 0x49092c
push dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.004903a7
pop ecx
mov dword [edi + 0x20], eax
pop ecx
mov dword [eax + 0x20], edi
mov ecx, dword [esp + 0x30]
mov dword [edi + 0xc], ecx
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x38], eax
mov dword [esp + 0x58], 0x44
cmp ebx, 4
je 0x4909c1
push dword [esp + 0x1c]
push ecx
call fcn.004903a7
pop ecx
pop ecx
push dword [esp + 0x1c]
mov dword [edi + 0x18], eax
push ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x20], edi
call fcn.004903a7
pop ecx
pop ecx
mov dword [edi + 0x1c], eax
mov dword [eax + 0x20], edi
mov ecx, dword [edi + 0x18]
add ecx, 0x44
call fcn.0049032f
mov ecx, dword [edi + 0x1c]
add ecx, 0x40
call fcn.0049032f
mov ecx, dword [edi + 0x20]
add ecx, 0x40
call fcn.0049032f
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 0x44]
mov dword [esp + 0x98], eax
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x40]
mov dword [esp + 0x90], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x44]
or dword [esp + 0x84], 0x100
mov dword [esp + 0x94], eax
test esi, esi
je 0x490b0f
xor ecx, ecx
mov edi, esi
mov dword [esp + 0x20], ecx
cmp dword [edi], 0
je 0x490a2c
push 0
push 0
push 0xffffffffffffffff
push dword [edi + 4]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push 0x75b098
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esi, eax
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push dword [edi]
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x20]
add eax, esi
add ecx, eax
mov dword [esp + 0x20], ecx
add edi, 8
jne 0x4909d1
lea esi, [ecx + ecx]
cmp esi, 0xffffffef
jae 0x490a52
push 0x266
push 0x75b09c
lea eax, [ecx*2 + 0x10]
push 1
push eax
call fcn.005f5ba0
add esp, 0x10
jmp 0x490a54
xor eax, eax
push 0
push 0
mov edx, esi
mov ecx, eax
call fcn.00487604
mov edi, dword [esp + 0x40]
mov ebx, eax
mov esi, dword [esp + 0x30]
pop ecx
pop ecx
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [esi], 0
je 0x490b09
mov eax, dword [ebx - 0x10]
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [ebx + ecx*2]
push eax
push 0xffffffffffffffff
push dword [esi]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [esp + 0x1c]
dec esi
add esi, eax
mov eax, dword [ebx - 0x10]
cdq
sub eax, edx
sar eax, 1
sub eax, esi
push eax
lea eax, [ebx + esi*2]
push eax
push 0xffffffffffffffff
push 0x75b0bc
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [eax - 1]
mov eax, dword [ebx - 0x10]
cdq
add ecx, esi
mov esi, dword [esp + 0x28]
sub eax, edx
sar eax, 1
sub eax, ecx
mov dword [esp + 0x1c], ecx
push eax
lea eax, [ebx + ecx*2]
push eax
push 0xffffffffffffffff
push dword [esi + 4]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x1c]
add ecx, eax
add esi, 8
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], esi
jne 0x490a73
mov esi, ebx
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x490b18
cmp ebx, 4
jne 0x490b8a
lea eax, [esp + 0x48]
xor ecx, ecx
push eax
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x48]
neg eax
push ecx
sbb eax, eax
and eax, 0x208
push esi
or eax, 0x8000400
push eax
xor eax, eax
cmp ebx, 4
setne al
or edx, 0xffffffff
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xc0]
push 0x1000
push eax
call fcn.00487094
pop ecx
pop ecx
mov ecx, dword [esp + 0x64]
or edx, 0xffffffff
push eax
lea eax, [esp + 0x20c4]
push 0x1000
push eax
call fcn.00487094
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x490c92
test ebx, ebx
je 0x490bfd
lea eax, [esp + 0x48]
xor ecx, ecx
push eax
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x48]
neg eax
push ecx
sbb eax, eax
or edx, 0xffffffff
push esi
and eax, 0x208
or eax, 0x8000400
push eax
push 1
push ecx
push ecx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xc0]
push 0x1000
push eax
call fcn.00487094
pop ecx
pop ecx
mov ecx, dword [esp + 0x64]
or edx, 0xffffffff
push eax
lea eax, [esp + 0x20c4]
push 0x1000
push eax
call fcn.00487094
pop ecx
pop ecx
push eax
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x490c92
test esi, esi
je 0x490c08
mov ecx, esi
call fcn.004876b9
cmp dword [esp + 0x24], 0
je 0x490c1c
push 1
push dword [esp + 0x14]
call fcn.005f5a60
pop ecx
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 4
je 0x490c54
mov eax, dword [edi + 0x1c]
push dword [eax + 0x44]
call esi
mov eax, dword [edi + 0x1c]
and dword [eax + 0x44], 0
mov eax, dword [edi + 0x20]
push dword [eax + 0x44]
call esi
mov eax, dword [edi + 0x20]
and dword [eax + 0x44], 0
mov eax, dword [edi + 0x18]
push dword [eax + 0x40]
call esi
mov eax, dword [edi + 0x18]
and dword [eax + 0x40], 0
mov eax, dword [esp + 0x48]
mov dword [edi + 0x2c], eax
cmp dword [esp + 0x4c], 0
je 0x490c68
push dword [esp + 0x4c]
call esi
mov eax, dword [esp + 0x50]
mov dword [edi + 0x10], eax
cmp dword [esp + 0x14], 0
je 0x490c81
push dword [esp + 0x14]
call esi
and dword [esp + 0x14], 0
cmp dword [esp + 0x18], 0
je 0x490c8e
push dword [esp + 0x18]
call esi
mov eax, edi
jmp 0x490cfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 4
je 0x490cb5
mov ecx, dword [edi + 0x20]
call fcn.0049020f
mov ecx, dword [edi + 0x1c]
call fcn.0049020f
mov ecx, dword [edi + 0x18]
call fcn.0049020f
cmp dword [esp + 0x24], 0
je 0x490cc9
push 1
push dword [esp + 0x14]
call fcn.005f5a60
pop ecx
pop ecx
mov ecx, edi
call fcn.004876b9
cmp dword [esp + 0x14], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x490ce3
push dword [esp + 0x14]
call edi
cmp dword [esp + 0x18], 0
je 0x490cf0
push dword [esp + 0x18]
call edi
test esi, esi
je 0x490cfb
mov ecx, esi
call fcn.004876b9
xor eax, eax
mov ecx, dword [esp + 0x40a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c0db0
mov esp, ebp
pop ebp
ret