Function at 0x410e30
Capabilities:
Acquire debug privileges
Check for time delay via gettickcount
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a2a1
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x4363e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x294], edi
cmp dword [ebp + 0x18], edi
jne 0x410eb0
mov esi, 8
cmp dword [ebp + 0x1c], esi
jb 0x410e88
mov eax, dword [ebp + 8]
push eax
call fcn.00412bf6
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], edi
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], esi
jb 0x410ea9
mov edx, dword [ebp + 0x24]
push edx
call fcn.00412bf6
add esp, 4
xor eax, eax
jmp 0x411502
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4312f0
call fcn.0040e350
add esp, 8
mov esi, 8
cmp dword [ebp + 0x34], edi
jne 0x410ed5
mov ecx, str.No_parameter
jmp 0x410ee0
mov ecx, dword [ebp + 0x24]
cmp dword [ebp + 0x38], esi
jae 0x410ee0
lea ecx, [ebp + 0x24]
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x410eeb
lea eax, [ebp + 8]
mov edx, dword [ebp + 0x40]
push edx
push ecx
push eax
push str.Session0ShellExecute_bin:_s_parameter:_s_waitsec:_d
call fcn.0040e350
lea eax, [ebp - 0x25c]
push 0x4313c0
push eax
lea ebx, [ebp + 8]
mov dword [ebp - 0x288], edi
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x284], edi
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x280], edi
call fcn.00411660
add esp, 0x18
mov ecx, eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.00411740
mov byte [ebp - 4], 4
cmp dword [ebp - 0x248], esi
jb 0x410f5c
mov ecx, dword [ebp - 0x25c]
push ecx
call fcn.00412bf6
add esp, 4
xor edx, edx
mov dword [ebp - 0x248], 7
mov dword [ebp - 0x24c], edi
mov word [ebp - 0x25c], dx
cmp dword [ebp + 0x34], edi
je 0x410fc6
lea eax, [ebp - 0x278]
push 0x4307c4
push eax
lea ebx, [ebp + 0x24]
call fcn.00411660
add esp, 8
push edi
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x230]
mov byte [ebp - 4], 5
call fcn.0040fbc0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x264], 8
jb 0x410fc1
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.00412bf6
add esp, 4
mov esi, 8
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [ebp - 0x288], eax
cmp eax, 0xffffffff
jne 0x411055
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Session0ShellExecute_WTSGetActiveConsoleSessionId_failure:_d
call fcn.0040e350
add esp, 8
cmp dword [ebp - 0x21c], esi
jb 0x411002
mov edx, dword [ebp - 0x230]
push edx
call fcn.00412bf6
add esp, 4
xor eax, eax
mov ebx, 7
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], ax
cmp dword [ebp + 0x1c], esi
jb 0x41102d
mov ecx, dword [ebp + 8]
push ecx
call fcn.00412bf6
add esp, 4
xor edx, edx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x18], edi
mov word [ebp + 8], dx
cmp dword [ebp + 0x38], esi
jb 0x410ea9
mov eax, dword [ebp + 0x24]
push eax
call fcn.00412bf6
add esp, 4
xor eax, eax
jmp 0x411502
push eax
push str.WTSGetActiveConsoleSessionId_success_session_id:_d
call fcn.0040e350
push 0x1fe
lea edx, [ebp - 0x212]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x214], cx
call fcn.00420700
add esp, 0x14
xor eax, eax
movzx ecx, word [eax + str.winlogon.exe]
mov word [ebp + eax - 0x214], cx
add eax, 2
cmp cx, di
jne 0x411080
mov eax, dword [ebp - 0x288]
push eax
lea ecx, [ebp - 0x214]
call fcn.00411520
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jne 0x4110c5
call ebx
push eax
push str.Session0ShellExecute_TraverseProcessID_failure:_d
call fcn.0040e350
add esp, 8
push esi
push edi
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x28c], eax
cmp eax, edi
jne 0x411109
call ebx
push eax
push str.Session0ShellExecute_OpenProcess_failure:_d_try_to_get_current_process
call fcn.0040e350
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x28c], eax
cmp eax, edi
jne 0x411109
call ebx
push eax
push str.Session0ShellExecute_GetCurrentProcess_failure:_d
jmp 0x411415
mov edx, dword [ebp - 0x288]
lea ecx, [ebp - 0x290]
push ecx
push edx
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x41112e
call ebx
push eax
push str.Session0ShellExecute_WTSQueryUserToken_failure:_d
jmp 0x411415
mov ecx, dword [ebp - 0x28c]
lea eax, [ebp - 0x284]
push eax
push 0x201eb
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x411158
call ebx
push eax
push str.Session0ShellExecute_OpenProcessToken_failure:_d
jmp 0x411415
lea edx, [ebp - 0x2ac]
push edx
push str.SeDebugPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x41117c
call ebx
push eax
push str.Session0ShellExecute_LookupPrivilegeValue_failure:_d
jmp 0x411415
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 0x2a8]
lea edx, [ebp - 0x27c]
push edx
push 1
push 1
push edi
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x284]
push 0x2000000
push eax
mov dword [ebp - 0x240], 1
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], 2
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x4111d7
call ebx
push eax
push str.Session0ShellExecute_DuplicateTokenEx_failure:_d
jmp 0x411415
mov edx, dword [ebp - 0x27c]
push 4
lea ecx, [ebp - 0x288]
push ecx
push 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x411200
call ebx
push eax
push str.Session0ShellExecute_SetTokenInformation_failure:_d
jmp 0x411415
mov ecx, dword [ebp - 0x27c]
push edi
push edi
push 0x10
lea eax, [ebp - 0x240]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x41122a
call ebx
push eax
push str.Session0ShellExecute_AdjustTokenPrivileges_failure:_d
jmp 0x411415
call ebx
cmp eax, 0x514
jne 0x411243
call ebx
push eax
push str.Session0ShellExecute_AdjustTokenPrivileges_Token_does_not_have_the_provilege_failure:_d
call fcn.0040e350
add esp, 8
mov edx, dword [ebp - 0x27c]
push 1
push edx
lea eax, [ebp - 0x280]
push eax
mov ebx, 0x8000020
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x411276
push str.Session0ShellExecute_CreateEnvironmentBlock_compound_unicode_flag
call fcn.0040e350
add esp, 4
mov ebx, 0x8000420
jmp 0x41127c
mov dword [ebp - 0x280], edi
push 0x44
lea ecx, [ebp - 0x2f4]
push edi
push ecx
call fcn.00420700
xor eax, eax
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x220]
xor ecx, ecx
inc eax
add esp, 0xc
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0x2f4], 0x44
mov dword [ebp - 0x2ec], str.winsta0default
neg ecx
or ecx, eax
push ecx
call fcn.004122f0
mov esi, eax
mov eax, dword [ebp - 0x220]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push esi
call fcn.00420700
mov eax, dword [ebp - 0x230]
add esp, 0xc
cmp dword [ebp - 0x21c], 8
jae 0x411308
lea eax, [ebp - 0x230]
mov edx, esi
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x411310
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x411324
sub eax, edx
sar eax, 1
push eax
push esi
push str.Session0ShellExecute_CreateProcessAsUser_cmd_line:_s_size:_d
call fcn.0040e350
mov ecx, dword [ebp - 0x280]
add esp, 0xc
lea edx, [ebp - 0x2a4]
push edx
mov edx, dword [ebp - 0x27c]
lea eax, [ebp - 0x2f4]
push eax
push edi
push ecx
push ebx
push edi
push edi
push edi
push esi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
mov dword [ebp - 0x294], ebx
cmp esi, edi
je 0x411380
push esi
call fcn.004131b7
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp ebx, edi
je 0x41140d
cmp dword [ebp - 0x2a4], edi
je 0x41140d
call esi
push eax
push str.Session0ShellExecute_CreateProcessAsUser_success_before_wait_errror:_d
call fcn.0040e350
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp - 0x2a4]
add esp, 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
ja 0x4113fe
je 0x4113ef
cmp eax, edi
je 0x4113e0
cmp eax, 0x80
jne 0x41141d
push str.Session0ShellExecute_WaitForSingleObject_mutex_abandoned
call fcn.0040e350
add esp, 4
jmp 0x41141d
push str.Session0ShellExecute_WaitForSingleObject_successfully
call fcn.0040e350
add esp, 4
jmp 0x41141d
push str.Session0ShellExecute_WaitForSingleObject_time_out_and_no_response
call fcn.0040e350
add esp, 4
jmp 0x41141d
cmp eax, 0xffffffff
jne 0x41141d
call esi
push eax
push str.Session0ShellExecute_WaitForSingleObject_failure_error:_d
jmp 0x411415
call esi
push eax
push str.Session0ShellExecute_CreateProcessAsUser_failure:_d
call fcn.0040e350
add esp, 8
mov eax, dword [ebp - 0x280]
cmp eax, edi
je 0x411434
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [ebp - 0x280], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28c], edi
je 0x41144b
mov edx, dword [ebp - 0x28c]
push edx
call esi
mov eax, dword [ebp - 0x290]
cmp eax, edi
je 0x41145e
push eax
call esi
mov dword [ebp - 0x290], edi
mov eax, dword [ebp - 0x27c]
cmp eax, edi
je 0x411471
push eax
call esi
mov dword [ebp - 0x27c], edi
mov eax, dword [ebp - 0x284]
cmp eax, edi
je 0x411484
push eax
call esi
mov dword [ebp - 0x284], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.Session0ShellExecute_end_tick:_d
call fcn.0040e350
mov esi, 8
add esp, 8
cmp dword [ebp - 0x21c], esi
jb 0x4114b4
mov eax, dword [ebp - 0x230]
push eax
call fcn.00412bf6
add esp, 4
xor ecx, ecx
mov ebx, 7
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], cx
cmp dword [ebp + 0x1c], esi
jb 0x4114df
mov edx, dword [ebp + 8]
push edx
call fcn.00412bf6
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x18], edi
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], esi
jb 0x4114fc
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00412bf6
add esp, 4
mov eax, dword [ebp - 0x294]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00412be7
mov esp, ebp
pop ebp
ret 0x3c