Function at 0x4012f3
Capabilities:
Create process on windows
Delete file
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xe48
push ebx
push edi
lea eax, [ebp - 0x4d4]
push 0x104
push eax
lea ebx, [ebp - 0x1c8]
lea eax, [ebp - 0x9d8]
call section..text
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
jne 0x401753
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x60]
push eax
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x5c], edi
call fcn.004011ea
add esp, 0xc
cmp eax, edi
jne 0x401753
push esi
push 0x400
lea eax, [ebp - 0x8d4]
push edi
push eax
call fcn.00403810
mov esi, dword [ebp + 0x6c]
add esp, 0xc
cmp dword [esi + 4], edi
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x68], edi
jle 0x4015dd
add esi, 0x10c
test byte [esi - 4], 2
je 0x4013b2
lea eax, [esi - 0x104]
push eax
lea eax, [ebp - 0x8d4]
push eax
call fcn.00402fc0
lea eax, [ebp - 0x8d4]
push eax
push str.Name_of_target_executable:__s.
push dword [0x40d040]
call fcn.004017c4
add esp, 0x14
lea eax, [esi - 0x104]
push eax
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x2cc]
push str._s_s
push eax
call fcn.00402349
add esp, 0x10
lea ebx, [ebp]
movzx eax, byte [esi + edi + 0x20]
push eax
lea eax, [ebp + 0x50]
push str._02x
push eax
call fcn.00402349
push 2
lea eax, [ebp + 0x50]
push eax
push ebx
call fcn.004034d0
add esp, 0x18
inc edi
inc ebx
inc ebx
cmp edi, 0x10
jl 0x4013d7
lea eax, [ebp - 0x2cc]
push 0x40b5f8
push eax
mov byte [ebp + 0x20], 0
call fcn.00402336
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x40143e
lea eax, [esi - 0x104]
push eax
push str.Error_opening_file__s_for_writing__Skipping_file.
push dword [0x40d040]
call fcn.004017c4
add esp, 0xc
jmp 0x4015be
mov edi, dword [esi + 4]
mov eax, dword [ebp + 0x60]
add edi, dword [eax + 0xc]
lea eax, [ebp - 0xc4]
add edi, dword [ebp + 0x5c]
push eax
call fcn.00401831
push dword [esi]
lea eax, [ebp - 0xc4]
push edi
push eax
call fcn.00402108
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.004021bb
push ebx
push dword [esi]
push 1
push edi
call fcn.00403476
mov edi, eax
add esp, 0x28
cmp edi, dword [esi]
je 0x4014af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
lea eax, [ebp - 0x2cc]
push edi
push eax
push str.Error_writing__s:__i____i_bytes_written._Error_Code:__i_n
push dword [0x40d040]
call fcn.004017c4
add esp, 0x18
jmp 0x4014b6
push ebx
call fcn.00402289
pop ecx
xor edi, edi
lea ebx, [ebp - 0x28]
movzx eax, byte [ebp + edi + 0x28]
push eax
lea eax, [ebp + 0x48]
push str._02x
push eax
call fcn.00402349
push 2
lea eax, [ebp + 0x48]
push eax
push ebx
call fcn.004034d0
add esp, 0x18
inc edi
inc ebx
inc ebx
cmp edi, 0x10
jl 0x4014bb
push 0x10
lea eax, [esi + 0x20]
push eax
lea eax, [ebp + 0x28]
push eax
mov byte [ebp - 8], 0
call fcn.004030f0
add esp, 0xc
test eax, eax
jne 0x401520
lea eax, [ebp]
push eax
lea eax, [esi - 0x104]
push eax
push str.MD5_Checksums_of__s_match.__CheckSum_of_original:__s_
push dword [0x40d040]
call fcn.004017c4
add esp, 0x10
jmp 0x401542
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
lea eax, [esi - 0x104]
push eax
push str.Error:_MD5_Checksums_of__s_do_NOT_match:__s____s
push dword [0x40d040]
call fcn.004017c4
add esp, 0x14
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push 0x40000000
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401580
lea eax, [esi + 8]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4015a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2cc]
push eax
push str.Error_couldnt_open__s_while_trying_to_change_modification_time._Error_Code:__i_n
push dword [0x40d040]
call fcn.004017c4
add esp, 0x10
mov eax, dword [esi - 4]
test al, 1
je 0x4015b1
lea ecx, [esi - 0x104]
mov dword [ebp + 0x64], ecx
test al, 2
je 0x4015be
lea eax, [esi - 0x104]
mov dword [ebp + 0x58], eax
inc dword [ebp + 0x68]
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x68]
add esi, 0x134
xor edi, edi
cmp ecx, dword [eax + 4]
jl 0x40137f
cmp dword [ebp + 0x64], edi
jne 0x4015ea
mov eax, dword [0x40d040]
push eax
push str._s:_failed__no_helper_application_included__exit._n
jmp 0x4015fa
cmp dword [ebp + 0x58], edi
jne 0x40160a
mov eax, dword [0x40d040]
push eax
push str._s:_failed__no_target_application_included__exit._n
push eax
call fcn.004017c4
add esp, 0xc
push 1
call fcn.0040332f
push 0x400
lea eax, [ebp - 0xdd8]
push edi
push eax
call fcn.00403810
lea eax, [ebp - 0x8d4]
push eax
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0xdd8]
push 0x40b454
push eax
call fcn.00402349
push 0x44
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.00403810
push 0x10
lea eax, [ebp + 0x38]
push edi
push eax
call fcn.00403810
add esp, 0x34
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x1c8]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xdd8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4016af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xdd8]
push eax
push str.Unable_to_execute__s_Error_Code:__i__exit._n
push dword [0x40d040]
call fcn.004017c4
xor eax, eax
add esp, 0x10
inc eax
jmp 0x401752
push 0xffffffffffffffff
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x104
lea eax, [ebp - 0x3d0]
push edi
push eax
call fcn.00403810
mov esi, dword [ebp + 0x6c]
add esp, 0xc
xor ebx, ebx
cmp dword [esi + 4], edi
jle 0x401740
lea edi, [esi + 8]
push edi
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x3d0]
push str._s_s
push eax
call fcn.00402349
add esp, 0x10
lea eax, [ebp - 0x3d0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
je 0x401719
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Could_not_delete_file__s_Error_Code:__i__exit._n
jmp 0x401726
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.File_deleted__s_Error_Code:__i__exit._n
push dword [0x40d040]
call fcn.004017c4
add esp, 0x10
inc ebx
add edi, 0x134
cmp ebx, dword [esi + 4]
jl 0x4016dc
push dword [ebp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x3c]
call esi
xor eax, eax
pop esi
pop edi
pop ebx
add ebp, 0x70
leave
ret