Function at 0x1400c9370
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x230
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rsp + 0x278], rbx
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
cmp qword [rcx + 0x1540], 0
jne 0x1400c93b1
xor eax, eax
jmp 0x1400c98a6
xor r15d, r15d
mov dword [rsp + 0x270], r15d
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x130]
call fcn.14022ec70
mov dword [rsp + 0x60], r15d
lea rcx, [rsp + 0x80]
mov rax, qword [0x140274338]
mov qword [rcx], rax
mov rax, qword [0x140274340]
mov qword [rcx + 8], rax
mov dword [rsp + 0x68], r15d
xor eax, eax
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x7c], eax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r15 + 3]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c98a4
lea rdx, [rsp + 0x68]
lea rax, [rsp + 0x80]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rcx, qword [rax + 8]
mov qword [rdx + 8], rcx
mov dword [rsp + 0x7c], 1
mov dword [rsp + 0x78], r15d
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x270]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 0x18]
lea r8, [rsp + 0x68]
mov edx, 0x2f0003
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x1400c94fa
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.14003e9f0
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or r12, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x1400c98a4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400c98a4
mov ecx, dword [rsp + 0x270]
test ecx, ecx
jne 0x1400c950d
lea eax, [rcx + 1]
jmp 0x1400c98a6
lea rdx, [rcx + rcx*2]
mov eax, 4
mul rdx
mov r12, 0xffffffffffffffff
cmovo rax, r12
mov rcx, rax
call fcn.1401f0b90
mov r13, rax
test rax, rax
je 0x1400c98a6
lea rcx, [rsp + 0xa0]
mov rax, qword [0x140274338]
mov qword [rcx], rax
mov rax, qword [0x140274340]
mov qword [rcx + 8], rax
mov eax, dword [rsp + 0x270]
lea ecx, [rax + rax*2]
shl ecx, 2
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call fcn.14003dd00
test eax, eax
jne 0x1400c9595
mov rcx, r13
call fcn.1401f0b88
xor eax, eax
jmp 0x1400c98a6
mov esi, dword [rsp + 0x270]
lea rbx, [rsi*8]
mov r8, rbx
mov rdx, r13
lea rcx, [rsp + 0x130]
call fcn.14022e920
lea r8, [rsi*4]
shr rbx, 2
lea rdx, [r13 + rbx*4]
lea rcx, [rsp + 0xb0]
call fcn.14022e920
mov edx, r15d
test esi, esi
je 0x1400c9718
lea rsi, [rsp + 0xb0]
lea r8, [rsp + 0x134]
mov edi, dword [rsp + 0x48]
mov r9d, dword [rsp + 0x44]
mov r10d, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x28c]
mov ebx, dword [rsp + 0x288]
nop
mov ecx, dword [r8 - 4]
mov eax, r10d
xor eax, ecx
movzx eax, al
xor r10d, eax
mov dword [rsp + 0x40], r10d
mov eax, ecx
shr eax, 8
xor eax, r9d
and eax, 0xf
xor r9d, eax
mov dword [rsp + 0x44], r9d
and edi, 0xfff00000
shr ecx, 0xc
or edi, ecx
mov dword [rsp + 0x48], edi
mov ecx, dword [rbp + 0xc]
add ecx, edx
imul rcx, rcx, 0xa8
lea r15, [rsp + 0x40]
mov eax, dword [r15]
mov dword [rcx + rbp + 0x38], eax
mov eax, dword [r15 + 4]
mov dword [rcx + rbp + 0x3c], eax
mov eax, dword [r15 + 8]
mov dword [rcx + rbp + 0x40], eax
mov ecx, dword [r8]
mov eax, ebx
xor eax, ecx
movzx eax, al
xor ebx, eax
mov dword [rsp + 0x288], ebx
shr ecx, 8
xor ecx, r11d
movzx eax, cx
xor r11d, eax
mov dword [rsp + 0x28c], r11d
mov ecx, dword [rbp + 0xc]
add ecx, edx
imul rcx, rcx, 0xa8
mov rax, qword [rsp + 0x288]
mov qword [rcx + rbp + 0xb8], rax
mov ecx, dword [rbp + 0xc]
add ecx, edx
imul rcx, rcx, 0xa8
mov eax, dword [rsi]
mov dword [rcx + rbp + 0xc0], eax
mov ecx, dword [rbp + 0xc]
add ecx, edx
imul rcx, rcx, 0xa8
xor eax, eax
mov dword [rcx + rbp + 0xc4], eax
mov dword [rcx + rbp + 0xc8], eax
mov dword [rcx + rbp + 0xcc], eax
mov ecx, dword [rbp + 0xc]
add ecx, edx
imul rcx, rcx, 0xa8
mov dword [rcx + rbp + 0xd0], r14d
add edx, 1
add r8, 8
add rsi, 4
cmp edx, dword [rsp + 0x270]
jb 0x1400c9610
xor r15d, r15d
mov rax, qword [rbp + 0x1540]
bt dword [rax + 8], 0x15
jae 0x1400c988b
call fcn.1401ff164
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400c974a
mov ecx, 0x80004005
call fcn.140002bc0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [0x140275388]
test rdx, 0xffffffffffff0000
jne 0x1400c978d
movzx edi, dx
mov ecx, edi
call fcn.140200fbc
test rax, rax
je 0x1400c97aa
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1401bacf0
jmp 0x1400c97aa
xor eax, eax
mov rcx, r12
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x50]
call fcn.14000b770
nop
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x288], r15d
mov edi, r15d
cmp dword [rsp + 0x270], 0
jbe 0x1400c986a
nop
nop
mov eax, dword [rbp + 0xc]
lea r8d, [rdi + rax]
lea rdx, [0x14027e8a0]
lea rcx, [rsp + 0x50]
call fcn.140003090
lea r11, [rsp + 0x288]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x58]
mov r8, qword [rsp + 0x50]
lea rdx, str.Retasking
lea rcx, [0x140333a50]
call fcn.140204e30
test eax, eax
je 0x1400c985a
cmp dword [rsp + 0x288], 0xc
jne 0x1400c9846
mov edx, dword [rbp + 0xc]
add edx, edi
imul rdx, rdx, 0xa8
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov qword [rdx + rbp + 0xc4], rax
mov eax, dword [rcx + 8]
mov dword [rdx + rbp + 0xcc], eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400c985a
call fcn.1401f0b88
mov qword [rsp + 0x58], r15
add edi, 1
cmp edi, dword [rsp + 0x270]
jb 0x1400c97d0
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x1400c988b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, r13
call fcn.1401f0b88
mov eax, dword [rsp + 0x270]
add dword [rbp + 0xc], eax
mov eax, 1
jmp 0x1400c98a6
xor eax, eax
mov rbx, qword [rsp + 0x278]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret