Function at 0x14005f630
Capabilities:
Terminate process
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x1400ad040]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rsi, qword [rcx + 0x18]
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
cmp rsi, 0xf
jbe 0x14005f668
mov rcx, qword [rcx]
cmp rdi, 3
jne 0x14005f8bb
mov r8, rdi
lea rdx, [0x14009ba6c]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14005f8bb
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, recvfrom
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp qword [0x1400ad158], 0xf
lea rsi, [0x1400ad140]
mov r8, qword [0x1400ad150]
mov rcx, rsi
cmova rcx, qword [0x1400ad140]
cmp r8, 2
jne 0x14005f6e0
lea rdx, [0x14009128c]
call sub.VCRUNTIME140.dll_memcmp
lea rdx, str.____Initializing_KMbox_NET_with_IP:
test eax, eax
je 0x14005f6e7
lea rdx, [0x14009c3a8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdi, [rbx + 0x20]
call fcn.140008a50
cmp qword [rdi + 0x18], 0xf
mov r8, qword [rdi + 0x10]
jbe 0x14005f705
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.140009b00
lea rdx, str.__Port:
mov rcx, rax
call fcn.140008a50
mov edx, dword [rbx + 0x40]
lea rdi, [rbx + 0x48]
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___int____ptr64]
mov rcx, rax
lea rdx, str.__UUID:
call fcn.140008a50
cmp qword [rdi + 0x18], 0xf
mov rdx, rdi
jbe 0x14005f74b
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140009b00
lea rdx, [0x140008c30]
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]
cmp qword [rdi + 0x18], 0xf
jbe 0x14005f771
mov rdi, qword [rdi]
mov edx, dword [rbx + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14000b4d0
cmp qword [rax + 0x18], 0xf
jbe 0x14005f788
mov rax, qword [rax]
cmp qword [rbx + 0x38], 0xf
lea rcx, [rbx + 0x20]
jbe 0x14005f796
mov rcx, qword [rcx]
mov r8, rdi
mov rdx, rax
call fcn.140059690
mov rdx, qword [rsp + 0x48]
mov edi, eax
cmp rdx, 0xf
jbe 0x14005f7e3
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f7de
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005f7de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006ef34
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 7
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test edi, edi
je 0x14005f83a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_initialize_KMbox_NET__error_code:
call fcn.140008a50
mov edx, edi
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140008c30]
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 ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0xa
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp qword [0x1400ad158], 0xf
mov r8, qword [0x1400ad150]
cmova rsi, qword [0x1400ad140]
cmp r8, 2
jne 0x14005f88a
lea rdx, [0x14009128c]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcmp
lea rdx, str.___KMbox_NET_initialized_successfully_n
test eax, eax
je 0x14005f891
lea rdx, str.___KMbox_NET
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140008a50
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 7
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
jmp 0x14005fa34
mov rcx, rbx
cmp rsi, 0xf
jbe 0x14005f8c7
mov rcx, qword [rbx]
cmp rdi, 4
jne 0x14005fbc0
mov r8, rdi
lea rdx, str.BPro
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14005fbc0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Initializing_KMbox_BPro_on_COM_port
call fcn.140008a50
mov edx, dword [rbx + 0x68]
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140008c30]
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 ecx, dword [rbx + 0x68]
lea eax, [rcx - 1]
cmp eax, 0x3ff
ja 0x14005fb85
mov dword [0x1400ad258], ecx
lea r8, str..COM
lea rcx, [0x1400ad268]
mov edx, reloc.WS2_32.dll_sendto
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov ecx, dword [0x1400ad258]
lea rdx, [rsp + 0x58]
mov r9d, 0xa
mov r8d, recvfrom
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ltoa_s]
lea r8, [rsp + 0x58]
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [0x1400ad268]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov rax, qword [vtable._base_com.0]
lea rcx, vtable._base_com.0
call qword [rax]
test al, al
je 0x14005fb85
mov rax, qword [vtable._base_com.0]
lea rcx, vtable._base_com.0
call qword [rax + htons]
test al, al
je 0x14005fb85
mov rax, qword [0x1400ad260]
cmp rax, 0xffffffffffffffff
je 0x14005fa07
mov rcx, qword [0x1400ad260]
lea rdx, [0x1400ad27c]
call qword [sym.imp.KERNEL32.dll_GetCommState]
test eax, eax
je 0x14005fa07
mov rcx, qword [0x1400ad260]
lea rdx, [0x1400ad27c]
mov dword [0x1400ad280], 0x1c200
mov word [0x1400ad28e], 8
mov byte [0x1400ad290], 0
call qword [sym.imp.KERNEL32.dll_SetCommState]
cmp eax, 1
sete al
jmp 0x14005fa09
xor al, al
test al, al
je 0x14005fb85
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.KMbox_BPro_initialized_successfully.
call fcn.140008a50
lea rdx, [0x140008c30]
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 rsi, qword [rbx + 0x18]
mov rcx, rbx
mov rdi, qword [rbx + 0x10]
cmp rsi, 0xf
jbe 0x14005fa48
mov rcx, qword [rbx]
cmp rdi, 3
jne 0x14005fa65
mov r8, rdi
lea rdx, [0x14009ba6c]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14005fb60
cmp rsi, 0xf
jbe 0x14005fa6e
mov rbx, qword [rbx]
cmp rdi, 4
jne 0x14005fb60
mov r8, rdi
lea rdx, str.BPro
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14005fb60
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Moving_mouse_600_pixels_to_the_right__BPro__n
call fcn.140008a50
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rdx, str.km.move__d___d__10__r_n
mov r8d, 0x258
lea rcx, [rsp + 0x70]
call fcn.1400600e0
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14005fae0
mov rax, qword [0x1400ad260]
cmp rax, 0xffffffffffffffff
je 0x14005fb60
mov rcx, qword [0x1400ad260]
lea rdx, [rsp + 0x50]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x14005fb28
cmp dword [rsp + 0x50], 0
jbe 0x14005fb28
mov rcx, qword [0x1400ad260]
mov edx, 5
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov rcx, qword [0x1400ad260]
lea rax, [0x1400ad2d0]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r8d, ebx
mov dword [rsp + 0x54], 0
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14005fb60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14006ec90
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_initialize_KMbox_BPro_on_COM_port
call fcn.140008a50
mov edx, dword [rbx + 0x68]
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140008c30]
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 ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Wrong_KMbox_type_specified__please_type_exactly_Net_or_BPro_in_your_cfg.
call fcn.140008a50
mov rcx, rax
mov rdx, rbx
call fcn.140008c70
lea rdx, [0x140008c30]
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 ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3