Function at 0x40c590
Capabilities:
Create process on windows
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42ab06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
mov edx, dword [0x435654]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x2a8], 1
mov dword [esp + 0x18], edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19d]
mov byte [esp + 0x19c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x99]
mov byte [esp + 0x98], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x2c0]
mov ebp, dword [esp + 0x2bc]
cmp edi, ebx
mov byte [esp + 0x2a8], 3
jne 0x40c624
mov edi, ebp
mov ecx, dword [esp + 0x2b4]
lea eax, [esp + 0x19c]
push eax
push ebp
push ecx
call fcn.00406200
lea edx, [esp + 0x1a8]
push edx
call fcn.004056e0
add esp, 0x10
test eax, eax
jne 0x40c6e1
lea eax, [esp + 0x19c]
push eax
call fcn.004061d0
mov ebp, eax
push ebp
call fcn.004056e0
add esp, 8
test eax, eax
jne 0x40c6cb
mov ecx, dword [esp + 0x2bc]
mov dx, word [esi + 0x4d6]
mov eax, dword [esi + 0x4d0]
push ecx
push 0xe
push edx
push eax
call fcn.00406fa0
add esp, 0xc
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00420183
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
push 2
call fcn.0040cdb0
mov esi, dword [esp + 0x2b0]
push 0x438904
mov ecx, esi
call fcn.00424c85
mov dword [esp + 0x1c], 1
jmp 0x40c8df
lea eax, [esp + 0x19c]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [esp + 0x2bc]
mov eax, dword [esp + 0x2b8]
cmp byte [eax], bl
jne 0x40c74a
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0040ffd0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2ac], 4
call fcn.00424d04
lea ecx, [esp + 0x24]
mov byte [esp + 0x2a8], 3
call fcn.00424c17
mov edx, dword [esp + 0x14]
push 0x438904
push edx
call fcn.00414977
add esp, 8
test eax, eax
je 0x40c8ba
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x98]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40c75c
lea edx, [esp + 0x98]
push edx
push edi
push eax
call fcn.00406200
add esp, 0xc
lea eax, [esp + 0x98]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x98]
lea edx, [esp + 0x19c]
push ecx
push edx
lea eax, [esp + 0x20]
push str.EXPAND___s____s_
push eax
call fcn.00420183
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x64]
add esp, 0x10
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x54]
push ecx
push edx
push ebx
push ebx
push 0xc000020
push ebx
push ebx
push ebx
push eax
push ebx
mov dword [esp + 0x7c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
je 0x40c874
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, ebx
je 0x40c874
mov eax, dword [esp + 0x20]
cmp eax, 0x103
jne 0x40c82a
push ebx
push ebx
push ebx
lea ecx, [esp + 0x44]
push ebx
push ecx
call edi
test eax, eax
je 0x40c7d4
call fcn.00428680
mov eax, dword [eax + 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x5c]
test eax, eax
je 0x40c7d4
push ebx
push ebx
push ebx
lea eax, [esp + 0x44]
push ebx
push eax
call edi
test eax, eax
jne 0x40c806
jmp 0x40c7d4
cmp eax, ebx
je 0x40c85d
mov dx, word [esi + 0x4d6]
mov eax, dword [esi + 0x4d0]
push ebp
push 0x11
push edx
push eax
call fcn.00406fa0
add esp, 0xc
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00420183
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
jmp 0x40c8a1
lea eax, [esp + 0x98]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, ebx
jne 0x40c8c1
mov cx, word [esi + 0x4d6]
mov edx, dword [esi + 0x4d0]
push ebp
push 0x11
push ecx
push edx
call fcn.00406fa0
add esp, 0xc
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00420183
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push 6
mov ecx, esi
call fcn.0040cdb0
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
je 0x40c8ba
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x438904
jmp 0x40c8c9
lea edx, [esp + 0x98]
push edx
mov esi, dword [esp + 0x2b4]
mov ecx, esi
call fcn.00424c85
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a8], 2
call fcn.00424c17
lea ecx, [esp + 0x18]
mov byte [esp + 0x2a8], 1
call fcn.00424c17
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a8], bl
call fcn.00424c17
mov ecx, dword [esp + 0x2a0]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x29c
ret 0x14