Function at 0x180011250
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x180011390
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 [0x1800383dc], eax
jg 0x180011438
cmp qword [0x180038388], 0
jne 0x1800113a0
mov dword [rbp - 0x59], 0xf377f30e
mov dword [rbp - 0x55], 0xf378f30a
mov dword [rbp - 0x51], 0xf33bf31f
mov dword [rbp - 0x4d], 0xf330f332
mov dword [rbp - 0x49], 0xf33af338
mov dword [rbp - 0x45], 0xf314f37f
mov dword [rbp - 0x41], 0xf342f30e
mov dword [rbp - 0x3d], 0xf30df305
mov dword [rbp - 0x39], 0xf302f30b
mov dword [rbp - 0x35], 0xf32df347
mov dword [rbp - 0x31], 0xf338f311
mov dword [rbp - 0x2d], 0xf300f30e
mov dword [rbp - 0x29], 0xf30ff308
mov dword [rbp - 0x25], 0xf315f31c
mov dword [rbp - 0x21], 0xf317f323
mov dword [rbp - 0x1d], 0xf31bf300
mov dword [rbp - 0x19], 0xf304f300
mov dword [rbp - 0x15], 0xf31df314
mov dword [rbp - 0x11], 0xf313f335
mov dword [rbp - 0xd], 0xf319f30f
xor eax, eax
mov word [rbp - 9], ax
mov edx, esi
mov r8d, 0xcab
nop dword [rax]
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rbp - 0x59]
lea rcx, [rcx + rax*2]
movzx eax, dx
sub ax, r8w
xor word [rcx], ax
inc edx
cmp edx, 0x28
jb 0x180011350
mov word [rbp - 9], si
lea rdx, [rbp - 0x59]
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
jmp 0x1800113ab
inc r8
cmp byte [rax + r8], 0
je 0x1800113cf
jmp 0x180011394
mov r9, rbx
mov rcx, rdi
call fcn.180016280
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1800383dc]
call fcn.18002a168
jmp 0x18001129c
lea rdx, [rbp + 7]
lea rcx, [rbp + 0x1f]
call fcn.180006240
nop
lea r8, [rbp + 0x1f]
mov rdx, qword [0x180037eb8]
mov rcx, rdi
call fcn.1800104e0
mov qword [0x180038388], rax
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x1800113be
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800114ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800114ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [0x1800383dc]
call fcn.18002a1c8
cmp dword [0x1800383dc], 0xffffffff
jne 0x18001129c
movdqa xmm0, xmmword [0x18002eaf0]
movdqu xmmword [rbp + 7], xmm0
mov dword [rbp + 0x17], 0x1c0e2a00
mov word [rbp + 0x1b], recvfrom
mov eax, esi
nop dword [rax]
movsxd rcx, eax
lea rdx, [rbp + 7]
add rdx, rcx
lea ecx, [rax + 0x55]
xor byte [rdx], cl
inc eax
cmp eax, 0x15
jb 0x180011470
mov byte [rbp + 0x1c], 0
mov qword [rbp + 0x1f], rsi
mov qword [rbp + 0x2f], rsi
mov qword [rbp + 0x37], sendto
mov byte [rbp + 0x1f], 0
lea rax, [rbp + 7]
mov r8, 0xffffffffffffffff
jmp 0x180011394
call fcn.180029c7c
jmp 0x1800113be