Function at 0x1011370
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10972b8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
cmp dword [ebp], 0x43535953
push esi
push edi
mov esi, ecx
jne case.default.0x10113f0
mov ecx, dword [ebp + 4]
mov eax, 0x14
cmp ecx, eax
jne case.default.0x10113f0
cmp word [ebp + 0xe], ax
jne case.default.0x10113f0
cmp word [ebp + 0xc], 0xffff
jne case.default.0x10113f0
xor eax, eax
mov ecx, 7
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x88]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp + 8]
add eax, 0xfff00000
cmp eax, 5
ja case.default.0x10113f0
jmp dword [eax*4 + 0x1011744]
mov edx, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0xc]
mov eax, dword [edi + 0x10]
jmp 0x10114f1
mov al, byte [ebp + 0x10]
cmp al, 0x41
mov byte [esp + 0x84], al
jb 0x10114db
cmp al, 0x5a
ja 0x10114db
mov eax, dword [esp + 0x84]
push eax
call fcn.0103b7f0
add esp, 4
jmp case.0x10113f0.1048581
mov al, byte [ebp + 0x10]
cmp al, 0x41
mov byte [esp + 0x84], al
jb 0x10114db
cmp al, 0x5a
ja 0x10114db
mov ebx, dword [esp + 0x84]
mov edx, dword [esi]
and ebx, 0xff
push 0xffffffffffffffff
mov ecx, esi
sub ebx, 0x41
call dword [edx + 0xc]
mov edx, dword [edi + 0x28]
mov ecx, ebx
mov eax, 1
shl eax, cl
or edx, eax
mov dword [edi + 0x28], edx
mov ecx, dword [esi + 0x20]
or ecx, eax
mov eax, dword [esi]
mov dword [esi + 0x20], ecx
mov ecx, esi
call dword [eax + 0x14]
jmp case.0x10113f0.1048581
mov al, byte [ebp + 0x10]
cmp al, 0x41
mov byte [esp + 0x84], al
jb 0x10114db
cmp al, 0x5a
ja 0x10114db
mov ebx, dword [esp + 0x84]
mov edx, dword [esi]
and ebx, 0xff
push 0xffffffffffffffff
mov ecx, esi
sub ebx, 0x41
call dword [edx + 0xc]
mov edx, dword [edi + 0x28]
mov ecx, ebx
mov eax, 1
shl eax, cl
not eax
and edx, eax
mov dword [edi + 0x28], edx
mov ecx, dword [esi + 0x20]
and ecx, eax
mov eax, dword [esi]
mov dword [esi + 0x20], ecx
mov ecx, esi
call dword [eax + 0x14]
jmp case.0x10113f0.1048581
mov dword [esp + 0x68], 1
jmp 0x1011504
mov edx, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0xc]
mov eax, dword [esi + 0x20]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x70], eax
call dword [edx + 0x14]
mov dword [esp + 0x68], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push eax
push eax
push 1
push eax
mov dword [esp + 0x3c], eax
call ebx
test eax, eax
mov dword [esp + 0x2c], eax
je case.default.0x10113f0
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x64], ecx
mov eax, 0x1c
lea ecx, [esp + 0x8c]
push ecx
push eax
lea edx, [esp + 0x64]
mov word [esp + 0x7a], ax
mov dword [esp + 0x68], eax
mov eax, dword [edi + 4]
push edx
push eax
mov dword [esp + 0x6c], 0x52535953
mov word [esp + 0x80], 0xffff
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10115aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10115aa
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1011683
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0xc], 0xffffffff
jne 0x1011727
cmp dword [ebp + 8], 0x100000
jne 0x1011727
mov ecx, dword [0x10aa77c]
mov dword [esp + 0x84], ecx
mov edx, dword [edi + 0x10]
mov eax, dword [esi + 0xc]
push edx
push eax
lea ecx, [esp + 0x8c]
push 0x1001d14
push ecx
mov dword [esp + 0x8c], 0
call fcn.01089297
add esp, 0x10
push 0x1001d28
lea ecx, [esp + 0x88]
call fcn.0108eb07
push 1
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xor edx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
push edx
push edx
push 1
lea ecx, [esp + 0x50]
push edx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x50], edx
call ebx
test eax, eax
mov dword [esp + 0x40], eax
jne 0x1011698
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], 0xffffffff
call fcn.0108e72b
xor eax, eax
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret 8
mov ecx, dword [esp + 0x84]
lea eax, [esp + 0x10]
push eax
push 0x4e20
push 0x1000
push 0x1000
push 1
push 6
push 0x40080003
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea edx, [esp + 0x30]
push edx
push eax
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1011708
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x10116ec
cmp eax, 0x3e5
jne 0x1011708
jmp 0x10116fb
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x1011708
mov ecx, dword [esp + 0x40]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], 0xffffffff
call fcn.0108e72b
cmp dword [edi + 0x2c], 0x100005
je 0x1011737
mov dword [edi + 0x2c], 0
mov eax, 1
jmp 0x1011683