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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
lea edx, [ebp - 0x404]
push 0x30c
push 0
push edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov edi, eax
mov dword [ebp - 8], esi
call fcn.004b5770
add esp, 0xc
xor ebx, ebx
mov eax, 0x40
mov dword [ebp - 0x10], ebx
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 0x4376b4
movzx eax, byte [edi + 0x16a]
test al, 0x20
mov dword [ebp - 0x50], 0x44
je 0x437768
test al, 8
jne 0x4376f7
push dword [edi + 0x60]
lea eax, [ebp - 0x404]
push eax
call fcn.00470040
add esp, 8
jmp 0x437718
push dword [edi + 0x60]
push dword [edi + 0x60]
push str._s__DEL__s
lea eax, [ebp - 0x404]
push eax
call fcn.00470040
add esp, 0x10
and byte [edi + 0x16a], 0xf7
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x50]
push edx
push ebx
push ebx
push 0x4000000
push 1
push ebx
push ebx
lea ecx, [ebp - 0x404]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4378a3
mov esi, ebx
push 0xffffffffffffffff
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x43788d
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [edi + 0x16a]
jmp 0x43776a
mov esi, ebx
test al, 0x10
jne 0x43777b
mov ebx, eax
and ebx, 8
shr ebx, 3
jmp 0x437869
push str.FOR_DEFAULT_PRINT_DEVICE
call fcn.0046f3d0
add esp, 4
test eax, eax
mov edx, 0x4d8494
mov dword [ebp - 0xf8], 0x94
lea ecx, [ebp - 0xf8]
jne 0x4377a3
mov eax, edx
mov dword [ebp - 0x54], eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0xe8], 1
jne 0x4377d0
push eax
push dword [edi + 0x60]
push str.Command.com__C_COPY___s___s
lea eax, [ebp - 0x404]
push eax
call fcn.00470040
jmp 0x4377e5
push eax
push dword [edi + 0x60]
push str.Cmd.exe__C_COPY___s___s
lea eax, [ebp - 0x404]
push eax
call fcn.00470040
add esp, 0x10
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x50]
push edx
push ebx
push ebx
push 0x4000000
push 1
push ebx
push ebx
lea ecx, [ebp - 0x404]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x43790e
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4378f8
push 0xffffffffffffffff
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x4378e2
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4378cc
movzx eax, byte [edi + 0x16a]
test al, 8
je 0x43787e
cmp dword [edi + 0xe8], 0
je 0x43786d
and eax, 0xfffffff7
mov esi, 5
mov byte [edi + 0x16a], al
test ebx, ebx
je 0x43787e
test al, 4
jne 0x43787e
push dword [edi + 0x60]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4378b9
mov eax, esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov esi, 0x1c
jmp 0x437756
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov esi, 0x1c
jmp 0x437743
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov esi, 0x1c
jmp 0x43787e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov esi, 0x1c
jmp 0x437847
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov esi, 0x1c
jmp 0x437836
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov esi, 0x1c
jmp 0x437822
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xe8], eax
mov esi, 0x1c
movzx eax, byte [edi + 0x16a]
mov ebx, eax
and ebx, 8
shr ebx, 3
jmp 0x437869