Function at 0x1400afed0
Capabilities:
Encode data using xor

Disassembly:
push r13
sub rsp, 0x230
cmp qword [rcx + 0x1640], 0
mov r13, rcx
jne 0x1400afef2
xor eax, eax
add rsp, 0x230
pop r13
ret
mov qword [rsp + 0x228], rbx
mov qword [rsp + 0x220], rbp
lea rcx, [rsp + 0x100]
xor ebp, ebp
xor edx, edx
mov r8d, pe_nt_image_headers64
mov qword [rsp + 0x210], rdi
mov qword [rsp + 0x208], r12
mov dword [rsp + 0x240], ebp
call fcn.140148fe0
mov rcx, qword [0x140206e30]
test rcx, rcx
je 0x1400b0063
mov rax, qword [0x14018e398]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rdx], rax
mov rax, qword [0x14018e3a0]
lea r8d, [rbp + 3]
mov qword [rdx + 8], rax
xor eax, eax
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x248], ebp
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x1400b0063
lea rdx, [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rbp
mov rcx, qword [rax]
lea r9d, [rbp + 0x18]
lea r8, [rsp + 0x50]
mov qword [rdx], rcx
mov rcx, qword [rax + 8]
lea rax, [rsp + 0x248]
mov qword [rdx + 8], rcx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x240]
mov edx, 0x2f0003
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x64], 1
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x248], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1400b006a
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x250]
call fcn.140070880
mov rdx, qword [rsp + 0x250]
add rdx, 0xffffffffffffffe8
or r12, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x1400b0063
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400b02eb
mov ecx, dword [rsp + 0x240]
test ecx, ecx
jne 0x1400b007d
lea eax, [rcx + 1]
jmp 0x1400b02eb
lea rdx, [rcx + rcx*2]
mov eax, 4
mov r12, 0xffffffffffffffff
mov qword [rsp + 0x200], r14
mul rdx
cmovo rax, r12
mov rcx, rax
call fcn.1401287fc
test rax, rax
mov r14, rax
je 0x1400b031d
mov rax, qword [0x14018e398]
lea rcx, [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [0x14018e3a0]
mov qword [rcx + 8], rax
mov eax, dword [rsp + 0x240]
lea ecx, [rax + rax*2]
shl ecx, 2
cmp qword [0x140206e30], rbp
je 0x1400b0315
mov dword [rsp + 0x20], ecx
lea edx, [r12 + 2]
lea rcx, [rsp + 0x70]
mov r9, r14
xor r8d, r8d
call fcn.140088090
test eax, eax
je 0x1400b0315
mov qword [rsp + 0x218], rsi
mov esi, dword [rsp + 0x240]
lea rcx, [rsp + 0x100]
lea rdi, [rsi*8]
mov rdx, r14
mov r8, rdi
call fcn.1401492a0
shr rdi, 2
lea r8, [rsi*4]
lea rdx, [r14 + rdi*4]
lea rcx, [rsp + 0x80]
call fcn.1401492a0
test esi, esi
je 0x1400b02b3
mov edx, dword [rsp + 0x48]
mov r9d, dword [rsp + 0x44]
mov r10d, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x24c]
mov ebx, dword [rsp + 0x248]
lea rdi, [rsp + 0x80]
lea r8, [rsp + 0x104]
mov ecx, dword [r8 - 4]
mov eax, r10d
lea rsi, [rsp + 0x40]
xor eax, ecx
and edx, 0xfff00000
add r8, 8
movzx eax, al
add rdi, 4
xor r10d, eax
mov eax, ecx
shr ecx, 0xc
or edx, ecx
mov ecx, dword [r13 + 0x14]
shr eax, 8
add ecx, ebp
xor eax, r9d
mov dword [rsp + 0x40], r10d
and eax, 0xf
mov dword [rsp + 0x48], edx
imul rcx, rcx, 0xac
xor r9d, eax
mov dword [rsp + 0x44], r9d
mov eax, dword [rsi]
mov dword [rcx + r13 + 0xbc], eax
mov eax, dword [rsi + 4]
mov dword [rcx + r13 + 0xc0], eax
mov eax, dword [rsi + 8]
mov dword [rcx + r13 + 0xc4], eax
mov ecx, dword [r8 - 8]
mov eax, ebx
xor eax, ecx
shr ecx, 8
xor ecx, r11d
movzx eax, al
xor ebx, eax
movzx eax, cx
mov ecx, dword [r13 + 0x14]
add ecx, ebp
xor r11d, eax
mov dword [rsp + 0x248], ebx
mov dword [rsp + 0x24c], r11d
mov rax, qword [rsp + 0x248]
imul rcx, rcx, 0xac
mov qword [rcx + r13 + 0x144], rax
mov ecx, dword [r13 + 0x14]
mov eax, dword [rdi - 4]
add ecx, ebp
imul rcx, rcx, 0xac
mov dword [rcx + r13 + 0x14c], eax
mov ecx, dword [r13 + 0x14]
xor eax, eax
add ecx, ebp
imul rcx, rcx, 0xac
mov dword [rcx + r13 + 0x164], 1
mov ecx, dword [r13 + 0x14]
add ecx, ebp
imul rcx, rcx, 0xac
mov dword [rcx + r13 + 0x15c], r12d
mov ecx, dword [r13 + 0x14]
add ecx, ebp
add ebp, 1
imul rcx, rcx, 0xac
mov dword [rcx + r13 + 0x150], eax
mov dword [rcx + r13 + 0x154], eax
mov dword [rcx + r13 + 0x158], eax
cmp ebp, dword [rsp + 0x240]
jb 0x1400b0181
mov rcx, r14
call fcn.1401287f4
mov eax, dword [r13 + 0x14]
mov r11d, dword [rsp + 0x240]
mov rsi, qword [rsp + 0x218]
mov dword [r13 + 0x1c], eax
add eax, r11d
mov dword [r13 + 0x14], eax
mov dword [r13 + 0x18], r11d
mov eax, 1
mov r14, qword [rsp + 0x200]
mov rdi, qword [rsp + 0x210]
mov rbp, qword [rsp + 0x220]
mov rbx, qword [rsp + 0x228]
mov r12, qword [rsp + 0x208]
add rsp, 0x230
pop r13
ret
mov rcx, r14
call fcn.1401287f4
xor eax, eax
jmp 0x1400b02e3