Function at 0x42cac0
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d452
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4cc498]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x1c], eax
cmp eax, 0xffffffff
je 0x42cd48
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004975a2
mov ebx, dword [esi + 0x18]
add esp, 4
xor edi, edi
mov dword [esi + 0x20], eax
test ebx, ebx
jle 0x42cb68
lea esp, [esp]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push esi
push 0x42cde0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x20]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x20]
cmp dword [eax + edi*4], 0
je 0x42cd48
mov ebx, dword [esi + 0x18]
inc edi
cmp edi, ebx
jl 0x42cb30
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov eax, ebx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004975a2
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x42cbba
push 0x42c2a0
push 0x42c020
push ebx
lea edi, [eax + 4]
mov dword [eax], ebx
push 8
push edi
call fcn.00497a50
jmp 0x42cbbc
xor edi, edi
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov edx, 0x1c
mov dword [ebp - 4], 0xffffffff
mul edx
mov dword [esi + 0x28], edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004975a2
xor ebx, ebx
mov dword [esi + 0x24], eax
add esp, 4
cmp dword [esi + 0x18], ebx
jle 0x42cd31
mov dword [ebp - 0x10], ebx
push 0xa0
call fcn.0049741e
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
je 0x42cc59
push 0x90
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [edi + 0x88], 0xbadbeef
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x84], eax
mov dword [edi + 0x90], vtable.wh::MemBuffer.0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
jmp 0x42cc5b
xor edi, edi
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0x10]
push 1
mov dword [ecx + eax + 0x18], edi
mov eax, dword [esi + 0x28]
lea edi, [eax + ebx*8]
mov eax, dword [esi + 0x24]
add eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x38]
push eax
mov dword [edi + 4], esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
test ebx, ebx
mov eax, 0x40000003
mov dword [ebp - 0x24], 0xc
mov ecx, 0x40080003
cmovne ecx, eax
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42ccdf
mov eax, dword [esi]
lea edx, [ebp - 0x24]
push edx
push 0
push 0x400
push 0x400
push 0xff
push 6
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x42cd48
push 0
push edi
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, dword [ebp - 0x14]
jne 0x42cd48
push 0
push dword [ebp - 0x18]
mov ecx, edi
call fcn.0042c480
add dword [ebp - 0x10], 0x1c
inc ebx
cmp ebx, dword [esi + 0x18]
jl 0x42cbf3
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret