Function at 0x140002fe0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1400f10c0]
xor rax, rsp
mov qword [rbp + 0xe0], rax
xor edi, edi
mov dword [rsp + 0x40], edi
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xd0], xmm1
lea r8d, [rdi + 0x10]
lea rdx, str.USB_SERIAL_CH340
lea rcx, [rbp + 0xc0]
call fcn.140001f00
nop
lea rdx, [rbp + 0xc0]
lea rcx, [rbp - 0x78]
call fcn.140002000
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x140003098
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003093
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003093
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2600
cmp qword [rbp - 0x68], 0
jne 0x1400033ab
mov byte [rsp + 0x68], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x69], xmm0
mov dword [rsp + 0x79], eax
mov word [rsp + 0x7d], ax
mov byte [rsp + 0x7f], al
mov byte [rsp + 0x50], al
mov qword [rsp + 0x51], rax
mov byte [rsp + 0x59], al
mov byte [rbp + 0xc0], al
movups xmmword [rbp + 0xc1], xmm0
mov qword [rbp + 0xd1], rax
mov dword [rbp + 0xd9], eax
mov word [rbp + 0xdd], ax
mov byte [rbp + 0xdf], al
lea rdx, [0x1400d5cfc]
lea rcx, str.kmboxnet.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
jne 0x140003237
lea rcx, str.Error_opening_kmboxnet_file
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1400d5e88]
mov qword [rbp - 0x50], rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x40], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x50], rsi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x48], rax
mov byte [rbp + 0x34], bl
mov byte [rbp + 0x29], bl
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x38], rdi
mov rax, qword [0x1400f3ed0]
mov qword [rbp + 0x2c], rax
mov qword [rbp + 0x20], rdi
lea r9d, [rbx + 0x40]
lea r8d, [rbx + 2]
lea rdx, str.kmboxnet.txt
lea rcx, [rbp - 0x48]
call fcn.140004770
test rax, rax
jne 0x1400031fb
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x50]
add rcx, rax
xor r8d, r8d
lea edx, [rbx + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], rsi
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call fcn.140004260
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov r8, rbx
mov edx, Ordinal_27
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140003270
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_reading_KmBoxIP_n
call fcn.1400019d0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, rbx
mov edx, 0xa
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x1400032a9
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_reading_KmBoxPort_n
call fcn.1400019d0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_32
lea rcx, [rbp + 0xc0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x1400032e4
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_reading_KmboxUUID_n
call fcn.1400019d0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rdx, reloc.WS2_32.dll_ioctlsocket
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
cmp rax, 0x18
jae 0x1400035e6
mov byte [rsp + rax + 0x68], 0
lea rdx, reloc.WS2_32.dll_ioctlsocket
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
cmp rax, 0xa
jae 0x1400035e6
mov byte [rsp + rax + 0x50], 0
lea rdx, reloc.WS2_32.dll_ioctlsocket
lea rcx, [rbp + 0xc0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
cmp rax, 0x20
jae 0x1400035e6
mov byte [rbp + rax + 0xc0], 0
lea r8, [rbp + 0xc0]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.1400542b0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
jne 0x14000339a
lea rdx, str._n_t_____kmbox_b_pro__and__kmbox_net__not_found..._try_reconnecting_your_kmbox._exiting...
call fcn.140004a40
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.140004a40
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, str._n_t___connected_to_kmbox_net
call fcn.140004a40
jmp 0x140003570
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rcx, qword [rbp - 0x78]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x1400f3048], rax
cmp rax, 0xffffffffffffffff
je 0x1400034b4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x6c], xmm0
mov qword [rsp + 0x7c], rdi
mov dword [rsp + 0x68], Ordinal_33
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetCommState]
mov rcx, qword [0x1400f3048]
test eax, eax
je 0x1400034ae
mov dword [rsp + 0x6c], 0x1c200
mov word [rsp + 0x7a], 8
mov byte [rsp + 0x7c], 0
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetCommState]
mov rcx, qword [0x1400f3048]
test eax, eax
je 0x1400034ae
mov dword [rsp + 0x50], 5
mov dword [rsp + 0x58], 5
mov dword [rsp + 0x54], 5
mov dword [rsp + 0x60], 5
mov dword [rsp + 0x5c], 5
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
jne 0x1400034d0
lea rdx, str.Error_setting_timeouts_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004a40
lea rdx, [0x140004c10]
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]
mov rcx, qword [0x1400f3048]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str._n_t____opening_the_kmbox_port_failed..._exiting
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004a40
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov byte [0x1400f3044], 1
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea r8, [rbp - 0x78]
lea rcx, [rbp + 0xc0]
call fcn.140004d50
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400034fd
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140005970
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.140004a40
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x14000355c
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003557
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003557
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2600
movzx edx, byte [0x1400f3044]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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___bool____ptr64]
lea rdx, reloc.WS2_32.dll_ioctlsocket
mov rcx, rax
call fcn.140004a40
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x1400035be
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400035b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400035b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2600
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.1400c20c0
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400c21e8
nop
int3