Function at 0x1400cb660
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r10, r8
mov r13d, edx
mov dword [rbp - 0x4c], edx
mov rsi, rcx
mov qword [rbp - 0x20], rcx
mov r15, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x78]
mov qword [rbp - 0x48], rcx
test dl, 0xf
je 0x1400cb6bc
mov ebx, 1
jmp 0x1400cb9ae
lea eax, [r9 - 0x10]
test eax, 0xffffffe7
jne 0x1400cb9a9
cmp r9d, 0x28
je 0x1400cb9a9
mov r12d, dword [rbp + 0x70]
test rcx, rcx
jne 0x1400cb6eb
cmp r12d, r13d
jae 0x1400cb6fd
lea ebx, [rcx + 3]
jmp 0x1400cb9ae
lea eax, [rdx - 0x10]
cmp r12d, eax
jae 0x1400cb6fd
mov ebx, 3
jmp 0x1400cb9ae
xor eax, eax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov r8d, r9d
mov rdx, r10
lea rcx, [rbp - 0x38]
call fcn.1400cad40
mov r8, r15
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.1400cb1d0
lea rdx, [0x1402bea50]
mov rcx, r15
call fcn.1400cb030
mov r14d, r13d
shr r14d, 4
dec r14d
mov dword [rbp - 0x50], r14d
mov edi, InitCommonControls
cmp r14d, 1
jbe 0x1400cb82a
mov r13d, edi
dec r14d
mov r12, rsi
nop
movsxd rbx, r13d
lea rsi, [rbx + r15]
lea rdi, [rbx + r12]
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.1400cb1d0
movzx eax, byte [rdi - 0x10]
xor byte [rsi], al
movzx eax, byte [rbx + r12 - 0xf]
xor byte [rsi + 1], al
movzx eax, byte [rbx + r12 - 0xe]
xor byte [rsi + 2], al
movzx eax, byte [rbx + r12 - 0xd]
xor byte [rsi + 3], al
movzx eax, byte [rbx + r12 - 0xc]
xor byte [rsi + 4], al
movzx eax, byte [rbx + r12 - 0xb]
xor byte [rsi + 5], al
movzx eax, byte [rbx + r12 - 0xa]
xor byte [rsi + 6], al
movzx eax, byte [rbx + r12 - 9]
xor byte [rsi + 7], al
movzx eax, byte [rbx + r12 - 8]
xor byte [rsi + 8], al
movzx eax, byte [rbx + r12 - 7]
xor byte [rsi + 9], al
movzx eax, byte [rbx + r12 - 6]
xor byte [rsi + 0xa], al
movzx eax, byte [rbx + r12 - 5]
xor byte [rsi + 0xb], al
movzx eax, byte [rbx + r12 - 4]
xor byte [rsi + 0xc], al
movzx eax, byte [rbx + r12 - 3]
xor byte [rsi + 0xd], al
movzx eax, byte [rbx + r12 - 2]
xor byte [rsi + 0xe], al
movzx eax, byte [rbx + r12 - 1]
xor byte [rsi + 0xf], al
add r13d, 0x10
sub r14, 1
jne 0x1400cb760
mov r14d, dword [rbp - 0x50]
mov r13d, dword [rbp - 0x4c]
mov r12d, dword [rbp + 0x70]
mov edi, InitCommonControls
mov rsi, qword [rbp - 0x20]
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
cmp r13d, 0x10
jbe 0x1400cb8e0
mov eax, r14d
shl eax, 4
mov ebx, eax
lea rdx, [rsi + rax]
lea r8, [rbp - 0x20]
lea rcx, [rbp - 0x38]
call fcn.1400cb1d0
lea eax, [rbx - 0x10]
mov ecx, eax
movzx eax, byte [rax + rsi]
xor byte [rbp - 0x20], al
movzx eax, byte [rcx + rsi + 1]
xor byte [rbp - 0x1f], al
movzx eax, byte [rcx + rsi + 2]
xor byte [rbp - 0x1e], al
movzx eax, byte [rcx + rsi + 3]
xor byte [rbp - 0x1d], al
movzx eax, byte [rcx + rsi + 4]
xor byte [rbp - 0x1c], al
movzx eax, byte [rcx + rsi + 5]
xor byte [rbp - 0x1b], al
movzx eax, byte [rcx + rsi + 6]
xor byte [rbp - 0x1a], al
movzx eax, byte [rcx + rsi + 7]
xor byte [rbp - 0x19], al
movzx eax, byte [rcx + rsi + 8]
xor byte [rbp - 0x18], al
movzx eax, byte [rcx + rsi + 9]
xor byte [rbp - 0x17], al
movzx eax, byte [rcx + rsi + 0xa]
xor byte [rbp - 0x16], al
movzx eax, byte [rcx + rsi + 0xb]
xor byte [rbp - 0x15], al
movzx eax, byte [rcx + rsi + 0xc]
xor byte [rbp - 0x14], al
movzx eax, byte [rcx + rsi + 0xd]
xor byte [rbp - 0x13], al
movzx eax, byte [rcx + rsi + 0xe]
xor byte [rbp - 0x12], al
movzx eax, byte [rbp - 0x11]
xor al, byte [rcx + rsi + 0xf]
mov byte [rbp - 0x11], al
jmp 0x1400cb900
mov r8d, r13d
mov rdx, r15
lea rcx, [rbp - 0x20]
call fcn.14021eff0
mov r8d, r12d
xor edx, edx
mov rcx, r15
call fcn.14021ee30
movzx eax, byte [rbp - 0x11]
xor ebx, ebx
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400cb977
movzx r8d, al
mov dword [rcx], r8d
sub edi, r8d
cmp r8d, 0x10
ja 0x1400cb970
mov eax, ebx
test r8d, r8d
je 0x1400cb948
nop dword [rax]
nop word [rax + rax]
mov ecx, InitCommonControls
sub ecx, eax
movzx edx, byte [rbp + rcx - 0x20]
cmp edx, r8d
jne 0x1400cb970
inc eax
cmp eax, r8d
jb 0x1400cb930
shl r14d, 4
mov ecx, r14d
lea eax, [r14 + rdi]
cmp r12d, eax
jb 0x1400cb969
mov r8d, edi
add rcx, r15
lea rdx, [rbp - 0x20]
call fcn.14021eff0
jmp 0x1400cb984
mov ebx, 3
jmp 0x1400cb984
mov ebx, 4
jmp 0x1400cb984
shl r14d, 4
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [r14 + r15], xmm0
lea rcx, [rbp - 0x38]
call fcn.140004b20
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400cb9a7
mov rdx, qword [rbp - 0x28]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
call fcn.140006c10
nop
jmp 0x1400cb9ae
mov ebx, 2
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14013a450
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret