Function at 0x180102830
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 - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x18021c8c0]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
xor r14d, r14d
mov r13d, r14d
mov dword [rsp + 0x20], r14d
mov r9, qword [0x1802e1e78]
mov r8, qword [r9 + 0x140]
test r8, r8
je 0x1800aece1
mov r12d, r14d
cmp dword [r8 + 8], r14d
jle 0x1800aece1
mov edi, r14d
mov qword [rsp + 0x28], r14
lea rbx, [r14 - 1]
nop dword [rax + rax]
movsxd rdx, r12d
sar rdx, 5
mov rax, qword [r8 + 0x30]
mov ecx, r12d
and ecx, 0x1f
mov edx, dword [rax + rdx*4]
shr edx, cl
test dl, 1
je 0x1800aecc4
mov rax, qword [r8]
mov r15, qword [rdi + rax]
test r15, r15
je 0x1800aecc4
movzx eax, byte [r15 + 0x9d]
and al, 0x1f
cmp al, 5
jne 0x1800aecc4
lea rdx, [r15 + 0x2a4]
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x40], 0
mov r8, rbx
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x1800ae650
lea rcx, [rbp - 0x40]
call fcn.180025c30
nop
lea rdx, [r15 + 0x298]
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x60], 0
mov r8, rbx
inc r8
cmp byte [rdx + r8], 0
jne 0x1800ae682
lea rcx, [rbp - 0x60]
call fcn.180025c30
nop
lea r10, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae r10, qword [rbp - 0x60]
mov r9d, r14d
mov r11, qword [rbp - 0x50]
add r11, r10
cmp r10, r11
je 0x1800ae6f6
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [r10]
lea edx, [r8 - 0x41]
movzx eax, r8b
or al, 0x20
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r9d
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor r9d, eax
inc r10
cmp r10, r11
jne 0x1800ae6c0
lea ebx, [r9 + r9*8]
mov eax, ebx
shr eax, 0xb
xor ebx, eax
call fcn.180026870
mov dword [rax + 8], r14d
mov dword [rax + 0x18], r14d
call fcn.180026870
imul r8d, ebx, 0x8001
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], r8d
inc dword [rax + 8]
movabs rcx, 0xdedf1c8bd47c2200
call fcn.180026710
call fcn.180026870
mov rcx, qword [rax]
mov edx, dword [rcx]
mov rax, qword [rsi]
cmp edx, dword [rax + 0xfd8]
jne 0x1800aeca3
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1801b71b8]
mov qword [rbp - 0x20], rax
lea rax, [0x1801b71b0]
mov qword [rbp - 0x10], rax
lea rcx, [rbp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or r13d, 1
mov dword [rsp + 0x20], r13d
xor r8d, r8d
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x20]
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 - 0x20]
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 - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 8]
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 - 8], rax
mov qword [rbp + 0x60], r14
mov dword [rbp + 0x68], r14d
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r14
lea rsi, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rsi, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x30]
cmp rdi, 0x10
jae 0x1800ae815
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x80], xmm0
mov ebx, reloc.WS2_32.dll_ntohs
jmp 0x1800ae899
mov rbx, rdi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
mov rcx, rbx
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
cmp rcx, 0x1000
jb 0x1800ae877
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1800aed1f
mov rcx, rax
call fcn.1801720a0
mov rcx, rax
test rax, rax
je 0x1800aed11
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1800ae886
test rcx, rcx
je 0x1800ae883
call fcn.1801720a0
jmp 0x1800ae886
mov rax, r14
mov qword [rbp - 0x80], rax
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x70], rdi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r14
mov rsi, qword [rbp - 0x50]
lea r14, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae r14, qword [rbp - 0x60]
cmp rsi, 0x10
jae 0x1800ae8db
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x60], xmm0
mov edi, reloc.WS2_32.dll_ntohs
jmp 0x1800ae963
mov rdi, rsi
or rdi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
cmova rdi, rax
mov rcx, rdi
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
cmp rcx, 0x1000
jb 0x1800ae93d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1800aed25
mov rcx, rax
call fcn.1801720a0
mov rcx, rax
test rax, rax
je 0x1800aed18
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1800ae94b
test rcx, rcx
je 0x1800ae949
call fcn.1801720a0
jmp 0x1800ae94b
xor eax, eax
mov qword [rsp + 0x60], rax
lea r8, [rsi + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rbx, qword [rbp - 0x68]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rsi
lea rax, [rbp - 0x80]
cmp rbx, 0x10
setae dl
mov rcx, qword [rbp - 0x80]
cmovae rax, rcx
cmp byte [rax], 0
jne 0x1800ae99d
lea rax, [rsp + 0x60]
cmp rdi, 0x10
cmovae rax, qword [rsp + 0x60]
cmp byte [rax], 0
je 0x1800aebb4
lea rbx, [rbp - 0x80]
test dl, dl
cmovne rbx, rcx
call fcn.180026870
xor r14d, r14d
mov dword [rax + 8], r14d
mov dword [rax + 0x18], r14d
call fcn.180026870
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov qword [rcx + rdx*8], rbx
inc dword [rax + 8]
movabs rsi, 0x7b5280eba9840c72
mov rcx, rsi
call fcn.180026710
call fcn.180026870
mov rcx, qword [rax]
mov rdx, qword [rcx]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rdx + r8], r14b
jne 0x1800ae9f1
lea rcx, [rbp - 0x80]
call fcn.180025c30
lea rbx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rbx, qword [rsp + 0x60]
call fcn.180026870
mov dword [rax + 8], r14d
mov dword [rax + 0x18], r14d
call fcn.180026870
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov qword [rcx + rdx*8], rbx
inc dword [rax + 8]
mov rcx, rsi
call fcn.180026710
call fcn.180026870
mov rcx, qword [rax]
mov rdx, qword [rcx]
mov r8, rdi
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x1800aea50
lea rcx, [rsp + 0x60]
call fcn.180025c30
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
setae r10b
mov r8, qword [rbp - 0x80]
cmovae rdx, r8
mov r9, qword [rbp - 0x70]
lea r11, str.NULL
cmp r9, 4
jne 0x1800aeab2
mov rcx, r14
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r11 + rcx - 1]
jne 0x1800aeaa9
cmp rcx, 4
jne 0x1800aea90
mov eax, r14d
jmp 0x1800aeaae
sbb eax, eax
or eax, 1
test eax, eax
je 0x1800aeaf2
lea rdx, [rbp - 0x80]
test r10b, r10b
cmovne rdx, r8
cmp r9, 4
jne 0x1800aeb6e
mov rcx, r14
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r11 + rcx - 1]
jne 0x1800aeae9
cmp rcx, 4
jne 0x1800aead0
mov eax, r14d
jmp 0x1800aeaee
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1800aeb6e
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
setae r10b
mov r8, qword [rsp + 0x60]
cmovae rdx, r8
mov r9, qword [rsp + 0x70]
cmp r9, 4
jne 0x1800aeb54
mov rax, r14
nop dword [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [r11 + rax - 1]
jne 0x1800aeb39
cmp rax, 4
jne 0x1800aeb20
mov eax, r14d
jmp 0x1800aeb3e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1800aeb54
lea rdx, str.Unknown
lea rcx, [rbp - 0x10]
call fcn.18003f140
jmp 0x1800aebb7
lea rdx, [rsp + 0x60]
test r10b, r10b
cmovne rdx, r8
mov r8, r9
lea rcx, [rbp - 0x10]
call fcn.1800f48a0
jmp 0x1800aebb7
lea rdx, [rbp - 0x80]
test r10b, r10b
cmovne rdx, r8
mov r8, r9
lea rcx, [rbp - 0x10]
call fcn.1800f48a0
lea rdx, [0x1801b6f0c]
mov rcx, rax
call fcn.18003f140
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
mov rcx, rax
call fcn.1800f48a0
jmp 0x1800aebb7
xor r14d, r14d
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsi]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 8]
call fcn.18003f060
or r13d, 2
mov eax, dword [r15 + 0x18]
mov dword [rsp + 0x58], eax
mov rdx, qword [rbx + 0xfc8]
cmp rdx, qword [rbx + 0xfd0]
je 0x1800aec29
mov qword [rdx], r14
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], r14
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov eax, dword [rsp + 0x58]
mov dword [rdx + 0x20], eax
add qword [rbx + 0xfc8], 0x28
jmp 0x1800aec3b
lea r8, [rsp + 0x38]
lea rcx, [rbx + 0xfc0]
call fcn.1800eff20
nop
lea rcx, [rsp + 0x38]
call fcn.180004430
nop
lea rcx, [rsp + 0x60]
call fcn.180004430
nop
lea rcx, [rbp - 0x80]
call fcn.180004430
nop
mov rax, qword [rbp - 0x20]
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 - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 8]
call fcn.18003fee0
lea rcx, [rbp]
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 + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rdi, qword [rsp + 0x28]
lea rcx, [rbp - 0x60]
call fcn.180004430
nop
lea rcx, [rbp - 0x40]
call fcn.180004430
mov r9, qword [0x1802e1e78]
mov rbx, 0xffffffffffffffff
inc r12d
add rdi, 8
mov qword [rsp + 0x28], rdi
mov r8, qword [r9 + 0x140]
cmp r12d, dword [r8 + 8]
jl 0x1800ae5f0
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.180172080
lea r11, [rsp + 0x1f0]
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 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.1800042e0
nop
call fcn.1800042e0
int3
add rcx, 8
jmp 0x1800ae570