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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x1002d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10030020]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [eax]
push edi
cmp esi, eax
je 0x10007224
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 0x100070fd
push 0xa
call edi
push dword [esi + 0x10]
call ebx
test eax, eax
je 0x100070f0
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 0x100071a6
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000c135
add esp, 4
mov dword [ebp - 0x46c], eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
xor edi, edi
test ebx, ebx
je 0x10007192
nop word [eax + eax]
mov eax, dword [ebp - 0x46c]
mov ebx, dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
je 0x10007189
cmp ebx, dword [esi + 0x10]
je 0x10007189
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x10007189
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x470]
jb 0x10007150
push dword [ebp - 0x46c]
call fcn.1000c122
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 0x100071bc
push 0xa
call edi
call ebx
test eax, eax
je 0x100071b2
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x100071f4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100071f0
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x100071f0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100071e0
mov esi, eax
jmp 0x1000720c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1000720c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10007200
mov ebx, dword [sym.imp.KERNEL32.dll_AttachConsole]
cmp esi, dword [0x10030020]
jne 0x100070e7
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 0x100072d1
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.1000c111
mov esp, ebp
pop ebp
ret