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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1130
call fcn.140161020
sub rsp, rax
mov dword [rsp + 0x64], 0
mov dword [rsp + 0xa0], reloc.ODBC32.dll_SQLAllocHandle
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb0], 1
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, reloc.ODBC32.dll_SQLAllocHandle
rep stosb byte [rdi], al
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x1140]
call fcn.140145740
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x140115332
xor r9d, r9d
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140115325
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [rsp + 0xc0], SQLExecDirectW
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov eax, dword [rsp + 0xfc]
bts eax, 8
mov dword [rsp + 0xfc], eax
cmp qword [rsp + 0x1148], 0
je 0x14011518b
xor r8d, r8d
mov rdx, qword [rsp + 0x1148]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1401152ed
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000400
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x1148]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x1401152c4
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x120], 0
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, 0x1000
lea rdx, [rsp + reloc.WLDAP32.dll_Ordinal_304]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140115293
cmp dword [rsp + 0x68], 0
je 0x140115293
mov dword [rsp + 0x60], 0
jmp 0x14011526b
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x60], eax
jae 0x140115291
mov eax, dword [rsp + 0x60]
movzx eax, byte [rsp + rax + reloc.WLDAP32.dll_Ordinal_304]
mov edx, eax
lea rcx, [0x140187120]
call fcn.140013fd0
jmp 0x140115261
jmp 0x140115225
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401152d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_process_run_data___CreateProcessAsUser__0x_08x__n
call fcn.140013fd0
cmp qword [rsp + 0x70], 0
je 0x1401152eb
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x140115301
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_process_run_data___CreateEnvironmentBlock__0x_08x__n
call fcn.140013fd0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x118], 0
je 0x140115325
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
call fcn.1401457c4
mov eax, dword [rsp + 0x64]
add rsp, 0x1130
pop rdi
ret