Function at 0x413950
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4ae070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x20]
push ebx
push esi
push edi
mov ebx, dword [eax]
mov esi, ecx
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x240], ebx
test ebx, ebx
jne 0x413a1f
test edi, edi
je 0x4139c1
mov eax, dword [edi]
push str.Default_SessionID_0_is_passed_from_Client._Enumerating_Sessions_to_find_valid_user_session.
push str.ProcessUtils
push 0x49586c
push 0x1e
push edi
jmp 0x413a0a
mov eax, dword [0x4b29c0]
test eax, eax
je 0x4139ec
push str.Default_SessionID_0_is_passed_from_Client._Enumerating_Sessions_to_find_valid_user_session.
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x413a10
mov ecx, dword [0x4b29c4]
test ecx, ecx
je 0x413a10
mov eax, dword [ecx]
push str.Default_SessionID_0_is_passed_from_Client._Enumerating_Sessions_to_find_valid_user_session.
push str.ProcessUtils
push 0x49586c
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
mov ecx, edi
call fcn.004131b0
mov ebx, eax
mov dword [ebp - 0x240], eax
test edi, edi
je 0x413a3d
mov ecx, dword [edi]
push ebx
push str.In_createProcessInUserSession.User_Session_ID_found:__d
push str.ProcessUtils
push 0x49586c
push 0x1e
push edi
call dword [ecx + 0x34]
jmp 0x413a8b
mov eax, dword [0x4b29c0]
test eax, eax
je 0x413a69
push ebx
push str.In_createProcessInUserSession.User_Session_ID_found:__d
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x1c
jmp 0x413a8e
mov ecx, dword [0x4b29c4]
test ecx, ecx
je 0x413a8e
mov eax, dword [ecx]
push ebx
push str.In_createProcessInUserSession.User_Session_ID_found:__d
push str.ProcessUtils
push 0x49586c
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x18
test ebx, ebx
jne 0x413b62
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
test edi, edi
je 0x413adc
mov esi, dword [edi]
call ebx
push eax
push str.In_launchProcessInUserSession._No_active_session_found._ErrorCode:___d_.
push str.ProcessUtils
push 0x49586c
push 0x32
push edi
call dword [esi + 0x34]
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045922f
mov esp, ebp
pop ebp
ret 0x20
cmp dword [0x4b29c0], 0
je 0x413b21
call ebx
push eax
push str.In_launchProcessInUserSession._No_active_session_found._ErrorCode:___d_.
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x4b29c0]
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045922f
mov esp, ebp
pop ebp
ret 0x20
mov esi, dword [0x4b29c4]
test esi, esi
je 0x413b4d
mov esi, dword [esi]
call ebx
push eax
push str.In_launchProcessInUserSession._No_active_session_found._ErrorCode:___d_.
push str.ProcessUtils
push 0x49586c
push 0x32
push dword [0x4b29c4]
call dword [esi + 0x34]
add esp, 0x18
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045922f
mov esp, ebp
pop ebp
ret 0x20
lea eax, [esi + 8]
push eax
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x413bf0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
test edi, edi
je 0x413b9e
mov esi, dword [edi]
call ebx
push eax
push str.In_launchProcessInUserSession__Cannot_get_user_token._ErrorCode:___d_.
push str.ProcessUtils
push 0x49586c
push 0x32
push edi
jmp 0x413b47
cmp dword [0x4b29c0], 0
je 0x413bd3
call ebx
push eax
push str.In_launchProcessInUserSession__Cannot_get_user_token._ErrorCode:___d_.
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x4b29c0]
add esp, 0x1c
jmp 0x413b4d
mov esi, dword [0x4b29c4]
test esi, esi
je 0x413b4d
mov esi, dword [esi]
call ebx
push eax
push str.In_launchProcessInUserSession__Cannot_get_user_token._ErrorCode:___d_.
jmp 0x413b35
push 1
push dword [esi + 8]
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x413c0a
or dword [esi + 0x14], 0x400
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0
push eax
push 0
push 0
push 0x13
push dword [esi + 8]
mov dword [esi + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x413cc2
cmp eax, 0x18
je 0x413cc2
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
test edi, edi
je 0x413c70
mov esi, dword [edi]
call ebx
push eax
push str.In_launchProcessInUserSession__Error_getting_TokenLinkedToken._ErrorCode:___d_.
push str.ProcessUtils
push 0x49586c
push 0x32
push edi
jmp 0x413b47
cmp dword [0x4b29c0], 0
je 0x413ca5
call ebx
push eax
push str.In_launchProcessInUserSession__Error_getting_TokenLinkedToken._ErrorCode:___d_.
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x4b29c0]
add esp, 0x1c
jmp 0x413b4d
mov esi, dword [0x4b29c4]
test esi, esi
je 0x413b4d
mov esi, dword [esi]
call ebx
push eax
push str.In_launchProcessInUserSession__Error_getting_TokenLinkedToken._ErrorCode:___d_.
jmp 0x413b35
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x238]
call fcn.0045928b
push dword [ebp - 0x238]
mov dword [esi + 0x1c], eax
push 0
push eax
call fcn.0045c510
add esp, 0x10
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
push dword [esi + 0x1c]
push 0x13
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x413e28
lea eax, [esi + 4]
push eax
mov eax, dword [esi + 0x1c]
push 1
push 2
push 0
push 0x18b
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x413da6
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
test edi, edi
je 0x413d54
mov esi, dword [edi]
call ebx
push eax
push str.In_launchProcessInUserSession__Admin_User__Cannot_duplicate_token._ErrorCode:___d_.
push str.ProcessUtils
push 0x49586c
push 0x32
push edi
jmp 0x413b47
cmp dword [0x4b29c0], 0
je 0x413d89
call ebx
push eax
push str.In_launchProcessInUserSession__Admin_User__Cannot_duplicate_token._ErrorCode:___d_.
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x4b29c0]
add esp, 0x1c
jmp 0x413b4d
mov esi, dword [0x4b29c4]
test esi, esi
je 0x413b4d
mov esi, dword [esi]
call ebx
push eax
push str.In_launchProcessInUserSession__Admin_User__Cannot_duplicate_token._ErrorCode:___d_.
jmp 0x413b35
mov ecx, dword [esi + 4]
mov edx, edi
call fcn.004145e0
test al, al
jne 0x413e71
test edi, edi
je 0x413dd2
mov eax, dword [edi]
push str.In_launchProcessInUserSession__LinkedToken_is_non_elevated._Using_the_STDUser_fallback
push str.ProcessUtils
push 0x49586c
push 0x1e
push edi
jmp 0x413e1b
mov eax, dword [0x4b29c0]
test eax, eax
je 0x413dfd
push str.In_launchProcessInUserSession__LinkedToken_is_non_elevated._Using_the_STDUser_fallback
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x413e21
mov ecx, dword [0x4b29c4]
test ecx, ecx
je 0x413e21
mov eax, dword [ecx]
push str.In_launchProcessInUserSession__LinkedToken_is_non_elevated._Using_the_STDUser_fallback
push str.ProcessUtils
push 0x49586c
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
mov dword [esi + 4], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x413fcd
test edi, edi
je 0x413f53
mov esi, dword [edi]
call ebx
push eax
push str.In_launchProcessInUserSession._Standard_user.Unable_to_get_list_of_processes._ErrorCode:__d_.
push str.ProcessUtils
push 0x49586c
push 0x32
push edi
call dword [esi + 0x34]
add esp, 0x18
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
jmp 0x413b4d
test edi, edi
je 0x413efe
mov eax, dword [edi]
push str.In_launchProcessInUserSession__LinkedToken_is_elevated._Launch_process_in_ADMIN_context
push str.ProcessUtils
push 0x49586c
push 0xa
push edi
call dword [eax + 0x34]
add esp, 0x14
push dword [ebp - 0x244]
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
push dword [esi + 0x20]
push dword [esi + 0x14]
push 0
push 0
push 0
push dword [ebp - 0x250]
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x41439b
test edi, edi
je 0x41433f
mov esi, dword [edi]
call ebx
push eax
push str.In_launchProcessInUserSession._Unable_to_create_a_new_process_with_duplicate_token._ErrorCode:__d_.
push str.ProcessUtils
push 0x49586c
push 0x32
push edi
call dword [esi + 0x34]
add esp, 0x18
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
jmp 0x413b4d
mov eax, dword [0x4b29c0]
test eax, eax
je 0x413f2c
push str.In_launchProcessInUserSession__LinkedToken_is_elevated._Launch_process_in_ADMIN_context
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0xa
call eax
add esp, 0x18
jmp 0x413e93
mov ecx, dword [0x4b29c4]
test ecx, ecx
je 0x413e93
mov eax, dword [ecx]
push str.In_launchProcessInUserSession__LinkedToken_is_elevated._Launch_process_in_ADMIN_context
push str.ProcessUtils
push 0x49586c
push 0xa
push ecx
jmp 0x413e8d
cmp dword [0x4b29c0], 0
je 0x413f92
call ebx
push eax
push str.In_launchProcessInUserSession._Standard_user.Unable_to_get_list_of_processes._ErrorCode:__d_.
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x4b29c0]
add esp, 0x1c
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
jmp 0x413b4d
mov esi, dword [0x4b29c4]
test esi, esi
je 0x413fbe
mov esi, dword [esi]
call ebx
push eax
push str.In_launchProcessInUserSession._Standard_user.Unable_to_get_list_of_processes._ErrorCode:__d_.
push str.ProcessUtils
push 0x49586c
push 0x32
push dword [0x4b29c4]
call dword [esi + 0x34]
add esp, 0x18
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
jmp 0x413b4d
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x234], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x414080
test edi, edi
je 0x41401d
mov esi, dword [edi]
call ebx
push eax
push str.In_launchProcessInUserSession._Standard_user._Unable_to_initialize_first_process._ErrorCode:__d_.
push str.ProcessUtils
push 0x49586c
push 0x32
push edi
call dword [esi + 0x34]
add esp, 0x18
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
jmp 0x413b4d
cmp dword [0x4b29c0], 0
je 0x41405c
call ebx
push eax
push str.In_launchProcessInUserSession._Standard_user._Unable_to_initialize_first_process._ErrorCode:__d_.
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x4b29c0]
add esp, 0x1c
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
jmp 0x413b4d
mov esi, dword [0x4b29c4]
test esi, esi
je 0x413fbe
mov esi, dword [esi]
call ebx
push eax
push str.In_launchProcessInUserSession._Standard_user._Unable_to_initialize_first_process._ErrorCode:__d_.
jmp 0x413fa6
push str.winlogon.exe
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4140b8
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4140b8
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 8], eax
je 0x4140cd
lea eax, [ebp - 0x234]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x414080
jmp 0x414142
mov ecx, dword [ebp - 0x22c]
mov dword [esi + 0x18], ecx
test edi, edi
je 0x4140f1
mov eax, dword [edi]
push ecx
push str.In_launchProcessInUserSession.winlogon_process_ID:__d.
push str.ProcessUtils
push 0x49586c
push 0x1e
push edi
jmp 0x41413c
mov eax, dword [0x4b29c0]
test eax, eax
je 0x41411d
push ecx
push str.In_launchProcessInUserSession.winlogon_process_ID:__d.
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x1c
jmp 0x414142
mov edx, dword [0x4b29c4]
test edx, edx
je 0x414142
mov eax, dword [edx]
push ecx
push str.In_launchProcessInUserSession.winlogon_process_ID:__d.
push str.ProcessUtils
push 0x49586c
push 0x1e
push edx
call dword [eax + 0x34]
add esp, 0x18
mov eax, dword [esi + 0x18]
test eax, eax
je 0x413b4d
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x4141f2
test edi, edi
je 0x414196
mov esi, dword [edi]
call ebx
push eax
push str.In_launchProcessInUserSession._Standard_user._Unable_to_open_process._ErrorCode:__d_.
push str.ProcessUtils
push 0x49586c
push 0x32
push edi
call dword [esi + 0x34]
add esp, 0x18
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
jmp 0x413b4d
cmp dword [0x4b29c0], 0
je 0x4141d5
call ebx
push eax
push str.In_launchProcessInUserSession._Standard_user._Unable_to_open_process._ErrorCode:__d_.
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x4b29c0]
add esp, 0x1c
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
jmp 0x413b4d
mov esi, dword [0x4b29c4]
test esi, esi
je 0x413fbe
mov esi, dword [esi]
call ebx
push eax
push str.In_launchProcessInUserSession._Standard_user._Unable_to_open_process._ErrorCode:__d_.
jmp 0x413fa6
lea ecx, [esi + 0xc]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x414293
test edi, edi
je 0x414237
mov esi, dword [edi]
call ebx
push eax
push str.In_launchProcessInUserSession._Standard_user._Unable_to_open_process_token._ErrorCode:__d_.
push str.ProcessUtils
push 0x49586c
push 0x32
push edi
call dword [esi + 0x34]
add esp, 0x18
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
jmp 0x413b4d
cmp dword [0x4b29c0], 0
je 0x414276
call ebx
push eax
push str.In_launchProcessInUserSession._Standard_user._Unable_to_open_process_token._ErrorCode:__d_.
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x4b29c0]
add esp, 0x1c
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
jmp 0x413b4d
mov esi, dword [0x4b29c4]
test esi, esi
je 0x413fbe
mov esi, dword [esi]
call ebx
push eax
push str.In_launchProcessInUserSession._Standard_user._Unable_to_open_process_token._ErrorCode:__d_.
jmp 0x413fa6
lea eax, [esi + 4]
push eax
push 1
push 2
push 0
push 0x18b
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x413e93
test edi, edi
je 0x4142e3
mov esi, dword [edi]
call ebx
push eax
push str.In_launchProcessInUserSession._Unable_to_duplicate_process_token.ErrorCode:___d_.
push str.ProcessUtils
push 0x49586c
push 0x32
push edi
call dword [esi + 0x34]
add esp, 0x18
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
jmp 0x413b4d
cmp dword [0x4b29c0], 0
je 0x414322
call ebx
push eax
push str.In_launchProcessInUserSession._Unable_to_duplicate_process_token.ErrorCode:___d_.
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x4b29c0]
add esp, 0x1c
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
jmp 0x413b4d
mov esi, dword [0x4b29c4]
test esi, esi
je 0x413fbe
mov esi, dword [esi]
call ebx
push eax
push str.In_launchProcessInUserSession._Unable_to_duplicate_process_token.ErrorCode:___d_.
jmp 0x413fa6
cmp dword [0x4b29c0], 0
je 0x41437e
call ebx
push eax
push str.In_launchProcessInUserSession._Unable_to_create_a_new_process_with_duplicate_token._ErrorCode:__d_.
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x32
call dword [0x4b29c0]
add esp, 0x1c
call ebx
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], eax
jmp 0x413b4d
mov esi, dword [0x4b29c4]
test esi, esi
je 0x413fbe
mov esi, dword [esi]
call ebx
push eax
push str.In_launchProcessInUserSession._Unable_to_create_a_new_process_with_duplicate_token._ErrorCode:__d_.
jmp 0x413fa6
test edi, edi
je 0x4143b5
mov eax, dword [edi]
push str.In_launchProcessInUserSession._Success_in_CreateProcess.
push str.ProcessUtils
push 0x49586c
push 0x1e
push edi
jmp 0x4143fe
mov eax, dword [0x4b29c0]
test eax, eax
je 0x4143e0
push str.In_launchProcessInUserSession._Success_in_CreateProcess.
push 0x49586c
push 0x49586c
push str.ProcessUtils
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x414404
mov ecx, dword [0x4b29c4]
test ecx, ecx
je 0x414404
mov eax, dword [ecx]
push str.In_launchProcessInUserSession._Success_in_CreateProcess.
push str.ProcessUtils
push 0x49586c
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045922f
mov esp, ebp
pop ebp
ret 0x20