Function at 0x14000f090
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 - 0x47]
sub rsp, 0x100
mov rax, qword [0x14008e010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov ebx, edx
xor r15d, r15d
mov edx, r8d
lea rcx, [rbp - 9]
call fcn.140010140
nop
mov edx, ebx
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 r14d, [r15 + 8]
lea rsi, str.km.move_
cmp rax, r14
jb 0x14000f172
lea rax, [r8 + 8]
mov qword [rbp - 0x59], rax
lea rbx, [rbp - 0x69]
cmp rcx, 0x10
cmovae rbx, qword [rbp - 0x69]
lea rax, [0x1400775c8]
cmp rax, rbx
jbe 0x14000f136
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x14000f136
cmp rbx, rsi
ja 0x14000f12e
mov edi, r15d
jmp 0x14000f139
mov rdi, rbx
sub rdi, rsi
jmp 0x14000f139
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, [rbp - 0x69]
jmp 0x14000f188
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov rdx, r14
lea rcx, [rbp - 0x69]
call fcn.1400106a0
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbp - 0x49], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rbp - 0x39], xmm1
vmovups ymm0, ymmword [rax]
vmovups ymmword [rbp - 0x49], ymm0
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], sendto
mov byte [rax], 0
mov r8d, 1
lea rdx, [0x1400775b8]
lea rcx, [rbp - 0x49]
vzeroupper
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 - 9]
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x29]
vzeroupper
call fcn.1400104b0
nop
mov r8d, 3
lea rdx, [0x1400775b4]
lea rcx, [rbp - 0x29]
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 - 0x11]
cmp rdx, 0x10
jb 0x14000f26c
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f264
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f264
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 - 0x71]
cmp rdx, 0x10
jb 0x14000f2c3
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f2ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f2ba
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 - 0x31]
cmp rdx, 0x10
jb 0x14000f307
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f2ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f2ff
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
mov rdx, qword [rbp - 0x51]
cmp rdx, 0x10
jb 0x14000f35c
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f354
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f354
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 rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x14000f3b1
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f3a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f3a9
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 + 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 r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14000f3e0
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 + 0x17]
mov r8d, dword [rbp - 0x79]
mov rcx, qword [0x14011e5d0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000f44a
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 0x14000f48a
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f484
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f484
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 0x14000f4c8
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f4c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f4c3
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 rsp, r11
pop r15
pop r14
pop rbp
ret