Function at 0x180010fb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x180011101
mov ecx, dword [0x180037d98]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
xor esi, esi
mov eax, dword [rdx + rcx]
cmp dword [0x1800383f0], eax
jg 0x1800111b9
cmp qword [0x1800383f8], 0
jne 0x180011122
mov dword [rbp - 0x49], 0xf377f30e
mov dword [rbp - 0x45], 0xf378f30a
mov dword [rbp - 0x41], 0xf33bf31f
mov dword [rbp - 0x3d], 0xf330f332
mov dword [rbp - 0x39], 0xf33af338
mov dword [rbp - 0x35], 0xf314f37f
mov dword [rbp - 0x31], 0xf342f30e
mov dword [rbp - 0x2d], 0xf30df305
mov dword [rbp - 0x29], 0xf302f30b
mov dword [rbp - 0x25], 0xf32df347
mov dword [rbp - 0x21], 0xf32bf311
mov dword [rbp - 0x1d], 0xf31df308
mov dword [rbp - 0x19], 0xf307f318
mov dword [rbp - 0x15], 0xf315f31d
mov dword [rbp - 0x11], 0xf317f323
mov dword [rbp - 0xd], 0xf31bf300
mov dword [rbp - 9], 0xf304f300
mov dword [rbp - 5], 0xf31df314
mov dword [rbp - 1], 0xf302f33c
mov dword [rbp + 3], 0xf310f318
mov dword [rbp + 7], 0xf30df308
mov dword [rbp + 0xb], 0xf3f6f316
mov dword [rbp + 0xf], 0xf3cef3e4
mov dword [rbp + 0x13], 0xf3f0f3ea
mov dword [rbp + 0x17], 0xf3e0
mov edx, esi
mov r8d, 0xcab
movsxd rax, edx
lea rcx, [rbp - 0x49]
lea rcx, [rcx + rax*2]
movzx eax, dx
sub ax, r8w
xor word [rcx], ax
inc edx
cmp edx, 0x31
jb 0x1800110c1
mov word [rbp + 0x19], si
lea rdx, [rbp - 0x49]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.180015960
lea rdx, [0x180015b40]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
inc r8
cmp byte [rax + r8], 0
je 0x180011150
jmp 0x180011116
mov r9, rbx
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.180016030
test al, al
je 0x180011101
cmp byte [rbp - 0x79], 0
je 0x180011101
mov al, 1
jmp 0x180011103
lea rcx, [0x1800383f0]
call fcn.18002a168
jmp 0x180010ffc
lea rdx, [rbp - 0x71]
lea rcx, [rbp + 0x27]
call fcn.180006240
nop
lea r8, [rbp + 0x27]
mov rdx, qword [0x180037eb8]
mov rcx, rdi
call fcn.1800104e0
mov qword [0x1800383f8], rax
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x18001113f
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001123f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001123f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [0x1800383f0]
call fcn.18002a1c8
cmp dword [0x1800383f0], 0xffffffff
jne 0x180010ffc
movdqa xmm0, xmmword [0x18002eae0]
movdqu xmmword [rbp - 0x71], xmm0
mov dword [rbp - 0x61], 0xb1f2300
mov dword [rbp - 0x5d], 0x5181f05
mov dword [rbp - 0x59], 0x19230b1b
mov word [rbp - 0x55], 0x1705
xor eax, eax
mov byte [rbp - 0x53], al
mov eax, esi
movsxd rcx, eax
lea rdx, [rbp - 0x71]
add rdx, rcx
lea ecx, [rax + 0x55]
xor byte [rdx], cl
inc eax
cmp eax, 0x1e
jb 0x180011201
mov byte [rbp - 0x53], 0
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x37], rsi
mov qword [rbp + 0x3f], sendto
mov byte [rbp + 0x27], 0
lea rax, [rbp - 0x71]
mov r8, 0xffffffffffffffff
jmp 0x180011116
call fcn.180029c7c
jmp 0x18001113f