Function at 0x40109d
Capabilities:
Create process on windows
Set console window title
Write and execute a file
Write file on windows

Disassembly:
push 0x9c
mov eax, 0x4188aa
call fcn.00418189
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], edx
call fcn.00401e70
call fcn.00401e70
mov dword [ebp - 0xa8], eax
call fcn.00401e70
mov dword [ebp - 0xa4], eax
call fcn.00401040
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xa0], eax
call fcn.00401040
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x9c], eax
call fcn.00401e70
mov ecx, eax
test ecx, ecx
jne 0x401115
mov edi, esi
jmp 0x40113e
mov edx, dword [ebp - 0x18]
lea eax, [ecx + edx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jbe 0x40112c
mov edx, esi
mov dword [ebp - 0x14], esi
jmp 0x401131
sub eax, ecx
mov dword [ebp - 0x14], eax
shr ecx, 1
dec ecx
push ecx
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x98], edi
call fcn.00401040
mov ecx, dword [ebp - 0x18]
mov ebx, eax
sub ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x94], ebx
cmp ecx, dword [ebp - 0x90]
ja 0x4012a5
cmp byte [0x421550], 0
jne 0x40117d
push 0x41ead0
call fcn.00405928
pop ecx
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push dword [ebp - 0xa0]
mov ecx, 0x4208c0
call fcn.00401d85
push 0x40
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x70], 0x44
push esi
push eax
call fcn.004039e0
add esp, 0xc
mov dword [ebp - 0x84], esi
lea eax, [ebp - 0x74]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x74], esi
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push edi
push dword [ebp - 0xa4]
push esi
push esi
push esi
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
jne 0x401205
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test ebx, ebx
jne 0x401245
cmp dword [0x420938], 8
mov eax, 0x420924
cmovae eax, dword [0x420924]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push esi
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4012a5
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x84]
mov dword [0x42155c], eax
mov eax, dword [ebp - 0x7c]
mov dword [0x421560], eax
mov eax, dword [ebp - 0xa8]
mov dword [0x421564], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test eax, eax
je 0x40127d
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x78]
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
push eax
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
call fcn.00418147
ret 4