Function at 0x10018570
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008bb3d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x100d0040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x60], esi
mov ecx, dword [esi + 0x18c]
call fcn.1001b230
test al, al
jne 0x10018838
mov edi, dword [esi + 0x18c]
cmp dword [edi + 0x3c], 0xffffffff
je 0x100185e0
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x100185e0
mov ecx, edi
call fcn.1001b200
mov eax, dword [edi + 0x3c]
cmp eax, 0xffffffff
je 0x100185f8
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x3c], 0xffffffff
lea edi, [esi + 0x188]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0
mov ecx, dword [edi + 4]
lea ecx, [ecx + 0x24]
call fcn.1001e9c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0x18c]
call fcn.1001b130
mov esi, dword [esi + 0x178]
push 0x30
add esi, 0x28
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
call fcn.1005cfb0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 1
add eax, 0x194
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], esi
call fcn.1001eb80
sub esp, 0x28
mov dword [ebp - 4], 2
mov eax, esp
lea ecx, [ebp - 0x80]
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [eax], vtable.std::_Func_impl_no_alloc_class_std::reference_wrapper_struct_weasel::ResponseParser___bool__wchar_t___unsigned_int_.0
mov dword [eax + 0x24], eax
call fcn.1001b500
mov esi, dword [ebp - 0x60]
test al, al
je 0x100186c4
mov ecx, esi
call fcn.1000b390
mov ecx, dword [esi + 0x18c]
call fcn.1001b230
test al, al
jne 0x10018830
push 1
mov ecx, esi
call fcn.100044f0
test byte [esi + 0x1f0], 1
je 0x10018830
lea ecx, [ebp - 0x48]
call fcn.1000b020
push 0x13
push str.WeaselServer.exe
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.1000c780
add esp, 8
cmp dword [eax + 0x14], 7
jbe 0x10018715
mov eax, dword [eax]
push 1
push 0
push 0x100bba60
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x10018763
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10018759
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018856
push ecx
push edx
call fcn.1005cfe0
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 7
jbe 0x100187b5
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100187ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018856
push ecx
push edx
call fcn.1005cfe0
add esp, 8
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 0x18c]
call fcn.1001b230
test al, al
jne 0x10018830
mov edi, dword [esi + 0x18c]
cmp dword [edi + 0x3c], 0xffffffff
je 0x100187e9
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x100187e9
mov ecx, edi
call fcn.1001b200
mov eax, dword [edi + 0x3c]
cmp eax, 0xffffffff
je 0x10018801
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x3c], 0xffffffff
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x18c]
lea ecx, [ecx + 0x24]
call fcn.1001e9c0
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x18c]
call fcn.1001b130
lea ecx, [ebp - 0x80]
call fcn.10006140
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1005cfa2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1006c54f
int3