Function at 0x140098f18
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfa8]
mov eax, 0x10a8
call fcn.1401b9e30
sub rsp, rax
mov rax, qword [0x1402aaed0]
xor rax, rsp
mov qword [rbp + 0xf90], rax
mov rax, qword [rcx + 0xe0]
xor r15d, r15d
mov rdi, rcx
mov dword [rsp + 0x68], r9d
mov r14d, r9d
mov qword [rsp + 0x70], r8
mov r9d, 0xfffffffc
mov dword [rsp + 0x64], edx
mov rcx, qword [rax + 0x18]
mov r8d, edx
mov r12d, 0x80
mov ebx, r9d
mov edx, r15d
test rcx, rcx
je 0x140098f8a
mov rdx, qword [rcx]
mov esi, r15d
test r14d, r14d
jne 0x140098fa1
lea ecx, [r8 - 9]
or r8d, 0xffffffff
cmp ecx, 1
cmovbe esi, r8d
cmp qword [rdi + 0xe8], r15
jne 0x140098fb2
mov eax, r9d
jmp 0x1400991cc
test rdx, rdx
je 0x140098faa
mov rcx, rdx
call fcn.140098e80
mov r13, rax
cmp dword [rdi + 0x70], r15d
jne 0x140098fdc
mov rcx, qword [rdi + 0xe8]
cmp qword [rcx + 0x2a8], r15
je 0x140098fdc
movzx r12d, r15w
mov rcx, qword [rdi + 0xe8]
or edx, 0xffffffff
mov rcx, qword [rcx + 0x288]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, r14d
jge 0x1400991af
mov edx, 0x1000
mov ecx, 0x8000
test esi, esi
mov eax, r15d
mov ebx, r14d
cmovns eax, esi
sub ebx, eax
movsxd r15, eax
add r15, qword [rsp + 0x70]
cmp ebx, edx
cmovg ebx, edx
movzx edx, r12w
mov r9d, ebx
lea esi, [rbx + rax]
cmp esi, r14d
jl 0x14009913e
or dx, cx
xor eax, eax
lea rcx, [rsp + 0x78]
cmp dword [r13 + 4], eax
jne 0x14009904b
movzx r8d, word [rsp + 0x64]
jmp 0x140099052
mov dword [r13 + 4], eax
xor r8d, r8d
call fcn.1400a5c1c
mov r14d, eax
test r12w, r12w
je 0x14009915b
mov edx, 4
lea rcx, [rsp + 0x60]
call fcn.1400c9560
xor eax, eax
test ebx, ebx
jle 0x1400990ee
movsxd r8, ebx
mov edx, eax
sar r8, 2
mov r9d, eax
test r8, r8
jle 0x1400990b0
lea rax, [rbp - 0x70]
mov r10, r15
sub r10, rax
mov edx, r8d
lea rax, [r10 + r9*4]
mov ecx, dword [rbp + rax - 0x70]
xor ecx, dword [rsp + 0x60]
mov dword [rbp + r9*4 - 0x70], ecx
inc r9
cmp r9, r8
jl 0x140099097
shl edx, 2
cmp edx, ebx
jge 0x1400990ee
movsxd rax, edx
lea r8, [rbp - 0x70]
add r8, rax
lea rax, [rbp - 0x70]
sub r15, rax
mov eax, edx
and eax, 0x80000003
jge 0x1400990d8
dec eax
or eax, 0xfffffffc
inc eax
cdqe
inc edx
mov cl, byte [rsp + rax + 0x60]
xor cl, byte [r8 + r15]
mov byte [r8], cl
inc r8
cmp edx, ebx
jl 0x1400990c8
mov ecx, 2
lea rax, [rbp - 0x70]
mov dword [rsp + 0x58], ecx
lea r9, [rsp + 0x78]
mov dword [rsp + 0x50], ebx
xor edx, edx
mov qword [rsp + 0x48], rax
mov r8d, 0x40000003
mov dword [rsp + 0x40], ecx
lea rax, [rsp + 0x60]
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov rcx, qword [rdi + 0xe8]
mov dword [rsp + 0x20], r14d
call fcn.1400870ac
jmp 0x14009918f
cmp dword [r13 + 4], 0
lea rcx, [rsp + 0x78]
jne 0x14009904f
mov dword [r13 + 4], 1
jmp 0x140099043
mov rcx, qword [rdi + 0xe8]
lea r9, [rsp + 0x78]
mov eax, 2
xor edx, edx
mov dword [rsp + 0x40], eax
mov r8d, 0x40000002
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
call fcn.1400870ac
mov r14d, dword [rsp + 0x68]
mov ebx, eax
mov ecx, 0x8000
mov edx, 0x1000
mov r15d, 0
cmp esi, r14d
jl 0x140099006
mov rcx, qword [rdi + 0xe8]
xor r8d, r8d
mov rcx, qword [rcx + 0x288]
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, ebx
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.1401b98c0
add rsp, 0x10a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret