Function at 0x10009b40
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
push esi
push edi
push 0x3c
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.100034d0
push 0x40
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], 0x44
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x2c], xmm0
call fcn.100034d0
mov esi, dword [ebp + 0x10]
xor ebx, ebx
add esp, 0x18
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
cmp esi, 0xa
je 0x10009ba1
mov dword [ebp - 0x80], 1
mov word [ebp - 0x7c], si
cmp byte [ebp + 0x14], bl
jne 0x10009bce
cmp byte [ebp + 0x18], bl
je 0x10009bce
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10009e59
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xc
jmp 0x10009ef3
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 4], ebx
call esi
cmp word [edi], 0x22
lea esi, [eax + ebx]
je 0x10009c77
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10009c0d
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xc
jmp 0x10009ef3
lea eax, [esi*2 + 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10009c31
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [eax + 2]
jmp 0x10009ef3
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1001b970
push ebx
call esi
push edi
lea eax, [ebx + 2]
push eax
call esi
mov eax, dword [ebp - 4]
inc eax
push 0x1001b974
lea eax, [ebx + eax*2]
push eax
call esi
mov eax, dword [ebp - 4]
add eax, 2
push 0x1001b978
lea eax, [ebx + eax*2]
push eax
call esi
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
add eax, 3
lea eax, [ebx + eax*2]
push eax
call esi
jmp 0x10009cbf
lea eax, [esi*2 + 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10009c9b
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [eax + 2]
jmp 0x10009ef3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call edi
mov eax, dword [ebp - 4]
push 0x1001b97c
lea esi, [ebx + eax*2]
push esi
call edi
push dword [ebp + 0xc]
lea eax, [esi + 2]
push eax
call edi
mov edi, dword [ebp + 8]
cmp byte [ebp + 0x14], 0
je 0x10009e56
mov dword [ebp - 0xa4], 0x1001b980
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x10009cf8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xe
jmp 0x10009ee8
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x1001b9a0
call esi
mov edi, eax
test edi, edi
jne 0x10009d19
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [eax + 0xd]
jmp 0x10009ee8
push 0x1001b9bc
call esi
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x10009d35
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [eax + 0xd]
jmp 0x10009ee8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001b9d4
push edi
call esi
push 0x1001b9e8
push dword [ebp + 0x14]
mov edi, eax
call esi
push 0x1001ba00
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
call esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call edi
test eax, eax
je 0x10009e46
lea eax, [ebp - 8]
push eax
push 1
push 1
push 0
push 0x10000000
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x10009e46
push 0
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call dword [ebp - 4]
test eax, eax
je 0x10009e46
cmp byte [ebp + 0x18], 0
je 0x10009e00
cmp dword [0x1001e658], 5
jbe 0x10009e00
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0xc]
mov dword [ebp + 0x14], 4
push eax
push 0x13
push dword [ebp - 8]
call esi
test eax, eax
je 0x10009e46
lea eax, [ebp + 0x14]
push eax
push 4
lea eax, [ebp + 0x10]
push eax
push 0x14
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x10009e46
cmp dword [ebp + 0x10], 0
jne 0x10009e00
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xe
jmp 0x10009ee8
cmp byte [ebp + 0x18], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 8]
cmovne eax, dword [ebp - 0xc]
push 0
push dword [ebp - 0x10]
push 0x400
push 0
push 0
push 0
push ebx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10009ed2
lea esi, [eax + 5]
jmp 0x10009ee8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x10009ee8
mov esi, dword [ebp + 0x10]
cmp byte [ebp + 0x18], 0
je 0x10009eaa
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], 0x3c
mov dword [ebp - 0x64], 0x40
mov dword [ebp - 0x5c], 0x1001ba18
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x4c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10009e9d
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10009e9d
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10009eda
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 5
jmp 0x10009ee8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xac]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x10009e30
push dword [ebp - 0x28]
call edi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x1c]
push eax
mov dword [ecx], eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
xor esi, esi
test ebx, ebx
je 0x10009ef3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10009efe
push eax
call dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10009f08
push eax
call edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x10009f12
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret