Function at 0x140070900
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x130
mov qword [rsp + 0x128], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbp, rcx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbp + 0x60]
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r13d, r13d
nop
nop
nop
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x98], r13
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r13
mov word [rsp + 0x48], 0
mov r9d, reloc.WS2_32.dll_ntohl
lea r8, str.S_1_1_0
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.1400c9e10
mov qword [rsp + 0x58], 7
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov word [rax + 0xe], 0
mov qword [rsp + 0xe0], 7
mov qword [rsp + 0xd8], r13
mov word [rsp + 0xc8], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
call fcn.1400a4180
mov qword [rsp + 0xe8], r13
mov dword [rsp + 0xf0], 0x10000000
mov dword [rsp + 0xf4], 5
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x88]
call fcn.140070780
nop
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x140070a4d
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp qword [rsp + 0xe0], 8
jb 0x140070a66
mov rcx, qword [rsp + 0xc8]
call fcn.1400c9d50
nop
cmp qword [rsp + 0x60], 8
jb 0x140070a78
mov rcx, qword [rsp + 0x48]
call fcn.1400c9d50
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r13
mov word [rsp + 0x48], 0
mov r9d, reloc.WS2_32.dll_ntohl
lea r8, str.S_1_5_7
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.1400c9e10
mov qword [rsp + 0x58], 7
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov word [rax + 0xe], 0
mov qword [rsp + 0xe0], 7
mov qword [rsp + 0xd8], r13
mov word [rsp + 0xc8], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
call fcn.1400a4180
mov qword [rsp + 0xe8], r13
mov dword [rsp + 0xf0], 0x10000000
mov dword [rsp + 0xf4], 2
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x88]
call fcn.140070780
nop
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x140070b45
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp qword [rsp + 0xe0], 8
jb 0x140070b5e
mov rcx, qword [rsp + 0xc8]
call fcn.1400c9d50
nop
cmp qword [rsp + 0x60], 8
jb 0x140070b70
mov rcx, qword [rsp + 0x48]
call fcn.1400c9d50
lea rcx, [rsp + 0x70]
call fcn.14006fa60
mov esi, eax
test eax, eax
jne 0x140071040
cmp qword [rbp + 0x50], 8
jb 0x140070b91
mov rcx, qword [rbp + 0x38]
jmp 0x140070b95
lea rcx, [rbp + 0x38]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov edx, 0x40000003
mov r9d, 0xff
mov r8d, 6
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140070f90
xor r9d, r9d
mov edx, 1
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x110], rax
lea rdx, [rsp + 0xf8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140070ec3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x140070c26
cmp eax, 0x3e5
jne 0x140070d8e
jmp 0x140070c34
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x120], r12
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x118]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x140070e9a
test eax, eax
sete bl
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x140070e77
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400ca4e0
mov r9, rax
test rax, rax
je 0x140070ca8
mov rax, qword [rbp + 0x58]
mov qword [r9], rdi
mov qword [r9 + 8], rax
jmp 0x140070cab
mov r9, r13
lea rax, [rsp + 0x150]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
lea r8, [0x14006f720]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140070e54
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x140070cf4
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x140070d07
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x140070d19
call fcn.1400cb100
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140070950
mov rdi, qword [rsp + 0x98]
cmp rcx, rdi
je 0x140070d84
lea rbx, [rcx + 0x20]
nop
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140070d4f
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp qword [rbx], 8
jb 0x140070d5e
mov rcx, qword [rbx - 0x18]
call fcn.1400c9d50
mov qword [rbx], 7
mov qword [rbx - 8], r13
mov word [rbx - 0x18], 0
add rbx, 0x38
lea rax, [rbx - 0x20]
cmp rax, rdi
jne 0x140070d40
mov rcx, qword [rsp + 0x90]
call fcn.1400c9d50
jmp 0x140070950
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x140070dc1
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x140070dd4
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x140070de6
call fcn.1400cb100
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140070e4d
mov rdi, qword [rsp + 0x98]
cmp rcx, rdi
je 0x140070e48
lea rbx, [rcx + 0x20]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140070e13
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp qword [rbx], 8
jb 0x140070e22
mov rcx, qword [rbx - 0x18]
call fcn.1400c9d50
mov qword [rbx], 7
mov qword [rbx - 8], r13
mov word [rbx - 0x18], 0
add rbx, 0x38
lea rax, [rbx - 0x20]
cmp rax, rdi
jne 0x140070e04
mov rcx, qword [rsp + 0x90]
call fcn.1400c9d50
mov eax, esi
jmp 0x1400710e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x70]
call fcn.140070110
mov eax, ebx
jmp 0x1400710e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x70]
call fcn.140070110
mov eax, ebx
jmp 0x1400710e1
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x70]
call fcn.140070110
xor eax, eax
jmp 0x1400710e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x140070ef6
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x140070f09
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x140070f1b
call fcn.1400cb100
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140070f89
mov rdi, qword [rsp + 0x98]
cmp rcx, rdi
je 0x140070f84
lea rbx, [rcx + 0x20]
nop
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140070f4f
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp qword [rbx], 8
jb 0x140070f5e
mov rcx, qword [rbx - 0x18]
call fcn.1400c9d50
mov qword [rbx], 7
mov qword [rbx - 8], r13
mov word [rbx - 0x18], 0
add rbx, 0x38
lea rax, [rbx - 0x20]
cmp rax, rdi
jne 0x140070f40
mov rcx, qword [rsp + 0x90]
call fcn.1400c9d50
mov eax, esi
jmp 0x1400710e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x140070fab
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x140070fbe
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x140070fd0
call fcn.1400cb100
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140071039
mov rdi, qword [rsp + 0x98]
cmp rcx, rdi
je 0x140071034
lea rbx, [rcx + 0x20]
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140070fff
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp qword [rbx], 8
jb 0x14007100e
mov rcx, qword [rbx - 0x18]
call fcn.1400c9d50
mov qword [rbx], 7
mov qword [rbx - 8], r13
mov word [rbx - 0x18], 0
add rbx, 0x38
lea rax, [rbx - 0x20]
cmp rax, rdi
jne 0x140070ff0
mov rcx, qword [rsp + 0x90]
call fcn.1400c9d50
mov eax, esi
jmp 0x1400710e1
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x140071053
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x140071066
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x140071078
call fcn.1400cb100
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400710df
mov rdi, qword [rsp + 0x98]
cmp rcx, rdi
je 0x1400710da
lea rbx, [rcx + 0x20]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400710a5
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp qword [rbx], 8
jb 0x1400710b4
mov rcx, qword [rbx - 0x18]
call fcn.1400c9d50
mov qword [rbx], 7
mov qword [rbx - 8], r13
mov word [rbx - 0x18], 0
add rbx, 0x38
lea rax, [rbx - 0x20]
cmp rax, rdi
jne 0x140071096
mov rcx, qword [rsp + 0x90]
call fcn.1400c9d50
mov eax, esi
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret