Function at 0x100098a9
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x266c
call sub.ntdll.dll__chkstk
lea eax, [esp + 0x60]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ax, word [esp + 0x70]
lea ebx, [esp + 0x70]
mov edx, ebp
test ax, ax
je 0x100098f9
movzx eax, ax
mov ecx, ebp
cmp ax, 0x5c
jne 0x100098eb
lea ebx, [esp + 0x72]
add ebx, ecx
inc edx
lea ecx, [edx + edx]
movzx eax, word [esp + ecx + 0x70]
test ax, ax
jne 0x100098df
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov word [ebx - 2], ax
call esi
push eax
push str._d.cmd
lea eax, [esp + 0x680]
push 0x400
push eax
call fcn.1000ad60
add esp, 0x10
call esi
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.1000ad26
lea edi, [eax + 1]
push ebp
push ebp
push ebp
push ebp
push edi
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0xfde9
call ebp
mov esi, eax
mov ecx, esi
call fcn.1000ad8b
xor ecx, ecx
push ecx
push ecx
push esi
push eax
push edi
push ebx
xor esi, esi
push esi
mov ebx, 0xfde9
push ebx
mov dword [esp + 0x30], eax
call ebp
lea ecx, [esp + 0x678]
call fcn.1000ad26
lea edi, [eax + 1]
push esi
push esi
push esi
push esi
push edi
mov eax, ecx
push eax
push esi
push ebx
call ebp
mov esi, eax
mov ecx, esi
call fcn.1000ad8b
xor ecx, ecx
push ecx
push ecx
push esi
mov ebx, eax
push ebx
push edi
lea eax, [esp + 0x68c]
push eax
push ecx
push 0xfde9
call ebp
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
push ebx
push eax
push ebp
push ebp
push eax
push ebp
push str.attrib__r__s__h___s__r_n:_d_r_ndel___s__r_nif_exist___s__goto__d_r_ndel__s_r_n
push 0x400
lea eax, [esp + 0x298]
push eax
call fcn.1000ae5f
add esp, 0x24
mov ecx, ebx
call fcn.1000ad9b
mov ecx, ebp
call fcn.1000ad9b
xor ebx, ebx
mov esi, ebx
cmp byte [esp + 0x278], bl
je 0x100099f0
inc esi
cmp byte [esp + esi + 0x278], bl
jne 0x100099e6
lea eax, [esp + 0x678]
push eax
lea eax, [esp + 0x74]
push eax
push str._s_s
mov ebp, 0x400
lea eax, [esp + 0x1684]
push ebp
push eax
call fcn.1000ad60
add esp, 0x14
lea eax, [esp + 0x1678]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10009b04
push ebx
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x284]
push eax
push edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
lea eax, [esp + 0x2c]
push 0x40
push ebx
push eax
call sub.ntdll.dll_memset
xor eax, eax
mov dword [esp + 0x24], ebx
lea edi, [esp + 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push ebp
lea eax, [esp + 0xe7c]
push eax
mov dword [esp + 0x30], 0x44
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, str.cmd.exe
lea ecx, [esp + 0xe78]
call fcn.1000ad37
lea eax, [esp + 0x678]
push eax
push str._C__s
lea eax, [esp + 0x1e80]
push ebp
push eax
call fcn.1000ad60
add esp, 0x10
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x78]
push eax
push ebx
push 0xc000000
push ebx
push ebx
push ebx
lea eax, [esp + 0x1e98]
push eax
lea eax, [esp + 0xe9c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10009b04
push dword [esp + 0x1c]
call esi
push dword [esp + 0x18]
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x266c
ret