Function at 0x140004a00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x140026010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x140004c38
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
xor ebx, ebx
mov eax, dword [rcx + rax]
cmp dword [0x140026b28], eax
jle 0x140004b31
lea rcx, [0x140026b28]
call fcn.140015c20
cmp dword [0x140026b28], 0xffffffff
jne 0x140004b31
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x2f], 0xf
lea ecx, [rbx + 0x20]
call fcn.140015c98
mov rdx, rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x27], 0x1e
mov qword [rbp + 0x2f], 0x1f
movups xmm0, xmmword [str.ExAcquireResourceExclusiveLite]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140018908]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x140018910]
mov dword [rax + 0x18], ecx
movzx eax, word [0x140018914]
mov word [rdx + 0x1c], ax
mov byte [rdx + 0x1e], bl
lea r8, [rbp + 0x17]
mov rdx, qword [0x140026a08]
mov rcx, rsi
call fcn.140003f10
mov qword [0x140026b30], rax
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0x10
jb 0x140004b25
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004b1f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004b1f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015b70
nop
lea rcx, [0x140026b28]
call fcn.140015bb4
mov r8, qword [0x140026b30]
test r8, r8
jne 0x140004c59
mov dword [rbp - 0x59], 0xce72ce09
mov dword [rbp - 0x55], 0xce75ce09
mov dword [rbp - 0x51], 0xce36ce10
mov dword [rbp - 0x4d], 0xce35ce31
mov dword [rbp - 0x49], 0xce3fce3f
mov dword [rbp - 0x45], 0xce29ce7c
mov dword [rbp - 0x41], 0xce7fce31
mov dword [rbp - 0x3d], 0xce08ce06
mov dword [rbp - 0x39], 0xce07ce0c
mov dword [rbp - 0x35], 0xce20ce44
mov dword [rbp - 0x31], 0xce26ce1e
mov dword [rbp - 0x2d], 0xce18ce0b
mov dword [rbp - 0x29], 0xce02ce1f
mov dword [rbp - 0x25], 0xce08ce1e
mov dword [rbp - 0x21], 0xce0ace3c
mov dword [rbp - 0x1d], 0xce1ece03
mov dword [rbp - 0x19], 0xce01ce07
mov dword [rbp - 0x15], 0xce10ce17
mov dword [rbp - 0x11], 0xce0fce33
mov dword [rbp - 0xd], 0xce15ce1b
mov dword [rbp - 9], 0xce08ce0f
mov dword [rbp - 5], 0xce0bce15
mov dword [rbp - 1], 0xce33ce1b
mov dword [rbp + 3], 0xcef5cee9
mov dword [rbp + 7], 0xcee7
mov byte [rbp + 0xb], 1
mov ecx, 0x31ae
nop dword [rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x31
jb 0x140004c00
mov byte [rbp + 0xb], 0
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.14000a700
lea rdx, [0x14000a8e0]
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 + 0x3f]
xor rcx, rsp
call fcn.140015b50
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
mov byte [rsp + 0x20], 1
mov r9, rdi
lea rdx, [rbp + 0x37]
mov rcx, rsi
call fcn.14000d0a0
test al, al
je 0x140004c38
cmp byte [rbp + 0x37], 0
je 0x140004c38
mov al, 1
jmp 0x140004c3a