Function at 0x14004ffb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x140091010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x1400501b5
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401bfbf0], eax
jle 0x1400500a8
lea rcx, [0x1401bfbf0]
call fcn.1400728d0
cmp dword [0x1401bfbf0], 0xffffffff
jne 0x1400500a8
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x37], xmm1
mov r8d, 0x1e
lea rdx, str.ExAcquireResourceExclusiveLite
lea rcx, [rbp + 0x27]
call fcn.14005a6a0
nop
lea r8, [rbp + 0x27]
mov rdx, qword [0x1401bc9a8]
mov rcx, rdi
call fcn.14004f4a0
mov qword [0x1401bfbf8], rax
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x14005009c
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050096
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050096
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400727b0
nop
lea rcx, [0x1401bfbf0]
call fcn.140072864
mov r8, qword [0x1401bfbf8]
test r8, r8
jne 0x1400501d8
mov dword [rbp - 0x49], 0x41bb41c2
mov dword [rbp - 0x45], 0x41bc41c6
mov dword [rbp - 0x41], 0x41ff41db
mov dword [rbp - 0x3d], 0x41cc41f6
mov dword [rbp - 0x39], 0x41c641c4
mov dword [rbp - 0x35], 0x41d04183
mov dword [rbp - 0x31], 0x418641ca
mov dword [rbp - 0x2d], 0x41c141c1
mov dword [rbp - 0x29], 0x41ce41c7
mov dword [rbp - 0x25], 0x41e9418b
mov dword [rbp - 0x21], 0x41ef41d5
mov dword [rbp - 0x1d], 0x41c141cc
mov dword [rbp - 0x19], 0x41db41c4
mov dword [rbp - 0x15], 0x41d141c1
mov dword [rbp - 0x11], 0x41d341e7
mov dword [rbp - 0xd], 0x41d741c4
mov dword [rbp - 9], 0x41c841cc
mov dword [rbp - 5], 0x41d941d8
mov dword [rbp - 1], 0x41c641f8
mov dword [rbp + 3], 0x41ac41dc
mov dword [rbp + 7], 0x41b141b4
mov dword [rbp + 0xb], 0x41b241aa
mov dword [rbp + 0xf], 0x418a41a0
mov dword [rbp + 0x13], 0x41bc41ae
mov dword [rbp + 0x17], 0x41ac
xor eax, eax
mov byte [rbp + 0x1b], 1
mov edx, 0x4199
nop dword [rax]
nop word [rax + rax]
lea ecx, [rdx + rax]
xor word [rbp + rax*2 - 0x49], cx
inc rax
cmp rax, 0x31
jb 0x140050180
mov byte [rbp + 0x1b], 0
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.140055b70
lea rdx, [0x140055d50]
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 rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400726c0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov byte [rsp + 0x20], 1
mov r9, rbx
lea rdx, [rbp + 0x47]
mov rcx, rdi
call fcn.1400585e0
test al, al
je 0x1400501b5
cmp byte [rbp + 0x47], 0
je 0x1400501b5
mov al, 1
jmp 0x1400501b7