Function at 0x1400b9b10
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 r14d, r8d
mov dword [rsp + 0x278], r8d
mov rdi, rdx
mov rbp, rcx
cmp qword [rcx + 0x1658], 0
jne 0x1400b9b56
xor eax, eax
jmp 0x1400ba02f
xor r15d, r15d
mov dword [rsp + 0x260], r15d
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x120]
call fcn.140160e90
mov dword [rsp + 0x60], r15d
lea rcx, [rsp + 0x90]
mov rax, qword [0x1401ac380]
mov qword [rcx], rax
mov rax, qword [0x1401ac388]
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.14008b3c0
test eax, eax
je 0x1400ba02f
mov eax, dword [rsp + 0x260]
test eax, eax
jne 0x1400b9bea
mov eax, 1
jmp 0x1400ba02f
lea rdx, [rax + rax*2]
mov eax, 4
mul rdx
mov r12, 0xffffffffffffffff
cmovo rax, r12
mov rcx, rax
call fcn.14013d074
mov r13, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400ba02f
mov eax, dword [rsp + 0x260]
lea ecx, [rax + rax*2]
shl ecx, 2
mov dword [rsp + 0x5c], r15d
lea rdx, [rsp + 0x80]
mov rax, qword [0x1401ac380]
mov qword [rdx], rax
mov rax, qword [0x1401ac388]
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.14008b3c0
test eax, eax
jne 0x1400b9c86
mov rcx, r13
call fcn.14013d06c
xor eax, eax
jmp 0x1400ba02f
mov esi, dword [rsp + 0x260]
lea rbx, [rsi*8]
mov r8, rbx
mov rdx, r13
lea rcx, [rsp + 0x120]
call fcn.140161150
lea r8, [rsi*4]
shr rbx, 2
lea rdx, [r13 + rbx*4]
lea rcx, [rsp + 0xa0]
call fcn.140161150
mov ebx, r15d
test esi, esi
je 0x1400b9e9b
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
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.140001600
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 0x1400b9d00
or r12, 0xffffffffffffffff
mov r13, qword [rsp + 0x68]
mov r14d, dword [rsp + 0x278]
xor r15d, r15d
mov rax, qword [rbp + 0x1658]
bt dword [rax + 0x2c], 0x15
jae 0x1400ba00b
call fcn.14013d07c
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400b9ecd
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, [0x14019cf88]
test rdx, 0xffffffffffff0000
jne 0x1400b9f10
movzx edi, dx
mov ecx, edi
call fcn.14013d654
test rax, rax
je 0x1400b9f2d
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400020e0
jmp 0x1400b9f2d
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.140002390
nop
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x278], r15d
mov edi, r15d
cmp dword [rsp + 0x260], 0
jbe 0x1400b9fea
nop
nop
mov eax, dword [rbp + 0x14]
lea r8d, [rdi + rax]
lea rdx, str.Pin__d
lea rcx, [rsp + 0x40]
call fcn.140001f50
lea r11, [rsp + 0x278]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x48]
mov r8, qword [rsp + 0x40]
lea rdx, str.Retasking
lea rcx, [0x14022e890]
call fcn.14014c020
test eax, eax
je 0x1400b9fda
cmp dword [rsp + 0x278], 0xc
jne 0x1400b9fc6
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 0x1400b9fda
call fcn.14013d06c
mov qword [rsp + 0x48], r15
add edi, 1
cmp edi, dword [rsp + 0x260]
jb 0x1400b9f50
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x1400ba00b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, r13
call fcn.14013d06c
movsxd rcx, r14d
mov eax, dword [rbp + 0x14]
mov dword [rbp + rcx*4 + 0x1668], eax
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