Function at 0x100066d0
Capabilities:
Create process on windows
Enumerate gui resources
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x10037a95
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10059024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x2c], edi
mov esi, ecx
mov dword [ebp - 0x30], esi
mov eax, dword [ebp + 0x214]
mov ebx, dword [ebp + 0x220]
mov dword [ebp - 0x34], eax
mov al, byte [ebp + 0x21c]
push 0
mov byte [ebp - 0xd], al
lea eax, [ebp - 0x70]
push 0x3c
push eax
mov dword [ebp - 0x20], ebx
call fcn.1000f2a0
add esp, 0xc
mov dword [ebp - 0x70], 0x3c
mov ecx, 0x440
test ebx, ebx
mov eax, 0x400
cmovne eax, ecx
lea ecx, [ebp - 0x18]
push esi
mov dword [ebp - 0x6c], eax
call fcn.100049a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push edi
call fcn.100049a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push ecx
push eax
mov ecx, esi
call fcn.10006b50
mov edi, eax
mov byte [ebp - 4], 2
mov edx, dword [edi]
mov esi, dword [edx - 0xc]
test esi, esi
js 0x10006a6a
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or ecx, eax
jge 0x100067ae
push esi
mov ecx, edi
call fcn.10004c60
mov edx, dword [edi]
lea eax, [esi + 1]
push eax
push edx
call fcn.10029ef6
mov eax, dword [edi]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x10006a6a
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [edi]
push edi
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x1c]
call fcn.100049a0
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x28]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100067fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x100068af
mov eax, dword [ebp - 0x1c]
mov edx, str..bat
mov ecx, eax
nop
mov si, word [ecx]
cmp si, word [edx]
jne 0x10006836
test si, si
je 0x10006832
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x10006836
add ecx, 4
add edx, 4
test si, si
jne 0x10006810
xor ecx, ecx
jmp 0x1000683b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x10006873
mov ecx, str..cmd
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000686a
test dx, dx
je 0x10006866
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000686a
add eax, 4
add ecx, 4
test dx, dx
jne 0x10006844
xor eax, eax
jmp 0x1000686f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100068af
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push str._sSystem32cmd.exe
push eax
call fcn.10004b10
mov eax, dword [ebp - 0x2c]
push dword [eax]
mov eax, dword [ebp - 0x30]
push dword [eax]
lea eax, [ebp - 0x14]
push str._C____s___s_
push eax
call fcn.10004b10
add esp, 0x1c
mov eax, dword [ebp - 0x18]
mov ecx, str.open
mov edi, dword [ebp + 0x218]
mov dword [ebp - 0x60], eax
mov eax, edi
neg eax
sbb eax, eax
and eax, 5
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x54], eax
mov eax, str.runas
cmove eax, ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ecx]
cmp dword [ecx - 0xc], 0
cmovne eax, ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
cmovne ecx, eax
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x5c], ecx
je 0x1000690c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x68], eax
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp - 0x70]
push eax
call esi
test eax, eax
jne 0x1000693d
mov eax, dword [ebp - 0x50]
cmp eax, 0x1f
je 0x10006929
cmp eax, 0x1b
jne 0x1000693d
and dword [ebp - 0x6c], 0xfffffbff
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x64], 0
call esi
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x10006973
mov eax, dword [ebp - 0x38]
mov dword [esi], 0xffffffff
test eax, eax
je 0x100069ea
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100069ea
cmp edi, 2
jne 0x100069ea
mov esi, dword [ebp - 0x38]
push str.GetProcessId
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100069ea
push esi
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
xor esi, esi
nop dword [eax]
cmp esi, 0x14
jge 0x100069dc
push 0x64
call ebx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
push 0x10006af0
mov dword [ebp - 0x20], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 0x20]
inc esi
test ecx, ecx
je 0x100069b0
jmp 0x100069e0
test ecx, ecx
je 0x100069e7
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006a08
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006a26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10006a45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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 + 0x208]
xor ecx, ebp
call fcn.10024a34
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80070057
call fcn.10003760
int3