Function at 0x1400ad6c8
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov eax, 0x1110
call sub.ntdll.dll___chkstk
sub rsp, rax
xor esi, esi
mov rbx, rcx
mov rdi, rdx
and qword [rsp + 0x88], rsi
and dword [rsp + 0xa0], esi
lea rcx, [rsp + 0xa8]
lea r8d, [rsi + 0x60]
xor edx, edx
mov dword [rsp + 0x80], reloc.ODBC32.dll_SQLAllocHandle
mov dword [rsp + 0x90], 1
call sub.msvcrt.dll_memset
and qword [rsp + 0x68], rsi
xor eax, eax
mov rcx, rbx
and qword [rsp + 0x1148], rax
and qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call qword [sym.imp.msvcrt.dll__wcsdup]
mov rbp, rax
test rax, rax
je 0x1400ad932
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x1148]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400ad929
mov rcx, qword [rsp + 0x1148]
lea edx, [rsi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rax, qword [rsp + 0xf8]
bts dword [rsp + 0xdc], 8
mov qword [rsp + 0x100], rax
mov dword [rsp + 0xa0], SQLExecDirectW
test rdi, rdi
je 0x1400ad7e3
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov rdx, rdi
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x1400ad7e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_process_run_data___CreateEnvironmentBlock__0x_08x__n
mov edx, eax
call fcn.14000c030
jmp 0x1400ad908
lea rax, [rsp + 0x68]
xor r9d, r9d
mov r8, rbp
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xa0]
xor edx, edx
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], rsi
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000400
mov rcx, rdi
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
test eax, eax
je 0x1400ad8e5
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x100], 0
and qword [rsp + 0xf8], 0
jmp 0x1400ad891
mov eax, dword [rsp + 0x1140]
test eax, eax
je 0x1400ad8bf
xor edi, edi
test eax, eax
je 0x1400ad891
lea rbx, [rsp + 0x110]
movzx edx, byte [rbx]
lea rcx, [0x1400ea930]
call fcn.14000c030
inc edi
inc rbx
cmp edi, dword [rsp + 0x1140]
jb 0x1400ad874
mov rcx, qword [rsp + 0x1148]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x1140]
lea rdx, [rsp + 0x110]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400ad85b
mov rcx, qword [rsp + 0x68]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400ad8f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_process_run_data___CreateProcessAsUser__0x_08x__n
mov edx, eax
call fcn.14000c030
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400ad908
call sub.USERENV.dll_DestroyEnvironmentBlock
mov rcx, qword [rsp + 0x1148]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xf8]
test rcx, rcx
je 0x1400ad929
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_free]
mov eax, esi
mov rbx, qword [rsp + 0x1130]
add rsp, 0x1110
pop rdi
pop rsi
pop rbp
ret