Function at 0x14004f400
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x14004f608
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
xor ebx, ebx
mov eax, dword [rdx + rcx]
cmp dword [0x14009789c], eax
jle 0x14004f4fb
lea rcx, [0x14009789c]
call fcn.14006cc00
cmp dword [0x14009789c], 0xffffffff
jne 0x14004f4fb
mov qword [rbp + 7], rbx
mov qword [rbp + 0x17], rbx
mov qword [rbp + 0x1f], recv
mov byte [rbp + 7], bl
lea r8d, [rbx + 0x1f]
lea rdx, str.RtlDeleteElementGenericTableAvl
lea rcx, [rbp + 7]
call fcn.140054980
nop
lea r8, [rbp + 7]
mov rdx, qword [0x140094078]
mov rcx, rsi
call fcn.14004e550
mov qword [0x140097858], rax
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x14004f4ef
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f4e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f4e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006ca00
nop
lea rcx, [0x14009789c]
call fcn.14006cba0
mov r8, qword [0x140097858]
test r8, r8
jne 0x14004f60c
mov dword [rbp - 0x69], 0xc24dc230
mov dword [rbp - 0x65], 0xc24ec230
mov dword [rbp - 0x61], 0xc211c229
mov dword [rbp - 0x5d], 0xc21ec218
mov dword [rbp - 0x59], 0xc210c216
mov dword [rbp - 0x55], 0xc202c255
mov dword [rbp - 0x51], 0xc258c218
mov dword [rbp - 0x4d], 0xc213c21f
mov dword [rbp - 0x49], 0xc218c215
mov dword [rbp - 0x45], 0xc22cc25d
mov dword [rbp - 0x41], 0xc2ecc20b
mov dword [rbp - 0x3d], 0xc2e7c2c5
mov dword [rbp - 0x39], 0xc2e1c2ef
mov dword [rbp - 0x35], 0xc2e3c2f1
mov dword [rbp - 0x31], 0xc2e4c2c2
mov dword [rbp - 0x2d], 0xc2e7c2ec
mov dword [rbp - 0x29], 0xc2e2c2ee
mov dword [rbp - 0x25], 0xc2c9c2f9
mov dword [rbp - 0x21], 0xc2fec2ea
mov dword [rbp - 0x1d], 0xc2e0c2f4
mov dword [rbp - 0x19], 0xc2f7c2fa
mov dword [rbp - 0x15], 0xc2f7c2c1
mov dword [rbp - 0x11], 0xc2f4c2f5
mov dword [rbp - 0xd], 0xc2dbc2fc
mov dword [rbp - 9], 0xc2f0c2ed
mov word [rbp - 5], bx
mov byte [rbp - 3], 1
mov ecx, 0x3d95
nop word [rax + rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x69], ax
inc rbx
cmp rbx, 0x32
jb 0x14004f5d0
mov byte [rbp - 3], 0
lea rdx, [rbp - 0x69]
mov rcx, qword [0x140070250]
call fcn.140054b30
lea rdx, [0x140054d10]
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 0x14004f630
mov qword [rsp + 0x20], r14
mov r9, rdi
lea rdx, [rbp + 0x27]
mov rcx, rsi
call fcn.1400583b0
test al, al
je 0x14004f62e
cmp byte [rbp + 0x27], 0
je 0x14004f62e
mov al, 1
jmp 0x14004f630
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14006c910
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret