Function at 0x401860
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40eb26
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push esi
push edi
mov eax, dword [0x417040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
jne 0x4018b3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x401c29
lea eax, [ebp - 0x38]
mov dword [ebp - 0x24], 0
push eax
push 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x38], 4
push eax
push 0x13
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401916
call esi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
push str.Fast_Engine:_Token_Error__d
push 0x418988
call edi
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x18], eax
jmp 0x4019b1
lea eax, [ebp - 0x18]
push eax
push 1
push 2
push 0
push 0x2000000
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
test eax, eax
jne 0x401947
push str.Fast_Engine:_Duplicate_Token_Error
push 0x418988
call edi
add esp, 8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push str.S_1_5_32_544
mov dword [ebp - 0x30], 0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x401977
push str.Fast_Engine:_Convert_SID_error
push 0x418988
call edi
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
mov dword [ebp - 0x30], 0x20
mov dword [ebp - 0x34], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x34]
push eax
push 0x19
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4019b1
push str.Fast_Engine:_Set_Token_Info_Error
push 0x418988
call edi
add esp, 8
push 1
push dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x401bf3
xorps xmm0, xmm0
mov dword [ebp - 0x90], 0
xor eax, eax
movlpd qword [ebp - 0x88], xmm0
lea ecx, [ebp - 0x30]
movlpd qword [ebp - 0x80], xmm0
movups xmmword [ebp - 0x50], xmm0
mov word [ebp - 0x52], ax
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x62], xmm0
movlpd qword [ebp - 0x5a], xmm0
mov dword [ebp - 0x94], 0x44
mov dword [ebp - 0x8c], str.winsta0default
mov dword [ebp - 0x68], 1
mov word [ebp - 0x64], ax
call fcn.004014a0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x401a47
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x401a5f
call fcn.00401240
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x401c57
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0x3c], 1
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], esi
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x1c], eax
lea edx, [eax + 9]
test edx, edx
js 0x401c61
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x401aa9
push edx
lea ecx, [ebp - 0x28]
call fcn.00401dc0
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
add eax, eax
mov dword [ebp - 0x14], eax
je 0x401ae9
test esi, esi
je 0x401ad6
mov ecx, dword [ebp - 0x40]
push eax
test ecx, ecx
je 0x401acb
push ecx
push esi
call fcn.00403790
add esp, 0xc
jmp 0x401ae6
push 0
push esi
call fcn.00403d10
add esp, 0xc
call fcn.004057dd
mov dword [eax], 0x16
call fcn.0040571f
mov eax, dword [ebp - 0x14]
lea ecx, [eax + esi]
test ecx, ecx
jne 0x401b02
call fcn.004057dd
mov dword [eax], 0x16
call fcn.0040571f
jmp 0x401b16
movups xmm0, xmmword [str.fast_.exe]
movups xmmword [ecx], xmm0
mov ax, word [0x414d44]
mov word [ecx + 0x10], ax
mov eax, dword [ebp - 0x1c]
add eax, 9
cmp eax, dword [esi - 8]
jg 0x401c61
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x401b4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x94]
push eax
push 0
push dword [ebp - 0x2c]
push 0x480
push 0
push 0
push 0
push str.__startup
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x401b91
push dword [ebp - 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xd], 1
call edi
push dword [ebp - 0x50]
call edi
jmp 0x401bad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fast_Engine:_Create_Process_Error__d
push 0x418988
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push dword [ebp - 0x2c]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x401c0b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x18]
call edi
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call esi
push eax
push str.Fast_Engine:_Create_Env_Block_Error__d
push 0x418988
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x18]
call edi
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fast_Engine:_Query_User_Token_Error__d
push 0x418988
call dword [sym.imp.USER32.dll_wsprintfW]
mov al, byte [ebp - 0xd]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401110
push 0x80070057
call fcn.00401110
int3