Function at 0x14007ce8c
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.140168660
sub rsp, rax
mov rax, qword [0x14021c510]
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 0x14007cefe
mov rdx, qword [rcx]
mov esi, r15d
test r14d, r14d
jne 0x14007cf15
lea ecx, [r8 - 9]
or r8d, 0xffffffff
cmp ecx, 1
cmovbe esi, r8d
cmp qword [rdi + 0xe8], r15
jne 0x14007cf26
mov eax, r9d
jmp 0x14007d140
test rdx, rdx
je 0x14007cf1e
mov rcx, rdx
call fcn.14007cdf4
mov r13, rax
cmp dword [rdi + 0x70], r15d
jne 0x14007cf50
mov rcx, qword [rdi + 0xe8]
cmp qword [rcx + 0x298], r15
je 0x14007cf50
movzx r12d, r15w
mov rcx, qword [rdi + 0xe8]
or edx, 0xffffffff
mov rcx, qword [rcx + 0x278]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, r14d
jge 0x14007d123
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 0x14007d0b2
or dx, cx
xor eax, eax
lea rcx, [rsp + 0x78]
cmp dword [r13 + 4], eax
jne 0x14007cfbf
movzx r8d, word [rsp + 0x64]
jmp 0x14007cfc6
mov dword [r13 + 4], eax
xor r8d, r8d
call fcn.1400897ac
mov r14d, eax
test r12w, r12w
je 0x14007d0cf
mov edx, 4
lea rcx, [rsp + 0x60]
call fcn.1400ab9d0
xor eax, eax
test ebx, ebx
jle 0x14007d062
movsxd r8, ebx
mov edx, eax
sar r8, 2
mov r9d, eax
test r8, r8
jle 0x14007d024
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 0x14007d00b
shl edx, 2
cmp edx, ebx
jge 0x14007d062
movsxd rax, edx
lea r8, [rbp - 0x70]
add r8, rax
lea rax, [rbp - 0x70]
sub r15, rax
mov eax, edx
and eax, 0x80000003
jge 0x14007d04c
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 0x14007d03c
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.14006ed18
jmp 0x14007d103
cmp dword [r13 + 4], 0
lea rcx, [rsp + 0x78]
jne 0x14007cfc3
mov dword [r13 + 4], 1
jmp 0x14007cfb7
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.14006ed18
mov r14d, dword [rsp + 0x68]
mov ebx, eax
mov ecx, 0x8000
mov edx, 0x1000
mov r15d, 0
cmp esi, r14d
jl 0x14007cf7a
mov rcx, qword [rdi + 0xe8]
xor r8d, r8d
mov rcx, qword [rcx + 0x278]
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, ebx
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.140168070
add rsp, 0x10a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret