Function at 0x1400baf20
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x220
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x268], rbx
mov dword [rsp + 0x278], r8d
mov rdi, rdx
mov rbp, rcx
cmp qword [rcx + 0x1658], 0
jne 0x1400baf63
xor eax, eax
jmp 0x1400bb432
xor r14d, r14d
mov dword [rsp + 0x260], r14d
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x120]
call fcn.1401601f0
mov dword [rsp + 0x60], r14d
lea rcx, [rsp + 0x90]
mov rax, qword [0x1401ab248]
mov qword [rcx], rax
mov rax, qword [0x1401ab250]
mov qword [rcx + 8], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x260]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.14008acf0
test eax, eax
je 0x1400bb432
mov eax, dword [rsp + 0x260]
test eax, eax
jne 0x1400baff7
mov eax, 1
jmp 0x1400bb432
lea rdx, [rax + rax*2]
mov eax, 4
mul rdx
mov r12, 0xffffffffffffffff
cmovo rax, r12
mov rcx, rax
call fcn.14013c75c
mov r13, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400bb432
mov eax, dword [rsp + 0x260]
lea ecx, [rax + rax*2]
shl ecx, 2
mov dword [rsp + 0x5c], r14d
lea rdx, [rsp + 0x80]
mov rax, qword [0x1401ab248]
mov qword [rdx], rax
mov rax, qword [0x1401ab250]
mov qword [rdx + 8], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.14008acf0
test eax, eax
jne 0x1400bb093
mov rcx, r13
call fcn.14013c754
xor eax, eax
jmp 0x1400bb432
mov esi, dword [rsp + 0x260]
lea rbx, [rsi*8]
mov r8, rbx
mov rdx, r13
lea rcx, [rsp + 0x120]
call fcn.1401604f0
lea r8, [rsi*4]
shr rbx, 2
lea rdx, [r13 + rbx*4]
lea rcx, [rsp + 0xa0]
call fcn.1401604f0
mov ebx, r14d
test esi, esi
je 0x1400bb2a3
lea rdi, [rsp + 0xa0]
mov qword [rsp + 0x48], rdi
lea r14, [rsp + 0x124]
mov esi, dword [rsp + 0x58]
mov r15d, dword [rsp + 0x54]
mov r12d, dword [rsp + 0x50]
mov r13d, dword [rsp + 0x44]
nop
nop
nop
mov ecx, dword [r14 - 4]
mov eax, r12d
xor eax, ecx
movzx eax, al
xor r12d, eax
mov dword [rsp + 0x50], r12d
mov eax, ecx
shr eax, 8
xor eax, r15d
and eax, 0xf
xor r15d, eax
mov dword [rsp + 0x54], r15d
and esi, 0xfff00000
shr ecx, 0xc
or esi, ecx
mov dword [rsp + 0x58], esi
mov ecx, dword [rbp + 0x14]
add ecx, ebx
imul rcx, rcx, 0xac
lea rdx, [rsp + 0x50]
mov eax, dword [rdx]
mov dword [rcx + rbp + 0xbc], eax
mov eax, dword [rdx + 4]
mov dword [rcx + rbp + 0xc0], eax
mov eax, dword [rdx + 8]
mov dword [rcx + rbp + 0xc4], eax
mov ecx, dword [r14]
mov edx, dword [rsp + 0x40]
mov eax, edx
xor eax, ecx
movzx eax, al
xor edx, eax
mov dword [rsp + 0x40], edx
shr ecx, 8
xor ecx, r13d
movzx eax, cx
xor r13d, eax
mov dword [rsp + 0x44], r13d
mov ecx, dword [rbp + 0x14]
add ecx, ebx
imul rcx, rcx, 0xac
mov rax, qword [rsp + 0x40]
mov qword [rcx + rbp + 0x144], rax
mov ecx, dword [rbp + 0x14]
add ecx, ebx
imul rcx, rcx, 0xac
mov eax, dword [rdi]
mov dword [rcx + rbp + 0x14c], eax
mov ecx, dword [rbp + 0x14]
add ecx, ebx
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, ebx
imul rcx, rcx, 0xac
mov eax, dword [rsp + 0x278]
mov dword [rcx + rbp + 0x15c], eax
mov r10d, dword [rbp + 0x14]
add r10d, ebx
mov r8d, r10d
imul r8, r8, 0xac
mov edi, dword [r8 + rbp + 0xbc]
and edi, 0xf
mov edx, dword [r8 + rbp + 0xc4]
shr edx, 8
and edx, 0xf
mov ecx, dword [r8 + rbp + 0xc0]
shr ecx, 2
and ecx, 1
movzx eax, byte [r8 + rbp + 0x149]
movzx r9d, byte [r8 + rbp + 0x148]
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov r8d, dword [r8 + rbp + 0x14c]
mov edx, r10d
lea rcx, str.CJackInfo::LoadPinCfgOfDevice_:_Jack__x___Wid__X__Loc__X__Type__X__ReTasking__d__DefDev__d__Sequence__d
call fcn.140001b40
add ebx, 1
add r14, 8
mov rdi, qword [rsp + 0x48]
add rdi, 4
mov qword [rsp + 0x48], rdi
cmp ebx, dword [rsp + 0x260]
jb 0x1400bb110
or r12, 0xffffffffffffffff
mov r13, qword [rsp + 0x68]
xor r14d, r14d
mov rax, qword [rbp + 0x1658]
bt dword [rax + 0x2c], 0x15
jae 0x1400bb41b
call fcn.14013e120
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400bb2d5
mov ecx, 0x80004005
call fcn.140001c70
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, [0x14019bd68]
test rdx, 0xffffffffffff0000
jne 0x1400bb318
movzx edi, dx
mov ecx, edi
call fcn.14014c5c0
test rax, rax
je 0x1400bb335
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005140
jmp 0x1400bb335
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.1400038f0
nop
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x278], r14d
mov edi, r14d
cmp dword [rsp + 0x260], 0
jbe 0x1400bb3fa
nop
nop
nop
nop
mov eax, dword [rbp + 0x14]
lea r8d, [rdi + rax]
lea rdx, str.Pin__d
lea rcx, [rsp + 0x40]
call fcn.140001df0
lea r11, [rsp + 0x278]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x48]
mov r8, qword [rsp + 0x40]
lea rdx, str.Retasking
lea rcx, [0x14022c580]
call fcn.14014d220
test eax, eax
je 0x1400bb3ea
cmp dword [rsp + 0x278], 0xc
jne 0x1400bb3d6
mov edx, dword [rbp + 0x14]
add edx, edi
imul rdx, rdx, 0xac
mov rcx, qword [rsp + 0x48]
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 + 0x48]
test rcx, rcx
je 0x1400bb3ea
call fcn.14013c754
mov qword [rsp + 0x48], r14
add edi, 1
cmp edi, dword [rsp + 0x260]
jb 0x1400bb360
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x1400bb41b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, r13
call fcn.14013c754
mov eax, dword [rsp + 0x260]
add dword [rbp + 0x14], eax
mov eax, 1
mov rbx, qword [rsp + 0x268]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret