Function at 0x4a0930
Capabilities:
Create process on windows
Delete file
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
mov esi, eax
lea edx, [ebp - 0x400]
push 0x30c
push 0
push edx
call fcn.004e2770
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x60], 0x44
movzx eax, byte [esi + 0x15a]
test al, 0x20
je 0x4a0a4b
test al, 8
jne 0x4a09bd
push dword [esi + 0x60]
lea eax, [ebp - 0x400]
push eax
call fcn.004d2c54
add esp, 8
jmp 0x4a09dd
lea edx, [ebp - 0x400]
mov eax, dword [esi + 0x60]
push eax
push eax
push str._s__DEL__s
push edx
call fcn.004d2c54
add esp, 0x10
and byte [esi + 0x15a], 0xf7
lea ecx, [ebp - 0x400]
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
push edx
push ebx
push ebx
push 0x4000000
push 1
push ebx
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4a0a08
xor ebx, ebx
jmp 0x4a0a19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xd8], eax
mov ebx, 0x1c
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4a0a39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xd8], eax
mov ebx, 0x1c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [esi + 0x15a]
jmp 0x4a0a4d
xor ebx, ebx
test al, 0x10
jne 0x4a0a5e
mov edx, eax
and edx, 8
shr edx, 3
jmp 0x4a0b95
push str.FOR_DEFAULT_PRINT_DEVICE
call fcn.004d29b8
pop ecx
mov edi, eax
mov dword [ebp - 0xf4], 0x94
lea edx, [ebp - 0xf4]
mov eax, 0x4fcaf4
test edi, edi
push edx
jne 0x4a0a87
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xe4]
cmp eax, 1
jne 0x4a0aaf
lea eax, [ebp - 0x400]
push edi
push dword [esi + 0x60]
push str.Command.com__C_COPY___s___s
push eax
call fcn.004d2c54
jmp 0x4a0ac4
lea eax, [ebp - 0x400]
push edi
push dword [esi + 0x60]
push str.Cmd.exe__C_COPY___s___s
push eax
call fcn.004d2c54
add esp, 0x10
lea ecx, [ebp - 0x400]
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x1c]
push eax
xor edi, edi
push edx
push edi
push edi
push 0x4000000
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4a0b13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xd8], eax
movzx eax, byte [esi + 0x15a]
mov ebx, 0x1c
mov edx, eax
and edx, 8
shr edx, 3
jmp 0x4a0b95
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4a0b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xd8], eax
mov ebx, 0x1c
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x4a0b52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xd8], eax
mov ebx, 0x1c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4a0b70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xd8], eax
mov ebx, 0x1c
movzx eax, byte [esi + 0x15a]
test al, 8
je 0x4a0bbb
mov edx, dword [esi + 0xd8]
test edx, edx
je 0x4a0b99
and eax, 0xfffffff7
mov byte [esi + 0x15a], al
mov ebx, 5
xor edx, edx
test edx, edx
je 0x4a0bbb
test al, 4
jne 0x4a0bbb
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4a0bbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xd8], eax
mov ebx, 0x1c
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret