Function at 0x14000f500
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14008e010]
xor rax, rsp
mov qword [rbp + 0x58], rax
mov ebx, r8d
mov edi, edx
xor r15d, r15d
mov edx, r9d
lea rcx, [rbp + 0x10]
call fcn.140010140
nop
mov edx, ebx
lea rcx, [rbp - 0x10]
call fcn.140010140
nop
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140010140
nop
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
sub rax, r8
lea r14d, [r15 + 8]
lea rsi, str.km.move_
cmp rax, r14
jb 0x14000f5f8
lea rax, [r8 + 8]
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
cmp rcx, 0x10
cmovae rbx, qword [rsp + 0x50]
lea rax, [0x1400775c8]
cmp rax, rbx
jbe 0x14000f5bb
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x14000f5bb
cmp rbx, rsi
ja 0x14000f5b3
mov edi, r15d
jmp 0x14000f5be
mov rdi, rbx
sub rdi, rsi
jmp 0x14000f5be
mov rdi, r14
lea rcx, [rbx + 8]
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
sub r14, rdi
lea rdx, [rsi + 8]
add rdx, rdi
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x50]
jmp 0x14000f60f
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1400106a0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x70], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp - 0x80], xmm1
vmovups ymm0, ymmword [rax]
vmovups ymmword [rsp + 0x70], ymm0
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], sendto
mov byte [rax], 0
mov r8d, 1
lea rdx, [0x1400775b8]
lea rcx, [rsp + 0x70]
vzeroupper
call fcn.1400100c0
vmovups ymm0, ymmword [rax]
vmovups ymmword [rbp - 0x30], ymm0
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], sendto
mov byte [rax], 0
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x50]
vzeroupper
call fcn.1400104b0
nop
mov r8d, 1
lea rdx, [0x1400775b8]
lea rcx, [rbp - 0x50]
call fcn.1400100c0
vmovups ymm0, ymmword [rax]
vmovups ymmword [rsp + 0x30], ymm0
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], sendto
mov byte [rax], 0
lea r9, [rbp + 0x10]
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x70]
vzeroupper
call fcn.1400104b0
nop
mov r8d, 3
lea rdx, [0x1400775b4]
lea rcx, [rbp - 0x70]
call fcn.1400100c0
vmovups ymm0, ymmword [rax]
vmovups ymmword [rbp + 0x38], ymm0
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], sendto
mov byte [rax], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x14000f739
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f731
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f731
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 - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000f791
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f788
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f788
vzeroupper
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
vzeroupper
call fcn.1400702a4
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14000f7d5
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f7cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f7cd
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 - 0x40], xmm0
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14000f82b
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f822
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f822
vzeroupper
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
vzeroupper
call fcn.1400702a4
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14000f870
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f868
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f868
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 - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14000f8c8
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f8c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f8c0
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 [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x14000f920
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f917
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f917
vzeroupper
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
vzeroupper
call fcn.1400702a4
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x14000f964
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f95c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f95c
vzeroupper
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
vzeroupper
call fcn.1400702a4
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae rdx, qword [rbp + 0x38]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x30], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rsp + 0x40], xmm1
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14000f990
lea rcx, [rsp + 0x30]
vzeroupper
call fcn.140007ff0
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x30]
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x14011e5d0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000f9fc
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 [rsp + 0x48]
cmp rdx, 0x10
jb 0x14000fa3d
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fa37
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000fa37
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 + 0x50]
cmp rdx, 0x10
jb 0x14000fa7b
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fa76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000fa76
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 + 0x58]
xor rcx, rsp
call fcn.14006fc90
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret