Function at 0x40a0d0
Capabilities:
Create process on windows
Delete file
Set environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x40a0d8
push ebx
push esi
push edi
mov eax, dword [0x40b3ec]
mov byte [eax], 1
mov eax, 0x40a068
call fcn.004049e8
xor eax, eax
push ebp
push 0x40a4c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40b2c0]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x14]
call fcn.00409978
mov edx, dword [ebp - 0x14]
mov eax, 0x40c94c
call fcn.00403a60
lea edx, [ebp - 0x18]
mov eax, dword [0x40c94c]
call fcn.00409898
mov edx, dword [ebp - 0x18]
mov eax, 0x40c94c
call fcn.00403a60
mov eax, 0x40c950
mov edx, pe_nt_image_headers32
call fcn.00403ed0
push pe_nt_image_headers32
mov eax, dword [0x40c950]
call fcn.00403de8
push eax
mov eax, dword [0x40c94c]
call fcn.00403de8
push eax
call sub.kernel32.dll_GetShortPathNameA
mov edx, 0x40c950
xchg edx, eax
call fcn.00403ed0
mov eax, 0x40c94c
mov edx, dword [0x40c950]
call fcn.00403a60
xor eax, eax
mov dword [0x40c8f0], eax
xor eax, eax
mov dword [0x40c8f4], eax
mov bl, 1
xor eax, eax
push ebp
push 0x40a2bd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40a4d8
push 0xa
mov ecx, dword [0x40b338]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x408cd0]
call fcn.00409588
mov dword [0x40c8f0], eax
push 0x40a4ec
push 0xa
mov ecx, dword [0x40b338]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x408cd0]
call fcn.00409588
mov dword [0x40c8f4], eax
mov dl, 1
mov eax, dword [0x408c54]
call fcn.00403020
mov esi, eax
push 0
push 0
mov edx, dword [0x40c8f4]
mov eax, esi
call fcn.00408fb0
xor ecx, ecx
xor edx, edx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x14]
mov edx, 0x40a4fc
mov eax, esi
call fcn.00409e08
xor ecx, ecx
xor edx, edx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x14]
mov edx, 0x40c864
mov ecx, 0x8a
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, esi
call fcn.00409434
push 0
push 0
mov edx, dword [0x40c8f0]
mov eax, esi
call fcn.00408fb0
xor ecx, ecx
xor edx, edx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x14]
mov edx, 0x40a4fc
mov eax, esi
call fcn.00409e08
lea eax, [ebp - 0x20]
mov edx, 0x40c864
call fcn.00403c54
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov eax, dword [0x40c94c]
call fcn.00409f90
mov edx, dword [ebp - 0x1c]
mov eax, 0x40c954
call fcn.00403a60
mov edx, dword [0x40c954]
mov eax, esi
call fcn.004093b0
push 2
mov eax, dword [0x40c954]
call fcn.00403de8
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, esi
call fcn.00403050
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a2c9
xor eax, eax
push ebp
push 0x40a49e
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x40a47c
lea eax, [ebp - 0x24]
call fcn.00409a90
mov eax, dword [ebp - 0x24]
call fcn.00403de8
push eax
push 0x40a518
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, 0x40c950
call fcn.00403a0c
mov eax, dword [0x40c94c]
call fcn.00403c8c
mov esi, eax
dec esi
test esi, esi
jl 0x40a352
inc esi
xor edi, edi
mov eax, dword [0x40c94c]
mov bl, byte [eax + edi - 1]
cmp bl, 0x26
je 0x40a33f
lea eax, [ebp - 0x28]
mov edx, ebx
call fcn.00403bd8
mov edx, dword [ebp - 0x28]
mov eax, 0x40c950
call fcn.00403c94
jmp 0x40a34e
mov eax, 0x40c950
mov edx, 0x40a528
call fcn.00403c94
inc edi
dec esi
jne 0x40a318
mov eax, 0x40c94c
mov edx, dword [0x40c950]
call fcn.00403a60
mov eax, 0x40c8f8
xor ecx, ecx
mov edx, 0x44
call fcn.00402ac0
mov dword [0x40c8f8], 0x44
mov dword [0x40c924], 1
mov word [0x40c928], 0
mov eax, dword [0x40b44c]
cmp dword [eax], 2
jne 0x40a3ce
push 0x40a534
push dword [0x40c954]
push 0x40a548
lea eax, [ebp - 0x2c]
mov edx, dword [0x40b3b8]
mov edx, dword [edx]
call fcn.00403be8
push dword [ebp - 0x2c]
mov eax, 0x40c95c
mov edx, 4
call fcn.00403d4c
jmp 0x40a400
push 0x40a554
push dword [0x40c954]
push 0x40a548
lea eax, [ebp - 0x30]
mov edx, dword [0x40b3b8]
mov edx, dword [edx]
call fcn.00403be8
push dword [ebp - 0x30]
mov eax, 0x40c95c
mov edx, 4
call fcn.00403d4c
push 0x40c93c
push 0x40c8f8
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [0x40c95c]
call fcn.00403de8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x40a45f
push 0xffffffffffffffff
mov eax, dword [0x40c93c]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0x40c958
mov eax, dword [0x40c93c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [0x40c93c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x40c940]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x40c954]
call fcn.00403de8
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x40b2c0]
mov edx, dword [0x40c958]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a4a5
mov eax, dword [0x40c8f0]
call fcn.00403050
mov eax, dword [0x40c8f4]
call fcn.00403050
ret