Function at 0x1008d73d
Capabilities:
Connect pipe
Create pipe
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov eax, ecx
mov dword [ebp - 0x18], eax
push esi
push edi
test eax, eax
jne 0x1008d759
mov eax, 0x80070057
jmp 0x1008db65
xor ebx, ebx
push ebx
push 0xffffffffffffffff
push 4
push 4
push 1
push ebx
push 0x40000003
push 0x10025000
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x1008d787
mov eax, 0x80004005
jmp 0x1008db65
xorps xmm0, xmm0
mov dword [ebp - 0xc], ebx
sub esp, 0xc
movlpd qword [ebp - 0x30], xmm0
xor edx, edx
movlpd qword [ebp - 0x28], xmm0
lea ecx, [ebp - 0xc]
call fcn.10088c38
mov esi, eax
test esi, esi
jns 0x1008d7e7
mov eax, dword [0x100cd1f8]
cmp eax, 0x100cd1f8
je 0x1008d7d0
test byte [eax + 0x1c], 1
je 0x1008d7d0
push esi
push dword [eax + 0x14]
mov edx, 0x10025220
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.100880f0
cmp dword [ebp - 0xc], ebx
je 0x1008db5a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1008db5a
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
push 0x20019
push 0x100250a8
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], esi
mov dword [ebp - 0xc], ebx
call fcn.10089b70
mov edi, eax
test edi, edi
jns 0x1008d855
mov ecx, dword [0x100cd1f8]
cmp ecx, 0x100cd1f8
je 0x1008d835
test byte [ecx + 0x1c], 1
je 0x1008d835
push edi
push dword [ecx + 0x14]
mov edx, 0x10025220
push dword [ecx + 0x10]
push 0xb
pop ecx
call fcn.100880f0
cmp dword [ebp - 0xc], ebx
je 0x1008d843
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1008d84e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
jmp 0x1008db5a
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push ecx
push ecx
push eax
mov edx, 0x1000cd08
mov dword [ebp - 4], ebx
mov ecx, edi
call fcn.1008a01d
mov ebx, eax
test ebx, ebx
jns 0x1008d8a8
mov ecx, dword [0x100cd1f8]
cmp ecx, 0x100cd1f8
je 0x1008db33
test byte [ecx + 0x1c], 1
je 0x1008db33
push ebx
push dword [ecx + 0x14]
mov edx, 0x10025220
push dword [ecx + 0x10]
push 0xc
pop ecx
call fcn.100880f0
jmp 0x1008db33
push dword [ebp - 4]
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push 0x10025048
push eax
call fcn.1008acea
mov ebx, eax
add esp, 0xc
test ebx, ebx
js 0x1008db24
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 8]
and dword [ebp - 8], 0
sub esp, 0x20
call fcn.10088540
mov ebx, eax
test ebx, ebx
jns 0x1008d917
mov ecx, dword [0x100cd1f8]
cmp ecx, 0x100cd1f8
je 0x1008db15
test byte [ecx + 0x1c], 1
je 0x1008db15
push ebx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xd
mov edx, 0x10025220
pop ecx
call fcn.100880f0
jmp 0x1008db15
and dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 0x18]
push ecx
push dword [ebp - 8]
lea ecx, [ebp - 0x14]
push eax
push 2
push 0
call fcn.10088615
mov ebx, eax
test ebx, ebx
jns 0x1008d962
mov ecx, dword [0x100cd1f8]
cmp ecx, 0x100cd1f8
je 0x1008db15
test byte [ecx + 0x1c], 1
je 0x1008db15
push ebx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0xe
jmp 0x1008d907
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1008da60
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070217
je 0x1008da05
cmp ebx, 0x800703e5
je 0x1008d9c7
test ebx, ebx
jns 0x1008da05
mov eax, dword [0x100cd1f8]
cmp eax, 0x100cd1f8
je 0x1008db15
test byte [eax + 0x1c], 1
je 0x1008db15
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10
jmp 0x1008d907
mov ecx, dword [ebp - 0x20]
mov edx, 0x1388
call fcn.10088cc3
test al, al
je 0x1008da05
mov ebx, 0x800705b4
mov eax, dword [0x100cd1f8]
cmp eax, 0x100cd1f8
je 0x1008db15
test byte [eax + 0x1c], 1
je 0x1008db15
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xf
jmp 0x1008d907
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1008da60
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1008da60
mov eax, dword [0x100cd1f8]
cmp eax, 0x100cd1f8
je 0x1008db15
test byte [eax + 0x1c], 1
je 0x1008db15
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
jmp 0x1008d907
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.10089089
mov ebx, eax
test ebx, ebx
jns 0x1008da9c
mov ecx, dword [0x100cd1f8]
cmp ecx, 0x100cd1f8
je 0x1008db15
test byte [ecx + 0x1c], 1
je 0x1008db15
push ebx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x13
jmp 0x1008d907
mov ecx, dword [ebp - 8]
mov edx, 0x1388
call fcn.10088cc3
test al, al
je 0x1008dac2
push 0x5b4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0x800705b4
jmp 0x1008db15
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1008db04
call fcn.1008aeae
mov ebx, eax
test ebx, ebx
jns 0x1008db04
mov ecx, dword [0x100cd1f8]
cmp ecx, 0x100cd1f8
je 0x1008db15
test byte [ecx + 0x1c], 1
je 0x1008db15
push ebx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x14
jmp 0x1008d907
mov eax, dword [ebp - 0x18]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp dword [ebp - 8], 0
je 0x1008db24
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x1008db33
push dword [ebp - 0xc]
call fcn.100a7e8c
pop ecx
cmp dword [ebp - 4], 0
je 0x1008db42
push dword [ebp - 4]
call fcn.100a7e8c
pop ecx
test edi, edi
je 0x1008db4d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1008db58
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret