Function at 0x140050140
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x1400cd080]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov r12, rdx
mov r13, rcx
mov qword [rbp + 0xa0], rdx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
cmp byte [0x1400f3e61], r15b
jne 0x1400501c9
xorps xmm0, xmm0
movups xmmword [rbp + 0xd8], xmm0
mov qword [rbp + 0xe8], r15
mov qword [rbp + 0xf0], r15
lea r8d, [r15 + 0x52]
lea rdx, str.You_need_to_run_the_KeyAuthApp.init____function_before_any_other_KeyAuth_functions
lea rcx, [rbp + 0xd8]
call fcn.140008a20
lea rcx, [rbp + 0xd8]
call fcn.1400527e0
mov dword [rsp + 0x68], 0xb1a9b2fa
mov dword [rsp + 0x6c], 0x878b9385
mov word [rsp + 0x70], reloc.WLDAP32.dll_Ordinal_217
mov byte [rsp + 0x72], 1
mov dword [rsp + 0x40], 0xb2bfb3fa
mov dword [rsp + 0x44], 0x100dc85
mov dword [rbp - 0x80], 0xacbbaefa
mov dword [rbp - 0x7c], 0x8d8d8893
mov dword [rbp - 0x78], 0xdb818d
mov byte [rbp - 0x74], 1
mov dword [rsp + 0x48], 0xbebbaffa
mov dword [rsp + 0x4c], 0xde8c8e93
mov word [rsp + 0x50], 0x100
mov dword [rsp + 0x58], 0xbaaea4a8
mov dword [rsp + 0x5c], 0x8d8383dd
mov word [rsp + 0x60], 0x100
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x58]
call fcn.140046520
nop
mov rdx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x14005025f
mov rdx, qword [r12]
mov r8, qword [r12 + 0x10]
mov rcx, rax
call fcn.140007420
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x38]
call fcn.140046920
nop
lea rdx, [r13 + 0x238]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400502b1
mov rdx, qword [rdx]
mov rcx, rax
call fcn.140007420
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x18], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x28], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 8]
call fcn.140046360
nop
mov rdx, r13
cmp qword [r13 + 0x18], 0x10
jb 0x1400502f8
mov rdx, qword [r13]
mov r8, qword [r13 + 0x10]
mov rcx, rax
call fcn.140007420
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xb8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xc8], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0xb8]
lea rcx, [rbp - 0x28]
call fcn.140046720
nop
lea rdx, [r13 + 0x20]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140050350
mov rdx, qword [rdx]
mov rcx, rax
call fcn.140007420
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xd8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xe8], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x1400503ba
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400503b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400503b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400acb0c
movdqa xmm0, xmmword [0x1400c0750]
movdqu xmmword [rbp - 0x18], xmm0
mov byte [rbp - 0x28], 0
mov rdx, qword [rbp + 0xd0]
cmp rdx, 0x10
jb 0x140050410
inc rdx
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005040a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005040a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400acb0c
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x14005044e
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050449
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050449
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400acb0c
movdqa xmm0, xmmword [0x1400c0750]
movdqu xmmword [rbp + 8], xmm0
mov byte [rbp - 8], 0
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x14005049e
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050498
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050498
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400acb0c
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x1400504dc
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400504d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400504d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400acb0c
movdqa xmm0, xmmword [0x1400c0750]
movdqu xmmword [rbp + 0x48], xmm0
mov byte [rbp + 0x38], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x14005052c
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050526
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050526
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400acb0c
nop
mov rdx, qword [rbp + 0x70]
cmp rdx, 0x10
jb 0x14005056a
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050565
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050565
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400acb0c
movdqa xmm0, xmmword [0x1400c0750]
movdqu xmmword [rbp + 0x68], xmm0
mov byte [rbp + 0x58], 0
lea rax, [rbp - 0x48]
mov qword [rbp + 0x98], rax
lea rdx, [r13 + 0x80]
lea rcx, [rbp - 0x48]
call fcn.1400072d0
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0xb8], xmm0
mov qword [rbp + 0xc8], r15
mov qword [rbp + 0xd0], r15
lea rsi, [rbp + 0xd8]
cmp qword [rbp + 0xf0], 0x10
cmovae rsi, qword [rbp + 0xd8]
movabs rbx, 0x7fffffffffffffff
mov rdi, qword [rbp + 0xe8]
cmp rdi, rbx
ja 0x140050e39
mov qword [rbp + 0xd0], reloc.WS2_32.dll_ntohs
cmp rdi, 0x10
jae 0x140050611
mov qword [rbp + 0xc8], rdi
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rsi
lea rcx, [rbp + 0xb8]
call sub.VCRUNTIME140.dll_memmove
jmp 0x14005066f
mov rax, rdi
or rax, 0xf
cmp rax, rbx
ja 0x14005062c
mov rbx, rax
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmp rax, rcx
cmovb rbx, rcx
mov rdx, rbx
add rdx, 1
mov rax, 0xffffffffffffffff
cmovb rdx, rax
lea rcx, [rbp + 0xb8]
call fcn.14001a0e0
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc8], rdi
mov qword [rbp + 0xd0], rbx
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
nop
mov r8, r14
lea rdx, [rbp + 0xb8]
lea rcx, [rbp + 0xf8]
call fcn.140059e90
nop
mov qword [rbp + 0x90], r15
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, [rbp + 0x58]
lea rdx, [rbp + 0xf8]
lea rcx, [rbp + 0xa8]
call fcn.14004b0f0
nop
mov dword [rsp + 0x30], 0xacadb8b1
mov dword [rsp + 0x34], 0x878681
mov byte [rsp + 0x38], 1
mov rcx, r15
nop word [rax + rax]
lea eax, [rcx - 0x24]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 7
jb 0x1400506d0
mov byte [rsp + 0x38], 0
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x37]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xb8]
call fcn.14000c370
nop
mov rbx, qword [rsp + 0x30]
movzx ecx, byte [rbp + 0xa8]
test cl, cl
jne 0x1400507f8
mov byte [rbp + 0xa8], 1
call fcn.1400481a0
mov qword [rbp + 0xb0], rax
movzx ecx, byte [rbp + 0xa8]
cmp cl, 1
jne 0x140050765
test rax, rax
jne 0x140050804
mov r8d, 0x4c8
lea rdx, str.C:Users_sdffdDesktopkeyauth_cpp_library_main_nlohmannjson.hpp
lea rcx, str.m_type___value_t::object__m_value.object___nullptr
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbp + 0xb0]
movzx ecx, byte [rbp + 0xa8]
cmp cl, 2
jne 0x14005079b
test rax, rax
jne 0x140050816
mov r8d, 0x4c9
lea rdx, str.C:Users_sdffdDesktopkeyauth_cpp_library_main_nlohmannjson.hpp
lea rcx, str.m_type___value_t::array__m_value.array___nullptr
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbp + 0xb0]
movzx ecx, byte [rbp + 0xa8]
cmp cl, 3
jne 0x1400507cd
test rax, rax
jne 0x140050816
mov r8d, 0x4ca
lea rdx, str.C:Users_sdffdDesktopkeyauth_cpp_library_main_nlohmannjson.hpp
lea rcx, str.m_type___value_t::string__m_value.string___nullptr
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rbp + 0xb0]
movzx ecx, byte [rbp + 0xa8]
cmp cl, 8
jne 0x1400507ff
test rax, rax
jne 0x140050816
mov r8d, 0x4cb
lea rdx, str.C:Users_sdffdDesktopkeyauth_cpp_library_main_nlohmannjson.hpp
lea rcx, str.m_type___value_t::binary__m_value.binary___nullptr
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movzx ecx, byte [rbp + 0xa8]
mov rax, qword [rbp + 0xb0]
cmp cl, 1
jne 0x140050816
lea rdx, [rbp + 0xb8]
mov rcx, rax
call fcn.14004ec80
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x118], xmm0
movdqa xmm1, xmmword [0x1400c0750]
movdqu xmmword [rbp + 0x128], xmm1
mov byte [rbp + 0x118], 0
mov dword [rsp + 0x40], 0xed8
cmp byte [rbx], 3
jne 0x140050856
mov rdx, qword [rbx + 8]
lea rax, [rbp + 0x118]
cmp rax, rdx
je 0x140050874
jmp 0x140050859
mov rdx, r15
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140050867
mov rdx, qword [rdx]
lea rcx, [rbp + 0x118]
call fcn.14004ff60
nop
mov rdx, qword [rbp + 0xd0]
cmp rdx, 0x10
jb 0x1400508b8
inc rdx
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400508b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400508b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400acb0c
movdqa xmm0, xmmword [0x1400c0750]
movdqu xmmword [rbp + 0xc8], xmm0
mov byte [rbp + 0xb8], 0
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x140]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1400b0da8]
mov qword [rbp + 0x140], rax
lea rax, [0x1400b0db0]
mov qword [rbp + 0x150], rax
lea rcx, [rbp + 0x1d8]
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], 0xfb8
xor r8d, r8d
lea rdx, [rbp + 0x158]
lea rcx, [rbp + 0x140]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp + 0x140]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x140], rax
mov rax, qword [rbp + 0x140]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x13c], edx
lea rcx, [rbp + 0x158]
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_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x158], rax
mov qword [rbp + 0x1c0], r15
mov dword [rbp + 0x1c8], r15d
xorps xmm0, xmm0
movups xmmword [rbp + 0xb8], xmm0
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400ac890
mov rsi, rax
mov qword [rbp + 0xb8], rax
lea r15, [rax + 0x20]
mov qword [rbp + 0xc8], r15
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rbp + 0xc0], r15
lea r8, [rbp + 0xf8]
cmp qword [rbp + 0x110], 0x10
cmovae r8, qword [rbp + 0xf8]
lea rcx, [r13 + 0x258]
cmp qword [rcx + 0x18], 0x10
jb 0x1400509ea
mov rcx, qword [rcx]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rsi
mov r9, qword [rbp + 0x108]
mov rdx, qword [r13 + 0x268]
call fcn.140062330
mov r14, rsi
cmp rsi, r15
je 0x140050a6f
movzx edi, byte [r14]
lea rdx, [0x140053890]
lea rcx, [rbp + 0x150]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rbx, rax
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov byte [rdx + rax + 0x58], Ordinal_50
mov edx, 2
lea rcx, [rbp - 0x80]
call sub.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__
mov r8, qword [rax]
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call r8
mov edx, edi
mov rcx, rbx
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]
inc r14
cmp r14, r15
jne 0x140050a13
lea rdi, [section..data]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rdi, qword [section..data]
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x1400c0750]
movdqu xmmword [rbp - 0x58], xmm1
mov byte [rbp - 0x68], 0
mov dword [rsp + 0x40], 0xfba
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
mov ecx, dword [rbp + 0x1c8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140050aeb
mov rax, qword [rbp + 0x198]
mov r8, qword [rax]
test r8, r8
je 0x140050aeb
mov rax, qword [rbp + 0x178]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x1c0]
cmovb r8, qword [rbp + 0x1c0]
sub r8, rdx
jmp 0x140050b23
test cl, 4
jne 0x140050b1b
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax]
test rcx, rcx
je 0x140050b1b
mov rax, qword [rbp + 0x170]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x1a8]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140050b23
mov r8, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x80]
test rdx, rdx
je 0x140050b32
lea rcx, [rbp - 0x68]
call fcn.14004ff60
nop
lea rdx, [rbp - 0x68]
mov r8, qword [rbp - 0x68]
mov r9, qword [rbp - 0x50]
cmp r9, 0x10
cmovae rdx, r8
movsx ebx, byte [rdx + 7]
movsx eax, byte [rdi + 7]
xor ebx, eax
movsx ecx, byte [rdx + 6]
movsx eax, byte [rdi + 6]
xor ecx, eax
or ebx, ecx
movsx ecx, byte [rdx + 5]
movsx eax, byte [rdi + 5]
xor ecx, eax
or ebx, ecx
movsx ecx, byte [rdx + 4]
movsx eax, byte [rdi + 4]
xor ecx, eax
or ebx, ecx
movsx ecx, byte [rdx + 3]
movsx eax, byte [rdi + 3]
xor ecx, eax
or ebx, ecx
movsx ecx, byte [rdx + 2]
movsx eax, byte [rdi + 2]
xor ecx, eax
or ebx, ecx
movsx ecx, byte [rdx + 1]
movsx eax, byte [rdi + 1]
xor ecx, eax
or ebx, ecx
movsx ecx, byte [rdx]
movsx eax, byte [rdi]
xor ecx, eax
or ebx, ecx
cmp r9, 0x10
jb 0x140050bdc
lea rdx, [r9 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x140050bd4
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050bd4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.1400acb0c
test ebx, ebx
je 0x140050bff
lea r8, [rbp + 0x118]
lea rdx, str.Signature_checksum_failed._Request_was_tampered_with_or_session_ended_most_likely.__echo:__echo_Message:
lea rcx, [rbp + 0x58]
call fcn.140007560
mov rcx, rax
call fcn.1400527e0
lea rdx, [rbp + 0xa8]
lea rcx, [rbp - 0x80]
call fcn.14004db90
mov rdx, rax
mov rcx, r13
call fcn.1400557b0
nop
test rsi, rsi
je 0x140050c54
sub r15, rsi
cmp r15, 0x1000
jb 0x140050c48
add r15, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x140050cec
mov rsi, rcx
mov rdx, r15
mov rcx, rsi
call fcn.1400acb0c
nop
mov rax, qword [rbp + 0x140]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x140], rax
mov rax, qword [rbp + 0x140]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x13c], edx
lea rcx, [rbp + 0x158]
call fcn.14004e660
lea rcx, [rbp + 0x160]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x1d8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x130]
cmp rdx, 0x10
jb 0x140050cf9
inc rdx
mov rcx, qword [rbp + 0x118]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050cf3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050cf3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400acb0c
nop
lea rcx, [rbp + 0xa8]
call fcn.14004feb0
movzx edx, byte [rbp + 0xa8]
lea rcx, [rbp + 0xb0]
call fcn.140051b90
nop
mov rdx, qword [rbp + 0x110]
cmp rdx, 0x10
jb 0x140050d5d
inc rdx
mov rcx, qword [rbp + 0xf8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050d58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050d58
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400acb0c
xor ebx, ebx
mov qword [rbp + 0x108], rbx
mov qword [rbp + 0x110], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xf8], bl
mov rax, qword [rbp + 0xf0]
cmp rax, 0x10
jb 0x140050dbd
lea rdx, [rax + 1]
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050db7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050db7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400acb0c
nop
mov rdx, qword [r12 + 0x18]
cmp rdx, 0x10
jb 0x140050df5
inc rdx
mov rcx, qword [r12]
cmp rdx, 0x1000
jb 0x140050df0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140050e32
mov rcx, r8
call fcn.1400acb0c
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r12], 0
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400ac870
mov rbx, qword [rsp + 0x3a0]
add rsp, 0x350
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001b20
nop
int3