Function at 0x4020cc
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x4020d4
push ecx
push ebx
push esi
push edi
mov eax, 0x40209c
call fcn.00401b54
xor eax, eax
push ebp
push 0x402361
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, 0x402378
call fcn.00401f48
mov eax, dword [ebp - 0x14]
call fcn.00402020
mov edi, eax
test edi, edi
jle 0x402346
mov ebx, 1
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00401ff8
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x402384
call fcn.00401798
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00401f48
mov edx, dword [ebp - 0x18]
mov eax, 0x404680
call fcn.00401688
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.00401ff8
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x402390
call fcn.00401798
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00401f48
mov edx, dword [ebp - 0x24]
mov eax, 0x404684
call fcn.00401688
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.00401ff8
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x40239c
call fcn.00401798
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00401f48
mov eax, dword [ebp - 0x30]
call fcn.00402020
mov esi, eax
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.00401ff8
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov edx, 0x4023a8
call fcn.00401798
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00401f48
mov edx, dword [ebp - 0x3c]
mov eax, 0x404688
call fcn.00401688
cmp esi, 6
ja case.0x4021e9.0
jmp dword [esi*4 + 0x4021f0]
lea eax, [ebp - 0x48]
call fcn.00401df4
mov edx, dword [ebp - 0x48]
mov eax, 0x40468c
call fcn.00401688
jmp case.0x4021e9.0
lea eax, [ebp - 0x4c]
call fcn.00401cdc
mov edx, dword [ebp - 0x4c]
mov eax, 0x40468c
call fcn.00401688
jmp case.0x4021e9.0
lea eax, [ebp - 0x50]
call fcn.00401d68
mov edx, dword [ebp - 0x50]
mov eax, 0x40468c
call fcn.00401688
jmp case.0x4021e9.0
lea eax, [ebp - 0x54]
call fcn.00401e28
mov edx, dword [ebp - 0x54]
mov eax, 0x40468c
call fcn.00401688
jmp case.0x4021e9.0
lea eax, [ebp - 0x58]
call fcn.00401eb8
mov edx, dword [ebp - 0x58]
mov eax, 0x40468c
call fcn.00401688
jmp case.0x4021e9.0
lea eax, [ebp - 0x5c]
call fcn.00401cb4
mov edx, dword [ebp - 0x5c]
mov eax, 0x40468c
call fcn.00401688
push 0
push 2
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x60]
mov ecx, dword [0x404684]
mov edx, dword [0x40468c]
call fcn.00401798
mov eax, dword [ebp - 0x60]
call fcn.004018c0
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x40233e
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
push 0
push 0x404690
mov eax, dword [0x404680]
call fcn.0040174c
push eax
mov eax, 0x404680
call fcn.0040190c
push eax
push esi
call sub.kernel32.dll_WriteFile
push esi
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x404688]
mov edx, 0x4023b4
call fcn.0040180c
jne 0x40233e
push 1
push 0
push 0
lea eax, [ebp - 0x64]
mov ecx, dword [0x404684]
mov edx, dword [0x40468c]
call fcn.00401798
mov eax, dword [ebp - 0x64]
call fcn.004018c0
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
inc ebx
dec edi
jne 0x40211b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402368
lea eax, [ebp - 0x64]
mov edx, 0x15
call fcn.00401658
ret