Function at 0x1400521d4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
mov r9, r8
mov r8, rcx
test rcx, rcx
je 0x14005273a
test r9, r9
je 0x14005273a
lea eax, [rdx - 0x80]
test eax, 0xffffff3f
jne 0x140052733
cmp edx, 0x140
je 0x140052733
mov r15d, 0xc0
lea r12d, [r15 - 0x40]
cmp edx, r12d
jne 0x14005223b
mov dword [r9 + 0xf0], 0xa
jmp 0x140052250
mov eax, reloc.Cabinet.dll_FCIDestroy
cmp edx, r15d
lea ecx, [rax - 2]
cmove eax, ecx
mov dword [r9 + 0xf0], eax
mov eax, dword [r8]
lea rbx, [r9 + 0x10]
mov esi, eax
mov r10d, 0xff00ff00
rol eax, 8
mov r14d, 0xff00ff
and eax, r14d
ror esi, 8
and esi, r10d
or esi, eax
mov dword [r9], esi
mov eax, dword [r8 + 4]
mov ebp, eax
rol eax, 8
and eax, r14d
ror ebp, 8
and ebp, r10d
or ebp, eax
mov dword [r9 + 4], ebp
mov eax, dword [r8 + 8]
mov r11d, eax
rol eax, 8
and eax, r14d
ror r11d, 8
and r11d, r10d
or r11d, eax
mov dword [r9 + 8], r11d
mov eax, dword [r8 + 0xc]
mov edi, eax
ror edi, 8
rol eax, 8
and edi, r10d
and eax, r14d
or edi, eax
mov dword [r9 + 0xc], edi
cmp edx, r12d
jne 0x1400523ef
lea r10, [0x140000000]
mov eax, edi
shr rax, 0x10
mov r14d, 0xff000000
movzx ecx, al
mov r15d, 0xff0000
mov eax, edi
mov r12d, 0xff00
shr rax, 8
mov r8d, dword [r10 + rcx*4 + 0x2902f0]
movzx ecx, al
btc r8d, 0x18
and r8d, r14d
mov eax, dword [r10 + rcx*4 + 0x28f2c0]
and eax, r15d
xor r8d, eax
mov eax, edi
shr rax, 0x18
movzx eax, byte [r10 + rax*4 + 0x28faf0]
xor r8d, eax
movzx eax, dil
mov ecx, dword [r10 + rax*4 + 0x28f6f0]
and ecx, r12d
xor r8d, ecx
xor r8d, esi
mov dword [rbx], r8d
xor r8d, ebp
xor r11d, r8d
mov dword [r9 + 0x14], r8d
mov dword [r9 + 0x18], r11d
xor r11d, edi
mov dword [r9 + 0x1c], r11d
lea rdi, [0x14028f6e8]
lea r11, [0x14028f6c4]
mov r9d, dword [rbx + 0xc]
mov rdx, rbx
add rbx, 0x10
mov eax, r9d
shr rax, 8
movzx ecx, al
mov eax, r9d
shr rax, 0x10
mov r8d, dword [r10 + rcx*4 + 0x28f2c0]
and r8d, r15d
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x2902f0]
and eax, r14d
xor r8d, eax
mov eax, r9d
shr rax, 0x18
movzx eax, byte [r10 + rax*4 + 0x28faf0]
xor r8d, eax
movzx eax, r9b
mov ecx, dword [r10 + rax*4 + 0x28f6f0]
and ecx, r12d
xor r8d, ecx
xor r8d, dword [r11]
add r11, 4
xor r8d, dword [rdx]
mov dword [rbx], r8d
xor r8d, dword [rbx - 0xc]
mov dword [rbx + 4], r8d
xor r8d, dword [rbx - 8]
mov dword [rbx + 8], r8d
xor r8d, r9d
mov dword [rbx + 0xc], r8d
cmp r11, rdi
jne 0x140052360
jmp 0x14005272f
mov eax, dword [r8 + 0x10]
mov ecx, eax
ror ecx, 8
and ecx, r10d
rol eax, 8
and eax, r14d
or ecx, eax
mov dword [rbx], ecx
mov eax, dword [r8 + 0x14]
mov ecx, eax
ror ecx, 8
rol eax, 8
and ecx, r10d
and eax, r14d
or ecx, eax
mov dword [r9 + 0x14], ecx
cmp edx, r15d
jne 0x140052560
mov edx, ecx
lea r10, [0x140000000]
mov eax, ecx
lea rbx, [0x14028f6e0]
shr rax, 0x10
mov r14d, 0xff000000
movzx ecx, al
mov r15d, 0xff0000
mov eax, edx
mov r12d, 0xff00
shr rax, 8
mov r8d, dword [r10 + rcx*4 + 0x2902f0]
movzx ecx, al
btc r8d, 0x18
and r8d, r14d
mov eax, dword [r10 + rcx*4 + 0x28f2c0]
and eax, r15d
xor r8d, eax
mov eax, edx
shr rax, 0x18
movzx eax, byte [r10 + rax*4 + 0x28faf0]
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0x28f6f0]
and ecx, r12d
xor r8d, ecx
xor r8d, esi
mov dword [r9 + 0x18], r8d
xor r8d, ebp
xor r11d, r8d
mov dword [r9 + 0x1c], r8d
xor edi, r11d
mov dword [r9 + 0x20], r11d
mov dword [r9 + 0x24], edi
lea r11, [0x14028f6c4]
add r9, 0x28
mov eax, dword [r9 - 0x18]
xor eax, dword [r9 - 4]
mov dword [r9], eax
xor eax, dword [r9 - 0x14]
mov dword [r9 + 4], eax
lea r9, [r9 + 0x18]
mov edx, dword [r9 - 0x14]
mov eax, edx
shr rax, 8
movzx ecx, al
mov eax, edx
shr rax, 0x10
mov r8d, dword [r10 + rcx*4 + 0x28f2c0]
and r8d, r15d
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x2902f0]
and eax, r14d
xor r8d, eax
mov eax, edx
shr rax, 0x18
movzx eax, byte [r10 + rax*4 + 0x28faf0]
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0x28f6f0]
and ecx, r12d
xor r8d, ecx
xor r8d, dword [r9 - 0x28]
xor r8d, dword [r11]
add r11, 4
mov dword [r9 - 0x10], r8d
xor r8d, dword [r9 - 0x24]
mov dword [r9 - 0xc], r8d
xor r8d, dword [r9 - 0x20]
mov dword [r9 - 8], r8d
xor r8d, dword [r9 - 0x1c]
mov dword [r9 - 4], r8d
cmp r11, rbx
jne 0x1400524c2
jmp 0x14005272f
mov eax, dword [r8 + 0x18]
mov ecx, eax
ror ecx, 8
and ecx, r10d
rol eax, 8
and eax, r14d
or ecx, eax
mov dword [r9 + 0x18], ecx
mov eax, dword [r8 + 0x1c]
mov ecx, eax
ror ecx, 8
rol eax, 8
and ecx, r10d
and eax, r14d
or ecx, eax
mov dword [r9 + 0x1c], ecx
cmp edx, 0x100
jne 0x14005272f
mov edx, ecx
lea r10, [0x140000000]
mov eax, ecx
lea rbx, [0x14028f6dc]
shr rax, 0x10
mov r14d, 0xff000000
movzx ecx, al
mov r15d, 0xff0000
mov eax, edx
mov r12d, 0xff00
shr rax, 8
mov r8d, dword [r10 + rcx*4 + 0x2902f0]
btc r8d, 0x18
movzx ecx, al
and r8d, r14d
mov eax, dword [r10 + rcx*4 + 0x28f2c0]
and eax, r15d
xor r8d, eax
mov eax, edx
shr rax, 0x18
movzx eax, byte [r10 + rax*4 + 0x28faf0]
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0x28f6f0]
and ecx, r12d
xor r8d, ecx
xor r8d, esi
mov dword [r9 + 0x20], r8d
xor r8d, ebp
mov dword [r9 + 0x24], r8d
xor r8d, r11d
mov dword [r9 + 0x28], r8d
lea r11, [0x14028f6c4]
xor r8d, edi
mov dword [r9 + 0x2c], r8d
add r9, 0x30
mov edx, dword [r9 - 4]
mov eax, edx
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 8
mov r8d, dword [r10 + rcx*4 + 0x28f2c0]
movzx ecx, al
and r8d, r15d
mov eax, dword [r10 + rcx*4 + 0x28f6f0]
and eax, r12d
xor r8d, eax
mov eax, edx
shr rax, 0x18
mov eax, dword [r10 + rax*4 + 0x2902f0]
and eax, r14d
xor r8d, eax
movzx eax, dl
movzx eax, byte [r10 + rax*4 + 0x28faf0]
xor r8d, eax
xor r8d, dword [r9 - 0x20]
mov dword [r9], r8d
xor r8d, dword [r9 - 0x1c]
mov dword [r9 + 4], r8d
xor r8d, dword [r9 - 0x18]
mov dword [r9 + 8], r8d
xor r8d, dword [r9 - 0x14]
mov dword [r9 + 0xc], r8d
lea r9, [r9 + 0x20]
mov edx, dword [r9 - 0x14]
mov eax, edx
shr rax, 8
movzx ecx, al
mov eax, edx
shr rax, 0x10
mov r8d, dword [r10 + rcx*4 + 0x28f2c0]
and r8d, r15d
movzx ecx, al
mov eax, dword [r10 + rcx*4 + 0x2902f0]
and eax, r14d
xor r8d, eax
mov eax, edx
shr rax, 0x18
movzx eax, byte [r10 + rax*4 + 0x28faf0]
xor r8d, eax
movzx eax, dl
mov ecx, dword [r10 + rax*4 + 0x28f6f0]
and ecx, r12d
xor r8d, ecx
xor r8d, dword [r9 - 0x30]
xor r8d, dword [r11]
add r11, 4
mov dword [r9 - 0x10], r8d
xor r8d, dword [r9 - 0x2c]
mov dword [r9 - 0xc], r8d
xor r8d, dword [r9 - 0x28]
mov dword [r9 - 8], r8d
xor r8d, dword [r9 - 0x24]
mov dword [r9 - 4], r8d
cmp r11, rbx
jne 0x140052638
xor eax, eax
jmp 0x14005273d
mov eax, 0xfffffffe
jmp 0x14005273d
or eax, 0xffffffff
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret