Function at 0x4ae04d
Capabilities:
Create process on windows
Create process suspended
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xdc
push esi
mov esi, ecx
lea ecx, [ebp - 0x64]
call fcn.004340f1
lea eax, [ebp - 0x64]
push eax
lea ecx, [esi + 0x18]
lea edx, [ebp + 0x54]
call fcn.00410fe5
test al, al
jne 0x4ae083
lea ecx, [ebp - 0x64]
call fcn.00433ee8
or eax, 0xffffffff
jmp 0x4ae0f3
mov eax, dword [ebp + 0x54]
mov ecx, dword [eax + 0x168]
mov eax, dword [ebp - 8]
imul eax, eax, 0x7c
add eax, dword [ecx]
push edi
push eax
call fcn.004498b8
lea ecx, [esi + 0x28]
push eax
mov dword [ebp + 0x6c], eax
call fcn.004a101e
lea ecx, [ebp + 0x6c]
call fcn.004a0c7d
mov eax, dword [ebp + 0x54]
mov ecx, dword [eax + 0x28]
lea eax, [ebp - 0x64]
push eax
call fcn.004a0d21
push dword [eax + 0xb0]
lea edi, [esi + 0x24]
mov ecx, edi
call fcn.004a101e
mov ecx, edi
call fcn.004a0ff9
mov ecx, eax
call fcn.00482110
test al, al
je 0x4ae0f9
or dword [esi + 4], 0xffffffff
lea ecx, [ebp - 0x64]
mov byte [esi], 1
call fcn.00433ee8
or eax, 0xffffffff
pop edi
pop esi
add ebp, 0x78
leave
ret
push ebx
mov ecx, edi
call fcn.004a0ff9
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
mov edi, eax
xor ebx, ebx
pop ecx
pop ecx
cmp edi, ebx
jne 0x4ae123
or ebx, 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00433ee8
mov eax, ebx
pop ebx
jmp 0x4ae0f2
lea eax, [edi + 2]
push eax
lea ecx, [esi + 0x24]
call fcn.004a0ff9
sub edi, eax
sar edi, 1
push edi
push ebx
lea ecx, [esi + 0x24]
call fcn.004a0ff9
push eax
lea ecx, [ebp + 0x70]
call fcn.004a0faa
mov ecx, eax
call fcn.004a0ff9
push eax
lea eax, [ebp + 0x6c]
push 0x52e060
push eax
call fcn.004a1618
add esp, 0x10
push dword [eax]
lea ecx, [esi + 0x20]
call fcn.004a101e
lea ecx, [ebp + 0x6c]
call fcn.004a0c7d
lea ecx, [ebp + 0x70]
call fcn.004a0c7d
lea ecx, [esi + 0x28]
call fcn.004a0ff9
push eax
mov edi, 0x51a2f0
lea eax, [ebp + 0x68]
push edi
push eax
call fcn.004a1618
add esp, 0xc
lea ecx, [esi + 0x20]
call fcn.004a0ff9
push eax
lea eax, [ebp + 0x58]
push edi
push eax
call fcn.004a1618
add esp, 0xc
lea ecx, [ebp + 0x58]
call fcn.004a0ff9
push eax
lea ecx, [ebp + 0x68]
call fcn.004a0ff9
push eax
lea ecx, [esi + 0x1c]
call fcn.004a0ff9
push eax
lea eax, [ebp + 0x74]
push eax
call fcn.004a1618
add esp, 0x10
lea ecx, [ebp + 0x74]
call fcn.004a0ff9
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.004ad9a9
mov ecx, eax
call fcn.004a0ff9
push eax
lea eax, [ebp + 0x70]
push 0x52e050
push eax
call fcn.004a1618
add esp, 0x10
push dword [eax]
lea ecx, [ebp + 0x74]
call fcn.004a101e
lea ecx, [ebp + 0x70]
call fcn.004a0c7d
lea ecx, [ebp + 0x6c]
call fcn.004a0c7d
lea eax, [ebp + 0x60]
push eax
call fcn.004ad9a9
lea ecx, [esi + 0x20]
call fcn.004a0ff9
push eax
lea eax, [ebp + 0x70]
push 0x52e040
push eax
call fcn.004a1618
add esp, 0xc
push dword [eax]
lea edi, [esi + 0x2c]
mov ecx, edi
call fcn.004a101e
lea ecx, [ebp + 0x70]
call fcn.004a0c7d
mov ecx, edi
call fcn.00482458
mov ecx, edi
call fcn.004a0ff9
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
lea ecx, [esi + 0x20]
call fcn.004a0ff9
push eax
call edi
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea ecx, [esi + 0x2c]
call fcn.004a0ff9
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push ebx
lea eax, [ebp + 0x5c]
push eax
call edi
push eax
push dword [esi + 0x30]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 2
push 1
push ebx
lea eax, [ebp + 0x64]
push eax
call edi
push eax
push dword [esi + 0x30]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
lea ecx, [esi + 0x2c]
call fcn.004a0ff9
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0x44
mov dword [esi + 0x30], eax
lea eax, [ebp]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
lea edi, [ebp + 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x64]
push 0xfffffffffffffff6
mov dword [ebp], 0x44
mov dword [ebp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp + 0x38], eax
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x8004000
push 1
push ebx
push ebx
lea ecx, [ebp + 0x74]
mov dword [ebp + 0x2c], 0x100
mov byte [esi], 1
call fcn.004a0ff9
push eax
lea ecx, [ebp + 0x60]
call fcn.004a0ff9
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp + 0x5c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4ae3ad
call edi
push dword [ebp + 0x64]
call edi
mov eax, dword [ebp + 0x4c]
push dword [ebp + 0x48]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x44]
mov dword [esi + 8], eax
call edi
lea ecx, [ebp + 0x60]
call fcn.004a0c7d
lea ecx, [ebp + 0x74]
call fcn.004a0c7d
lea ecx, [ebp + 0x58]
call fcn.004a0c7d
lea ecx, [ebp + 0x68]
call fcn.004a0c7d
jmp 0x4ae116
call edi
push dword [ebp + 0x64]
call edi
push dword [esi + 0x30]
call edi
or dword [esi + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4ae388