Function at 0x1400d3600
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 + 0x14b8], 0
jne 0x1400d3641
xor eax, eax
jmp 0x1400d3b30
xor r15d, r15d
mov dword [rsp + 0x270], r15d
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x130]
call fcn.1402197d0
lea rdx, [rsp + 0x80]
mov rax, qword [0x14025bab8]
mov qword [rdx], rax
mov rax, qword [0x14025bac0]
mov qword [rdx + 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 dword [rsp + 0x288], r15d
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 0x1400d3b2e
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 0x1400d3798
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.14003bed0
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or r12, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x1400d3b2e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400d3b2e
mov ecx, dword [rsp + 0x270]
test ecx, ecx
jne 0x1400d37ab
lea eax, [rcx + 1]
jmp 0x1400d3b30
lea rdx, [rcx + rcx*2]
mov eax, 4
mul rdx
mov r12, 0xffffffffffffffff
cmovo rax, r12
mov rcx, rax
call fcn.1401dacd0
mov r13, rax
test rax, rax
je 0x1400d3b30
lea rcx, [rsp + 0xa0]
mov rax, qword [0x14025bab8]
mov qword [rcx], rax
mov rax, qword [0x14025bac0]
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.14003b7a0
test eax, eax
jne 0x1400d3833
mov rcx, r13
call fcn.1401dacd8
xor eax, eax
jmp 0x1400d3b30
mov esi, dword [rsp + 0x270]
lea rbx, [rsi*8]
mov r8, rbx
mov rdx, r13
lea rcx, [rsp + 0x130]
call fcn.140219480
lea r8, [rsi*4]
shr rbx, 2
lea rdx, [r13 + rbx*4]
lea rcx, [rsp + 0xb0]
call fcn.140219480
mov edx, r15d
test esi, esi
je 0x1400d39af
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 + 0xc]
add ecx, edx
imul rcx, rcx, 0xa4
lea r15, [rsp + 0x50]
mov eax, dword [r15]
mov dword [rcx + rbp + 0x30], eax
mov eax, dword [r15 + 4]
mov dword [rcx + rbp + 0x34], eax
mov eax, dword [r15 + 8]
mov dword [rcx + rbp + 0x38], 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 + 0xc]
add ecx, edx
imul rcx, rcx, 0xa4
mov rax, qword [rsp + 0x40]
mov qword [rcx + rbp + 0xb0], rax
mov ecx, dword [rbp + 0xc]
add ecx, edx
imul rcx, rcx, 0xa4
mov eax, dword [rsi]
mov dword [rcx + rbp + 0xb8], eax
mov ecx, dword [rbp + 0xc]
add ecx, edx
imul rcx, rcx, 0xa4
xor eax, eax
mov dword [rcx + rbp + 0xbc], eax
mov dword [rcx + rbp + 0xc0], eax
mov dword [rcx + rbp + 0xc4], eax
mov ecx, dword [rbp + 0xc]
add ecx, edx
imul rcx, rcx, 0xa4
mov dword [rcx + rbp + 0xc8], r14d
add edx, 1
add r8, 8
add rsi, 4
cmp edx, dword [rsp + 0x270]
jb 0x1400d38b0
xor r15d, r15d
mov rax, qword [rbp + 0x14b8]
bt dword [rax + 8], 0x15
jae 0x1400d3b15
call fcn.1401e9268
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400d39e1
mov ecx, 0x80004005
call fcn.140003c70
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, [0x140260b08]
test rdx, 0xffffffffffff0000
jne 0x1400d3a24
movzx edi, dx
mov ecx, edi
call fcn.1401eb134
test rax, rax
je 0x1400d3a41
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400074b0
jmp 0x1400d3a41
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.140007720
nop
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x48], r15d
mov edi, r15d
cmp dword [rsp + 0x270], 0
jbe 0x1400d3af4
nop
mov eax, dword [rbp + 0xc]
lea r8d, [rdi + rax]
lea rdx, str.Pin__d
lea rcx, [rsp + 0x40]
call fcn.140004020
lea r11, [rsp + 0x48]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x60]
mov r8, qword [rsp + 0x40]
lea rdx, str.Retasking
lea rcx, [0x1403149a0]
call fcn.1401eef84
test eax, eax
je 0x1400d3ae4
cmp dword [rsp + 0x48], 0xc
jne 0x1400d3ad0
mov edx, dword [rbp + 0xc]
add edx, edi
imul rdx, rdx, 0xa4
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov qword [rdx + rbp + 0xbc], rax
mov eax, dword [rcx + 8]
mov dword [rdx + rbp + 0xc4], eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400d3ae4
call fcn.1401dacd8
mov qword [rsp + 0x60], r15
add edi, 1
cmp edi, dword [rsp + 0x270]
jb 0x1400d3a60
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x1400d3b15
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, r13
call fcn.1401dacd8
mov eax, dword [rsp + 0x270]
add dword [rbp + 0xc], eax
mov eax, 1
jmp 0x1400d3b30
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