Function at 0x10024d60
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x3908
call fcn.1003eef0
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x3c], eax
mov esi, dword [esp + 0x3918]
mov dword [esp + 0x40], eax
mov ecx, 0x9ff
lea edi, [esp + 0x1115]
mov dword [esp + 0x44], eax
mov byte [esp + 0x1114], al
push ebp
rep stosd dword es:[edi], eax
mov cl, byte [esi]
mov dword [esp + 0x14], ebp
stosw word es:[edi], ax
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
stosb byte es:[edi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x24]
mov eax, dword [edx]
push eax
push ebp
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea ecx, [esp + 0x24]
push ecx
call fcn.10025f70
push ebp
call fcn.10026940
xor edx, edx
add esp, 8
cmp edx, str.userenv.dll
mov dword [esp + 0x1110], ebp
je 0x10024e36
mov edi, str.userenv.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10024e36
push str.userenv.dll
call fcn.10026910
add esp, 4
mov dword [esp + 0x1110], eax
mov edi, dword [esp + 0x1110]
push ebx
push str.CreateEnvironmentBlock
push edi
call fcn.10026920
push str.DestroyEnvironmentBlock
push edi
mov esi, eax
call fcn.10026920
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x48]
push 0x100480a8
push eax
mov dword [esp + 0x50], ebp
call fcn.10024670
add esp, 0x18
test al, al
je 0x10025162
mov ecx, dword [esp + 0x38]
push ecx
push ebp
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebp
jne 0x10024eb8
mov esi, dword [esp + 0x2c]
cmp esi, ebp
jne 0x10024e9d
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebp
call fcn.1002ba20
add esp, 4
lea ecx, [esp + 0x10]
push eax
push esi
push str._comm__createProcessAsUser__s__OpenProcess_explorer__failed:__s
push 0x100480b8
jmp 0x10024ef4
lea edx, [esp + 0x18]
push edx
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10024f0b
mov esi, dword [esp + 0x2c]
cmp esi, ebp
jne 0x10024edb
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebp
call fcn.1002ba20
add esp, 4
lea ecx, [esp + 0x10]
push eax
push esi
push str._comm__createProcessAsUser__s__OpenProcessToken_explorer__failed:__s
push 0x10048104
call fcn.1002ce00
push eax
call fcn.1002ce10
add esp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x100252a4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 1
push 1
push ebp
push 0x2000000
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
lea edx, [esp + 0x50]
mov dword [esp + 0x50], 0x44
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov al, byte [esp + 0x3924]
test al, al
je 0x10024f57
mov word [esp + 0x80], 5
mov dword [esp + 0x7c], 1
jmp 0x10024f7c
mov eax, 0xffffff9c
mov dword [esp + 0x68], ebp
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], ebp
mov word [esp + 0x80], bp
mov dword [esp + 0x7c], 7
mov eax, dword [esp + 0x18]
push ebp
lea ecx, [esp + 0x24]
push eax
push ecx
call esi
test eax, eax
je 0x10025128
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov eax, edx
cmp word [eax], bp
jne 0x10024fa4
cmp word [eax + 2], bp
je 0x10024faa
inc ecx
add eax, 2
jmp 0x10024f99
push ebp
push ebp
lea eax, [esp + 0x1120]
push 0x2800
push eax
push ecx
push edx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call fcn.100290e0
test al, al
je 0x1002503b
xor eax, eax
mov cl, byte [esp + eax + 0x1118]
test cl, cl
jne 0x10024fe4
mov cl, byte [esp + eax + 0x1119]
test cl, cl
je 0x10024fec
inc eax
cmp eax, 0x2800
jl 0x10024fce
push str.CommonProgramFiles_x86_
lea ecx, [esp + 0x111c]
push eax
push ecx
call fcn.10024c70
push str.CommonProgramW6432
lea edx, [esp + 0x1128]
push eax
push edx
call fcn.10024c70
push str.ProgramFiles_x86_
push eax
lea eax, [esp + 0x1138]
push eax
call fcn.10024c70
push str.ProgramW6432
lea ecx, [esp + 0x1140]
push eax
push ecx
call fcn.10024c70
add esp, 0x30
mov eax, dword [esp + 0x2c]
cmp eax, ebp
jne 0x10025048
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x50]
push edx
push ecx
lea edx, [esp + 0x1120]
push ebp
push edx
push 0xc000030
push ebp
push ebp
push ebp
push eax
mov eax, dword [esp + 0x40]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x100250da
mov edx, dword [esp + 0x3c]
cmp edx, 0xffffffff
je 0x100250da
mov eax, dword [esp + 0x3928]
mov ecx, dword [esp + 0x44]
cmp eax, ebp
je 0x10025091
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
cmp eax, ebp
jne 0x100250a2
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ecx
push eax
push str._comm__createProcessAsUser__s__successed__pid_d
push 0x100482bc
lea ecx, [esp + 0x20]
call fcn.1002ce00
push eax
call fcn.1002ce10
mov al, byte [esp + 0x3930]
add esp, 0x10
test al, al
je 0x1002510f
mov ecx, dword [esp + 0x3c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1002510f
mov esi, dword [esp + 0x2c]
cmp esi, ebp
jne 0x100250e8
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebp
call fcn.1002ba20
add esp, 4
lea ecx, [esp + 0x10]
push eax
push esi
push str._comm__createProcessAsUser__s__failed:__s
push 0x100482f8
call fcn.1002ce00
push eax
call fcn.1002ce10
add esp, 0x10
mov eax, dword [esp + 0x40]
cmp eax, 0xffffffff
je 0x100252a4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100252a4
mov esi, dword [esp + 0x2c]
cmp esi, ebp
jne 0x10025136
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebp
call fcn.1002ba20
add esp, 4
lea ecx, [esp + 0x10]
push eax
push esi
push str._comm__createProcessAsUser__d__CreateEnvironmentBlock_failed:__s
push 0x1004832c
call fcn.1002ce00
push eax
call fcn.1002ce10
add esp, 0x10
jmp 0x100252a4
push ebp
call fcn.10026940
xor edx, edx
add esp, 4
xor ebx, ebx
cmp edx, str.Kernel32.dll
je 0x10025197
mov edi, str.Kernel32.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10025197
push str.Kernel32.dll
call fcn.10026910
add esp, 4
mov ebx, eax
push ebp
call fcn.10026940
xor eax, eax
add esp, 4
cmp eax, str.wtsapi32.dll
je 0x100251c7
mov edi, str.wtsapi32.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100251c7
push str.wtsapi32.dll
call fcn.10026910
add esp, 4
mov ebp, eax
push str.WTSGetActiveConsoleSessionId
push ebx
call fcn.10026920
push str.WTSQueryUserToken
push ebp
mov esi, eax
call fcn.10026920
add esp, 0x10
mov edi, eax
test esi, esi
je 0x1002522f
call esi
cmp eax, 0xffffffff
jne 0x10025233
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x100251fc
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push str._comm__createProcessAsUser__s__failed:_No_session_attached_to_the_console__WTSGetActiveConsoleSessionId_failed_
push 0x100481a8
lea ecx, [esp + 0x1c]
call fcn.1002ce00
push eax
call fcn.1002ce10
push ebp
mov dword [esp + 0x24], 0
call fcn.10026940
push ebx
call fcn.10026940
add esp, 0x14
jmp 0x1002529e
mov eax, dword [esp + 0x10]
test edi, edi
je 0x1002528f
lea ecx, [esp + 0x18]
push ecx
push eax
call edi
test eax, eax
jne 0x1002528f
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x10025251
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0
call fcn.1002ba20
add esp, 4
lea ecx, [esp + 0x10]
push eax
push esi
push str._comm__createProcessAsUser__s__WTSQueryUserToken_failed:__s
push 0x10048224
call fcn.1002ce00
push eax
call fcn.1002ce10
push ebp
mov dword [esp + 0x28], 0
call fcn.10026940
push ebx
call fcn.10026940
add esp, 0x18
jmp 0x1002529e
push ebp
call fcn.10026940
push ebx
call fcn.10026940
add esp, 8
mov edi, dword [esp + 0x24]
xor ebp, ebp
mov eax, dword [esp + 0x20]
pop ebx
cmp eax, ebp
je 0x100252b2
push eax
call dword [esp + 0x4c]
cmp edi, ebp
je 0x100252c1
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
jmp 0x100252c7
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x100252d2
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x100252dd
push eax
call esi
mov edx, dword [esp + 0x1110]
push edx
call fcn.10026940
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp ecx, ebp
pop edi
pop esi
pop ebp
je 0x1002531d
mov al, byte [ecx - 1]
test al, al
je 0x10025313
cmp al, 0xff
je 0x10025313
dec al
mov byte [ecx - 1], al
mov eax, dword [esp + 4]
add esp, 0x3908
ret
dec ecx
push ecx
call fcn.1003ed30
add esp, 4
mov eax, dword [esp + 4]
add esp, 0x3908
ret