Function at 0x140022af0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x1400ec980]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r12, rcx
xor r13d, r13d
mov dword [rsp + 0x58], r13d
cmp byte [0x1400edb50], r13b
jne 0x140022b6b
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
lea r8d, [r13 + 0x52]
lea rdx, str.You_need_to_run_the_KeyAuthApp.init____function_before_any_other_KeyAuth_functions
lea rcx, [rsp + 0x70]
call fcn.140002660
lea rcx, [rsp + 0x70]
call fcn.140029c60
mov dword [rsp + 0x60], 0xf7eff8b0
mov dword [rsp + 0x64], 0xf9f5e9ff
mov word [rsp + 0x68], 0xa3
mov byte [rsp + 0x6a], 1
mov dword [rsp + 0x58], 0xf4f9f9b0
mov dword [rsp + 0x5c], 0x100a6ff
mov dword [rsp + 0x70], 0xeafde4b0
mov dword [rsp + 0x74], 0xf3f3f2e9
mov dword [rsp + 0x78], 0x9dfbf7
mov byte [rsp + 0x7c], 1
mov dword [rbp + 0x58], 0xfce8eee2
mov dword [rbp + 0x5c], 0xf8f4f8a7
mov dword [rbp + 0x60], 0x100f4fd
mov rcx, r13
nop dword [rax]
lea eax, [rcx - 0x6a]
xor byte [rsp + rcx + 0x70], al
inc rcx
cmp rcx, 0xb
jb 0x140022bd0
mov byte [rsp + 0x7c], r13b
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x7b]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140016670
nop
cmp byte [rbp + 0x63], 0
je 0x140022c24
mov rcx, r13
nop word [rax + rax]
lea eax, [rcx - 0x6a]
xor byte [rbp + rcx + 0x58], al
inc rcx
cmp rcx, 0xa
jb 0x140022c10
mov byte [rbp + 0x63], 0
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x62]
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0xc0]
call fcn.140016670
nop
lea r9, [rbp - 0x70]
lea r8, [rbp + 0xc0]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.14001e3d0
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x140022c9d
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022c97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022c97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140083e2c
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140022cdc
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022cd6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022cd6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140083e2c
nop
lea rdx, [r12 + 0x258]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140022cf2
mov rdx, qword [rdx]
lea rcx, [rbp - 0x50]
call fcn.140008880
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x18]
call fcn.140017080
nop
mov rdx, r12
cmp qword [r12 + 0x18], 0xf
jbe 0x140022d3b
mov rdx, qword [r12]
mov r8, qword [r12 + 0x10]
mov rcx, rax
call fcn.140008880
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.140017360
nop
lea rdx, [r12 + 0x20]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140022d8c
mov rdx, qword [rdx]
mov rcx, rax
call fcn.140008880
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xc0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xd0], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140022df6
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022df1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022df1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140083e2c
movdqa xmm0, xmmword [0x140089ce0]
movdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140022e46
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022e40
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022e40
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140083e2c
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 0xf
jbe 0x140022e84
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022e7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022e7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140083e2c
movdqa xmm0, xmmword [0x140089ce0]
movdqu xmmword [rbp + 0x28], xmm0
mov byte [rbp + 0x18], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140022ed4
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022ece
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022ece
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140083e2c
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x140022f12
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022f0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022f0d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140083e2c
movdqa xmm0, xmmword [0x140089ce0]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
lea rax, [rbp - 0x70]
mov qword [rbp + 0x10], rax
lea rdx, [r12 + 0x80]
lea rcx, [rbp - 0x70]
call fcn.140005c40
mov rbx, rax
lea rdx, [rbp + 0xc0]
lea rcx, [rbp - 0x30]
call fcn.140005c40
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.140030ad0
nop
mov qword [rbp + 0x50], r13
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, [rbp + 0x18]
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x70]
call fcn.14001ba40
nop
mov dword [rsp + 0x48], 0xeaebf2fb
mov dword [rsp + 0x4c], 0xf9fcfb
mov byte [rsp + 0x50], 1
mov rcx, r13
nop dword [rax]
lea eax, [rcx - 0x6a]
xor byte [rsp + rcx + 0x48], al
inc rcx
cmp rcx, 7
jb 0x140022fa0
mov byte [rsp + 0x50], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x4f]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x50]
call fcn.140016670
nop
mov rbx, qword [rsp + 0x48]
movzx ecx, byte [rbp + 0x70]
test cl, cl
jne 0x140022fee
mov byte [rbp + 0x70], 1
call fcn.140019ee0
mov qword [rbp + 0x78], rax
movzx ecx, byte [rbp + 0x70]
jmp 0x140022ff2
mov rax, qword [rbp + 0x78]
cmp cl, 1
jne 0x140023006
lea rdx, [rbp - 0x50]
mov rcx, rax
call fcn.140020030
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r13
mov qword [rbp + 0x98], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x80], 0
mov dword [rsp + 0x58], 0x3fac
cmp byte [rbx], 3
jne 0x140023048
mov rdx, qword [rbx + 8]
lea rax, [rbp + 0x80]
cmp rax, rdx
je 0x140023066
jmp 0x14002304b
mov rdx, r13
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140023059
mov rdx, qword [rdx]
lea rcx, [rbp + 0x80]
call fcn.140010cf0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x1400230a4
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002309f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002309f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140083e2c
movdqa xmm0, xmmword [0x140089ce0]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0xe0]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x14008a998]
mov qword [rbp + 0xe0], rax
lea rax, [0x14008a9a0]
mov qword [rbp + 0xf0], rax
lea rcx, [rbp + 0x178]
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 + 0x58], 0x3fdc
xor r8d, r8d
lea rdx, [rbp + 0xf8]
lea rcx, [rbp + 0xe0]
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 + 0xe0]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0xe0], rdi
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0xdc], edx
lea rcx, [rbp + 0xf8]
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 + 0xf8], rax
mov qword [rbp + 0x160], r13
mov dword [rbp + 0x168], r13d
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.140083df0
mov rsi, rax
mov qword [rbp + 0x58], rax
lea r15, [rax + 0x20]
mov qword [rbp + 0x68], r15
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rbp + 0x60], r15
lea r8, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0xf
cmova r8, qword [rbp + 0xa0]
lea rcx, [r12 + 0x278]
cmp qword [rcx + 0x18], 0xf
jbe 0x1400231c5
mov rcx, qword [rcx]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov qword [rsp + 0x20], rsi
mov r9, qword [rbp + 0xb0]
mov rdx, qword [r12 + 0x288]
call fcn.1400384c0
mov r14, rsi
cmp rsi, r15
je 0x14002325a
nop
movzx edi, byte [r14]
lea rdx, [0x14000a0c0]
lea rcx, [rbp + 0xf0]
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 rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0x30
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::fill_char____ptr64]
mov edx, 2
lea rcx, [rsp + 0x70]
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 0x1400231f0
lea rdi, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea rbx, [0x1400ec8d0]
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
cmova rbx, qword [0x1400ec8d0]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xe0]
call fcn.140033250
cmp qword [rax + 0x18], 0xf
jbe 0x140023290
mov rax, qword [rax]
nop dword [rax + rax]
movd xmm2, dword [rax]
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
psrad xmm2, 0x18
movd xmm0, dword [rbx]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm2, xmm0
movd xmm1, dword [rax + 4]
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
psrad xmm1, 0x18
movd xmm0, dword [rbx + 4]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
orps xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movd ebx, xmm2
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140023339
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023334
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140023334
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140083e2c
test ebx, ebx
je 0x1400233aa
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp + 0x90]
sub rax, rcx
cmp rax, 0x6b
jb 0x140023592
lea rax, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova rax, qword [rbp + 0x80]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], WSAStartup
lea r9, str.Signature_checksum_failed._Request_was_tampered_with_or_session_ended_most_likely.__echo:__echo_Message:
lea r8, [rbp + 0x80]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140005d60
lea rcx, [rbp - 0x70]
call fcn.140029c60
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.14001e160
mov rdx, rax
mov rcx, r12
call fcn.14002e4b0
nop
test rsi, rsi
je 0x1400233fd
sub r15, rsi
cmp r15, 0x1000
jb 0x1400233f1
add r15, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x14002348e
mov rsi, rcx
mov rdx, r15
mov rcx, rsi
call fcn.140083e2c
nop
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xe0], rdi
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0xdc], edx
lea rcx, [rbp + 0xf8]
call fcn.14001f350
lea rcx, [rbp + 0x100]
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 + 0x178]
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 + 0x98]
cmp rdx, 0xf
jbe 0x14002349a
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023495
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140023495
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.140083e2c
mov qword [rbp + 0x90], r13
mov qword [rbp + 0x98], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x80], 0
movzx edx, byte [rbp + 0x70]
lea rcx, [rbp + 0x78]
call fcn.140027180
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x140023505
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023500
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140023500
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140083e2c
mov qword [rbp + 0xb0], r13
mov qword [rbp + 0xb8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xa0], 0
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x140023562
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002355d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002355d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140083e2c
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140083dd0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140008590
nop
int3