Function at 0x401610
Capabilities:
Create process on windows
Delete directory
Delete file

Disassembly:
mov eax, 0x894c
call fcn.00409160
mov ecx, dword [0x418a58]
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x254]
push 0x104
push eax
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea edx, [esp + 0x758]
lea eax, [esp + 0x658]
push edx
lea ecx, [esp + 0x55c]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x260]
push edx
push eax
call fcn.0040918f
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x558]
lea edx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x25c]
push str._s_s
push eax
call ebp
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0x10
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push ecx
push 0x412594
push edx
call ebp
mov edx, dword [esp + 0x896c]
lea eax, [esp + 0x15c]
lea ecx, [esp + 0x58]
push eax
push ecx
push edx
call fcn.00408a00
add esp, 0x18
test eax, eax
je 0x40189a
lea edi, [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401892
lea eax, [esp + 0x358]
lea ecx, [esp + 0x150]
push eax
push ecx
call fcn.004077d0
lea edx, [esp + 0x20]
push edx
push str.3BCD948EAC29ED7C2A3807A70C9697A7E7C1F9FD9ED8F8344FD8
call fcn.00408390
add esp, 0x10
lea eax, [esp + 0x358]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x4c]
push eax
push ecx
push edx
call ebp
lea eax, [esp + 0x58]
push 0x41989c
push eax
push 0x80000000
call fcn.00408440
add esp, 0x18
test eax, eax
jne 0x40189a
lea ecx, [esp + 0x358]
lea edx, [esp + 0x254]
push ecx
push edx
lea eax, [esp + 0x964]
push str._s_s
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x95c]
push ecx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
lea edi, [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x7fff
mov eax, ecx
mov esi, edi
mov edi, edx
push 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x41989c
and ecx, 3
lea edx, [esp + 0x58]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x968]
push ecx
push edx
call fcn.00402660
add esp, 0x14
cmp eax, 1
jne 0x401882
lea eax, [esp + 0x254]
push 0
push eax
lea ecx, [esp + 0x360]
push 0
push ecx
push 0
push 0
call ebx
lea edx, [esp + 0x18]
push edx
push str.3BCE252EE2C130E55023C591AB9B33D00FEE592AE55E71A0
call fcn.00408390
add esp, 8
lea eax, [esp + 0x358]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x95c]
push eax
push ecx
push edx
call ebp
lea eax, [esp + 0x58]
push eax
push str.3BC888177A7460F710EC91D820AF744D2C8776D4EF2FA4940AE82EAE0FBC983824DF83E4C11F64745A4CD2B45C678EB3EA2BCF6F277097D5ECCD2FD9CF88
call fcn.00408390
push 0x7fff
push 1
lea ecx, [esp + 0x978]
push 0x41989c
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.00402660
lea eax, [esp + 0x40]
push eax
push str.3BCD948EAC29ED7C2A3807A70C9697A7E7C1F9FD9ED8F8344FD8
call fcn.00408390
add esp, 0x30
lea ecx, [esp + 0x358]
lea edx, [esp + 0x18]
lea eax, [esp + 0x4c]
push ecx
push edx
push eax
call ebp
lea ecx, [esp + 0x864]
push 0x104
push ecx
push 0x41989c
lea edx, [esp + 0x64]
push 0x41989c
push edx
push 0x80000000
call fcn.004085b0
add esp, 0x24
jmp 0x40189a
lea eax, [esp + 0x95c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x40189a
mov byte [esp + 0x150], 0
mov esi, dword [esp + 0x10]
lea edi, [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], esi
jne 0x401698
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x894c
ret