Function at 0x14000fab0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x14008e010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor r15d, r15d
lea edx, [r15 + 1]
lea rcx, [rbp - 0x69]
call fcn.140010140
nop
mov r8, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
sub rax, r8
lea r12, [0x1400775d8]
lea esi, [r15 + 8]
lea rbx, str.km.left_
cmp rax, rsi
jb 0x14000fb8a
lea rax, [r8 + 8]
mov qword [rbp - 0x59], rax
lea rdi, [rbp - 0x69]
cmp rcx, 0x10
cmovae rdi, qword [rbp - 0x69]
cmp r12, rdi
jbe 0x14000fb4e
lea rax, [rdi + r8]
cmp rbx, rax
ja 0x14000fb4e
cmp rdi, rbx
ja 0x14000fb46
mov r14d, r15d
jmp 0x14000fb51
mov r14, rdi
sub r14, rbx
jmp 0x14000fb51
mov r14, rsi
lea rcx, [rdi + 8]
inc r8
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rdi + r14]
mov r8, rsi
sub r8, r14
lea rdx, [rbx + 8]
add rdx, r14
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x69]
jmp 0x14000fba0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbx
mov rdx, rsi
lea rcx, [rbp - 0x69]
call fcn.1400106a0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x30], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp - 0x79], xmm1
vmovups ymm0, ymmword [rax]
vmovups ymmword [rsp + 0x30], ymm0
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], sendto
mov byte [rax], 0
mov r8d, 3
lea rdx, [0x1400775b4]
lea rcx, [rsp + 0x30]
vzeroupper
call fcn.1400100c0
vmovups ymm0, ymmword [rax]
vmovups ymmword [rbp + 0x1f], ymm0
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], sendto
mov byte [rax], 0
mov rdx, qword [rbp - 0x71]
cmp rdx, 0x10
jb 0x14000fc43
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fc3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000fc3b
vzeroupper
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
vzeroupper
call fcn.1400702a4
vmovdqu xmm0, xmmword [0x14007f980]
vmovdqu xmmword [rbp - 0x79], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x14000fc99
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fc91
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000fc91
vzeroupper
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
vzeroupper
call fcn.1400702a4
vmovdqu xmm0, xmmword [0x14007f980]
vmovdqu xmmword [rbp - 0x59], xmm0
mov byte [rbp - 0x69], 0
mov ecx, 0xa
vzeroupper
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea rcx, [rbp - 0x49]
call fcn.140010140
nop
mov r8, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
sub rax, r8
cmp rax, 8
jb 0x14000fd49
lea rax, [r8 + 8]
mov qword [rbp - 0x39], rax
lea rdi, [rbp - 0x49]
cmp rcx, 0x10
cmovae rdi, qword [rbp - 0x49]
cmp r12, rdi
jbe 0x14000fd0d
lea rax, [rdi + r8]
cmp rbx, rax
ja 0x14000fd0d
cmp rdi, rbx
ja 0x14000fd05
mov r14, r15
jmp 0x14000fd10
mov r14, rdi
sub r14, rbx
jmp 0x14000fd10
mov r14, rsi
lea rcx, [rdi + 8]
inc r8
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rdi + r14]
sub rsi, r14
lea rdx, [r14 + 8]
add rdx, rbx
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x49]
jmp 0x14000fd5f
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbx
mov rdx, rsi
lea rcx, [rbp - 0x49]
call fcn.1400106a0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x29], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp - 0x19], xmm1
vmovups ymm0, ymmword [rax]
vmovups ymmword [rbp - 0x29], ymm0
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], sendto
mov byte [rax], 0
mov r8d, 3
lea rdx, [0x1400775b4]
lea rcx, [rbp - 0x29]
vzeroupper
call fcn.1400100c0
vmovups ymm0, ymmword [rax]
vmovups ymmword [rbp - 1], ymm0
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], sendto
mov byte [rax], 0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x14000fdfe
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fdf6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000fdf6
vzeroupper
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
vzeroupper
call fcn.1400702a4
vmovdqu xmm0, xmmword [0x14007f980]
vmovdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
mov rdx, qword [rbp - 0x31]
cmp rdx, 0x10
jb 0x14000fe53
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fe4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000fe4b
vzeroupper
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
vzeroupper
call fcn.1400702a4
vmovdqu xmm0, xmmword [0x14007f980]
vmovdqu xmmword [rbp - 0x39], xmm0
mov byte [rbp - 0x49], 0
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 0x10
cmovae rdx, qword [rbp + 0x1f]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x30], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp - 0x79], xmm1
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x14000fe90
lea rcx, [rsp + 0x30]
vzeroupper
call fcn.140007ff0
nop
lea rdx, [rsp + 0x30]
cmp qword [rbp - 0x71], 0x10
cmovae rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r15
lea r9, [rbp - 9]
mov r8d, dword [rbp - 0x79]
mov rcx, qword [0x14011e5d0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000fefa
lea rdx, str.Failed_to_write_to_serial_port_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000e1b0
lea rdx, [0x14000e380]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x71]
cmp rdx, 0x10
jb 0x14000ff39
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ff34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ff34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400702a4
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
cmovae rdx, qword [rbp - 1]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x30], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp - 0x79], xmm1
nop word [rax + rax]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x14000ff60
mov r8, rbx
lea rcx, [rsp + 0x30]
call fcn.140007ff0
nop
lea rdx, [rsp + 0x30]
cmp qword [rbp - 0x71], 0x10
cmovae rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r15
lea r9, [rbp - 9]
mov r8d, dword [rbp - 0x79]
mov rcx, qword [0x14011e5d0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000ffc9
lea rdx, str.Failed_to_write_to_serial_port_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000e1b0
lea rdx, [0x14000e380]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x71]
cmp rdx, 0x10
jb 0x140010009
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010003
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010003
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400702a4
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x140010048
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010042
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010042
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400702a4
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x140010086
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010081
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010081
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400702a4
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14006fc90
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret