Function at 0x140064d40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x1400f1080]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rsi, r8
mov r15, rdx
mov r13, rcx
mov qword [rsp + 0x60], rdx
mov qword [rbp + 0x78], r8
xor edi, edi
mov dword [rbp - 0x78], edi
mov dword [rsp + 0x30], 0xe0fae3ad
mov dword [rsp + 0x34], 0xf6f8e2ea
mov word [rsp + 0x38], 0xae
mov byte [rsp + 0x3a], 1
mov ecx, edi
nop word [rax + rax]
lea eax, [rcx - 0x75]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 9
jb 0x140064db0
mov byte [rsp + 0x3a], 0
mov dword [rsp + 0x60], 0xe3ece2ad
mov dword [rsp + 0x64], 0x100adea
mov dword [rsp + 0x40], 0xfde8ffad
mov dword [rsp + 0x44], 0xfcfef9fc
mov dword [rsp + 0x48], 0xa8f0fa
mov byte [rsp + 0x4c], 1
mov dword [rsp + 0x68], 0xe2e4eaad
mov dword [rsp + 0x6c], 0xaff5f9ea
mov word [rsp + 0x70], 0x100
mov dword [rsp + 0x78], 0xebfdf5ff
mov dword [rsp + 0x7c], 0xfef8f6b2
mov word [rbp - 0x80], 0xf6
mov byte [rbp - 0x7e], 1
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 8]
call fcn.14005c0d0
nop
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140064e44
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov rcx, rax
call fcn.14004fdb0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x58]
call fcn.14005c350
nop
lea rdx, [r13 + 0x240]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140064e96
mov rdx, qword [rdx]
mov rcx, rax
call fcn.14004fdb0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x38]
call fcn.14005bd70
nop
mov r8, r13
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14005bb40
nop
lea r8, [rsp + 0x30]
mov rdx, rax
lea rcx, [rbp + 0x98]
call fcn.14005bbb0
nop
lea r8, [r13 + 0x20]
mov rdx, rax
lea rcx, [rbp + 0xe8]
call fcn.14005bb40
nop
mov r8, qword [rbp + 0xb0]
cmp r8, 0x10
jb 0x140064f2b
inc r8
mov rdx, qword [rbp + 0x98]
lea rcx, [rbp + 0x98]
call fcn.14004ffa0
movdqa xmm0, xmmword [0x1400df450]
movdqu xmmword [rbp + 0xa8], xmm0
mov byte [rbp + 0x98], 0
mov r8, qword [rbp - 0x58]
cmp r8, 0x10
jb 0x140064f5c
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.14004ffa0
movdqa xmm0, xmmword [0x1400df450]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
lea rcx, [rbp + 0x38]
call fcn.14004fd50
nop
lea rcx, [rbp - 0x50]
call fcn.14004fd50
nop
lea rcx, [rbp + 0x58]
call fcn.14004fd50
nop
lea rcx, [rbp - 0x30]
call fcn.14004fd50
nop
lea rcx, [rbp - 8]
call fcn.14004fd50
lea rax, [rbp - 0x30]
mov qword [rbp - 0x10], rax
lea rdx, [r13 + 0x80]
lea rcx, [rbp - 0x30]
call fcn.140059cc0
mov rbx, rax
lea rdx, [rbp + 0xe8]
lea rcx, [rbp - 0x50]
call fcn.140059cc0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0xc8]
call fcn.14006b670
nop
mov qword [rbp + 0x30], rdi
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, [rbp - 8]
lea rdx, [rbp + 0xc8]
lea rcx, [rbp + 0xb8]
call fcn.14005faf0
nop
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x110]
call sub.VCRUNTIME140.dll_memset
mov edx, 1
lea rcx, [rbp + 0x110]
call fcn.140061fa0
nop
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
mov qword [rbp + 0x90], rdi
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400bceec
mov qword [rbp + 0x80], rax
lea r9, [rax + 0x20]
mov qword [rbp + 0x90], r9
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rbp + 0x88], r9
mov rax, qword [rbp + 0x80]
sub r9, rax
lea r8, [rbp + 0xc8]
cmp qword [rbp + 0xe0], 0x10
cmovae r8, qword [rbp + 0xc8]
lea rcx, [r13 + 0x260]
cmp qword [rcx + 0x18], 0x10
jb 0x140065098
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0xd8]
mov rdx, qword [r13 + 0x270]
call fcn.1400726d0
mov r12, qword [rbp + 0x88]
mov r14, qword [rbp + 0x80]
cmp r14, r12
je 0x14006512f
nop dword [rax + rax]
movzx edi, byte [r14]
lea rdx, [0x140066de0]
lea rcx, [rbp + 0x120]
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 rax, qword [rax]
movsxd rcx, dword [rax + 4]
mov byte [rcx + rbx + 0x58], Ordinal_50
mov edx, 2
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__
mov rdx, qword [rax + 8]
mov r8, qword [rax]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
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, r12
jne 0x1400650d0
xor edi, edi
mov qword [rbp + 0x98], rdi
movdqa xmm0, xmmword [0x1400df450]
movdqu xmmword [rbp + 0xa8], xmm0
mov byte [rbp + 0x98], 0
mov dword [rbp - 0x78], Ordinal_200
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
mov rcx, qword [rbp + 0x198]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14006519f
mov rax, qword [rbp + 0x168]
mov r8, qword [rax]
test r8, r8
je 0x14006519f
mov rax, qword [rbp + 0x148]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x190]
cmovb r8, qword [rbp + 0x190]
sub r8, rdx
jmp 0x1400651d9
test cl, 4
jne 0x1400651cf
mov rax, qword [rbp + 0x160]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400651cf
mov rax, qword [rbp + 0x140]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x178]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x1400651d9
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x1400651eb
lea rcx, [rbp + 0x98]
call fcn.14004fe30
nop
lea rdx, [section..data]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rdx, qword [section..data]
lea rcx, [rbp + 0x98]
mov rdi, qword [rbp + 0xb0]
cmp rdi, 0x10
setae r12b
mov rbx, qword [rbp + 0x98]
cmovae rcx, rbx
mov r8, qword [rbp + 0xa8]
cmp r8, qword [0x1400f1010]
jne 0x140065241
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140065241
xor r14b, r14b
jmp 0x140065244
mov r14b, 1
test r12b, r12b
je 0x14006527d
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140065275
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065275
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400bd168
test r14b, r14b
je 0x140065289
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
lea rdx, [rbp + 0xb8]
lea rcx, [rsp + 0x40]
call fcn.140061c60
mov rdx, rax
mov rcx, r13
call fcn.140068b40
lea rdx, str.success
lea rcx, [rbp + 0xb8]
call fcn.14005b890
lea rcx, [rax + 8]
cmp byte [rax], 4
mov r12d, 0
cmovne rcx, r12
cmp byte [rcx], r12b
je 0x140065703
lea rdx, str.contents
lea rcx, [rbp + 0xb8]
call fcn.14005b890
nop
mov qword [rsp + 0x40], r12
movdqa xmm0, xmmword [0x1400df450]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], r12b
mov dword [rbp - 0x78], Ordinal_211
cmp byte [rax], 3
jne 0x14006531a
mov rdx, qword [rax + 8]
lea rax, [rsp + 0x40]
cmp rax, rdx
je 0x140065336
jmp 0x14006531d
mov rdx, r12
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14006532b
mov rdx, qword [rdx]
lea rcx, [rsp + 0x40]
call fcn.14004fe30
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x98]
call fcn.140066e00
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140065388
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065383
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065383
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd168
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov rdi, qword [rbp + 0xa8]
lea r14, [rbp + 0x98]
cmp qword [rbp + 0xb0], 0x10
cmovae r14, qword [rbp + 0x98]
movabs rbx, 0x7fffffffffffffff
cmp rdi, rbx
ja 0x1400658eb
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
cmp rdi, 0x10
jae 0x1400653f1
mov qword [rsp + 0x50], rdi
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r14
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memmove
jmp 0x140065446
mov rax, rdi
or rax, 0xf
cmp rax, rbx
ja 0x14006540c
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, [rsp + 0x40]
call fcn.140050750
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rbx
lea r8, [rdi + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140065472
add rdi, rcx
mov r14, rcx
jmp 0x14006547a
add rdi, r8
lea r14, [rsp + 0x40]
mov qword [r15], r12
mov qword [r15 + 8], r12
mov qword [r15 + 0x10], r12
sub rdi, r14
je 0x1400654b8
mov rdx, rdi
mov rcx, r15
call fcn.14005abe0
mov rbx, qword [r15]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + rdi]
mov qword [r15 + 8], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400654ee
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400654e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400654e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd168
mov qword [rsp + 0x50], r12
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov rdx, qword [rbp + 0xb0]
cmp rdx, 0x10
jb 0x140065545
inc rdx
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065540
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065540
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd168
mov qword [rbp + 0xa8], r12
mov qword [rbp + 0xb0], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x98], 0
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x1400655b3
mov rdx, qword [rbp + 0x90]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006559c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006559c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd168
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r12
mov rax, qword [rbp + 0x110]
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 + 0x110], rax
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x10c], edx
lea rcx, [rbp + 0x128]
call fcn.140062680
lea rcx, [rbp + 0x130]
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 + 0x1a8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
movzx edx, byte [rbp + 0xb8]
lea rcx, [rbp + 0xc0]
call fcn.1400647d0
nop
mov rdx, qword [rbp + 0xe0]
cmp rdx, 0x10
jb 0x140065664
inc rdx
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006565f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006565f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd168
mov qword [rbp + 0xd8], r12
mov qword [rbp + 0xe0], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xc8], 0
mov rdx, qword [rbp + 0x100]
cmp rdx, 0x10
jb 0x1400656c2
inc rdx
mov rcx, qword [rbp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400656bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400656bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd168
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1400658a8
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x1400658a3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x1400658a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov qword [r15], r12
mov qword [r15 + 8], r12
mov qword [r15 + 0x10], r12
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x140065763
mov rdx, qword [rbp + 0x90]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006574c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006574c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd168
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r12
mov rax, qword [rbp + 0x110]
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 + 0x110], rax
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x10c], edx
lea rcx, [rbp + 0x128]
call fcn.140062680
lea rcx, [rbp + 0x130]
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 + 0x1a8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
movzx edx, byte [rbp + 0xb8]
lea rcx, [rbp + 0xc0]
call fcn.1400647d0
nop
mov rdx, qword [rbp + 0xe0]
cmp rdx, 0x10
jb 0x140065814
inc rdx
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006580f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006580f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd168
mov qword [rbp + 0xd8], r12
mov qword [rbp + 0xe0], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xc8], 0
mov rdx, qword [rbp + 0x100]
cmp rdx, 0x10
jb 0x140065872
inc rdx
mov rcx, qword [rbp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006586c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006586c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd168
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1400658a8
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x1400658a3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400658e4
mov rcx, r8
call fcn.1400bd168
mov qword [rsi + 0x10], r12
mov byte [rsi], 0
mov rax, r15
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400bd520
mov rbx, qword [rsp + 0x378]
add rsp, 0x320
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.140049b00
nop
int3