Function at 0x10126e00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10182e30
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x101f8008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov eax, dword [0x101fe6ec]
movlpd qword [ebp - 0x98], xmm0
movlpd qword [ebp - 0x90], xmm0
movlpd qword [ebp - 0x88], xmm0
movlpd qword [ebp - 0x80], xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x9c], 0x44
movups xmmword [ebp - 0x58], xmm0
test eax, eax
jne 0x10126f76
mov eax, dword [0x101fe6c8]
test eax, eax
jne 0x10126eb4
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x101fe6c8], eax
test eax, eax
je 0x10126ecd
push str.WTSGetActiveConsoleSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x101fe6ec], eax
test eax, eax
jne 0x10126f76
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x101fe65c], 0
je 0x10127399
push 0
mov ecx, 0x101fe65c
call fcn.10112710
mov eax, dword [0x101fe65c]
cmp byte [eax + 0x54], 0
je 0x10127399
cmp dword [eax + 0x58], 2
jb 0x10127399
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.10006310
push 0x1a
push str.WTSQueryUserToken_not_find
mov dword [ebp - 4], 0
call fcn.10006790
push 0x55f
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fe65c
push eax
push 2
call fcn.10113070
cmp byte [ebp - 0x29], 0
je 0x10126f62
lea eax, [ebp - 0x28]
mov ecx, 0x101fe65c
push eax
call fcn.10113390
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100062d0
jmp 0x10127399
call eax
mov ecx, eax
mov dword [ebp - 0x34], 0
mov eax, dword [0x101fe6e8]
mov dword [ebp - 0x3c], ecx
test eax, eax
jne 0x10127054
mov eax, dword [0x101fe6c8]
test eax, eax
jne 0x10126fae
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x101fe6c8], eax
test eax, eax
je 0x10126fca
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x3c]
mov dword [0x101fe6e8], eax
test eax, eax
jne 0x10127054
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x101fe65c], 0
je 0x10127399
push 0
mov ecx, 0x101fe65c
call fcn.10112710
mov eax, dword [0x101fe65c]
cmp byte [eax + 0x54], 0
je 0x10127399
cmp dword [eax + 0x58], 2
jb 0x10127399
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.10006310
push 0x1a
push str.WTSQueryUserToken_not_find
mov dword [ebp - 4], 1
call fcn.10006790
push 0x56d
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fe65c
push eax
push 2
call fcn.10113070
cmp byte [ebp - 0x29], 0
jmp 0x10126f52
lea edx, [ebp - 0x34]
push edx
push ecx
call eax
test eax, eax
jne 0x101270ed
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x101fe65c], 0
je 0x10127399
push 0
mov ecx, 0x101fe65c
call fcn.10112710
mov eax, dword [0x101fe65c]
cmp byte [eax + 0x54], 0
je 0x10127399
cmp dword [eax + 0x58], 2
jb 0x10127399
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.10006310
push 0x18
push str.WTSQueryUserToken_Failed
mov dword [ebp - 4], 2
call fcn.10006790
push 0x575
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fe65c
push eax
push 2
call fcn.10113070
cmp byte [ebp - 0x29], 0
jmp 0x10126f52
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x101271ac
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10127122
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x101fe65c], 0
je 0x10127399
push 0
mov ecx, 0x101fe65c
call fcn.10112710
mov eax, dword [0x101fe65c]
cmp byte [eax + 0x54], 0
je 0x10127399
cmp dword [eax + 0x58], 2
jb 0x10127399
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.10006310
push 0x17
push str.DuplicateTokenEx_Failed
mov dword [ebp - 4], 3
call fcn.10006790
push 0x588
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fe65c
push eax
push 2
call fcn.10113070
cmp byte [ebp - 0x29], 0
jmp 0x10126f52
push 0
push dword [ebp - 0x30]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x1012726e
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x101271da
push eax
call esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x101271e4
push eax
call esi
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x101fe65c], 0
je 0x10127399
push 0
mov ecx, 0x101fe65c
call fcn.10112710
mov eax, dword [0x101fe65c]
cmp byte [eax + 0x54], 0
je 0x10127399
cmp dword [eax + 0x58], 2
jb 0x10127399
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.10006310
push 0x17
push str.DuplicateTokenEx_Failed
mov dword [ebp - 4], 4
call fcn.10006790
push 0x59d
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fe65c
push eax
push 2
call fcn.10113070
cmp byte [ebp - 0x29], 0
jmp 0x10126f52
cmp dword [esi + 0x14], 8
jb 0x10127276
mov esi, dword [esi]
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x10127281
mov eax, dword [eax]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x9c]
push ecx
push 0
push dword [ebp - 0x38]
push 0x430
push 0
push 0
push 0
push esi
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x10127361
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x101272bd
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x101272cd
push eax
call esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x101272d7
push eax
call esi
mov dword [edi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
cmp dword [0x101fe65c], 0
je 0x10127399
push 0
mov ecx, 0x101fe65c
call fcn.10112710
mov eax, dword [0x101fe65c]
cmp byte [eax + 0x54], 0
je 0x10127399
cmp dword [eax + 0x58], 2
jb 0x10127399
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], al
call fcn.10006310
push 0x1a
push str.CreateProcessAsUser_Failed
mov dword [ebp - 4], 5
call fcn.10006790
push 0x5be
push str.RC::DM::RCCreateProcessBySystemAfterVista
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fe65c
push eax
push 2
call fcn.10113070
cmp byte [ebp - 0x29], 0
jmp 0x10126f52
push dword [ebp - 0x44]
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
call fcn.10126560
mov ecx, eax
add esp, 4
mov eax, dword [ecx]
mov dword [edi], eax
cmp dword [edi], 0
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
jne 0x10127399
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
mov dword [edi], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10146054
mov esp, ebp
pop ebp
ret