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

Disassembly:
sub esp, 0x88
push ebx
mov ebx, dword [esp + 0x94]
push ebp
mov ebp, dword [esp + 0x98]
xor ebx, 0x8000
shr ebp, 0xf
push esi
push edi
and ebp, 1
mov dword [esp + 0x2c], edx
test ebp, ebp
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x40]
mov dword [esp + 0x3c], ebp
cmove ebx, dword [esp + 0xa0]
xor esi, esi
xor eax, eax
mov dword [esp + 0x38], ebx
stosd dword es:[edi], eax
push 0x44
push esi
mov dword [esp + 0x28], esi
stosd dword es:[edi], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x58]
push eax
call fcn.0059de40
add esp, 0xc
cmp ebx, 5
je 0x4722dd
test ebx, ebx
je 0x4723c6
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x47265c
test ebx, ebx
je 0x4723c6
cmp ebx, 4
je 0x4723c6
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 0x472329
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x330
mov edx, 0x7633f4
xor ecx, ecx
call fcn.0047145c
add esp, 0xc
jmp 0x47265c
lea eax, [esp + 0x18]
push eax
push 1
push edi
push esi
push 0x2000000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x472363
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x331
mov edx, 0x763414
jmp 0x47231a
mov eax, dword [esp + 0x1c]
cmp ebx, 5
push 4
cmove eax, dword [esp + 0xa8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 0xc
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4723b6
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 0x333
mov edx, 0x763434
jmp 0x47231a
cmp ebx, edi
mov eax, str.Winsta0Winlogon
cmovne eax, dword [esp + 0x58]
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x9c]
test esi, esi
je 0x472498
mov edi, dword [esi]
test edi, edi
je 0x472498
mov eax, dword [esi + 4]
test eax, eax
je 0x47249c
xor edi, edi
mov eax, esi
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov eax, dword [eax]
test eax, eax
je 0x47240b
push 0x10000
push eax
call fcn.005d06e0
pop ecx
pop ecx
mov ecx, dword [esp + 0x28]
inc eax
add ecx, eax
inc edi
mov dword [esp + 0x28], ecx
lea eax, [esi + edi*4]
cmp dword [eax], 0
jne 0x4723f4
push 0x345
push 0x763468
lea eax, [edi - 1]
add eax, ecx
push 1
push eax
mov dword [esp + 0x44], eax
call fcn.005ce020
and dword [esp + 0x30], 0
mov edi, eax
and dword [esp + 0x40], 0
add esp, 0x10
mov eax, dword [esi]
mov dword [esp + 0x28], 1
test eax, eax
je 0x47249c
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x30]
push eax
mov ecx, 0x763488
test ebp, ebp
mov eax, 0x76a56f
cmovne eax, ecx
push eax
mov eax, dword [esp + 0x3c]
sub eax, ebx
push str._s_s
push eax
lea eax, [ebx + edi]
push eax
call fcn.0040112a
add ebx, eax
add esp, 0x14
inc ebp
mov eax, dword [esi + ebp*4]
test eax, eax
jne 0x47245b
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
jmp 0x47249c
mov edi, dword [esp + 0x20]
push 0
push 0
push 0x357
push 0x763494
push 1
push 0x48
call fcn.005ce020
add esp, 0x10
mov ecx, eax
push 0x38
pop edx
call fcn.0046bf0b
mov esi, eax
pop ecx
pop ecx
cmp ebx, 4
je 0x4724e2
push dword [esp + 0xac]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00471ef6
pop ecx
mov dword [esi + 0x20], eax
pop ecx
mov dword [eax + 0x1c], esi
mov ecx, dword [esp + 0x24]
mov dword [esi + 0xc], ecx
mov eax, dword [ecx + 0xc]
mov dword [esi + 0x34], eax
mov dword [esp + 0x50], 0x44
cmp ebx, 4
je 0x47257a
push dword [esp + 0xac]
push ecx
call fcn.00471ef6
pop ecx
pop ecx
push dword [esp + 0xac]
mov dword [esi + 0x18], eax
push ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x1c], esi
call fcn.00471ef6
pop ecx
pop ecx
mov dword [esi + 0x1c], eax
mov dword [eax + 0x1c], esi
mov ecx, dword [esi + 0x18]
add ecx, 0x40
call fcn.00471e05
mov ecx, dword [esi + 0x1c]
add ecx, 0x3c
call fcn.00471e05
mov ecx, dword [esi + 0x20]
add ecx, 0x3c
call fcn.00471e05
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x40]
mov dword [esp + 0x90], eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x40]
or dword [esp + 0x7c], 0x100
mov dword [esp + 0x8c], eax
test ebx, ebx
je 0x472583
cmp ebx, 4
jne 0x4725c2
lea eax, [esp + 0x40]
xor ecx, ecx
push eax
lea eax, [esp + 0x54]
push eax
push ecx
push dword [esp + 0xb4]
mov eax, ebp
neg eax
sbb eax, eax
and eax, 0x208
or eax, 0x8000000
push eax
xor eax, eax
cmp ebx, 4
setne al
push eax
push ecx
push ecx
push edi
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x472607
test ebx, ebx
je 0x472669
lea eax, [esp + 0x40]
neg ebp
push eax
lea eax, [esp + 0x54]
sbb ebp, ebp
push eax
push 0
push dword [esp + 0xb4]
and ebp, 0x208
or ebp, 0x8000000
push ebp
push 1
xor ebp, ebp
push ebp
push ebp
push edi
push dword [esp + 0x50]
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x47266b
cmp ebx, 4
je 0x472624
mov ecx, dword [esi + 0x20]
call fcn.00471d1e
mov ecx, dword [esi + 0x1c]
call fcn.00471d1e
mov ecx, dword [esi + 0x18]
call fcn.00471d1e
cmp dword [esp + 0x28], 0
je 0x472635
push 1
push edi
call fcn.005cdee0
pop ecx
pop ecx
mov ecx, esi
call fcn.0046bfb6
cmp dword [esp + 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x47264f
push dword [esp + 0x14]
call esi
cmp dword [esp + 0x18], 0
je 0x47265c
push dword [esp + 0x18]
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
xor ebp, ebp
cmp dword [esp + 0x28], 0
je 0x47267c
push 1
push edi
call fcn.005cdee0
pop ecx
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 4
je 0x4726b1
mov eax, dword [esi + 0x1c]
push dword [eax + 0x40]
call edi
mov eax, dword [esi + 0x1c]
mov dword [eax + 0x40], ebp
mov eax, dword [esi + 0x20]
push dword [eax + 0x40]
call edi
mov eax, dword [esi + 0x20]
mov dword [eax + 0x40], ebp
mov eax, dword [esi + 0x18]
push dword [eax + 0x3c]
call edi
mov eax, dword [esi + 0x18]
mov dword [eax + 0x3c], ebp
mov eax, dword [esp + 0x40]
mov dword [esi + 0x28], eax
cmp dword [esp + 0x44], 0
je 0x4726c5
push dword [esp + 0x44]
call edi
mov eax, dword [esp + 0x48]
mov dword [esi + 0x10], eax
cmp dword [esp + 0x14], 0
je 0x4726dd
push dword [esp + 0x14]
call edi
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x18], 0
je 0x4726ea
push dword [esp + 0x18]
call edi
mov eax, esi
jmp 0x47265e