Function at 0x1400ad070
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 + 0x1640], 0
jne 0x1400ad0b1
xor eax, eax
jmp 0x1400ad5b0
xor r15d, r15d
mov dword [rsp + 0x270], r15d
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x130]
call fcn.140148fe0
mov dword [rsp + 0x288], r15d
lea rcx, [rsp + 0x80]
mov rax, qword [0x14018e398]
mov qword [rcx], rax
mov rax, qword [0x14018e3a0]
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 0x1400ad5ae
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 dword [rsp + 0x288], r15d
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x288]
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 0x1400ad208
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.140070880
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or r12, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x1400ad5ae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400ad5ae
mov ecx, dword [rsp + 0x270]
test ecx, ecx
jne 0x1400ad21b
lea eax, [rcx + 1]
jmp 0x1400ad5b0
lea rdx, [rcx + rcx*2]
mov eax, 4
mul rdx
mov r12, 0xffffffffffffffff
cmovo rax, r12
mov rcx, rax
call fcn.1401287fc
mov r13, rax
test rax, rax
je 0x1400ad5b0
lea rcx, [rsp + 0xa0]
mov rax, qword [0x14018e398]
mov qword [rcx], rax
mov rax, qword [0x14018e3a0]
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.1400864e0
test eax, eax
jne 0x1400ad2a3
mov rcx, r13
call fcn.1401287f4
xor eax, eax
jmp 0x1400ad5b0
mov esi, dword [rsp + 0x270]
lea rbx, [rsi*8]
mov r8, rbx
mov rdx, r13
lea rcx, [rsp + 0x130]
call fcn.1401492a0
lea r8, [rsi*4]
shr rbx, 2
lea rdx, [r13 + rbx*4]
lea rcx, [rsp + 0xb0]
call fcn.1401492a0
mov edx, r15d
test esi, esi
je 0x1400ad428
lea rsi, [rsp + 0xb0]
lea r8, [rsp + 0x134]
mov edi, dword [rsp + 0x58]
mov r9d, dword [rsp + 0x54]
mov r10d, dword [rsp + 0x50]
mov r11d, dword [rsp + 0x44]
mov ebx, dword [rsp + 0x40]
nop
nop
nop
mov ecx, dword [r8 - 4]
mov eax, r10d
xor eax, ecx
movzx eax, al
xor r10d, eax
mov dword [rsp + 0x50], r10d
mov eax, ecx
shr eax, 8
xor eax, r9d
and eax, 0xf
xor r9d, eax
mov dword [rsp + 0x54], r9d
and edi, 0xfff00000
shr ecx, 0xc
or edi, ecx
mov dword [rsp + 0x58], edi
mov ecx, dword [rbp + 0x14]
add ecx, edx
imul rcx, rcx, 0xac
lea r15, [rsp + 0x50]
mov eax, dword [r15]
mov dword [rcx + rbp + 0xbc], eax
mov eax, dword [r15 + 4]
mov dword [rcx + rbp + 0xc0], eax
mov eax, dword [r15 + 8]
mov dword [rcx + rbp + 0xc4], eax
mov ecx, dword [r8]
mov eax, ebx
xor eax, ecx
movzx eax, al
xor ebx, eax
mov dword [rsp + 0x40], ebx
shr ecx, 8
xor ecx, r11d
movzx eax, cx
xor r11d, eax
mov dword [rsp + 0x44], r11d
mov ecx, dword [rbp + 0x14]
add ecx, edx
imul rcx, rcx, 0xac
mov rax, qword [rsp + 0x40]
mov qword [rcx + rbp + 0x144], rax
mov ecx, dword [rbp + 0x14]
add ecx, edx
imul rcx, rcx, 0xac
mov eax, dword [rsi]
mov dword [rcx + rbp + 0x14c], eax
mov ecx, dword [rbp + 0x14]
add ecx, edx
imul rcx, rcx, 0xac
xor eax, eax
mov dword [rcx + rbp + 0x150], eax
mov dword [rcx + rbp + 0x154], eax
mov dword [rcx + rbp + 0x158], eax
mov ecx, dword [rbp + 0x14]
add ecx, edx
imul rcx, rcx, 0xac
mov dword [rcx + rbp + 0x15c], r14d
add edx, 1
add r8, 8
add rsi, 4
cmp edx, dword [rsp + 0x270]
jb 0x1400ad320
xor r15d, r15d
mov rax, qword [rbp + 0x1640]
bt dword [rax + 0x2c], 0x15
jae 0x1400ad595
call fcn.14012a060
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400ad45a
mov ecx, 0x80004005
call fcn.140002cb0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, [0x14017f438]
test rdx, 0xffffffffffff0000
jne 0x1400ad49d
movzx edi, dx
mov ecx, edi
call fcn.140138f84
test rax, rax
je 0x1400ad4ba
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140004c30
jmp 0x1400ad4ba
xor eax, eax
mov rcx, r12
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x40]
call fcn.140003210
nop
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x48], r15d
mov edi, r15d
cmp dword [rsp + 0x270], 0
jbe 0x1400ad574
nop
nop
nop
mov eax, dword [rbp + 0x14]
lea r8d, [rdi + rax]
lea rdx, str.Pin__d
lea rcx, [rsp + 0x40]
call fcn.140004aa0
lea r11, [rsp + 0x48]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x60]
mov r8, qword [rsp + 0x40]
lea rdx, str.Retasking
lea rcx, [0x140206e90]
call fcn.140138c78
test eax, eax
je 0x1400ad564
cmp dword [rsp + 0x48], 0xc
jne 0x1400ad550
mov edx, dword [rbp + 0x14]
add edx, edi
imul rdx, rdx, 0xac
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov qword [rdx + rbp + 0x150], rax
mov eax, dword [rcx + 8]
mov dword [rdx + rbp + 0x158], eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400ad564
call fcn.1401287f4
mov qword [rsp + 0x60], r15
add edi, 1
cmp edi, dword [rsp + 0x270]
jb 0x1400ad4e0
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x1400ad595
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, r13
call fcn.1401287f4
mov eax, dword [rsp + 0x270]
add dword [rbp + 0x14], eax
mov eax, 1
jmp 0x1400ad5b0
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