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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov edi, eax
lea edx, [ebp - 0x404]
push 0x30c
push 0
push edx
call fcn.004aea20
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, 0x40
mov dword [ebp + eax - 0x54], ebx
mov dword [ebp + eax - 0x58], ebx
mov dword [ebp + eax - 0x5c], ebx
mov dword [ebp + eax - 0x60], ebx
sub eax, 0x10
jne 0x430854
movzx eax, byte [edi + 0x162]
mov dword [ebp - 0x50], 0x44
test al, 0x20
je 0x430907
test al, 8
jne 0x430897
push dword [edi + 0x60]
lea eax, [ebp - 0x404]
push eax
call fcn.0045b620
add esp, 8
jmp 0x4308b7
lea edx, [ebp - 0x404]
mov eax, dword [edi + 0x60]
push eax
push eax
push str._s__DEL__s
push edx
call fcn.0045b620
add esp, 0x10
and byte [edi + 0x162], 0xf7
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x64]
push eax
push edx
push ebx
push ebx
lea ecx, [ebp - 0x404]
push 0x4000000
push 1
push ebx
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x430a40
mov esi, ebx
push 0xffffffffffffffff
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x430a2a
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [edi + 0x162]
jmp 0x430909
mov esi, ebx
test al, 0x10
jne 0x43091a
mov ebx, eax
and ebx, 8
shr ebx, 3
jmp 0x430a06
push str.FOR_DEFAULT_PRINT_DEVICE
call fcn.0045bc70
pop ecx
mov dword [ebp - 0xf8], 0x94
lea ecx, [ebp - 0xf8]
mov edx, 0x4d26cc
test eax, eax
push ecx
jne 0x430941
mov eax, edx
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xe8], 1
mov eax, dword [ebp - 0x54]
jne 0x43096d
push eax
push dword [edi + 0x60]
lea eax, [ebp - 0x404]
push str.Command.com__C_COPY___s___s
push eax
call fcn.0045b620
jmp 0x430982
push eax
push dword [edi + 0x60]
lea eax, [ebp - 0x404]
push str.Cmd.exe__C_COPY___s___s
push eax
call fcn.0045b620
add esp, 0x10
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x64]
push eax
push edx
push ebx
push ebx
lea ecx, [ebp - 0x404]
push 0x4000000
push 1
push ebx
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x430aab
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x430a95
push 0xffffffffffffffff
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x430a7f
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x430a69
movzx eax, byte [edi + 0x162]
test al, 8
je 0x430a1b
cmp dword [edi + 0xe0], 0
je 0x430a0a
and eax, 0xfffffff7
mov byte [edi + 0x162], al
mov esi, 5
test ebx, ebx
je 0x430a1b
test al, 4
jne 0x430a1b
push dword [edi + 0x60]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x430a56
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov eax, esi
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe0], eax
mov esi, 0x1c
jmp 0x4308f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe0], eax
mov esi, 0x1c
jmp 0x4308e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe0], eax
mov esi, 0x1c
jmp 0x430a1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe0], eax
mov esi, 0x1c
jmp 0x4309e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe0], eax
mov esi, 0x1c
jmp 0x4309d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe0], eax
mov esi, 0x1c
jmp 0x4309bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe0], eax
movzx eax, byte [edi + 0x162]
mov esi, 0x1c
mov ebx, eax
and ebx, 8
shr ebx, 3
jmp 0x430a06