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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x10024008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10026478]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [eax]
push edi
cmp esi, eax
je 0x10004eb7
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 0x10004d9d
push 0xa
call edi
push dword [esi + 0x10]
call ebx
test eax, eax
je 0x10004d90
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 0x10004e43
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100073e9
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 0x10004e23
cmp ebx, dword [esi + 0x10]
je 0x10004e23
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x10004e23
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 0x10004df0
mov eax, ebx
push eax
call fcn.100073d6
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 0x10004e5a
nop
push 0xa
call edi
call ebx
test eax, eax
je 0x10004e50
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10004e8b
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10004e87
cmp esi, dword [eax + 8]
jne 0x10004e87
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10004e77
mov esi, eax
jmp 0x10004e9f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10004e9f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10004e95
mov ebx, dword [sym.imp.KERNEL32.dll_AttachConsole]
cmp esi, dword [0x10026478]
jne 0x10004d87
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 0x10004f64
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.100073c8
mov esp, ebp
pop ebp
ret