Function at 0x140061000
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x110
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov ebx, edx
xor r13d, r13d
mov edx, r8d
lea rcx, [rbp - 0x30]
call fcn.14005fd30
mov r12, rax
mov edx, ebx
lea rcx, [rbp - 0x50]
call fcn.14005fd30
mov rdi, rax
mov r8, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rcx, rdx
sub rcx, r8
cmp rcx, 8
jb 0x1400610e3
lea rax, [r8 + 8]
mov qword [rdi + 0x10], rax
mov rbx, rdi
cmp rdx, 0xf
jbe 0x140061077
mov rbx, qword [rdi]
lea rax, [0x1401e7b98]
mov r15d, 8
lea r14, str.km.move_
cmp rax, rbx
jbe 0x1400610ab
lea rax, [rbx + r8]
cmp r14, rax
ja 0x1400610ab
cmp rbx, r14
ja 0x1400610a3
mov rsi, r13
jmp 0x1400610ae
mov rsi, rbx
sub rsi, r14
jmp 0x1400610ae
mov rsi, r15
lea rcx, [rbx + 8]
inc r8
mov rdx, rbx
call fcn.140198930
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.140198930
lea rcx, [rbx + rsi]
sub r15, rsi
lea rdx, [r14 + 8]
add rdx, rsi
mov r8, r15
call fcn.140198930
jmp 0x140061108
mov r15d, 8
mov qword [rsp + 0x28], r15
lea r14, str.km.move_
mov qword [rsp + 0x20], r14
mov edx, r15d
mov rcx, rdi
call fcn.14005fb00
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], recvfrom
mov byte [rdi], 0
mov ebx, 1
mov r8d, ebx
lea rdx, [0x1401e7b88]
lea rcx, [rsp + 0x50]
call fcn.14005a640
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], recvfrom
mov byte [rax], 0
mov r9, r12
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.140062020
nop
lea r8d, [rbx + 2]
lea rdx, [0x1401e7b84]
lea rcx, [rbp - 0x70]
call fcn.14005a640
movups xmm7, xmmword [rax]
movups xmmword [rsp + 0x70], xmm7
movups xmm6, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm6
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], recvfrom
mov byte [rax], 0
lea rcx, [rbp - 0x70]
call fcn.14005a5e0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400611ff
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400611f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400613ec
call fcn.1401605dc
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x14006123c
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140061237
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400613f2
call fcn.1401605dc
movdqa xmm0, xmmword [0x1401ef440]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
lea rcx, [rbp - 0x50]
call fcn.14005a5e0
nop
lea rcx, [rbp - 0x30]
call fcn.14005a5e0
lea rdx, [rsp + 0x70]
movq rcx, xmm7
psrldq xmm6, 8
movq rax, xmm6
cmp rax, 0xf
cmova rdx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140061296
lea rcx, [rsp + 0x30]
call fcn.14005ea20
nop
mov rdi, qword [0x1402b99f0]
mov dword [rbp + 0x50], r13d
lea rdx, [rbp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140061337
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x68]
mov r8d, dword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140061334
lea rdx, str.Failed_to_write_to_serial_port_
lea rcx, [0x1402b5730]
call fcn.140061730
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140061f90
movzx edx, al
mov rcx, rbx
call fcn.140061de0
mov rcx, rbx
call fcn.140061cb0
mov ebx, 2
jmp 0x140061337
mov ebx, r13d
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140061374
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006136f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400613f8
call fcn.1401605dc
movdqa xmm0, xmmword [0x1401ef440]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x1400613bf
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400613ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400613e6
call fcn.1401605dc
mov eax, ebx
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140175694
nop
call fcn.140175694
nop
call fcn.140175694
nop
call fcn.140175694
int3