Function at 0x14017ff40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rbp + 8], rax
mov rbx, qword [0x1404ba678]
xor edi, edi
mov dword [rbp - 0x1c], edi
mov dword [rbp - 0x20], edi
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
mov edx, reloc.SinoSPE.dll_Ordinal_15
mov rcx, qword [0x1404af5e0]
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x20]
mov r8d, 2
lea rdx, [0x14043c758]
mov rcx, qword [0x1404af5e0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140180007
cmp dword [rbp - 0x20], 2
jne 0x140180007
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [0x1404bac78], rax
mov qword [0x1404bac80], 0x3e8
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x1c]
mov r8d, Ordinal_32
lea rdx, [rbp - 0x18]
mov rcx, qword [0x1404af5e0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [0x1404bac80], rdi
mov dword [reloc.SinoSPE.dll_Ordinal_1], 1
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp - 0x1c], edi
mov dword [rbp - 0x20], edi
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, qword [0x1404af5e0]
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x20]
mov r8d, 6
lea rdx, str.CAL__n
mov rcx, qword [0x1404af5e0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401800cb
cmp dword [rbp - 0x20], 6
jne 0x1401800cb
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [0x1404bac78], rax
mov qword [0x1404bac80], 0x3e8
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x1c]
mov r8d, Ordinal_32
lea rdx, [rbp - 0x18]
mov rcx, qword [0x1404af5e0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401800c4
cmp dword [rbp - 0x1c], 9
jb 0x1401800c4
cmp byte [rbp - 0x16], 0x23
jne 0x1401800bc
cmp byte [rbp - 0x15], 0x3e
jne 0x1401800bc
cmp byte [rbp - 0x11], 0x23
jne 0x1401800bc
cmp byte [rbp - 0x10], 0x3e
jne 0x1401800bc
cmp byte [rbp - 0x14], 0x30
mov eax, 1
je 0x1401800be
mov eax, edi
mov dword [0x1404c1f68], eax
mov qword [0x1404bac80], rdi
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1404c1f68]
test eax, eax
jne 0x1401801a8
mov dword [rbp - 0x1c], edi
mov dword [rbp - 0x20], edi
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, qword [0x1404af5e0]
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x20]
mov r8d, 6
lea rdx, str.CAL__n
mov rcx, qword [0x1404af5e0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14018019d
cmp dword [rbp - 0x20], 6
jne 0x14018019d
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [0x1404bac78], rax
mov qword [0x1404bac80], 0x3e8
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x1c]
mov r8d, Ordinal_32
lea rdx, [rbp - 0x18]
mov rcx, qword [0x1404af5e0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140180196
cmp dword [rbp - 0x1c], 9
jb 0x140180196
cmp byte [rbp - 0x16], 0x23
jne 0x14018018e
cmp byte [rbp - 0x15], 0x3e
jne 0x14018018e
cmp byte [rbp - 0x11], 0x23
jne 0x14018018e
cmp byte [rbp - 0x10], 0x3e
jne 0x14018018e
cmp byte [rbp - 0x14], 0x30
mov eax, 1
je 0x140180190
mov eax, edi
mov dword [0x1404c1f68], eax
mov qword [0x1404bac80], rdi
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp - 0x1c], edi
mov dword [rbp - 0x20], edi
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, qword [0x1404af5e0]
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x20]
mov r8d, 1
lea rdx, [0x14043c818]
mov rcx, qword [0x1404af5e0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140180249
cmp dword [rbp - 0x20], 1
jne 0x140180249
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [0x1404bac78], rax
mov qword [0x1404bac80], 0x3e8
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x1c]
mov r8d, Ordinal_32
lea rdx, [rbp - 0x18]
mov rcx, qword [0x1404af5e0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140180242
cmp dword [rbp - 0x1c], 5
jb 0x140180242
movzx eax, byte [rbp - 0x18]
sub al, 0x30
mov ecx, edi
cmp al, 9
seta cl
mov dword [reloc.SinoSPE.dll_Ordinal_1], ecx
mov qword [0x1404bac80], rdi
mov eax, dword [0x1404c1f68]
test eax, eax
je 0x14018043e
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
xor r8d, r8d
lea rdx, [0x140419d94]
lea rcx, [rbp - 0x40]
call fcn.140006340
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov r8d, 9
lea rdx, str.MSGBOX_OK
lea rcx, [rbp - 0x60]
call fcn.140006340
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
xor r8d, r8d
lea rdx, [0x140419d94]
lea rcx, [rbp - 0x80]
call fcn.140006340
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov r8d, reloc.SinoSPE.dll_Ordinal_24
lea rdx, str.MFAUTODIAG_NEED_CAL_INIT
lea rcx, [rsp + 0x60]
call fcn.140006340
nop
mov dword [rsp + 0x50], reloc.SinoSPE.dll_Ordinal_48
mov byte [rsp + 0x48], 1
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 1
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8b, 1
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140120d20
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140180373
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14018036d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14018036d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1403ca488
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x1401803b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401803b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401803b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1403ca488
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x1401803fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401803f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401803f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1403ca488
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x14018043e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140180439
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140180439
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1403ca488
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1403ca460
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret