Function at 0x1400a258c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, qword [0x14022f130]
xor edi, edi
xor r13d, r13d
mov qword [rax + 8], rdi
xor ecx, ecx
mov r15, r9
mov rsi, rdx
xor r8d, r8d
lea ebp, [rdi + 2]
movzx eax, byte [r8 + rdx]
inc r8
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
cmp r8, rbp
jb 0x1400a25cc
mov r8b, byte [rsp + 0xa0]
add r8b, bpl
cmp r8b, 0x12
jae 0x1400a2645
movzx edx, r8b
mov eax, 0x12
shl rdx, 4
add rdx, r9
sub al, r8b
movzx r10d, al
mov r9d, dword [rdx + 8]
xor r8d, r8d
mov r11, qword [rdx]
test r9, r9
je 0x1400a263b
movzx eax, byte [r8 + r11]
inc r8
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
cmp r8, r9
jb 0x1400a261f
add rdx, 0x10
sub r10, 1
jne 0x1400a2610
lea eax, [rcx + rcx*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
lea rax, [rbx + 0x108]
imul r12d, ecx, 0x8001
mov rcx, rax
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov eax, r12d
and eax, 0x1f
lea r14, [rbx + rax*8]
cmp qword [r14], 0
jne 0x1400a26de
cmp dword [rbx + 0x100], 0x400
jae 0x1400a2828
test rdi, rdi
jne 0x1400a26c9
mov r9b, byte [rsp + 0xa0]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov r8, r15
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call fcn.1400a2360
mov rdi, qword [rsp + 0x80]
mov r13d, eax
test rdi, rdi
je 0x1400a278c
xor eax, eax
lock cmpxchg qword [r14], rdi
je 0x1400a27a7
mov rdi, qword [rsp + 0x80]
mov r14, qword [r14]
cmp r12d, dword [r14 + 0x28]
je 0x1400a26f0
mov ecx, r12d
sub ecx, dword [r14 + 0x28]
jmp 0x1400a2753
movzx eax, word [r14]
cmp word [rsi], ax
je 0x1400a2700
movzx ecx, word [rsi]
sub ecx, eax
jmp 0x1400a2753
movzx esi, byte [r14 + 0x2d]
add esi, ebp
cmp esi, 0x12
jae 0x1400a2749
mov r15, qword [r14 + 0x10]
mov r9, qword [rsp + 0x98]
mov eax, esi
shl rax, 4
mov ecx, dword [rax + r9 + 8]
sub ecx, dword [rax + r15 + 8]
jne 0x1400a2782
mov r8d, dword [rax + r9 + 8]
mov rdx, qword [rax + r15]
mov rcx, qword [rax + r9]
call fcn.1401a4b30
mov ecx, eax
test eax, eax
jne 0x1400a274b
inc esi
cmp esi, 0x12
jb 0x1400a2710
xor ecx, ecx
mov rsi, qword [rsp + 0x88]
mov r9, qword [rsp + 0x98]
test ecx, ecx
je 0x1400a2839
mov r15, qword [rsp + 0x98]
add r14, 0x20
movsxd rax, ecx
sar rax, 0x3f
and rax, 0xfffffffffffffff8
add r14, rax
jmp 0x1400a2675
mov rsi, qword [rsp + 0x88]
jmp 0x1400a275b
cmp eax, 8
jne 0x1400a279c
inc dword [rbx + 0x130]
jmp 0x1400a28eb
inc dword [rbx + 0x134]
jmp 0x1400a28eb
and qword [rsp + 0x80], 0
mov eax, 1
lock xadd dword [rbx + 0x100], eax
inc eax
cmp eax, 1
jne 0x1400a2803
mov r10, qword [rbx + 0x158]
test r10, r10
je 0x1400a2803
mov eax, dword [rbx + 0x160]
lea rdx, [rsp + 0x30]
imul rax, rax, 0xffffffffffffd8f0
mov r9d, 0x1388
xor r8d, r8d
mov rcx, rax
mov dword [rsp + 0x30], eax
shr rcx, 0x20
mov dword [rsp + 0x34], ecx
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_SetThreadpoolTimer]
mov eax, dword [rbx + 0x100]
mov rdi, qword [rsp + 0x80]
cmp dword [rbx + 0x120], eax
jae 0x1400a28eb
mov dword [rbx + 0x120], eax
jmp 0x1400a28eb
inc dword [rbx + 0x12c]
mov r13d, 0xea
jmp 0x1400a28eb
test r14, r14
je 0x1400a28eb
movzx ebx, byte [rsp + 0xa0]
add ebx, ebp
cmp ebx, ebp
jbe 0x1400a28eb
movzx ecx, bpl
add rcx, rcx
mov rax, qword [r9 + rcx*8]
mov r8, qword [rax]
mov rax, qword [r14 + 0x10]
movzx r11d, byte [rax + rcx*8 + 0xd]
mov r9, qword [rax + rcx*8]
cmp r11d, 0x71
je 0x1400a28c7
lea eax, [r11 - 0x72]
cmp eax, 1
ja 0x1400a28cc
mov r10, qword [r9]
xor edx, edx
cmp r8, r10
setl dl
xor ecx, ecx
cmp r8, r10
setg cl
cmp r11d, 0x72
cmove ecx, edx
test ecx, ecx
je 0x1400a28cc
mov rax, r10
lock cmpxchg qword [r9], r8
je 0x1400a28cc
mov r10, qword [r9]
xor ecx, ecx
cmp r8, r10
setl cl
xor eax, eax
cmp r8, r10
setg al
cmp r11b, 0x72
cmove eax, ecx
test eax, eax
jne 0x1400a289d
jmp 0x1400a28cc
lock xadd qword [r9], r8
mov r9, qword [rsp + 0x98]
inc bpl
movzx eax, bpl
cmp eax, ebx
jb 0x1400a2854
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
test rdi, rdi
je 0x1400a2905
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x90]
mov eax, r13d
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret