Function at 0x140012aa0
Capabilities:
Contain obfuscated stackstrings
Read file on windows
Read pipe

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14016b140]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rcx
xor r15d, r15d
mov dword [rbp - 0x1d], r15d
cmp byte [rcx + 0x38], r15b
je 0x140012d6e
lea r12, vtable.SimpleResponse.0
nop
mov dword [rbp + 3], r15d
mov dword [rbp - 0x29], r15d
mov dword [rbp - 1], r15d
lea rax, [rbp - 1]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 3]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140012b30
mov byte [rdi + 0x38], 0
mov eax, dword [rbp - 0x29]
test eax, eax
je 0x140012d59
mov ecx, eax
call fcn.140027a58
mov r14, rax
mov r8d, dword [rbp - 0x29]
xor edx, edx
mov rcx, rax
call fcn.1400c0ac0
mov dword [rbp - 0x25], r15d
mov dword [rbp - 0x1d], r15d
mov sil, 1
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x25]
mov r8d, dword [rbp - 0x29]
mov rdx, r14
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140012ba9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, eax
lea rcx, str.READ___GetLastError__d_n
call fcn.140020f50
cmp ebx, 0x6d
jne 0x140012ba9
mov rdx, rdi
lea rcx, str.ERROR_BROKEN_PIPE___x_n
call fcn.140020f50
xor sil, sil
mov byte [rdi + 0x38], sil
mov edx, dword [rbp - 0x25]
test edx, edx
je 0x140012d3f
mov r8d, dword [rbp - 0x29]
lea rcx, str.dwBytesRead____d__dwAvail____d__n
call fcn.1400213c0
cmp byte [rdi + 0x39], 0
jne 0x140012d4a
mov qword [rbp - 0x11], r15
mov dword [rbp - 0x21], r15d
cmp dword [rdi + 8], 0
je 0x140012ced
mov ecx, 0x28
call fcn.140027a60
mov rsi, rax
mov qword [rbp - 9], rax
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov dword [rbp + 0x1f], 0x69666a61
mov dword [rbp + 0x23], 0x76627265
mov word [rbp + 0x27], 0x6468
mov byte [rbp + 0x29], 0
lea rax, [rbp + 0x1f]
lea rdx, [rbp + 0x1f]
mov rcx, rsi
sub rcx, rdx
lea rdx, [rcx + 0x18]
nop word [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140012c30
mov qword [rbp + 0x17], rsi
mov eax, dword [rbp - 0x25]
mov dword [rbp - 9], eax
lea r8, [rbp - 9]
mov rdx, r14
mov rcx, rsi
call fcn.1400133a0
test eax, eax
je 0x140012ca9
mov r8d, dword [rbp - 9]
mov dword [rbp - 0x25], r8d
mov rax, qword [rdi]
lea rcx, [rbp + 7]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x19]
mov rdx, r14
mov rcx, rdi
call qword [rax]
lea r8, [rbp - 0x11]
mov rdx, qword [rbp - 0x19]
call fcn.140013880
mov dword [rbp - 0x21], eax
mov edx, 1
mov rcx, qword [rbp - 0x19]
call fcn.1400277b4
nop
mov edx, 0x28
mov rcx, rsi
call fcn.1400277b4
jmp 0x140012d09
mov ecx, reloc.ODBC32.dll_SQLAllocHandle
call fcn.140027a60
mov rbx, rax
mov qword [rbp - 9], rax
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r15
mov qword [rbx], r12
mov dword [rbx + 0x10], 0xffffffff
lea r8, [rbp + 7]
lea rdx, [rbp - 0x19]
mov rcx, rbx
call qword [r12 + inet_addr]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
jmp 0x140012c7b
mov rax, qword [rdi]
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x11]
mov r8d, dword [rbp - 0x25]
mov rdx, r14
mov rcx, rdi
call qword [rax]
mov rdx, qword [rbp - 0x11]
test rdx, rdx
je 0x140012d2d
lea r9, [rbp - 0x1d]
mov r8d, dword [rbp - 0x21]
mov rcx, rdi
call fcn.140012970
mov rcx, qword [rbp - 0x11]
call fcn.1400277b4
jmp 0x140012d4a
lea rcx, str.NamedPipeHandlerServer::HandlerTread_:_HandleRequest_returns_lpRespond_is_NULL.
call fcn.140021160
mov byte [rdi + 0x38], 0
jmp 0x140012d4a
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
test r14, r14
je 0x140012d64
mov rcx, r14
call fcn.1400277b4
jmp 0x140012d64
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rdi + 0x38], 0
jne 0x140012af0
mov byte [rdi + 0x3a], 1
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140027790
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret