Function at 0x401000
Capabilities:
Create process on windows
Create process suspended
Get common file path
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419573
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], esi
call fcn.00417d43
mov edi, dword [eax + 4]
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.00401d80
mov ecx, dword [edi + 0x88]
lea edx, [ebp - 0x54]
push ecx
push eax
push edx
mov dword [ebp - 4], 0
call fcn.00411016
push 0x421248
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00411016
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00410e74
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00410e74
mov eax, dword [0x42584c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 6
push ecx
push 0x108
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4010ad
lea edx, [ebp - 0x328]
push edx
jmp 0x4010b2
push str.c:_temp
lea ecx, [ebp - 0x18]
call fcn.00410fb1
push ecx
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x48], esp
push eax
call fcn.00410be9
mov ecx, esi
call fcn.00401e90
mov edi, eax
push str.regy
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x48], edi
call fcn.00410ee2
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 7
test eax, eax
jne 0x4010fa
push str.regn
lea ecx, [ebp - 0x20]
call fcn.00410fb1
mov ecx, dword [0x426c68]
mov edx, dword [0x426c50]
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x18]
push edi
push edx
push eax
push ecx
lea edx, [ebp - 0x1c]
push str._s_s__d__d_s
push edx
call fcn.004102e6
add esp, 0x1c
lea eax, [ebp - 0x50]
lea edx, [ebp - 0x28]
push eax
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push edx
call fcn.00410be9
mov ecx, esi
call fcn.00401b30
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
je 0x401712
mov ebx, dword [0x426c9c]
mov eax, dword [0x426ca0]
mov ecx, dword [ebp - 0x50]
add eax, ebx
cmp ecx, eax
je 0x401170
push 0
push 0x10
push str.Exe_file_is_corrupt
call fcn.00417296
jmp 0x401712
mov eax, dword [0x426c54]
add ebx, edi
cmp eax, 2
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x30], 0
jne 0x4011dd
push 0x426c6c
lea ecx, [ebp - 0x24]
push 0
push ecx
mov ecx, esi
call fcn.00401770
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x104]
push edx
mov byte [ebp - 4], 8
call fcn.00401ed0
mov eax, dword [0x426ca0]
push ebx
push eax
push ebx
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 9
call fcn.00402200
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 8
call fcn.004020e0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.00410e74
mov eax, dword [0x426c54]
test eax, eax
jbe 0x40125e
mov ecx, dword [0x426cb0]
push 1
push ecx
call fcn.004051d7
add esp, 8
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x40121a
push edi
call fcn.0040518f
add esp, 4
push 0
push 0x10
push str.Insufficient_Memory
call fcn.00417296
jmp 0x401712
mov ecx, dword [0x426cb0]
mov edx, dword [0x426cac]
mov edi, eax
mov eax, ecx
lea esi, [edx + ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x426cac]
mov ecx, dword [0x426cb0]
mov esi, dword [ebp - 0x2c]
lea edi, [edx + ebx]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
call fcn.00410be9
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], 0
push ecx
mov byte [ebp - 4], 0xb
call fcn.0040fcbc
mov edx, dword [ebp - 0x14]
add esp, 4
lea ecx, [ebp - 0x44]
push 0x1001
push edx
call fcn.00411317
mov eax, dword [0x426cb8]
lea ecx, [ebp - 0x44]
push eax
push ebx
mov byte [ebp - 4], 0xc
call fcn.004115cb
lea ecx, [ebp - 0x44]
call fcn.0041168f
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 0xb
call fcn.004113b7
jmp 0x4012d9
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x21c]
push ecx
push edx
mov dword [ebp - 4], 0xa
call fcn.00410957
test eax, eax
jne 0x4013b9
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4013b9
push 0x4211f4
lea ecx, [ebp - 0x18]
call fcn.00410fb1
mov eax, dword [0x426c68]
mov ecx, dword [ebp - 0x48]
mov edx, dword [0x426c50]
push eax
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x18]
push edx
push eax
push ecx
lea edx, [ebp - 0x1c]
push str._s_s__d__d_s
push edx
call fcn.004102e6
add esp, 0x1c
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
call fcn.00410f61
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], 0
push ecx
mov byte [ebp - 4], 0xe
call fcn.0040fcbc
mov edx, dword [ebp - 0x14]
add esp, 4
lea ecx, [ebp - 0x44]
push 0x1001
push edx
call fcn.00411317
mov eax, dword [0x426cb8]
lea ecx, [ebp - 0x44]
push eax
push ebx
mov byte [ebp - 4], 0xf
call fcn.004115cb
lea ecx, [ebp - 0x44]
call fcn.0041168f
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 0xe
call fcn.004113b7
jmp 0x4013b2
mov dword [ebp - 4], 0xa
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x21c]
push ecx
push edx
call fcn.00410957
test eax, eax
jne 0x4013f8
mov eax, dword [ebp - 0x24]
push 0
test eax, eax
push 0x10
jne 0x4013e8
push str.Failed_to_write_temp_file__is_your_hard_disk_full__
call fcn.00417296
push edi
jmp 0x4014e1
push str.Failed_to_get_status_of_temp_file
call fcn.00417296
push edi
jmp 0x4014e1
push ecx
mov ecx, dword [0x426cb4]
mov eax, esp
mov dword [ebp - 0x34], esp
mov dword [eax], ecx
lea ecx, [ebp - 0x21c]
call fcn.00401760
test eax, eax
jne 0x401432
mov edx, dword [0x426cb4]
push ecx
mov eax, esp
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x34], esp
mov dword [eax], edx
call fcn.00401760
test eax, eax
je 0x401483
mov eax, dword [0x426cb4]
mov dl, byte [ebp - 0x20c]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
or dl, 2
push eax
push ecx
mov byte [ebp - 0x20c], dl
mov byte [ebp - 4], 0x11
call fcn.00410abc
jmp 0x40147c
mov dword [ebp - 4], 0xa
mov eax, dword [0x426c54]
test eax, eax
jbe 0x40165d
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0xd8]
lea edx, [ebp - 0x44]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xd8]
mov ecx, dword [ebp - 0x14]
push edx
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
push ecx
mov dword [ebp - 0xd8], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4014f7
push eax
push 0x10
push str.Failed_to_setup_exe_file__step_1_
call fcn.00417296
mov edx, dword [ebp + 8]
push edx
call fcn.0040518f
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040518f
add esp, 8
jmp 0x401706
mov ecx, dword [ebp - 0x3c]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x401541
push eax
push 0x10
push str.Failed_to_setup_exe_file__step_2_
call fcn.00417296
mov edx, dword [ebp + 8]
push edx
call fcn.0040518f
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040518f
mov ecx, dword [ebp - 0x44]
add esp, 8
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x401706
mov ebx, dword [0x426ca8]
mov eax, dword [0x426cb0]
cmp ebx, eax
mov dword [ebp - 0x2c], 0
jbe 0x401559
mov ebx, eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [0x426ca4]
lea edx, [ebp - 0x2c]
push edx
push ebx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4015ee
cmp dword [ebp - 0x2c], ebx
jne 0x4015ee
mov edx, dword [ebp + 8]
push edx
call fcn.0040518f
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040518f
mov ecx, dword [ebp - 0x40]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x4015ab
push 0
push 0x10
push str.Failed_to_setup_exe_file__step_4_
call fcn.00417296
mov ecx, esi
call fcn.00401d20
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call ebx
mov ecx, esi
call fcn.00401d20
lea edx, [ebp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4015de
cmp dword [ebp + 8], 0x103
je 0x4015b8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
jmp 0x4016fe
mov ecx, dword [0x42584c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x13
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push str.Failed_to_setup_exe_file__step_3____Error__d__Written_d
push eax
call fcn.004102e6
mov ecx, dword [ebp - 0x24]
add esp, 0x10
push 0
push 0x10
push ecx
call fcn.00417296
mov edx, dword [ebp + 8]
push edx
call fcn.0040518f
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040518f
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x44]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.00410e74
jmp 0x401706
push edi
call fcn.0040518f
mov edx, dword [ebp - 0x14]
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x94]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x3c
push eax
mov dword [ebp - 0x90], 0x40
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x78], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x4016b9
push eax
push 0x10
push str.Failed_to_launch_application
call fcn.00417296
jmp 0x401706
mov edi, dword [ebp - 0x5c]
mov ecx, esi
call fcn.00401d20
test edi, edi
je 0x401706
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call ebx
mov ecx, esi
call fcn.00401d20
lea ecx, [ebp + 8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4016f3
cmp dword [ebp + 8], 0x103
je 0x4016cd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
call fcn.0040fcbc
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00410e74
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00410e74
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00410e74
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00410e74
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00410e74
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4