Function at 0x4069a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c743d
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x656770]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.0040d600
mov ebx, eax
test ebx, ebx
jne 0x406afa
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x18
mov ecx, esp
push 0x1a
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.ProcessExec::execLoginUser
mov edi, eax
mov byte [ecx], bl
call fcn.004066b0
lea ecx, [ebp - 0xfc]
call fcn.00401000
lea esi, [eax + 0x18]
mov edx, str.GetUserToken_return_NULL_:
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00403a40
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.0040b4e0
mov edx, eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00403d60
cmp dword [ebp - 0x18], 0x10
jb 0x406a4f
push dword [ebp - 0x2c]
call fcn.00411632
add esp, 4
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0
call fcn.00401130
call fcn.0040d6d0
mov ecx, eax
call fcn.0040d810
mov ebx, eax
test ebx, ebx
jne 0x406afa
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
sub esp, 0x18
mov ecx, esp
push 0x1a
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.ProcessExec::execLoginUser
mov edi, eax
mov byte [ecx], bl
call fcn.004066b0
lea ecx, [ebp - 0xfc]
call fcn.00401000
lea esi, [eax + 0x18]
mov edx, str.Explorer_Process_Tocken_is_NULL_:
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00403a40
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.0040b4e0
mov edx, eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00403d60
cmp dword [ebp - 0x18], 0x10
jb 0x406ae0
push dword [ebp - 0x2c]
call fcn.00411632
add esp, 4
lea ecx, [ebp - 0xfc]
call fcn.00401130
mov byte [ebp - 0xfd], 0
or ebx, 0xffffffff
jmp 0x406e4c
push ebx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push 1
push ebx
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x108], 0
mov esi, 0x30
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x406b78
sub esp, 0x18
mov ecx, esp
push 0x1a
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
push str.ProcessExec::execLoginUser
mov byte [ecx], al
call fcn.004066b0
lea ecx, [ebp - 0xfc]
call fcn.00401000
lea ecx, [eax + 0x18]
mov edx, str.CreateEnvironmentBlock_fail
mov byte [ebp - 4], 5
call fcn.00403a40
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0
call fcn.00401130
mov dword [ebp - 0x108], 0
jmp 0x406b7d
mov esi, 0x430
push 0x44
lea eax, [ebp - 0x16c]
push 0
push eax
call fcn.00527890
xor eax, eax
add esp, 0xc
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x16c], 0x44
mov dword [ebp - 0x140], 1
mov dword [ebp - 0x164], str.winsta0default
mov word [ebp - 0x13c], ax
call fcn.0040d0d0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x406be3
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10c]
call fcn.00405fe0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x30], 0x10
jb 0x406c04
push dword [ebp - 0x44]
call fcn.00411632
add esp, 4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00413c07
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x406c32
push 0x80004005
call fcn.00406840
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 9
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push dword [ebp - 0x10c]
push str.__s___exec___s_
push eax
call fcn.00407650
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x16c]
push eax
push 0
push dword [ebp - 0x108]
push esi
mov esi, dword [ebp - 0x110]
push 0
push 0
push 0
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x406d4b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ebx, dword [ebp + 8]
sub esp, 0x18
mov ecx, esp
push 0x1a
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edi
push str.ProcessExec::execLoginUser
mov dword [ebp - 0x104], eax
mov byte [ecx], 0
call fcn.004066b0
lea ecx, [ebp - 0xfc]
call fcn.00401000
lea edi, [eax + 0x18]
mov edx, str.CreateProcessAsUser_return_false_:___
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.00403a40
mov edx, ebx
mov ecx, edi
call fcn.00403a40
mov edx, 0x6331fc
mov ecx, edi
call fcn.00403a40
mov edx, dword [ebp - 0x104]
lea ecx, [ebp - 0x2c]
call fcn.0040b4e0
mov edx, eax
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.00403d60
cmp dword [ebp - 0x18], 0x10
jb 0x406d34
push dword [ebp - 0x2c]
call fcn.00411632
add esp, 4
lea ecx, [ebp - 0xfc]
call fcn.00401130
mov byte [ebp - 0xfd], 0
jmp 0x406e09
mov ebx, dword [ebp + 8]
sub esp, 0x18
mov ecx, esp
push 0x1a
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.ProcessExec::execLoginUser
mov byte [ecx], 0
call fcn.004066b0
lea ecx, [ebp - 0xfc]
call fcn.00401000
lea edi, [eax + 0x18]
mov edx, str.CreateProcessAsUser_return_TRUE_:
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.00403a40
mov edx, ebx
mov ecx, edi
call fcn.00403a40
mov edx, 0x632e44
mov ecx, edi
call fcn.00403a40
mov edx, dword [ebp - 0x11c]
lea ecx, [ebp - 0x2c]
call fcn.0040b4e0
mov edx, eax
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.00403d60
cmp dword [ebp - 0x18], 0x10
jb 0x406dcf
push dword [ebp - 0x2c]
call fcn.00411632
add esp, 4
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00401130
push dword [ebp - 0x124]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x120]
call edi
mov byte [ebp - 0xfd], 1
add esi, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 8
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406e29
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406e4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x406e6d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xfd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005259c3
mov esp, ebp
pop ebp
ret