Function at 0x140008e45
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x80e8
call fcn.140161520
sub rsp, rax
movaps xmmword [rsp + 0x80d0], xmm7
movaps xmmword [rsp + 0x80c0], xmm6
mov rbx, r8
mov r15, rdx
mov rsi, rcx
lea rcx, [rsp + 0xc0]
and dword [rcx + 0x20], 0
mov rdx, qword [r8 + 0x30]
and word [rcx + 0x24], 0
mov r8, qword [r8 + 0x40]
and dword [rcx], 0
xorps xmm0, xmm0
movups xmmword [rcx + 8], xmm0
mov qword [rcx + 0x18], 7
mov byte [rcx + 0x20], 1
call fcn.140145370
mov rdi, rdx
test rax, rax
je 0x140008f2f
mov qword [rsp + 0x70], rdi
mov rax, qword [0x140216038]
test rax, rax
je 0x140008f19
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x88]
mov qword [r9], rax
lea rax, [0x140144bd0]
mov qword [r9 + 8], rax
mov qword [rsp + 0x20], 1
lea rdx, str.failed_to_open_the_folder__it_is_possible_that_the_path_does_not_exist__which_does_not_affect_subsequent_operations._error_info:
lea rdi, [rsp + 0xc0]
mov r8d, 1
mov rcx, rdi
call fcn.140001a08
lea r8, str.ssh2_rs::channel::local::channel_scp
mov edx, 1
mov rcx, rdi
call fcn.140076502
mov qword [rsi], 5
lea rcx, [rsp + 0x70]
call fcn.140001d08
jmp 0x14000923f
mov rax, qword [0x140216038]
lea r12, [0x1400038ee]
cmp rax, 3
jbe 0x140008fa3
lea rax, [rbx + 0x18]
lea rcx, [rbx + 0x10]
lea r9, [rsp + 0x88]
mov qword [r9], rax
mov qword [r9 + 8], r12
mov qword [r9 + 0x10], rcx
lea rax, [fcn.140054db0]
mov qword [r9 + 0x18], rax
mov qword [rsp + 0x20], 2
lea rdx, str.name:____size:__0___type:__dir__start_upload.
lea r14, [rsp + 0xc0]
mov r8d, 3
mov rcx, r14
call fcn.140001a08
lea r8, str.ssh2_rs::channel::local::channel_scp
mov edx, 4
mov rcx, r14
call fcn.140076502
lea r13, [rbx + 0x10]
add rbx, 0x18
lea rax, [0x140171638]
lea r9, [rsp + 0xc0]
mov qword [r9], rax
lea rax, [fcn.14006a207]
mov qword [r9 + 8], rax
mov qword [r9 + 0x10], r13
lea rax, [fcn.140054db0]
mov qword [r9 + 0x18], rax
mov qword [r9 + 0x20], rbx
mov qword [r9 + 0x28], r12
mov qword [rsp + 0x20], 3
lea rdx, [0x1401715f0]
lea r14, [rsp + 0x88]
mov r8d, 4
mov rcx, r14
call fcn.140001a08
lea r12, [rsp + 0x70]
mov rcx, r12
mov rdx, r14
call fcn.140003700
mov r14, qword [r12]
mov r9, qword [r12 + 0x10]
lea r12, [rsp + 0xc0]
mov rcx, r12
mov rdx, r15
mov r8, r14
call fcn.140007f74
mov rax, qword [r12]
cmp rax, 5
jne 0x14000920f
lea r12, [rsp + 0xc0]
mov rcx, r12
mov rdx, r15
call fcn.14000820c
mov rax, qword [r12]
cmp rax, 5
jne 0x14000920f
mov qword [rsp + 0x58], r14
movups xmm6, xmmword [0x1401ab5b0]
xorps xmm7, xmm7
xor r14d, r14d
mov r8d, 0x8000
mov rcx, r12
xor edx, edx
call sub.msvcrt.dll_memset
movaps xmmword [rsp + 0x60], xmm6
movups xmmword [rsp + 0x38], xmm7
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x8000
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1400090ce
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
je 0x140009103
cmp eax, 0x103
je 0x1400092b0
test eax, eax
js 0x1400090eb
mov rbp, qword [rsp + 0x68]
jmp 0x140009105
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ebp, eax
mov ecx, eax
call fcn.140125e00
cmp al, 0xb
jne 0x14000929b
xor ebp, ebp
lea rax, str._home_laa_.cargo_git_checkouts_crate_ssh2_rs_2659fa29c43028f5_18ad43e_src_channel_local_channel_scp.rs
mov qword [rsp + 0x20], rax
mov r9d, 0x8000
xor ecx, ecx
mov rdx, rbp
mov r8, r12
call fcn.14014e5fc
mov r9, rdx
lea rcx, [rsp + 0x88]
mov rdx, r15
mov r8, rax
call fcn.140007f74
mov rax, qword [rsp + 0x88]
cmp rax, 5
jne 0x140009263
add r14, rbp
cmp r14, qword [r13]
jne 0x140009075
lea r8, [0x1401a7d80]
lea r12, [rsp + 0x88]
mov r9d, 1
mov rcx, r12
mov rdx, r15
call fcn.140007f74
mov rax, qword [r12]
cmp rax, 5
mov r14, qword [rsp + 0x58]
jne 0x140009285
lea r12, [rsp + 0xc0]
mov rcx, r12
mov rdx, r15
call fcn.14000820c
mov rax, qword [r12]
cmp rax, 5
jne 0x14000920f
mov rax, qword [0x140216038]
cmp rax, 3
jbe 0x140009206
lea r9, [rsp + 0x88]
mov qword [r9], rbx
lea rax, [0x1400038ee]
mov qword [r9 + 8], rax
mov qword [rsp + 0x20], 1
lea rdx, str.file:__
lea rbx, [rsp + 0xc0]
mov r8d, 2
mov rcx, rbx
call fcn.140001a08
lea r8, str.ssh2_rs::channel::local::channel_scp
mov edx, 4
mov rcx, rbx
call fcn.140076502
mov qword [rsi], 5
jmp 0x14000922a
mov rcx, qword [rsp + 0xd8]
mov qword [rsi + 0x18], rcx
movups xmm0, xmmword [rsp + 0xc8]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], rax
mov rdx, qword [rsp + 0x78]
mov rcx, r14
call fcn.140073158
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x80c0]
movaps xmm7, xmmword [rsp + 0x80d0]
add rsp, 0x80e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0xa0]
mov qword [rsi + 0x18], rcx
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], rax
mov r14, qword [rsp + 0x58]
jmp 0x14000922a
mov rcx, qword [rsp + 0xa0]
mov qword [rsi + 0x18], rcx
movups xmm0, xmmword [rsp + 0x90]
jmp 0x140009223
shl rbp, 0x20
or rbp, 2
mov rcx, rsi
mov rdx, rbp
call fcn.1401096fb
jmp 0x14000927e
lea rcx, [rsp + 0xb8]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, [0x1401ab610]
lea rdx, [rsp + 0x88]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.140124250
mov rcx, rax
call fcn.140124330
mov ecx, 7
int 0x29
ud2