Function at 0x10016890
Capabilities:
Create process on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b3d8
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x100a5428]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ecx
mov word [ebp - 0x64], dx
mov dword [ebp - 4], ecx
mov esi, dword [eax]
mov ebx, dword [eax + 4]
cmp esi, ebx
je 0x10016933
cmp dword [esi + 0x14], 8
jb 0x100168ef
mov eax, dword [esi]
jmp 0x100168f1
mov eax, esi
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x100168f6
sub ecx, edi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x64]
call fcn.10006680
push 1
mov eax, 0x10092c24
lea ecx, [ebp - 0x64]
call fcn.10006680
add esi, 0x1c
cmp esi, ebx
jne 0x100168e5
mov edi, 8
cmp dword [ebp - 0x50], edi
jb 0x10016938
mov eax, dword [ebp - 0x64]
jmp 0x1001693b
mov edi, 8
lea eax, [ebp - 0x64]
push eax
push str.Arguments_being_passed_to_deployment_engine_:_ls
call fcn.100028f0
mov ebx, str.DWANative
call fcn.10002f70
mov ebx, dword [ebp - 0x6c]
add esp, 8
xor eax, eax
push 0xffffffffffffffff
push eax
mov esi, 7
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
call fcn.10001070
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x10016986
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor ecx, ecx
push 1
mov word [ebp - 0x2c], cx
push 0x10092c24
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
call fcn.10001a60
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
mov byte [ebp - 0x65], 0
call fcn.10013bd0
test al, al
je 0x10016a07
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x100169ca
mov eax, esi
push eax
push str.This_OS_is__s
call fcn.100028f0
mov ebx, str.DWANative
call fcn.10002f70
mov eax, dword [ebp - 0x1c]
add esp, 8
push str.Win7
mov edi, 4
lea ecx, [ebp - 0x2c]
call fcn.10002270
mov ebx, dword [ebp - 0x6c]
mov edi, 8
test eax, eax
jne 0x10016a07
mov byte [ebp - 0x65], 1
push 0x40
xor esi, esi
lea edx, [ebp - 0xb0]
push esi
push edx
call fcn.100775d0
add esp, 0xc
mov dword [ebp - 0xb0], 0x3c
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov dword [ebp - 0xa4], str.open
test eax, eax
jne 0x10016a43
mov dword [ebp - 0xa4], str.runas
mov dword [ebp - 0xac], 0x40
cmp dword [ebx + 0x14], edi
jb 0x10016a5c
mov eax, dword [ebx]
mov dword [ebp - 0xa0], eax
jmp 0x10016a62
mov dword [ebp - 0xa0], ebx
cmp dword [ebp - 0x50], edi
jb 0x10016a72
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x9c], ecx
jmp 0x10016a7b
lea edx, [ebp - 0x64]
mov dword [ebp - 0x9c], edx
cmp dword [ebp - 0x34], edi
jb 0x10016a8b
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x98], eax
jmp 0x10016a94
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x98], ecx
mov bl, byte [ebp - 0x65]
test bl, bl
je 0x10016aa3
mov dword [ebp - 0xa8], esi
jmp 0x10016aaf
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0xa8], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x78], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], 1
test bl, bl
je 0x10016b20
push 0
push 0
lea edx, [ebp - 0xb0]
push edx
push 0x10016750
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x10016b0f
call esi
push eax
push str.Failed_to_launch_thread_for_shellExecute._Error:_d
call fcn.100028f0
mov ebx, str.DWANative
call fcn.10002fa0
add esp, 8
lea eax, [ebp - 0xb0]
push eax
jmp 0x10016b27
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call edi
mov eax, dword [ebp - 0x74]
jmp 0x10016b2d
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, dword [ebp - 0x78]
push edx
test eax, eax
jne 0x10016bba
mov eax, dword [ebp - 0x90]
push eax
push 0
call esi
push eax
push str.Failed_ShellExecute._Values_from_launch_of_process::_GetLastError:_d_RetVal:_d_hInstApp:_d_hProcess:0x_08X
call fcn.100028f0
mov ebx, str.DWANative
call fcn.10003000
mov esi, 8
add esp, 0x14
cmp dword [ebp - 0x18], esi
jb 0x10016b72
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10076031
add esp, 4
xor ebx, ebx
xor edx, edx
mov edi, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], esi
jb 0x10016b96
mov eax, dword [ebp - 0x48]
push eax
call fcn.10076031
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], esi
jb 0x10016bb3
mov edx, dword [ebp - 0x64]
push edx
call fcn.10076031
add esp, 4
xor al, al
jmp 0x10016ce8
mov ecx, dword [ebp - 0x90]
push ecx
push eax
cmp ecx, 0x20
jg 0x10016c45
call esi
push eax
push str.Failed_ShellExecute_due_to_hInstApp._Values_from_launch_of_process::_GetLastError:_d_RetVal:_d_hInstApp:_d_hProcess:0x_08X
call fcn.100028f0
mov ebx, str.DWANative
call fcn.10003000
mov eax, dword [ebp - 0x78]
add esp, 0x14
push eax
call edi
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x10016bfd
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10076031
add esp, 4
xor ebx, ebx
xor edx, edx
mov edi, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], esi
jb 0x10016c21
mov eax, dword [ebp - 0x48]
push eax
call fcn.10076031
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], esi
jb 0x10016bb3
mov edx, dword [ebp - 0x64]
push edx
call fcn.10076031
add esp, 4
xor al, al
jmp 0x10016ce8
call esi
push eax
push str.Success_ShellExecute._Values_from_launch_of_process::_GetLastError:_d_RetVal:_d_hInstApp:_d_hProcess:0x_08X
call fcn.100028f0
mov ebx, str.DWANative
call fcn.10002f70
mov eax, dword [ebp - 0x78]
add esp, 0x14
push 0
push 0
push eax
push 0x10016770
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10016c8f
call esi
push eax
push str.Failed_to_create_thread_to_waitForExitOfDE__GetLastError:_d
call fcn.100028f0
call fcn.10002fa0
add esp, 8
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x10016ca5
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10076031
add esp, 4
xor ebx, ebx
xor edx, edx
mov edi, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], esi
jb 0x10016cc9
mov eax, dword [ebp - 0x48]
push eax
call fcn.10076031
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], esi
jb 0x10016ce6
mov edx, dword [ebp - 0x64]
push edx
call fcn.10076031
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10075b7f
mov esp, ebp
pop ebp
ret