Function at 0x140071590
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.14015c3d0
sub rsp, rax
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rbp + 0xf90], rax
mov rax, qword [rcx + 0xd8]
mov r14, rcx
mov qword [rsp + 0x68], r8
mov r13d, r9d
mov r8d, edx
mov dword [rsp + 0x64], edx
xor edx, edx
mov r9d, 0xfffffffc
mov rcx, qword [rax + 0x18]
mov ebx, r9d
test rcx, rcx
je 0x1400715f3
mov rdx, qword [rcx]
xor edi, edi
test r13d, r13d
jne 0x140071609
lea ecx, [r8 - 9]
or r8d, 0xffffffff
cmp ecx, 1
cmovbe edi, r8d
cmp qword [r14 + 0xe0], 0
jne 0x14007161b
mov eax, r9d
jmp 0x140071831
test rdx, rdx
je 0x140071613
mov rcx, rdx
call fcn.1400714f8
mov rcx, qword [r14 + 0xe0]
mov r15, rax
mov qword [rsp + 0x78], rax
mov rax, qword [rcx + 0x290]
mov rcx, qword [rcx + 0x270]
mov rdx, rax
neg rdx
mov qword [rsp + 0x70], rax
sbb si, si
or edx, 0xffffffff
not si
and si, 0x80
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp edi, r13d
jge 0x140071814
mov edx, 0x1000
mov ecx, 0x8000
xor eax, eax
mov ebx, r13d
test edi, edi
cmovns eax, edi
sub ebx, eax
movsxd r12, eax
add r12, qword [rsp + 0x68]
cmp ebx, edx
cmovg ebx, edx
movzx edx, si
mov r9d, ebx
lea edi, [rbx + rax]
cmp edi, r13d
jl 0x1400717ab
or dx, cx
lea rcx, [rbp - 0x80]
cmp dword [r15 + 4], 0
jne 0x1400716b8
movzx r8d, word [rsp + 0x64]
jmp 0x1400716c0
and dword [r15 + 4], 0
xor r8d, r8d
call fcn.14007dd10
cmp qword [rsp + 0x70], 0
mov r15d, eax
jne 0x1400717c7
mov edx, 4
lea rcx, [rsp + 0x60]
call fcn.14009b110
test ebx, ebx
jle 0x14007175c
movsxd r8, ebx
xor edx, edx
sar r8, 2
xor r9d, r9d
test r8, r8
jle 0x14007171e
lea rax, [rbp - 0x70]
mov r10, r12
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 0x140071705
shl edx, 2
cmp edx, ebx
jge 0x14007175c
movsxd rax, edx
lea r8, [rbp - 0x70]
add r8, rax
lea rax, [rbp - 0x70]
sub r12, rax
mov eax, edx
and eax, 0x80000003
jge 0x140071746
dec eax
or eax, 0xfffffffc
inc eax
cdqe
inc edx
mov cl, byte [rsp + rax + 0x60]
xor cl, byte [r8 + r12]
mov byte [r8], cl
inc r8
cmp edx, ebx
jl 0x140071736
mov ecx, 2
lea rax, [rbp - 0x70]
mov dword [rsp + 0x58], ecx
lea r9, [rbp - 0x80]
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 [r14 + 0xe0]
mov dword [rsp + 0x20], r15d
call fcn.140063788
jmp 0x1400717fa
cmp dword [r15 + 4], 0
lea rcx, [rbp - 0x80]
jne 0x1400716bd
mov dword [r15 + 4], 1
jmp 0x1400716b0
mov rcx, qword [r14 + 0xe0]
lea r9, [rbp - 0x80]
mov eax, 2
xor edx, edx
mov dword [rsp + 0x40], eax
mov r8d, 0x40000002
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r15d
call fcn.140063788
mov r15, qword [rsp + 0x78]
mov ebx, eax
mov ecx, 0x8000
mov edx, 0x1000
cmp edi, r13d
jl 0x140071677
mov rcx, qword [r14 + 0xe0]
xor r8d, r8d
mov rcx, qword [rcx + 0x270]
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, ebx
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.14015bde0
add rsp, 0x10a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret