Function at 0x491b10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x58fd6d
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x294]
mov dword fs:[0], eax
call fcn.00491730
call fcn.00491830
call fcn.00491930
push 0x208
xor ebp, ebp
lea eax, [esp + 0x88]
push ebp
push eax
call fcn.004add60
add esp, 0xc
push 0x104
lea ecx, [esp + 0x88]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x24]
push edx
call fcn.004030f0
mov dword [esp + 0x29c], ebp
mov eax, dword [esp + 0x2a8]
movzx ecx, word [esp + 0x2a4]
push eax
push ecx
lea edx, [esp + 0x8c]
push edx
push str.__s___notifybinderror__p_d___e_d
lea edi, [esp + 0x34]
call fcn.00413090
mov edi, dword [esp + 0x2bc]
push edi
push str._NUD__S__u
call fcn.004916b0
add esp, 0x18
cmp edi, 0xffffffff
je 0x492061
lea ecx, [esp + 0x14]
lea ebx, [esp + 0x20]
mov eax, edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebp
call fcn.00499910
mov esi, eax
cmp esi, ebp
je 0x491dec
mov ecx, esi
call fcn.00499a50
test eax, eax
je 0x491ddd
push ebp
push esi
lea eax, [esp + 0x1c]
push eax
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x20], ebp
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x491c3a
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x491c3a
mov edi, eax
mov ebx, 0x400
jmp 0x491c4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._NUD__NUD0__ev__u
call fcn.004916b0
add esp, 8
push 0x44
lea ecx, [esp + 0x40]
push ebp
push ecx
call fcn.004add60
add esp, 0xc
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebp
push edi
push ebx
push ebp
push ebp
mov edx, 5
push ebp
mov word [esp + 0x8c], dx
mov edx, dword [esp + 0x44]
push edx
push ebp
push esi
mov dword [esp + 0x68], 0x44
mov dword [esp + 0x70], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x491cc4
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._NUD__NUD0_YES__u
jmp 0x491cd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._NUD__NUD0_NO__u
call fcn.004916b0
add esp, 8
cmp edi, ebp
je 0x491ce3
push edi
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov edi, dword [esp + 0x2ac]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], ebp
jne 0x492075
push edi
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
call fcn.00491a30
add esp, 4
test eax, eax
je 0x491f56
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x491f56
push eax
push str._NUD__stk__u
call fcn.004916b0
mov eax, dword [esp + 0x20]
add esp, 8
lea ebx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
xor edi, edi
call fcn.004915d0
test eax, eax
je 0x491d63
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x491d63
mov edi, dword [esp + 0x18]
push eax
push str._NUD__HITK__u
mov dword [esp + 0x20], eax
call fcn.004916b0
add esp, 8
mov ecx, dword [esp + 0x18]
call fcn.00499a50
test eax, eax
je 0x491eca
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push 1
push 2
push ebp
push 0xf01ff
push eax
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x491eb4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x491eb4
push eax
push str._NUD___stk2__u
call fcn.004916b0
mov ecx, dword [esp + 0x1c]
add esp, 8
push 1
push ecx
lea edx, [esp + 0x28]
push edx
xor esi, esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x491e08
mov esi, 0x400
jmp 0x491e1c
mov ecx, str._NUD___admin_account
call fcn.004930a0
jmp 0x491cea
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push str._NUD___get_explorer_token_err_u__etrace_u
call fcn.004916b0
add esp, 0xc
jmp 0x491cfb
call ebx
push eax
push str._NUD___NOT_EV__u
call fcn.004916b0
add esp, 8
mov dword [esp + 0x20], ebp
push 0x44
lea eax, [esp + 0x40]
push ebp
push eax
call fcn.004add60
add esp, 0xc
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x20]
push ebp
mov ecx, 5
mov word [esp + 0x78], cx
mov ecx, dword [esp + 0x2c]
push ecx
push esi
push ebp
push ebp
push ebp
push edx
push ebp
push eax
mov dword [esp + 0x68], 0x44
mov dword [esp + 0x70], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x491e93
mov dword [esp + 0x28], 1
call ebx
push eax
push str._NUD___YES__u
jmp 0x491e9b
call ebx
push eax
push str._NUD___NO__u
call fcn.004916b0
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, ebp
je 0x491ed4
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x491ed4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._NUD___NOT_DUP__u
call fcn.004916b0
add esp, 8
jmp 0x491ed4
mov ecx, str._NUD___admin_account2
call fcn.004930a0
cmp edi, ebp
je 0x491edf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], ebp
jne 0x492075
mov edi, dword [esp + 0x2ac]
push edi
lea eax, [esp + 0x20]
lea edi, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
call fcn.00499bb0
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x492048
mov edx, dword [esp + 0x2ac]
push edx
lea esi, [esp + 0x18]
mov dword [esp + 0x18], ebp
call fcn.00491a30
add esp, 4
test eax, eax
jne 0x491f6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._NUD__NUD2_WTSQTK2__u
call fcn.004916b0
add esp, 8
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x491f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._NUD__WTSQTK__u
call fcn.004916b0
add esp, 8
jmp 0x491efb
mov eax, dword [esp + 0x14]
xor edi, edi
xor esi, esi
cmp eax, ebp
je 0x491fb2
push ebp
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], ebp
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x491f9e
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x491f9e
mov esi, eax
mov edi, 0x400
jmp 0x491fb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._NUD__NUD2__ev__u
call fcn.004916b0
add esp, 8
push 0x44
lea ecx, [esp + 0x40]
push ebp
push ecx
call fcn.004add60
add esp, 0xc
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebp
push esi
push edi
push ebp
push ebp
mov edx, 5
push ebp
mov word [esp + 0x8c], dx
mov edx, dword [esp + 0x44]
push edx
push ebp
push ebx
mov dword [esp + 0x68], 0x44
mov dword [esp + 0x70], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x492020
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._NUD__NUD2_YES__u
jmp 0x49202c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._NUD__NUD2_NO__u
call fcn.004916b0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebp
je 0x492075
push esi
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x492075
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str._NUD__2__get_sys_token_err_u__etrace_u
call fcn.004916b0
add esp, 0xc
jmp 0x492075
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._NUD__NUD_222_NGSID__u
call fcn.004916b0
add esp, 8
mov dword [esp + 0x29c], 0xffffffff
lea edx, [esp + 0x24]
push edx
call fcn.00403090
mov ecx, dword [esp + 0x294]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004a314d
add esp, 0x28c
ret