Function at 0x10005cc0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x10026008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100285c8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [eax]
push edi
cmp esi, eax
je 0x10005e27
mov ebx, dword [sym.imp.KERNEL32.dll_AttachConsole]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0x10]
call ebx
test eax, eax
jne 0x10005d0d
push 0xa
call edi
push dword [esi + 0x10]
call ebx
test eax, eax
je 0x10005d00
push 1
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
mov ebx, eax
mov dword [ebp - 0x470], ebx
cmp ebx, 1
jbe 0x10005db3
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100083b9
add esp, 4
mov dword [ebp - 0x46c], eax
push ebx
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
xor edi, edi
nop dword [eax + eax]
mov ebx, dword [ebx + edi*4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
je 0x10005d93
cmp ebx, dword [esi + 0x10]
je 0x10005d93
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x10005d93
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x46c]
inc edi
cmp edi, dword [ebp - 0x470]
jb 0x10005d60
mov eax, ebx
push eax
call fcn.100083a6
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_FreeConsole]
call ebx
test eax, eax
jne 0x10005dca
nop
push 0xa
call edi
call ebx
test eax, eax
je 0x10005dc0
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10005dfb
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10005df7
cmp esi, dword [eax + 8]
jne 0x10005df7
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10005de7
mov esi, eax
jmp 0x10005e0f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10005e0f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10005e05
mov ebx, dword [sym.imp.KERNEL32.dll_AttachConsole]
cmp esi, dword [0x100285c8]
jne 0x10005cf7
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x468]
mov dword [ebp - 0x458], 0x44
push eax
lea eax, [ebp - 0x458]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x408]
movlpd qword [ebp - 0x454], xmm0
push eax
push 0
movlpd qword [ebp - 0x44c], xmm0
movlpd qword [ebp - 0x444], xmm0
movlpd qword [ebp - 0x43c], xmm0
movlpd qword [ebp - 0x434], xmm0
movlpd qword [ebp - 0x42c], xmm0
movlpd qword [ebp - 0x424], xmm0
movlpd qword [ebp - 0x41c], xmm0
movups xmmword [ebp - 0x468], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10005ed4
push dword [ebp - 0x464]
call ebx
push dword [ebp - 0x468]
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008398
mov esp, ebp
pop ebp
ret