Function at 0x140003520
Capabilities:
Execute command

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 - 0x230]
sub rsp, 0x330
mov rax, qword [0x140091800]
xor rax, rsp
mov qword [rbp + 0x220], rax
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rax, str.bin_launch.syn
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], select
call fcn.14006dc18
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x50]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.1400020e0
nop
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova rcx, qword [rsp + 0x28]
mov r9d, 0xffffffff
lea r8d, [r14 + 3]
lea rdx, [rbp - 0x28]
call fcn.14006dd54
mov edx, eax
test eax, eax
jne 0x1400035e9
mov ecx, dword [rbp - 0x18]
bt ecx, 0xa
jae 0x1400035de
mov eax, dword [rbp - 0x14]
cmp eax, 0xa000000c
jne 0x1400035d0
lea ecx, [rdx + 4]
jmp 0x140003606
cmp eax, 0xa0000003
jne 0x1400035de
mov ecx, 0xa
jmp 0x140003606
and ecx, 0x10
or ecx, 0x20
shr ecx, 4
jmp 0x140003606
sub eax, 2
je 0x140003601
sub eax, 1
je 0x140003601
sub eax, 0x32
je 0x140003601
cmp eax, 0x46
je 0x140003601
xor al, al
jmp 0x140003603
mov al, 1
movzx ecx, al
mov dword [rbp - 0x50], edx
lea rax, [0x140091888]
mov qword [rbp - 0x48], rax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
test ecx, ecx
je 0x140003667
cmp ecx, 1
sete bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x140003678
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003673
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003673
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov bl, 1
test edx, edx
jne 0x140003e96
jmp 0x140003627
call fcn.14006e514
test bl, bl
je 0x1400036c3
lea rcx, str.launch.syn_not_found_n
call fcn.140001780
lea rcx, str.pause___nul
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14006e1a0
lea r11, [rsp + 0x330]
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
lea rcx, str.Enter_action_to_do__1__downgrade__2__undowngrade_:
call fcn.140001780
lea rdx, [rbp - 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
lea r15, [0x140000000]
lea rax, [r15 + 0x84ed8]
mov qword [rbp], rax
lea rcx, [rbp + 0xb0]
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 + 0x20], 0x1c
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x10]
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_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]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 0x10]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rsi, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x10], rsi
mov byte [rbp + 0x8c], 0
mov byte [rbp + 0x81], 0
lea rcx, [rbp + 0x10]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x90], r14
mov rax, qword [0x140092a10]
mov qword [rbp + 0x84], rax
mov qword [rbp + 0x78], r14
mov r8d, 1
lea rcx, [rbp + 0x10]
call fcn.140005300
test rax, rax
jne 0x1400037e2
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
cmp qword [rbp + 0x90], 0
je 0x140003823
lea rdx, [rbp - 0x28]
lea rcx, [rbp]
call fcn.1400058e0
lea rcx, [rbp + 0x10]
call fcn.140005240
test rax, rax
jne 0x140003823
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x78]
call fcn.140004ec0
mov rbx, rax
mov qword [rbp - 0x50], rax
mov ecx, 0x60
call fcn.14006e1c0
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], r14
mov qword [rax + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rax + 0x20], 0
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x50], r14
mov qword [rax + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rax + 0x40], 0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov r8d, 0x18
cmp qword [rbx + 0x10], r8
cmovb r8, qword [rbx + 0x10]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400038ac
mov rdx, qword [rbx]
lea rcx, [rsp + 0x28]
call fcn.140005e90
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140004df0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140003900
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400038fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003a25
call fcn.14006e514
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov rax, qword [rbx + 0x10]
cmp rax, 0x18
jb 0x140003e90
add rax, 0xffffffffffffffe8
mov r8d, reloc.WS2_32.dll_sendto
cmp rax, r8
cmovb r8, rax
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000393e
mov rdx, qword [rbx]
add rdx, 0x18
lea rcx, [rsp + 0x28]
call fcn.140005e90
lea rcx, [rdi + 0x20]
lea rdx, [rsp + 0x28]
call fcn.140004df0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140003997
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003992
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003a25
call fcn.14006e514
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov rax, qword [rbx + 0x10]
cmp rax, 0x2c
jb 0x140003e90
add rax, 0xffffffffffffffd4
mov r8d, recv
cmp rax, r8
cmovb r8, rax
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400039d5
mov rdx, qword [rbx]
add rdx, 0x2c
lea rcx, [rsp + 0x28]
call fcn.140005e90
lea rcx, [rdi + 0x40]
lea rdx, [rsp + 0x28]
call fcn.140004df0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140003a32
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003a2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a2c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e514
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140003a6c
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140003a67
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003ba5
mov rcx, r8
call fcn.14006e514
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x110]
call sub.VCRUNTIME140.dll_memset
lea rax, [r15 + 0x84eb8]
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x1b8]
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 + 0x20], 0x1fc
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x118]
lea rcx, [rbp + 0x110]
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 + 0x110]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x110], rax
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x10c], edx
lea rcx, [rbp + 0x118]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rbp + 0x118], rsi
mov byte [rbp + 0x194], 0
mov byte [rbp + 0x189], 0
lea rcx, [rbp + 0x118]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x198], r14
mov rax, qword [0x140092a10]
mov qword [rbp + 0x18c], rax
mov qword [rbp + 0x180], r14
mov r8d, 2
lea rcx, [rbp + 0x118]
call fcn.140005300
test rax, rax
jne 0x140003b85
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x110]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rsi, [rdi + 0x40]
add rdi, 0x20
cmp dword [rbp - 0x30], 1
jne 0x140003bac
lea rcx, [rsp + 0x68]
call fcn.140002ee0
nop
mov ebx, 0x1fd
jmp 0x140003bdf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov r8d, 0x18
lea rdx, str.version_aaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x28]
call fcn.140005e90
lea rax, [rsp + 0x28]
mov ebx, 0x1fe
mov dword [rsp + 0x20], ebx
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140003bf1
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.140005510
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
bts ebx, 9
mov dword [rsp + 0x20], ebx
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x140003c44
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140005510
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
bts ebx, 0xa
mov dword [rsp + 0x20], ebx
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
lea rcx, [rbp + 0x110]
call fcn.140007040
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x140003ce3
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003cde
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003cde
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e514
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x50], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140003d33
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003d2e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e514
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], 0
test bl, 2
je 0x140003da1
and ebx, 0xfffffffd
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140003d8e
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003d89
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e514
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
test bl, 1
je 0x140003de5
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140003de5
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003de0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003de0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e514
lea rcx, [rbp + 0x118]
call fcn.140005240
test rax, rax
jne 0x140003e18
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x110]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, str.Patched_launch.syn_successfully__n
call fcn.140001780
lea rcx, str.pause___nul
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
lea rcx, [rbp + 0x110]
call fcn.140003eb0
nop
lea rcx, [rbp]
call fcn.140002e20
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140003695
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003e86
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003e86
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006e514
jmp 0x140003695
call fcn.140005620
nop
lea r8, [rsp + 0x28]
lea rdx, [rbp - 0x50]
call fcn.140002b50
int3